\hypertarget{a07968}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:Set\+Draw\+Modes\+Action Class Reference}
\label{a07968}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action@{A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/\+Scene\+Graph.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a07968_a855dedc5e53e58df0417591a5b179ad4}{Set\+Draw\+Modes\+Action} (const \hyperlink{a07792}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+mode, bool \+\_\+force=false)
\begin{DoxyCompactList}\small\item\em Set draw modes for all nodes traversed with this action. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07968_ac3b5fe6d52984fc404c167517bb86e43}\label{a07968_ac3b5fe6d52984fc404c167517bb86e43}} 
bool {\bfseries operator()} (\hyperlink{a07748}{Base\+Node} $\ast$\+\_\+node)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07968_a265b2669eb8ed8020b23a40d74fdfd70}\label{a07968_a265b2669eb8ed8020b23a40d74fdfd70}} 
\hyperlink{a07792}{Draw\+Modes\+::\+Draw\+Mode} {\bfseries new\+Modes\+\_\+}
\item 
\mbox{\Hypertarget{a07968_a985503f8ef2d82acc5decee43c0dc831}\label{a07968_a985503f8ef2d82acc5decee43c0dc831}} 
bool {\bfseries force\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This action sets the draw mode on all nodes in a scenegraph. If the draw\+Mode is not supported by the node, it will set it to default draw mode. If the given mode is the default mode it will be set on all nodes.

\begin{DoxyNote}{Note}
This class implements an action that should be used as a parameter for the \hyperlink{a06177_af10521b6f81a7a588708218d75936f81}{traverse()} functions. 
\end{DoxyNote}


Definition at line 632 of file Scene\+Graph.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a07968_a855dedc5e53e58df0417591a5b179ad4}\label{a07968_a855dedc5e53e58df0417591a5b179ad4}} 
\index{A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action@{A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action}!Set\+Draw\+Modes\+Action@{Set\+Draw\+Modes\+Action}}
\index{Set\+Draw\+Modes\+Action@{Set\+Draw\+Modes\+Action}!A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action@{A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action}}
\subsubsection{\texorpdfstring{Set\+Draw\+Modes\+Action()}{SetDrawModesAction()}}
{\footnotesize\ttfamily A\+C\+G\+::\+Scene\+Graph\+::\+Set\+Draw\+Modes\+Action\+::\+Set\+Draw\+Modes\+Action (\begin{DoxyParamCaption}\item[{const \hyperlink{a07792}{Draw\+Modes\+::\+Draw\+Mode} \&}]{\+\_\+mode,  }\item[{bool}]{\+\_\+force = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set draw modes for all nodes traversed with this action. 

This action can be used to set the drawmodes for all nodes which are traversed using this action.


\begin{DoxyParams}{Parameters}
{\em \+\_\+mode} & The draw mode set for the traversed nodes \\
\hline
{\em \+\_\+force} & If true, the mode is set ignoring if its supported by the nodes \\
\hline
\end{DoxyParams}


Definition at line 644 of file Scene\+Graph.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/\hyperlink{a01094}{Scene\+Graph.\+hh}\end{DoxyCompactItemize}
