\hypertarget{a00983}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Poly\+Line\+Node\+T$<$ Poly\+Line $>$ Class Template Reference}
\label{a00983}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T$<$ Poly\+Line $>$@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T$<$ Poly\+Line $>$}}
}


{\ttfamily \#include $<$A\+C$>$}

Inheritance diagram for A\+C\+G\+:\+:Scene\+Graph\+:\+:Poly\+Line\+Node\+T$<$ Poly\+Line $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00983}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00983_a5dc6cd5903c3a4a6b0497ca59307d3ea}{typedef Poly\+Line\+::\+Point {\bfseries Point}}\label{a00983_a5dc6cd5903c3a4a6b0497ca59307d3ea}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00983_a9cc59a4413394485ec577ffad3f90591}{\hyperlink{a00983_a9cc59a4413394485ec577ffad3f90591}{Poly\+Line\+Node\+T} (\hyperlink{a02341_ab54c407eed4ac40b810973a3f9f397bf}{Poly\+Line} \&\+\_\+pl, \hyperlink{a00327}{Base\+Node} $\ast$\+\_\+parent=0, std\+::string \+\_\+name=\char`\"{}$<$Poly\+Line\+Node$>$\char`\"{})}\label{a00983_a9cc59a4413394485ec577ffad3f90591}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00983_a7cdc6db0daf0b0979b84de1410dd3c0f}{\hyperlink{a00983_a7cdc6db0daf0b0979b84de1410dd3c0f}{$\sim$\+Poly\+Line\+Node\+T} ()}\label{a00983_a7cdc6db0daf0b0979b84de1410dd3c0f}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00983_a4fccf6b2f0c8530aac74dadc6261de0d}{\hyperlink{a02341_ab54c407eed4ac40b810973a3f9f397bf}{Poly\+Line} \& {\bfseries polyline} ()}\label{a00983_a4fccf6b2f0c8530aac74dadc6261de0d}

\item 
\hypertarget{a00983_a3606cac7564cbafae69e260679932a4d}{\hyperlink{a00983_a3606cac7564cbafae69e260679932a4d}{A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+M\+E} (\hyperlink{a00983}{Poly\+Line\+Node\+T})}\label{a00983_a3606cac7564cbafae69e260679932a4d}

\begin{DoxyCompactList}\small\item\em static name of this class \end{DoxyCompactList}\item 
\hypertarget{a00983_a6d67dc818c1772ee7c53837f0a9572c7}{\hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \hyperlink{a00983_a6d67dc818c1772ee7c53837f0a9572c7}{available\+Draw\+Modes} () const }\label{a00983_a6d67dc818c1772ee7c53837f0a9572c7}

\begin{DoxyCompactList}\small\item\em return available draw modes \end{DoxyCompactList}\item 
\hypertarget{a00983_a653627ced0b09273c1744a7493c55c49}{void \hyperlink{a00983_a653627ced0b09273c1744a7493c55c49}{bounding\+Box} (\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \&\+\_\+bb\+Min, \hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \&\+\_\+bb\+Max)}\label{a00983_a653627ced0b09273c1744a7493c55c49}

\begin{DoxyCompactList}\small\item\em update bounding box \end{DoxyCompactList}\item 
\hypertarget{a00983_a7a946e45142a664c228d2d8e6f106f09}{void \hyperlink{a00983_a7a946e45142a664c228d2d8e6f106f09}{draw} (\hyperlink{a00643}{G\+L\+State} \&, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode)}\label{a00983_a7a946e45142a664c228d2d8e6f106f09}

\begin{DoxyCompactList}\small\item\em draw lines and normals \end{DoxyCompactList}\item 
\hypertarget{a00983_a0ebf3635b9a0952f1a8a3b2b4c390010}{void \hyperlink{a00983_a0ebf3635b9a0952f1a8a3b2b4c390010}{pick} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, \hyperlink{a03343_af5fad41dadeca314c2077f897377dbd0}{Pick\+Target} \+\_\+target)}\label{a00983_a0ebf3635b9a0952f1a8a3b2b4c390010}

\begin{DoxyCompactList}\small\item\em picking \end{DoxyCompactList}\item 
void \hyperlink{a00983_abe7e7dcf179e202f9fc4b270d1be76ae}{get\+Render\+Objects} (\hyperlink{a00737}{A\+C\+G\+::\+I\+Renderer} $\ast$\+\_\+renderer, \hyperlink{a00642}{A\+C\+G\+::\+G\+L\+State} \&\+\_\+state, const \hyperlink{a00510}{A\+C\+G\+::\+Scene\+Graph\+::\+Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode, const \hyperlink{a00790}{A\+C\+G\+::\+Scene\+Graph\+::\+Material} $\ast$\+\_\+mat)
\begin{DoxyCompactList}\small\item\em Add the objects to the given renderer. \end{DoxyCompactList}\item 
\hypertarget{a00983_a32a754a011d69c9ba987570a64416949}{void \hyperlink{a00983_a32a754a011d69c9ba987570a64416949}{update} ()}\label{a00983_a32a754a011d69c9ba987570a64416949}

\begin{DoxyCompactList}\small\item\em Trigger an update of the vbo. \end{DoxyCompactList}\item 
int \hyperlink{a00983_a8905c7d9f3dbc11bfe19c5912fb5a748}{add\+Custom\+Buffer} (const \hyperlink{a01420}{A\+C\+G\+::\+Vertex\+Element} \&\+\_\+desc, const void $\ast$\+\_\+buffer)
\item 
void \hyperlink{a00983_a6daa0ff29d92991f7f83c257095e1ebe}{set\+Custom\+Buffer} (int \+\_\+id, const void $\ast$\+\_\+buffer)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00983_ae063384d67b948aa3cb54970f7c5ad61}{void {\bfseries pick\+\_\+vertices} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state)}\label{a00983_ae063384d67b948aa3cb54970f7c5ad61}

\item 
\hypertarget{a00983_a2845be5f1dbe39f9f4e89e95226289aa}{void {\bfseries pick\+\_\+spheres} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state)}\label{a00983_a2845be5f1dbe39f9f4e89e95226289aa}

\item 
\hypertarget{a00983_ab027a7d4b9471690e44acc2c9335835a}{void {\bfseries pick\+\_\+spheres\+\_\+screen} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state)}\label{a00983_ab027a7d4b9471690e44acc2c9335835a}

\item 
\hypertarget{a00983_a4101849b0d4e8414190bf3c46c326d91}{void {\bfseries pick\+\_\+edges} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, unsigned int \+\_\+offset)}\label{a00983_a4101849b0d4e8414190bf3c46c326d91}

\item 
\hypertarget{a00983_ab2a964a371c8534de1899327e9cb1463}{\hyperlink{a00983_ab2a964a371c8534de1899327e9cb1463}{Poly\+Line\+Node\+T} (const \hyperlink{a00983}{Poly\+Line\+Node\+T} \&\+\_\+rhs)}\label{a00983_ab2a964a371c8534de1899327e9cb1463}

\begin{DoxyCompactList}\small\item\em Copy constructor (not used) \end{DoxyCompactList}\item 
\hypertarget{a00983_a42b266c848f20df2076e5208c74f0ac9}{\hyperlink{a00983}{Poly\+Line\+Node\+T} \& \hyperlink{a00983_a42b266c848f20df2076e5208c74f0ac9}{operator=} (const \hyperlink{a00983}{Poly\+Line\+Node\+T} \&\+\_\+rhs)}\label{a00983_a42b266c848f20df2076e5208c74f0ac9}

\begin{DoxyCompactList}\small\item\em Assignment operator (not used) \end{DoxyCompactList}\item 
void \hyperlink{a00983_a43507a0a1c86e40976e902503abd3d22}{update\+V\+B\+O} ()
\begin{DoxyCompactList}\small\item\em Trigger an update of the vbo. \end{DoxyCompactList}\item 
void \hyperlink{a00983_a6cbb0c4e244bd2922faff175cd36f509}{setup\+Vertex\+Declaration} (\hyperlink{a01417}{Vertex\+Declaration} $\ast$\+\_\+dst, int \+\_\+color\+Source) const 
\begin{DoxyCompactList}\small\item\em Create the vertex declaration. \end{DoxyCompactList}\item 
void \hyperlink{a00983_aaebc9ed725e92a83ba21ac0f905b5ede}{write\+Vertex} (unsigned int \+\_\+vertex, void $\ast$\+\_\+dst)
\begin{DoxyCompactList}\small\item\em Write vertex data for rendering to a buffer. \end{DoxyCompactList}\item 
void \hyperlink{a00983_a7618f1ba22b37c6660919c9410a12e08}{write\+Vertex\+Color} (unsigned int \+\_\+vertex, bool \+\_\+color\+Source\+Vertex, void $\ast$\+\_\+dst) const 
\begin{DoxyCompactList}\small\item\em Write color for rendering to a buffer. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00983_a07b007316947ee46b6da7b27323ab3a3}{\hyperlink{a01418}{A\+C\+G\+::\+Vertex\+Declaration} \hyperlink{a00983_a07b007316947ee46b6da7b27323ab3a3}{vertex\+Decl\+\_\+}}\label{a00983_a07b007316947ee46b6da7b27323ab3a3}

\begin{DoxyCompactList}\small\item\em Vertex layout without vertex colors. \end{DoxyCompactList}\item 
\hypertarget{a00983_a640fcc58be675aee99b2792cb5e32926}{\hyperlink{a01418}{A\+C\+G\+::\+Vertex\+Declaration} \hyperlink{a00983_a640fcc58be675aee99b2792cb5e32926}{vertex\+Decl\+V\+Col\+\_\+}}\label{a00983_a640fcc58be675aee99b2792cb5e32926}

\begin{DoxyCompactList}\small\item\em Vertex layout with vertex colors. \end{DoxyCompactList}\item 
\hypertarget{a00983_a616082677ed929c36fad56d69b3e8b40}{\hyperlink{a01418}{A\+C\+G\+::\+Vertex\+Declaration} \hyperlink{a00983_a616082677ed929c36fad56d69b3e8b40}{vertex\+Decl\+E\+Col\+\_\+}}\label{a00983_a616082677ed929c36fad56d69b3e8b40}

\begin{DoxyCompactList}\small\item\em Vertex layout with edge colors. \end{DoxyCompactList}\item 
\hypertarget{a00983_aa9f2ef3e16c312b61d567fd5981ea93c}{std\+::vector$<$ std\+::pair\\*
$<$ \hyperlink{a01420}{A\+C\+G\+::\+Vertex\+Element}, const \\*
void $\ast$ $>$ $>$ \hyperlink{a00983_aa9f2ef3e16c312b61d567fd5981ea93c}{custom\+Buffers\+\_\+}}\label{a00983_aa9f2ef3e16c312b61d567fd5981ea93c}

\begin{DoxyCompactList}\small\item\em Custom vertex data for shader based rendering. \end{DoxyCompactList}\item 
\hypertarget{a00983_ab6f01e2fa2035cea032bdc253c03759a}{std\+::map$<$ typename \\*
Poly\+Line\+::\+Custom\+Property\+Handle, \\*
int $>$ \hyperlink{a00983_ab6f01e2fa2035cea032bdc253c03759a}{polyline\+Prop\+Map\+\_\+}}\label{a00983_ab6f01e2fa2035cea032bdc253c03759a}

\begin{DoxyCompactList}\small\item\em Map from custom properties in Poly\+Line to id in custom\+Buffers\+\_\+. \end{DoxyCompactList}\item 
\hypertarget{a00983_aeaa93bd732f03073723a0eea68b3a123}{\hyperlink{a02341_ab54c407eed4ac40b810973a3f9f397bf}{Poly\+Line} \& \hyperlink{a00983_aeaa93bd732f03073723a0eea68b3a123}{polyline\+\_\+}}\label{a00983_aeaa93bd732f03073723a0eea68b3a123}

\begin{DoxyCompactList}\small\item\em The associated poly line. \end{DoxyCompactList}\item 
\hypertarget{a00983_a459b463e7eb215597cc20737b19492d3}{unsigned int \hyperlink{a00983_a459b463e7eb215597cc20737b19492d3}{vbo\+\_\+}}\label{a00983_a459b463e7eb215597cc20737b19492d3}

\begin{DoxyCompactList}\small\item\em V\+B\+O used to render the poly line. \end{DoxyCompactList}\item 
\hypertarget{a00983_adfd13dc406cd7ba31546de338918f276}{std\+::vector$<$ unsigned int $>$ \hyperlink{a00983_adfd13dc406cd7ba31546de338918f276}{selected\+Vertex\+Index\+Buffer\+\_\+}}\label{a00983_adfd13dc406cd7ba31546de338918f276}

\begin{DoxyCompactList}\small\item\em Index buffer for selected vertices. \end{DoxyCompactList}\item 
\hypertarget{a00983_a9bd017b27acd85c022cc7a1f164fe538}{std\+::vector$<$ unsigned int $>$ \hyperlink{a00983_a9bd017b27acd85c022cc7a1f164fe538}{selected\+Edge\+Index\+Buffer\+\_\+}}\label{a00983_a9bd017b27acd85c022cc7a1f164fe538}

\begin{DoxyCompactList}\small\item\em Index buffer for selected edges. \end{DoxyCompactList}\item 
\hypertarget{a00983_ad5814978cd30d5141f0dacebbfa005b4}{bool \hyperlink{a00983_ad5814978cd30d5141f0dacebbfa005b4}{update\+V\+B\+O\+\_\+}}\label{a00983_ad5814978cd30d5141f0dacebbfa005b4}

\begin{DoxyCompactList}\small\item\em Flag to trigger update of vbo. \end{DoxyCompactList}\item 
\hypertarget{a00983_ab96de6fa5065055088d44009e59fcd47}{\hyperlink{a00641}{G\+L\+Sphere} $\ast$ \hyperlink{a00983_ab96de6fa5065055088d44009e59fcd47}{sphere\+\_\+}}\label{a00983_ab96de6fa5065055088d44009e59fcd47}

\begin{DoxyCompactList}\small\item\em Sphere for Vertex\+Sphere Draw\+Mode. \end{DoxyCompactList}\item 
\hypertarget{a00983_a1ce7148a07f3cc000025fc46ac430117}{\hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \hyperlink{a00983_a1ce7148a07f3cc000025fc46ac430117}{P\+O\+I\+N\+T\+S\+\_\+\+S\+P\+H\+E\+R\+E\+S}}\label{a00983_a1ce7148a07f3cc000025fc46ac430117}

\begin{DoxyCompactList}\small\item\em This defines a local point spheres draw mode for all poly\+Line nodes. \end{DoxyCompactList}\item 
\hypertarget{a00983_abbf30799805e12cee8470486b1545b4c}{\hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \hyperlink{a00983_abbf30799805e12cee8470486b1545b4c}{P\+O\+I\+N\+T\+S\+\_\+\+S\+P\+H\+E\+R\+E\+S\+\_\+\+S\+C\+R\+E\+E\+N}}\label{a00983_abbf30799805e12cee8470486b1545b4c}

\begin{DoxyCompactList}\small\item\em This defines a local point spheres draw mode for all poly\+Line nodes with constant screen size. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Poly\+Line$>$class A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T$<$ Poly\+Line $>$}

/.../\+Poly\+Line\+Node\+T.hh$>$

Brief Description.

A more elaborate description follows. 

Definition at line 94 of file Poly\+Line\+Node\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00983_a8905c7d9f3dbc11bfe19c5912fb5a748}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!add\+Custom\+Buffer@{add\+Custom\+Buffer}}
\index{add\+Custom\+Buffer@{add\+Custom\+Buffer}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{add\+Custom\+Buffer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ int {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::add\+Custom\+Buffer (
\begin{DoxyParamCaption}
\item[{const {\bf A\+C\+G\+::\+Vertex\+Element} \&}]{\+\_\+desc, }
\item[{const void $\ast$}]{\+\_\+buffer}
\end{DoxyParamCaption}
)}}\label{a00983_a8905c7d9f3dbc11bfe19c5912fb5a748}
Add custom data to the vertex buffer for rendering with shaders

The element description declares the type of data and the name in the shader. The provided buffer has to store data for each vertex\+: num elements in buffer = polyline().n\+\_\+vertices() If the stride offset in {\itshape desc.\+pointer} is 0, it is assumed that the buffer stores the data without memory alignment. This function does not create a local copy of the buffer, so the provided memory address has to be valid whenever an internal vbo update is triggered. Custom attributes are then available in the vertex shader by accessing the input with name tangent\+Element.\+shader\+Input\+Name\+\_\+.

Example\+:

in plugin\+: have allocated buffer\+: tangent\+Data\+\_\+ of type Vec3f$\ast$ (member of a class)

\hyperlink{a01420}{A\+C\+G\+::\+Vertex\+Element} tangent\+Desc; tangent\+Desc.\+type\+\_\+ = G\+L\+\_\+\+F\+L\+O\+A\+T; tangent\+Desc.\+num\+Elements\+\_\+ = 3; tangent\+Desc.\+usage\+\_\+ = A\+C\+G\+::\+V\+E\+R\+T\+E\+X\+\_\+\+U\+S\+A\+G\+E\+\_\+\+U\+S\+E\+R\+\_\+\+D\+E\+F\+I\+N\+E\+D; tangent\+Desc.\+shader\+Input\+Name\+\_\+ = \char`\"{}my\+Tangent\char`\"{}; tangent\+Desc.\+pointer\+\_\+ = 0;

polyline\+Node-\/$>$add\+Custom\+Buffer(tangent\+Desc, tangent\+Data\+\_\+);

in vertex shader\+: in vec3 my\+Tangent; ..


\begin{DoxyParams}{Parameters}
{\em \+\_\+desc} & type description of an element in the buffer \\
\hline
{\em \+\_\+buffer} & pointer to data buffer, has to be a valid address for the remaining time \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
id of custom buffer 
\end{DoxyReturn}


Definition at line 1098 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_abe7e7dcf179e202f9fc4b270d1be76ae}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!get\+Render\+Objects@{get\+Render\+Objects}}
\index{get\+Render\+Objects@{get\+Render\+Objects}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{get\+Render\+Objects}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::get\+Render\+Objects (
\begin{DoxyParamCaption}
\item[{{\bf A\+C\+G\+::\+I\+Renderer} $\ast$}]{\+\_\+renderer, }
\item[{{\bf A\+C\+G\+::\+G\+L\+State} \&}]{\+\_\+state, }
\item[{const {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Draw\+Modes\+::\+Draw\+Mode} \&}]{\+\_\+draw\+Mode, }
\item[{const {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Material} $\ast$}]{\+\_\+mat}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00983_abe7e7dcf179e202f9fc4b270d1be76ae}


Add the objects to the given renderer. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+renderer} & The renderer which will be used. Add your geometry into this class \\
\hline
{\em \+\_\+state} & The current G\+L State when this object is called \\
\hline
{\em \+\_\+draw\+Mode} & The active draw mode \\
\hline
{\em \+\_\+mat} & Current material \\
\hline
\end{DoxyParams}


Reimplemented from \hyperlink{a00328_acb425c90def34591f6ee41e440dc7f69}{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Scene\+Graph\+::\+Base\+Node}.



Definition at line 860 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_a6daa0ff29d92991f7f83c257095e1ebe}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!set\+Custom\+Buffer@{set\+Custom\+Buffer}}
\index{set\+Custom\+Buffer@{set\+Custom\+Buffer}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{set\+Custom\+Buffer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::set\+Custom\+Buffer (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{const void $\ast$}]{\+\_\+buffer}
\end{DoxyParamCaption}
)}}\label{a00983_a6daa0ff29d92991f7f83c257095e1ebe}
Update pointer to custom data


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & id of the custom buffer; return value of add\+Custom\+Buffer \\
\hline
{\em \+\_\+buffer} & pointer to data buffer, has to be a valid address for the remaining time \\
\hline
\end{DoxyParams}


Definition at line 1118 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_a6cbb0c4e244bd2922faff175cd36f509}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!setup\+Vertex\+Declaration@{setup\+Vertex\+Declaration}}
\index{setup\+Vertex\+Declaration@{setup\+Vertex\+Declaration}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{setup\+Vertex\+Declaration}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::setup\+Vertex\+Declaration (
\begin{DoxyParamCaption}
\item[{{\bf Vertex\+Declaration} $\ast$}]{\+\_\+dst, }
\item[{int}]{\+\_\+color\+Source}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [private]}}}\label{a00983_a6cbb0c4e244bd2922faff175cd36f509}


Create the vertex declaration. 

The vertex data in the vbo contains both vertex and edge colors, so the vertex declaration decides which bytes to use for colored rendering (if any). 
\begin{DoxyParams}{Parameters}
{\em \+\_\+dst} & Vertex declaration to initialize \\
\hline
{\em \+\_\+color\+Source} & 0 -\/ no colors, 1 -\/ vertex colors, 2 -\/ edge colors \\
\hline
\end{DoxyParams}


Definition at line 631 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_a43507a0a1c86e40976e902503abd3d22}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!update\+V\+B\+O@{update\+V\+B\+O}}
\index{update\+V\+B\+O@{update\+V\+B\+O}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{update\+V\+B\+O}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::update\+V\+B\+O (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a00983_a43507a0a1c86e40976e902503abd3d22}


Trigger an update of the vbo. 

If the poly\+Line is changed, you have to call this function to update the buffers. 

Definition at line 684 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_aaebc9ed725e92a83ba21ac0f905b5ede}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!write\+Vertex@{write\+Vertex}}
\index{write\+Vertex@{write\+Vertex}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{write\+Vertex}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::write\+Vertex (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+vertex, }
\item[{void $\ast$}]{\+\_\+dst}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a00983_aaebc9ed725e92a83ba21ac0f905b5ede}


Write vertex data for rendering to a buffer. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+vertex} & index of polyline vertex \\
\hline
{\em \+\_\+dst} & address of vertex in buffer \\
\hline
\end{DoxyParams}


Definition at line 810 of file Poly\+Line\+Node\+T.\+cc.

\hypertarget{a00983_a7618f1ba22b37c6660919c9410a12e08}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}!write\+Vertex\+Color@{write\+Vertex\+Color}}
\index{write\+Vertex\+Color@{write\+Vertex\+Color}!A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T@{A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}}
\subsubsection[{write\+Vertex\+Color}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Poly\+Line $>$ void {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Poly\+Line\+Node\+T}$<$ {\bf Poly\+Line} $>$\+::write\+Vertex\+Color (
\begin{DoxyParamCaption}
\item[{unsigned int}]{\+\_\+vertex, }
\item[{bool}]{\+\_\+color\+Source\+Vertex, }
\item[{void $\ast$}]{\+\_\+dst}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [private]}}}\label{a00983_a7618f1ba22b37c6660919c9410a12e08}


Write color for rendering to a buffer. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+vertex} & index of polyline vertex \\
\hline
{\em \+\_\+color\+Source\+Vertex} & vertex or edge color? \\
\hline
{\em \+\_\+dst} & address of vertex in buffer \\
\hline
\end{DoxyParams}


Definition at line 776 of file Poly\+Line\+Node\+T.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Object\+Types/\+Poly\+Line/Poly\+Line\+Node\+T.\+hh\item 
Object\+Types/\+Poly\+Line/Poly\+Line\+Node\+T.\+cc\end{DoxyCompactItemize}
