%! TEX root = ../../../facharbeit.tex
% LTeX: language=de-DE

% \imagelabelset{
%   coarse grid color = red,
%   fine grid color = gray,
%   image label font = \sffamily\bfseries\small,
%   image label distance = 2mm,
%   image label back = black,
%   image label text = white,
%   coordinate label font = \sffamily\bfseries\scriptsize,
%   coordinate label distance = 2mm,
%   coordinate label back = black,
%   coordinate label text = white,
%   annotation font = \normalfont\small,
%   arrow distance = 1.5mm,
%   border thickness = 0.6pt,
%   arrow thickness = 0.4pt,
%   tip size = 1.2mm,
%   outer dist = 0.5cm,
% }
% \let\tikzset\imagelabelset

\begin{figure}[h]
	\center
	\begin{tikzpicture}
		% Grid
		% \draw[very thin, draw=gray, step=0.5] (0,0) grid (7,7);
		% \draw[thin, draw=\maingridcolor, xstep=0.1, ystep=0.5] (0,0) grid (7,7);
		% \foreach \x in {0,1,...,7} {
		% 		\node [anchor=north] at (\x,0) {\tiny \x};
		% 	}
		% \node [anchor=north] at (1,0) {\tiny 1};
		%
		% \foreach \y in {0,1,...,7} {
		% 		\node [anchor=east] at (0,\y) {\tiny \y};
		% 	}
		% \node [anchor=east] at (0,1) {\tiny 1};


		\node[] (kuvette) at (1,0.5) {Küvette};
		\node[] (laser) at (-0.5,4) {Laser};
		\node[] (kollimationsLinse) at (2.5,3.5) {Kollimations Linse};
		\node[] (planoKonvexeFokusLinse) at (1,5) {Plano-konvexe Fokus Linse};
		\node[] (smartphoneHalterung) at (6,5) {Smartphone-Halterung};
		\node[] (abnehmbarerGitterHalter) at (6,0) {abnehmbarer Gitter Halter};
		\node[] (schieneFürLinsenHalter) at (3,-1) {Schiene für Linsen/Halter};
		\begin{scope}[xshift=0cm]
			\node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=0.9\columnwidth]{figures/3d_raman_spectrometer_model_trans.png}};
			\begin{scope}[x={(image.south east)},y={(image.north west)}]
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (kuvette) to (0.3,0.45);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (laser) to (0.2,0.6);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (kollimationsLinse) to (0.42,0.5);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (planoKonvexeFokusLinse) to[out=0, in=90] (0.64,0.6);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (smartphoneHalterung) to (0.7,0.7);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (abnehmbarerGitterHalter) to (0.8,0.76);
				\draw [-{Circle[fill=black, length=\tipsize, width=\tipsize]}, black, line width = 0.4pt] (schieneFürLinsenHalter) to (0.6,0.34);
			\end{scope}
		\end{scope}
	\end{tikzpicture}

	% \draw[annotation left = {Küvette at 0.8}] to (0.39,0.45);
	% \draw[annotation left = {Laser at 0.5}] to (0.2,0.6);
	% \draw[annotation below = {Kollimations Linse at 0}] to (0.42,0.5);
	% \draw[annotation below = {Plano-konvexe Fokus Linse at 0.6}] to (0.64,0.6);
	% \draw[annotation above = {Smartphone-Halterung at 0}] to (0.7,0.7);
	% \draw[annotation above = {abnehmbarer Gitter Halter at 0.6}] to (0.76,0.7);
	% \draw[annotation right = {Schiene für Linsen/Halter at 0.5}] to (0.6,0.34);
	\caption{
		Das 3d Modell für den Aufbau.
		\Vref{chap:Links} beinhaltet einen Link zu dem \texttt{OpenSCAD} Quellcode.
		\Vref{fig:threeDModelBigger} zeigt das Bild in voller Größe.
	}\label{fig:threeDModel}
\end{figure}
