\hypertarget{a00769}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Light\+Source Class Reference}
\label{a00769}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
}


Structure to hold options for one \hyperlink{a00769}{Light\+Source}.  




{\ttfamily \#include $<$Object\+Types/\+Light/\+Light\+Node.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00769_a08f7ee3c200b56ae98ffe7c1632b2a6a}{\hyperlink{a00769_a08f7ee3c200b56ae98ffe7c1632b2a6a}{Light\+Source} ()}\label{a00769_a08f7ee3c200b56ae98ffe7c1632b2a6a}

\begin{DoxyCompactList}\small\item\em Default Constructor. \end{DoxyCompactList}\item 
void \hyperlink{a00769_a71710e24ab7ce390a92f0ae34fb6b022}{position} (\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em Set position for \hyperlink{a00769}{Light\+Source}. \end{DoxyCompactList}\item 
\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \hyperlink{a00769_ad86dda9dbc2d162181ed10bb3ba37a90}{position} () const 
\begin{DoxyCompactList}\small\item\em Get the position of the \hyperlink{a00769}{Light\+Source}. \end{DoxyCompactList}\item 
bool \hyperlink{a00769_aa722d29ba1746ead256a8cd6cb3227d9}{directional} () const 
\begin{DoxyCompactList}\small\item\em Check if the light source is a directional light source. \end{DoxyCompactList}\item 
\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \hyperlink{a00769_ad22a40f797c1dbaf75532c1b298bb88b}{direction} () const 
\begin{DoxyCompactList}\small\item\em Get direction of the light source. \end{DoxyCompactList}\item 
void \hyperlink{a00769_a91b57053dae52ec11c9ae7c0fc6aaa21}{direction} (\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em Set the direction of the light source. \end{DoxyCompactList}\item 
\hypertarget{a00769_a361334ffaaf358b861aec5b914a1a005}{void \hyperlink{a00769_a361334ffaaf358b861aec5b914a1a005}{enable} ()}\label{a00769_a361334ffaaf358b861aec5b914a1a005}

\begin{DoxyCompactList}\small\item\em enable \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a33a4491bd0c4067fb83f05665b7b42fe}{void \hyperlink{a00769_a33a4491bd0c4067fb83f05665b7b42fe}{disable} ()}\label{a00769_a33a4491bd0c4067fb83f05665b7b42fe}

\begin{DoxyCompactList}\small\item\em disable \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a95d618dccdfe7199d8eff57fc6991512}{bool \hyperlink{a00769_a95d618dccdfe7199d8eff57fc6991512}{enabled} () const }\label{a00769_a95d618dccdfe7199d8eff57fc6991512}

\begin{DoxyCompactList}\small\item\em Get light source status. \end{DoxyCompactList}\item 
void \hyperlink{a00769_af99a7087c761f248291adde32d7579fc}{spot\+Direction} (\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \+\_\+pos)
\begin{DoxyCompactList}\small\item\em Set spot direction. \end{DoxyCompactList}\item 
\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \hyperlink{a00769_acdc4279233effbd47c8a96c48a210317}{spot\+Direction} () const 
\begin{DoxyCompactList}\small\item\em get spot direction \end{DoxyCompactList}\item 
\hypertarget{a00769_abab6f3163605004c41530d2b2d0abb9e}{void \hyperlink{a00769_abab6f3163605004c41530d2b2d0abb9e}{ambient\+Color} (\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)}\label{a00769_abab6f3163605004c41530d2b2d0abb9e}

\begin{DoxyCompactList}\small\item\em set Ambient color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a7d1413e39ae11fcd1d08bde618e042fd}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \hyperlink{a00769_a7d1413e39ae11fcd1d08bde618e042fd}{ambient\+Color} () const }\label{a00769_a7d1413e39ae11fcd1d08bde618e042fd}

\begin{DoxyCompactList}\small\item\em get Ambient color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a3f4d94489845b60eda33d8ab629b0983}{void \hyperlink{a00769_a3f4d94489845b60eda33d8ab629b0983}{diffuse\+Color} (\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)}\label{a00769_a3f4d94489845b60eda33d8ab629b0983}

\begin{DoxyCompactList}\small\item\em set Diffuse color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a764a4fee5f6b8f50b31c2f7a317f91a2}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \hyperlink{a00769_a764a4fee5f6b8f50b31c2f7a317f91a2}{diffuse\+Color} () const }\label{a00769_a764a4fee5f6b8f50b31c2f7a317f91a2}

\begin{DoxyCompactList}\small\item\em get Diffuse color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_a375223492ea6700fb3c6a26215c1a595}{void \hyperlink{a00769_a375223492ea6700fb3c6a26215c1a595}{specular\+Color} (\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \+\_\+color)}\label{a00769_a375223492ea6700fb3c6a26215c1a595}

\begin{DoxyCompactList}\small\item\em set Specular color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_ad8cddb26e99fd606fd858a829bb4cf6f}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \hyperlink{a00769_ad8cddb26e99fd606fd858a829bb4cf6f}{specular\+Color} () const }\label{a00769_ad8cddb26e99fd606fd858a829bb4cf6f}

\begin{DoxyCompactList}\small\item\em get Specular color for \hyperlink{a00769}{Light\+Source} \end{DoxyCompactList}\item 
\hypertarget{a00769_ab527f91ae54164d97cad7c71548175fc}{void {\bfseries set\+Color} (const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+ambient, const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+diffuse, const \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \&\+\_\+specular)}\label{a00769_ab527f91ae54164d97cad7c71548175fc}

\item 
\hypertarget{a00769_a18d69fb7eb95a4ce0f14febce1e4cd7a}{void \hyperlink{a00769_a18d69fb7eb95a4ce0f14febce1e4cd7a}{fixed\+Position} (bool \+\_\+state)}\label{a00769_a18d69fb7eb95a4ce0f14febce1e4cd7a}

\begin{DoxyCompactList}\small\item\em make \hyperlink{a00769}{Light\+Source} fixed or moveable with Model\+View\+Matrix \end{DoxyCompactList}\item 
\hypertarget{a00769_a37813905742a0e4df298571fb17d1ff3}{bool {\bfseries fixed\+Position} () const }\label{a00769_a37813905742a0e4df298571fb17d1ff3}

\item 
\hypertarget{a00769_aa36833f0565a7161e409f7793769d6f7}{void {\bfseries spot\+Exponent} (float \+\_\+exponent)}\label{a00769_aa36833f0565a7161e409f7793769d6f7}

\item 
\hypertarget{a00769_aaeaae073a7b6d1b560b32de190a6be0a}{float {\bfseries spot\+Exponent} () const }\label{a00769_aaeaae073a7b6d1b560b32de190a6be0a}

\item 
\hypertarget{a00769_a576c8ab38c6ad80519eb414fdad78a44}{void {\bfseries spot\+Cutoff} (float \+\_\+cutoff)}\label{a00769_a576c8ab38c6ad80519eb414fdad78a44}

\item 
\hypertarget{a00769_a2a9430435ca6a0f349c1e2c8f02fcd2c}{float {\bfseries spot\+Cutoff} () const }\label{a00769_a2a9430435ca6a0f349c1e2c8f02fcd2c}

\item 
\hypertarget{a00769_ab45204172b19e2a6d73d505b7c0ff730}{void {\bfseries constant\+Attenuation} (float \+\_\+constant\+Attenuation)}\label{a00769_ab45204172b19e2a6d73d505b7c0ff730}

\item 
\hypertarget{a00769_add9865a8bec9847e6ee75d596c244cdf}{float {\bfseries constant\+Attenuation} () const }\label{a00769_add9865a8bec9847e6ee75d596c244cdf}

\item 
\hypertarget{a00769_a3c7f882df8f341b6ad66d6b3abaa5621}{void {\bfseries linear\+Attenuation} (float \+\_\+linear\+Attenuation)}\label{a00769_a3c7f882df8f341b6ad66d6b3abaa5621}

\item 
\hypertarget{a00769_aecc69b27af423e0a1df26f386e40b9df}{float {\bfseries linear\+Attenuation} () const }\label{a00769_aecc69b27af423e0a1df26f386e40b9df}

\item 
\hypertarget{a00769_a60e42309aa09fe01eda20dac9f707155}{void {\bfseries quadratic\+Attenuation} (float \+\_\+quadratic\+Attenuation)}\label{a00769_a60e42309aa09fe01eda20dac9f707155}

\item 
\hypertarget{a00769_ad3ee47ec57675c658ece35b0c34ce24a}{float {\bfseries quadratic\+Attenuation} () const }\label{a00769_ad3ee47ec57675c658ece35b0c34ce24a}

\item 
\hypertarget{a00769_a537524bb621aa74b64519d3c85517d1b}{void {\bfseries brightness} (const float \+\_\+brightness)}\label{a00769_a537524bb621aa74b64519d3c85517d1b}

\item 
\hypertarget{a00769_a96cf5b65db0f31d344ee3fe4a51c554e}{float {\bfseries brightness} () const }\label{a00769_a96cf5b65db0f31d344ee3fe4a51c554e}

\item 
float \hyperlink{a00769_adc572c9bb0f60c5cdab107fb625a2ba7}{radius} () const 
\begin{DoxyCompactList}\small\item\em Get light source radius. \end{DoxyCompactList}\item 
void \hyperlink{a00769_a4fe2bda1e68cfee57f4336d7b7234970}{radius} (const float \+\_\+radius)
\begin{DoxyCompactList}\small\item\em Set light source radius. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00769_ab3e880b7c7fe9bcd254df5438d03bd66}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries position\+\_\+}}\label{a00769_ab3e880b7c7fe9bcd254df5438d03bd66}

\item 
\hypertarget{a00769_ad6f3201633edc99aae6770a4ed2edc31}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries real\+Position\+\_\+}}\label{a00769_ad6f3201633edc99aae6770a4ed2edc31}

\item 
\hypertarget{a00769_a6bbcc21a315ec6fd392007ff0f628511}{bool {\bfseries enabled\+\_\+}}\label{a00769_a6bbcc21a315ec6fd392007ff0f628511}

\item 
\hypertarget{a00769_ae4e3c51bfce9a71805eabb366e91fd4f}{bool {\bfseries fixed\+Position\+\_\+}}\label{a00769_ae4e3c51bfce9a71805eabb366e91fd4f}

\item 
\hypertarget{a00769_a1bfe7221df164c8564abed216af319ae}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries ambient\+Color\+\_\+}}\label{a00769_a1bfe7221df164c8564abed216af319ae}

\item 
\hypertarget{a00769_ae24dc3314a17999287f086f9e1fceeb4}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries diffuse\+Color\+\_\+}}\label{a00769_ae24dc3314a17999287f086f9e1fceeb4}

\item 
\hypertarget{a00769_a849ecebc41e723530e453a3ea6e5b736}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries specular\+Color\+\_\+}}\label{a00769_a849ecebc41e723530e453a3ea6e5b736}

\item 
\hypertarget{a00769_ae3b2a4d1003e31739e8c61daaa15df91}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries spot\+Direction\+\_\+}}\label{a00769_ae3b2a4d1003e31739e8c61daaa15df91}

\item 
\hypertarget{a00769_a7d00e35c1e26193a8cac2899685e2180}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries real\+Spot\+Direction\+\_\+}}\label{a00769_a7d00e35c1e26193a8cac2899685e2180}

\item 
\hypertarget{a00769_ad278386b9b620dd66add8c01c76f2cb4}{\hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} {\bfseries initial\+Position\+\_\+}}\label{a00769_ad278386b9b620dd66add8c01c76f2cb4}

\item 
\hypertarget{a00769_a5ce07dbc0c2dfe0e081e637e4214cad5}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries initial\+Spot\+Direction\+\_\+}}\label{a00769_a5ce07dbc0c2dfe0e081e637e4214cad5}

\item 
\hypertarget{a00769_abb3ec721161f2a51f0e582f4155cfa85}{bool {\bfseries initial\+Position\+Init\+\_\+}}\label{a00769_abb3ec721161f2a51f0e582f4155cfa85}

\item 
\hypertarget{a00769_afb9191675b86de19b373077de55cf604}{float {\bfseries spot\+Exponent\+\_\+}}\label{a00769_afb9191675b86de19b373077de55cf604}

\item 
\hypertarget{a00769_af2ab45054424dd16db2122129ca70779}{float {\bfseries spot\+Cutoff\+\_\+}}\label{a00769_af2ab45054424dd16db2122129ca70779}

\item 
\hypertarget{a00769_a07201fcb285d5a71df7fd1f19ac8e682}{float {\bfseries constant\+Attenuation\+\_\+}}\label{a00769_a07201fcb285d5a71df7fd1f19ac8e682}

\item 
\hypertarget{a00769_aada9212d3e7a35e3e01950d74d5ddd19}{float {\bfseries linear\+Attenuation\+\_\+}}\label{a00769_aada9212d3e7a35e3e01950d74d5ddd19}

\item 
\hypertarget{a00769_af030f3507817d475faf27c3e75fca461}{float {\bfseries quadratic\+Attenuation\+\_\+}}\label{a00769_af030f3507817d475faf27c3e75fca461}

\item 
\hypertarget{a00769_a90aee6cc3d2ac5d3c9c11a4842868c64}{float {\bfseries brightness\+\_\+}}\label{a00769_a90aee6cc3d2ac5d3c9c11a4842868c64}

\item 
float \hyperlink{a00769_ab42636f7284c142ab553ffe869c1e7ab}{radius\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00769_a8a9748f3880e6d365f787231d2cc3946}{class \hyperlink{a00769_a8a9748f3880e6d365f787231d2cc3946}{Light\+Node}}\label{a00769_a8a9748f3880e6d365f787231d2cc3946}

\begin{DoxyCompactList}\small\item\em Simple Name for \hyperlink{a00964}{Plane\+Node}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Structure to hold options for one \hyperlink{a00769}{Light\+Source}. 

Definition at line 91 of file Light\+Node.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00769_ad22a40f797c1dbaf75532c1b298bb88b}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!direction@{direction}}
\index{direction@{direction}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{direction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vec3d} A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::direction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a00769_ad22a40f797c1dbaf75532c1b298bb88b}


Get direction of the light source. 

Get direction of light. 

Definition at line 129 of file Light\+Node.\+cc.

\hypertarget{a00769_a91b57053dae52ec11c9ae7c0fc6aaa21}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!direction@{direction}}
\index{direction@{direction}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{direction}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::direction (
\begin{DoxyParamCaption}
\item[{{\bf Vec3d}}]{\+\_\+pos}
\end{DoxyParamCaption}
)}}\label{a00769_a91b57053dae52ec11c9ae7c0fc6aaa21}


Set the direction of the light source. 

This function creates a directional light source. The position is not used by Open\+G\+L. Internally the positions homogeneous coordinate is set to 0.\+0. 

Definition at line 123 of file Light\+Node.\+cc.

\hypertarget{a00769_aa722d29ba1746ead256a8cd6cb3227d9}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!directional@{directional}}
\index{directional@{directional}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{directional}]{\setlength{\rightskip}{0pt plus 5cm}bool A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::directional (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a00769_aa722d29ba1746ead256a8cd6cb3227d9}


Check if the light source is a directional light source. 

If this light Source is a directional light source the function will return true. Otherwise false as the light source has a position. 

Definition at line 133 of file Light\+Node.\+cc.

\hypertarget{a00769_a71710e24ab7ce390a92f0ae34fb6b022}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!position@{position}}
\index{position@{position}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{position}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::position (
\begin{DoxyParamCaption}
\item[{{\bf Vec3d}}]{\+\_\+pos}
\end{DoxyParamCaption}
)}}\label{a00769_a71710e24ab7ce390a92f0ae34fb6b022}


Set position for \hyperlink{a00769}{Light\+Source}. 

This function sets the position of a light source. Open\+G\+L handles a position for a light source if the homogeneous coordinate is 1.\+0. If it is 0.\+0 the light source will be directional. So a 1.\+0 is set in this function to get a positioned light source. 

Definition at line 114 of file Light\+Node.\+cc.

\hypertarget{a00769_ad86dda9dbc2d162181ed10bb3ba37a90}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!position@{position}}
\index{position@{position}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{position}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vec3d} A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::position (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a00769_ad86dda9dbc2d162181ed10bb3ba37a90}


Get the position of the \hyperlink{a00769}{Light\+Source}. 

Be careful with this function. Check if the light source is not directional with the \hyperlink{a00769_aa722d29ba1746ead256a8cd6cb3227d9}{directional()} function 

Definition at line 119 of file Light\+Node.\+cc.

\hypertarget{a00769_adc572c9bb0f60c5cdab107fb625a2ba7}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!radius@{radius}}
\index{radius@{radius}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{radius}]{\setlength{\rightskip}{0pt plus 5cm}float A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::radius (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00769_adc572c9bb0f60c5cdab107fb625a2ba7}


Get light source radius. 

The light radius is the size of the lightsource. In Open\+G\+L rendering this value is ignored. You can use it for example in raytracers to implement soft shadows. 

Definition at line 212 of file Light\+Node.\+hh.

\hypertarget{a00769_a4fe2bda1e68cfee57f4336d7b7234970}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!radius@{radius}}
\index{radius@{radius}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{radius}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::radius (
\begin{DoxyParamCaption}
\item[{const float}]{\+\_\+radius}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00769_a4fe2bda1e68cfee57f4336d7b7234970}


Set light source radius. 

The light radius is the size of the lightsource. In Open\+G\+L rendering this value is ignored. You can use it for example in raytracers to implement soft shadows. 

Definition at line 219 of file Light\+Node.\+hh.

\hypertarget{a00769_af99a7087c761f248291adde32d7579fc}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!spot\+Direction@{spot\+Direction}}
\index{spot\+Direction@{spot\+Direction}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{spot\+Direction}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::spot\+Direction (
\begin{DoxyParamCaption}
\item[{{\bf Vec3d}}]{\+\_\+pos}
\end{DoxyParamCaption}
)}}\label{a00769_af99a7087c761f248291adde32d7579fc}


Set spot direction. 

\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{a03409__todo000059}{Todo}]Improve documentation \end{DoxyRefDesc}


Definition at line 147 of file Light\+Node.\+cc.

\hypertarget{a00769_acdc4279233effbd47c8a96c48a210317}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!spot\+Direction@{spot\+Direction}}
\index{spot\+Direction@{spot\+Direction}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{spot\+Direction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vec3d} A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::spot\+Direction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a00769_acdc4279233effbd47c8a96c48a210317}


get spot direction 

\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{a03409__todo000060}{Todo}]Improve documentation \end{DoxyRefDesc}


Definition at line 150 of file Light\+Node.\+cc.



\subsection{Member Data Documentation}
\hypertarget{a00769_ab42636f7284c142ab553ffe869c1e7ab}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}!radius\+\_\+@{radius\+\_\+}}
\index{radius\+\_\+@{radius\+\_\+}!A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source@{A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source}}
\subsubsection[{radius\+\_\+}]{\setlength{\rightskip}{0pt plus 5cm}float A\+C\+G\+::\+Scene\+Graph\+::\+Light\+Source\+::radius\+\_\+\hspace{0.3cm}{\ttfamily [protected]}}}\label{a00769_ab42636f7284c142ab553ffe869c1e7ab}
When using ray tracing, light sources can have extent. We simplify to spherical light sources with radius radius\+\_\+. 

Definition at line 251 of file Light\+Node.\+hh.



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