\hypertarget{a00792}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Material\+Node Class Reference}
\label{a00792}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}
}


{\ttfamily \#include $<$A\+C\+G/\+Scenegraph/\+Material\+Node.\+hh$>$}

Inheritance diagram for A\+C\+G\+:\+:Scene\+Graph\+:\+:Material\+Node\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00792}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bf}{Apply\+Properties} \{ \\*
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa739fc70694cf2d41e5650d456aa1fb2a}{None} =0, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6abb4c786d4327cbccf24dff6e21ef4f}{All} =0xffff, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa06a664ca9214ef4b1006d21a625ba5e4}{Base\+Color} =1, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfab3847a06eac1e737cd20ac8a5dfebc48}{Material} =2, 
\\*
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa8270cda942ad0c023a0ffe308c26df1c}{Point\+Size} =4, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfacf45eb1dfb693c7b5dafdd54370a066a}{Line\+Width} =8, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa2bcd542c5d1a92bbb66b596964063f6c}{Round\+Points} =16, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6065dee84adb87aeedb8c04f34dd5ae7}{Line\+Smooth} =32, 
\\*
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfaf0658e7efda8e67f22f891730f9466df}{Alpha\+Test} =64, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa1c0767b0f37b40124b468d07aed9516e}{Blending} =128, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa20d6d294434f84d6ef2dac661da81a30}{Back\+Face\+Culling} =256, 
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa76f159ebeb2fc8540a9f880ad931e864}{Color\+Material} =512, 
\\*
\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfac8f6265ae9eaeb72d6bff57723ed8cf1}{Multi\+Sampling} =1024
 \}
\begin{DoxyCompactList}\small\item\em Apply which properties? Others will be ignored. Values may be O\+R'ed. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_a2d418139423fb63b1527c43f77e1c2b1}{\hyperlink{a00792_a2d418139423fb63b1527c43f77e1c2b1}{Material\+Node} (\hyperlink{a00327}{Base\+Node} $\ast$\+\_\+parent=0, const std\+::string \&\+\_\+name=\char`\"{}$<$Material\+Node$>$\char`\"{}, unsigned int \+\_\+apply\+Properties=(\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6abb4c786d4327cbccf24dff6e21ef4f}{All} \&$\sim$\hyperlink{a00792_a88d2e5cab72aff681726ee9957e5b5bfa20d6d294434f84d6ef2dac661da81a30}{Back\+Face\+Culling}))}\label{a00792_a2d418139423fb63b1527c43f77e1c2b1}

\begin{DoxyCompactList}\small\item\em Default constructor. Applies all properties. \end{DoxyCompactList}\item 
\hypertarget{a00792_afc608bc288de9ad6451f48f58b830151}{virtual \hyperlink{a00792_afc608bc288de9ad6451f48f58b830151}{$\sim$\+Material\+Node} ()}\label{a00792_afc608bc288de9ad6451f48f58b830151}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00792_a6b811bb499b6da4bc08dfb9b5f5eabec}{void \hyperlink{a00792_a6b811bb499b6da4bc08dfb9b5f5eabec}{read} (std\+::istream \&\+\_\+is)}\label{a00792_a6b811bb499b6da4bc08dfb9b5f5eabec}

\begin{DoxyCompactList}\small\item\em read Material\+File \end{DoxyCompactList}\item 
\hypertarget{a00792_a9ba8efe7e9ab906583689c032da2a327}{float \hyperlink{a00792_a9ba8efe7e9ab906583689c032da2a327}{alpha\+\_\+value} ()}\label{a00792_a9ba8efe7e9ab906583689c032da2a327}

\begin{DoxyCompactList}\small\item\em get current alpha value for alpha\+\_\+test \end{DoxyCompactList}\item 
\hypertarget{a00792_a2b8521431505e2a5bd85f7d6fc06e785}{bool {\bfseries blending} ()}\label{a00792_a2b8521431505e2a5bd85f7d6fc06e785}

\item 
\hypertarget{a00792_a03340bdbfd9ecb3ef32f928409548ad7}{G\+Lenum {\bfseries blending\+\_\+param1} ()}\label{a00792_a03340bdbfd9ecb3ef32f928409548ad7}

\item 
\hypertarget{a00792_a1a36d8e18d8643c7dc3bc9d5223da475}{G\+Lenum {\bfseries blending\+\_\+param2} ()}\label{a00792_a1a36d8e18d8643c7dc3bc9d5223da475}

\item 
\hypertarget{a00792_ad3133d1c856888593eeb246645490c2c}{void \hyperlink{a00792_ad3133d1c856888593eeb246645490c2c}{enable\+\_\+blending} (G\+Lenum \+\_\+p1=G\+L\+\_\+\+S\+R\+C\+\_\+\+A\+L\+P\+H\+A, G\+Lenum \+\_\+p2=G\+L\+\_\+\+O\+N\+E\+\_\+\+M\+I\+N\+U\+S\+\_\+\+S\+R\+C\+\_\+\+A\+L\+P\+H\+A)}\label{a00792_ad3133d1c856888593eeb246645490c2c}

\begin{DoxyCompactList}\small\item\em enable blending with Parameters (\+\_\+p1, \+\_\+p2) \end{DoxyCompactList}\item 
\hypertarget{a00792_a086ee84eb2b89c29e70a9f4b9b00fa03}{void \hyperlink{a00792_a086ee84eb2b89c29e70a9f4b9b00fa03}{disable\+\_\+blending} ()}\label{a00792_a086ee84eb2b89c29e70a9f4b9b00fa03}

\begin{DoxyCompactList}\small\item\em disable blending \end{DoxyCompactList}\item 
\hypertarget{a00792_a7e0e6da3a1c803bc19e8a52fe6150f88}{bool {\bfseries backface\+\_\+culling} ()}\label{a00792_a7e0e6da3a1c803bc19e8a52fe6150f88}

\item 
\hypertarget{a00792_a354f096cba4579985f44903b6a5f3ed2}{void \hyperlink{a00792_a354f096cba4579985f44903b6a5f3ed2}{enable\+\_\+backface\+\_\+culling} ()}\label{a00792_a354f096cba4579985f44903b6a5f3ed2}

\begin{DoxyCompactList}\small\item\em enable backface culling (not active by default, see apply\+Properties) \end{DoxyCompactList}\item 
\hypertarget{a00792_a7f4ea271e33eb4e7f1bd05d43893d455}{void \hyperlink{a00792_a7f4ea271e33eb4e7f1bd05d43893d455}{disable\+\_\+backface\+\_\+culling} ()}\label{a00792_a7f4ea271e33eb4e7f1bd05d43893d455}

\begin{DoxyCompactList}\small\item\em disable backface culling (not active by default, see apply\+Properties) \end{DoxyCompactList}\item 
\hypertarget{a00792_aeb2501027187c4d6ee83eb23dec56b15}{unsigned int \hyperlink{a00792_aeb2501027187c4d6ee83eb23dec56b15}{apply\+Properties} () const }\label{a00792_aeb2501027187c4d6ee83eb23dec56b15}

\begin{DoxyCompactList}\small\item\em get properties that will be applied (O\+R'ed Apply\+Properties) \end{DoxyCompactList}\item 
\hypertarget{a00792_a708bcbcf4a3a5670303d9662ed6fbca9}{void \hyperlink{a00792_a708bcbcf4a3a5670303d9662ed6fbca9}{apply\+Properties} (unsigned int \+\_\+apply\+Properties)}\label{a00792_a708bcbcf4a3a5670303d9662ed6fbca9}

\begin{DoxyCompactList}\small\item\em set properties that will be applied (O\+R'ed Apply\+Properties) \end{DoxyCompactList}\item 
\hypertarget{a00792_a133c9d6cc46a6db50e78d2b0fc7d2a56}{\hyperlink{a00790}{A\+C\+G\+::\+Scene\+Graph\+::\+Material} \& \hyperlink{a00792_a133c9d6cc46a6db50e78d2b0fc7d2a56}{material} ()}\label{a00792_a133c9d6cc46a6db50e78d2b0fc7d2a56}

\begin{DoxyCompactList}\small\item\em Get material object reference. \end{DoxyCompactList}\item 
\hypertarget{a00792_a545aebbc3dbdc895f06f2a1aed596dff}{void \hyperlink{a00792_a545aebbc3dbdc895f06f2a1aed596dff}{set\+\_\+material} (const \hyperlink{a00790}{A\+C\+G\+::\+Scene\+Graph\+::\+Material} \&\+\_\+m)}\label{a00792_a545aebbc3dbdc895f06f2a1aed596dff}

\begin{DoxyCompactList}\small\item\em Set material object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Scenegraph functions}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_ab9396c3417d2c906f934216de234cef7}{\hyperlink{a00792_ab9396c3417d2c906f934216de234cef7}{A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+M\+E} (\hyperlink{a00792}{Material\+Node})}\label{a00792_ab9396c3417d2c906f934216de234cef7}

\begin{DoxyCompactList}\small\item\em set current G\+L-\/color and G\+L-\/material \end{DoxyCompactList}\item 
\hypertarget{a00792_a920ca6f2024b8d2a6c34ebb5b1c302ec}{void \hyperlink{a00792_a920ca6f2024b8d2a6c34ebb5b1c302ec}{enter} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+drawmode)}\label{a00792_a920ca6f2024b8d2a6c34ebb5b1c302ec}

\begin{DoxyCompactList}\small\item\em set current G\+L-\/color and G\+L-\/material \end{DoxyCompactList}\item 
\hypertarget{a00792_a5e3666e6f9b8c51e958e3fe7d07740f7}{void \hyperlink{a00792_a5e3666e6f9b8c51e958e3fe7d07740f7}{leave} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+drawmode)}\label{a00792_a5e3666e6f9b8c51e958e3fe7d07740f7}

\begin{DoxyCompactList}\small\item\em restores original G\+L-\/color and G\+L-\/material \end{DoxyCompactList}\item 
\hypertarget{a00792_a2955de10fc7dd49a5b32bcdc1dc7dcbc}{void \hyperlink{a00792_a2955de10fc7dd49a5b32bcdc1dc7dcbc}{enter\+Pick} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, \hyperlink{a03343_af5fad41dadeca314c2077f897377dbd0}{Pick\+Target} \+\_\+target, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode)}\label{a00792_a2955de10fc7dd49a5b32bcdc1dc7dcbc}

\begin{DoxyCompactList}\small\item\em Do nothing in picking. \end{DoxyCompactList}\item 
\hypertarget{a00792_aec88c12aeefa7194bd3d58d464996265}{void \hyperlink{a00792_aec88c12aeefa7194bd3d58d464996265}{leave\+Pick} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, \hyperlink{a03343_af5fad41dadeca314c2077f897377dbd0}{Pick\+Target} \+\_\+target, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode)}\label{a00792_aec88c12aeefa7194bd3d58d464996265}

\begin{DoxyCompactList}\small\item\em Do nothing in picking. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Color and material settings ( Applied to all objects below this node )}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_a41db9bc6717b2cbac90c93b0af404ced}{void \hyperlink{a00792_a41db9bc6717b2cbac90c93b0af404ced}{set\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+c)}\label{a00792_a41db9bc6717b2cbac90c93b0af404ced}

\begin{DoxyCompactList}\small\item\em set color (base, ambient, diffuse, specular) based on \+\_\+c \end{DoxyCompactList}\item 
\hypertarget{a00792_a7df0854e9e0b4a4453f8984c2a8b4a8a}{void \hyperlink{a00792_a7df0854e9e0b4a4453f8984c2a8b4a8a}{set\+\_\+random\+\_\+color} ()}\label{a00792_a7df0854e9e0b4a4453f8984c2a8b4a8a}

\begin{DoxyCompactList}\small\item\em Generates a random color and sets it. \end{DoxyCompactList}\item 
\hypertarget{a00792_a92547901186f89ea75a36ebb8673ed6d}{void \hyperlink{a00792_a92547901186f89ea75a36ebb8673ed6d}{set\+\_\+base\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+c)}\label{a00792_a92547901186f89ea75a36ebb8673ed6d}

\begin{DoxyCompactList}\small\item\em set the base color \end{DoxyCompactList}\item 
\hypertarget{a00792_af364b0776d64e741bbcfb66c72802e79}{const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \& \hyperlink{a00792_af364b0776d64e741bbcfb66c72802e79}{base\+\_\+color} () const }\label{a00792_af364b0776d64e741bbcfb66c72802e79}

\begin{DoxyCompactList}\small\item\em get the base color \end{DoxyCompactList}\item 
\hypertarget{a00792_ab8e63679ec094a5ef098c1c4a7baee16}{void \hyperlink{a00792_ab8e63679ec094a5ef098c1c4a7baee16}{set\+\_\+ambient\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+a)}\label{a00792_ab8e63679ec094a5ef098c1c4a7baee16}

\begin{DoxyCompactList}\small\item\em set the ambient color. \end{DoxyCompactList}\item 
\hypertarget{a00792_a45f85c0bb3151a0f1426d90a52a1b2e9}{const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \& \hyperlink{a00792_a45f85c0bb3151a0f1426d90a52a1b2e9}{ambient\+\_\+color} () const }\label{a00792_a45f85c0bb3151a0f1426d90a52a1b2e9}

\begin{DoxyCompactList}\small\item\em get the ambient color. \end{DoxyCompactList}\item 
\hypertarget{a00792_a20ad4c6937739bd5f59dec7ccb970c15}{void \hyperlink{a00792_a20ad4c6937739bd5f59dec7ccb970c15}{set\+\_\+diffuse\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+d)}\label{a00792_a20ad4c6937739bd5f59dec7ccb970c15}

\begin{DoxyCompactList}\small\item\em set the diffuse color. \end{DoxyCompactList}\item 
\hypertarget{a00792_aecf2107e6e434086e6dacc0bb852dbc0}{const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \& \hyperlink{a00792_aecf2107e6e434086e6dacc0bb852dbc0}{diffuse\+\_\+color} () const }\label{a00792_aecf2107e6e434086e6dacc0bb852dbc0}

\begin{DoxyCompactList}\small\item\em get the diffuse color. \end{DoxyCompactList}\item 
\hypertarget{a00792_a21d2a212259b2f60fc2ebfb782e529a4}{void \hyperlink{a00792_a21d2a212259b2f60fc2ebfb782e529a4}{set\+\_\+specular\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+s)}\label{a00792_a21d2a212259b2f60fc2ebfb782e529a4}

\begin{DoxyCompactList}\small\item\em set the specular color \end{DoxyCompactList}\item 
\hypertarget{a00792_a241035da108a73b94e47e1324cb6cec5}{const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \& \hyperlink{a00792_a241035da108a73b94e47e1324cb6cec5}{specular\+\_\+color} () const }\label{a00792_a241035da108a73b94e47e1324cb6cec5}

\begin{DoxyCompactList}\small\item\em get the specular color \end{DoxyCompactList}\item 
\hypertarget{a00792_a0cf299117ced21da13338b467f6208ef}{void \hyperlink{a00792_a0cf299117ced21da13338b467f6208ef}{set\+\_\+overlay\+\_\+color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+s)}\label{a00792_a0cf299117ced21da13338b467f6208ef}

\begin{DoxyCompactList}\small\item\em set the overlay color \end{DoxyCompactList}\item 
\hypertarget{a00792_a07d3c3f53524f5bde49f6a3968316e3b}{const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \& \hyperlink{a00792_a07d3c3f53524f5bde49f6a3968316e3b}{overlay\+\_\+color} () const }\label{a00792_a07d3c3f53524f5bde49f6a3968316e3b}

\begin{DoxyCompactList}\small\item\em get the overlay color \end{DoxyCompactList}\item 
\hypertarget{a00792_aeb42723044056195f92d60359f22c476}{void \hyperlink{a00792_aeb42723044056195f92d60359f22c476}{color\+Material} (const bool \+\_\+cm)}\label{a00792_aeb42723044056195f92d60359f22c476}

\begin{DoxyCompactList}\small\item\em Set color\+Material. \end{DoxyCompactList}\item 
\hypertarget{a00792_a8d9f9309d246571afffaac500a096006}{void \hyperlink{a00792_a8d9f9309d246571afffaac500a096006}{enable\+\_\+color\+\_\+material} ()}\label{a00792_a8d9f9309d246571afffaac500a096006}

\begin{DoxyCompactList}\small\item\em Enable Color \hyperlink{a00789}{Material}. \end{DoxyCompactList}\item 
\hypertarget{a00792_aa1d0a6b30362913ad28b35ec6e1787e0}{void \hyperlink{a00792_aa1d0a6b30362913ad28b35ec6e1787e0}{disable\+\_\+color\+\_\+material} ()}\label{a00792_aa1d0a6b30362913ad28b35ec6e1787e0}

\begin{DoxyCompactList}\small\item\em Disable Color \hyperlink{a00789}{Material}. \end{DoxyCompactList}\item 
\hypertarget{a00792_a41899a626915ddbc366a740abd5e9e0d}{bool \hyperlink{a00792_a41899a626915ddbc366a740abd5e9e0d}{color\+Material} ()}\label{a00792_a41899a626915ddbc366a740abd5e9e0d}

\begin{DoxyCompactList}\small\item\em get color\+Material state \end{DoxyCompactList}\item 
\hypertarget{a00792_af10f217b3a822d14ebeba5e6c2ba8a77}{void \hyperlink{a00792_af10f217b3a822d14ebeba5e6c2ba8a77}{set\+\_\+shininess} (float \+\_\+s)}\label{a00792_af10f217b3a822d14ebeba5e6c2ba8a77}

\begin{DoxyCompactList}\small\item\em set shininess \end{DoxyCompactList}\item 
\hypertarget{a00792_ad744259f320089460d456c11d94e0216}{float \hyperlink{a00792_ad744259f320089460d456c11d94e0216}{shininess} () const }\label{a00792_ad744259f320089460d456c11d94e0216}

\begin{DoxyCompactList}\small\item\em get shininess \end{DoxyCompactList}\item 
\hypertarget{a00792_a98a743b5c73c86b3b0d180687a0ac061}{void \hyperlink{a00792_a98a743b5c73c86b3b0d180687a0ac061}{set\+\_\+reflectance} (double \+\_\+m)}\label{a00792_a98a743b5c73c86b3b0d180687a0ac061}

\begin{DoxyCompactList}\small\item\em set reflectance \end{DoxyCompactList}\item 
\hypertarget{a00792_a1b2fac10a5ca877860924d174ba17c18}{double \hyperlink{a00792_a1b2fac10a5ca877860924d174ba17c18}{reflectance} () const }\label{a00792_a1b2fac10a5ca877860924d174ba17c18}

\begin{DoxyCompactList}\small\item\em get reflectance \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Point/\+Line controls}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_af469b7eb11bc2e7a79a7b7e7f7014924}{void \hyperlink{a00792_af469b7eb11bc2e7a79a7b7e7f7014924}{set\+\_\+point\+\_\+size} (float \+\_\+sz)}\label{a00792_af469b7eb11bc2e7a79a7b7e7f7014924}

\begin{DoxyCompactList}\small\item\em set point size (default\+: 1.\+0) \end{DoxyCompactList}\item 
\hypertarget{a00792_a7364dedfe5ba3652694d6d5504b11419}{float \hyperlink{a00792_a7364dedfe5ba3652694d6d5504b11419}{point\+\_\+size} () const }\label{a00792_a7364dedfe5ba3652694d6d5504b11419}

\begin{DoxyCompactList}\small\item\em get point size \end{DoxyCompactList}\item 
\hypertarget{a00792_aa938665fd543ffd0082b93a45d359e9f}{void \hyperlink{a00792_aa938665fd543ffd0082b93a45d359e9f}{set\+\_\+line\+\_\+width} (float \+\_\+sz)}\label{a00792_aa938665fd543ffd0082b93a45d359e9f}

\begin{DoxyCompactList}\small\item\em set line width (default\+: 1.\+0) \end{DoxyCompactList}\item 
\hypertarget{a00792_a775e99cc54d6e920802b238e2b4ff449}{float \hyperlink{a00792_a775e99cc54d6e920802b238e2b4ff449}{line\+\_\+width} () const }\label{a00792_a775e99cc54d6e920802b238e2b4ff449}

\begin{DoxyCompactList}\small\item\em get line width \end{DoxyCompactList}\item 
\hypertarget{a00792_aa4bc5de5e31c366670e69da1c9bc3b93}{void \hyperlink{a00792_aa4bc5de5e31c366670e69da1c9bc3b93}{set\+\_\+round\+\_\+points} (bool \+\_\+b)}\label{a00792_aa4bc5de5e31c366670e69da1c9bc3b93}

\begin{DoxyCompactList}\small\item\em set round points enabled \end{DoxyCompactList}\item 
\hypertarget{a00792_a863bac38c3097f965c100bcbbd3c6c40}{bool \hyperlink{a00792_a863bac38c3097f965c100bcbbd3c6c40}{round\+\_\+points} () const }\label{a00792_a863bac38c3097f965c100bcbbd3c6c40}

\begin{DoxyCompactList}\small\item\em get round points enabled \end{DoxyCompactList}\item 
\hypertarget{a00792_a863688960d0f817d333fd447e854d4ca}{void \hyperlink{a00792_a863688960d0f817d333fd447e854d4ca}{set\+\_\+line\+\_\+smooth} (bool \+\_\+b)}\label{a00792_a863688960d0f817d333fd447e854d4ca}

\begin{DoxyCompactList}\small\item\em set\+: smooth lines enabled \end{DoxyCompactList}\item 
\hypertarget{a00792_a832d47cbebb81cdc969e5a654f943500}{bool \hyperlink{a00792_a832d47cbebb81cdc969e5a654f943500}{line\+\_\+smooth} () const }\label{a00792_a832d47cbebb81cdc969e5a654f943500}

\begin{DoxyCompactList}\small\item\em get\+: rsmooth lines enabled \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Tests}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_a7d4cc03092679a9dbeff1be63e4fbbc1}{void \hyperlink{a00792_a7d4cc03092679a9dbeff1be63e4fbbc1}{enable\+\_\+alpha\+\_\+test} (float \+\_\+clip)}\label{a00792_a7d4cc03092679a9dbeff1be63e4fbbc1}

\begin{DoxyCompactList}\small\item\em enable alpha test (draw pixels if alpha $>$= \+\_\+clip) \end{DoxyCompactList}\item 
\hypertarget{a00792_ac3a7fcce2cf3aa92b5dffbd53c80f373}{void \hyperlink{a00792_ac3a7fcce2cf3aa92b5dffbd53c80f373}{disable\+\_\+alpha\+\_\+test} ()}\label{a00792_ac3a7fcce2cf3aa92b5dffbd53c80f373}

\begin{DoxyCompactList}\small\item\em disable alpha test \end{DoxyCompactList}\item 
\hypertarget{a00792_ab9e9272e3512f72885433dabde7010e1}{bool \hyperlink{a00792_ab9e9272e3512f72885433dabde7010e1}{alpha\+\_\+test} ()}\label{a00792_ab9e9272e3512f72885433dabde7010e1}

\begin{DoxyCompactList}\small\item\em Return state of Alpha test. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Other Rendering options}\par
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_a19f30bd8f1c4a6ce82b1000de71465de}{void \hyperlink{a00792_a19f30bd8f1c4a6ce82b1000de71465de}{enable\+\_\+multisampling} ()}\label{a00792_a19f30bd8f1c4a6ce82b1000de71465de}

\begin{DoxyCompactList}\small\item\em Enable Multisampling. \end{DoxyCompactList}\item 
\hypertarget{a00792_ad206bc934d3cbbe88b64bddfb42fd338}{void \hyperlink{a00792_ad206bc934d3cbbe88b64bddfb42fd338}{disable\+\_\+multisampling} ()}\label{a00792_ad206bc934d3cbbe88b64bddfb42fd338}

\begin{DoxyCompactList}\small\item\em enable alpha test (draw pixels if alpha $>$= \+\_\+clip) \end{DoxyCompactList}\item 
\hypertarget{a00792_a08c3a30bf352dad6bcbe8ddb93c15cfc}{bool \hyperlink{a00792_a08c3a30bf352dad6bcbe8ddb93c15cfc}{multi\+Sampling} ()}\label{a00792_a08c3a30bf352dad6bcbe8ddb93c15cfc}

\begin{DoxyCompactList}\small\item\em Get state of multisampling. \end{DoxyCompactList}\item 
\hypertarget{a00792_a003811df8c9a32edd699d2bf14215d89}{void \hyperlink{a00792_a003811df8c9a32edd699d2bf14215d89}{set\+\_\+multisampling} (bool \+\_\+state)}\label{a00792_a003811df8c9a32edd699d2bf14215d89}

\begin{DoxyCompactList}\small\item\em Set state of multisampling. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00792_a53e71d99a5f1cc38f6b722cd7510624b}{int \hyperlink{a00792_a53e71d99a5f1cc38f6b722cd7510624b}{apply\+Properties\+\_\+}}\label{a00792_a53e71d99a5f1cc38f6b722cd7510624b}

\begin{DoxyCompactList}\small\item\em O\+R'ed Apply\+Properties. \end{DoxyCompactList}\item 
\hypertarget{a00792_a7ef51f1ad39d5f1673757d8eea6c612a}{\hyperlink{a00790}{A\+C\+G\+::\+Scene\+Graph\+::\+Material} \hyperlink{a00792_a7ef51f1ad39d5f1673757d8eea6c612a}{material\+\_\+}}\label{a00792_a7ef51f1ad39d5f1673757d8eea6c612a}

\begin{DoxyCompactList}\small\item\em Local material class that actually stores the properties. \end{DoxyCompactList}\item 
\hypertarget{a00792_a6a9f0a0902ede9be990b2e89d54ee192}{\hyperlink{a00790}{A\+C\+G\+::\+Scene\+Graph\+::\+Material} \hyperlink{a00792_a6a9f0a0902ede9be990b2e89d54ee192}{material\+Backup\+\_\+}}\label{a00792_a6a9f0a0902ede9be990b2e89d54ee192}

\begin{DoxyCompactList}\small\item\em \hyperlink{a00789}{Material} Backup. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Set material and some other stuff like alphatest and blending for this node and all its children. All changes will be done in the \hyperlink{a00792_a920ca6f2024b8d2a6c34ebb5b1c302ec}{enter()} method undone in the \hyperlink{a00792_a5e3666e6f9b8c51e958e3fe7d07740f7}{leave()} method. 

Definition at line 321 of file Material\+Node.\+hh.



\subsection{Member Enumeration Documentation}
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bf}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Apply\+Properties@{Apply\+Properties}}
\index{Apply\+Properties@{Apply\+Properties}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}
\subsubsection[{Apply\+Properties}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node\+::\+Apply\+Properties}}}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bf}


Apply which properties? Others will be ignored. Values may be O\+R'ed. 

\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{None@{None}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!None@{None}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa739fc70694cf2d41e5650d456aa1fb2a}{None}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa739fc70694cf2d41e5650d456aa1fb2a}
}]apply nothing \index{All@{All}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!All@{All}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6abb4c786d4327cbccf24dff6e21ef4f}{All}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6abb4c786d4327cbccf24dff6e21ef4f}
}]apply all properites \index{Base\+Color@{Base\+Color}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Base\+Color@{Base\+Color}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa06a664ca9214ef4b1006d21a625ba5e4}{Base\+Color}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa06a664ca9214ef4b1006d21a625ba5e4}
}]apply base color \index{Material@{Material}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Material@{Material}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfab3847a06eac1e737cd20ac8a5dfebc48}{Material}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfab3847a06eac1e737cd20ac8a5dfebc48}
}]apply material (ambient, diffuse, specular, shininess) \index{Point\+Size@{Point\+Size}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Point\+Size@{Point\+Size}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa8270cda942ad0c023a0ffe308c26df1c}{Point\+Size}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa8270cda942ad0c023a0ffe308c26df1c}
}]apply point size \index{Line\+Width@{Line\+Width}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Line\+Width@{Line\+Width}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfacf45eb1dfb693c7b5dafdd54370a066a}{Line\+Width}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfacf45eb1dfb693c7b5dafdd54370a066a}
}]apply line width \index{Round\+Points@{Round\+Points}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Round\+Points@{Round\+Points}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa2bcd542c5d1a92bbb66b596964063f6c}{Round\+Points}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa2bcd542c5d1a92bbb66b596964063f6c}
}]draw smooth (round) points using gl\+Point() \index{Line\+Smooth@{Line\+Smooth}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Line\+Smooth@{Line\+Smooth}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6065dee84adb87aeedb8c04f34dd5ae7}{Line\+Smooth}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa6065dee84adb87aeedb8c04f34dd5ae7}
}]draw smooth lines using gl\+Line() \index{Alpha\+Test@{Alpha\+Test}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Alpha\+Test@{Alpha\+Test}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfaf0658e7efda8e67f22f891730f9466df}{Alpha\+Test}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfaf0658e7efda8e67f22f891730f9466df}
}]use alpha test \index{Blending@{Blending}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Blending@{Blending}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa1c0767b0f37b40124b468d07aed9516e}{Blending}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa1c0767b0f37b40124b468d07aed9516e}
}]use blending \index{Back\+Face\+Culling@{Back\+Face\+Culling}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Back\+Face\+Culling@{Back\+Face\+Culling}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa20d6d294434f84d6ef2dac661da81a30}{Back\+Face\+Culling}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa20d6d294434f84d6ef2dac661da81a30}
}]backface culling \index{Color\+Material@{Color\+Material}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Color\+Material@{Color\+Material}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfa76f159ebeb2fc8540a9f880ad931e864}{Color\+Material}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfa76f159ebeb2fc8540a9f880ad931e864}
}]Color \hyperlink{a00789}{Material} ( Only when a drawmode using shading and lighting is enabled ) \index{Multi\+Sampling@{Multi\+Sampling}!A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Material\+Node}!Multi\+Sampling@{Multi\+Sampling}}\item[{\em 
\hypertarget{a00792_a88d2e5cab72aff681726ee9957e5b5bfac8f6265ae9eaeb72d6bff57723ed8cf1}{Multi\+Sampling}\label{a00792_a88d2e5cab72aff681726ee9957e5b5bfac8f6265ae9eaeb72d6bff57723ed8cf1}
}]Multi\+Sampling. \end{description}
\end{Desc}


Definition at line 326 of file Material\+Node.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Scenegraph/Material\+Node.\+hh\end{DoxyCompactItemize}
