Visitor for invoking a function on a MeshEntity when that function does not require any arguments other than the texture axes. More...
Public Types | |
typedef void(MeshEntity::* | VisitorFunctor )(MeshEntity::TextureAxisSelection axes) |
Function signature for a preset function. |
Public Member Functions | |
PresetFuncVisitor (const VisitorFunctor &visitorFunctor, MeshEntity::TextureAxisSelection axes) | |
Constructor. | |
Public Member Functions inherited from MeshVisitor | |
MeshVisitor () | |
Default constructor. | |
virtual | ~MeshVisitor () |
Virtual destructor. | |
void | ResetVisitedCount () |
Reset the visited count to zero. | |
unsigned | GetVisitedCount () |
Get the visited count. | |
void | visit (scene::Instance &instance) const |
Visit a specified scene graph node. | |
Public Member Functions inherited from RefCounted | |
RefCounted () | |
Default constructor. | |
virtual | ~RefCounted () |
Virtual destructor. | |
void | IncRef () |
Increment reference count. | |
void | DecRef () |
Decrement reference count, and self-delete if count is <= 0. |
Private Member Functions | |
bool | Execute (MeshEntity &meshEntity) const |
Visitor action; invoke a preset function on a mesh. |
Private Attributes | |
const VisitorFunctor | _visitorFunctor |
const MeshEntity::TextureAxisSelection | _axes |
Visitor for invoking a function on a MeshEntity when that function does not require any arguments other than the texture axes.
These operations are triggered immediately on selecting a menu entry, rather than being triggered by applying some other dialog.
MainMenu::PresetFuncVisitor::PresetFuncVisitor | ( | const VisitorFunctor & | visitorFunctor, |
MeshEntity::TextureAxisSelection | axes | ||
) |
Constructor.
visitorFunctor | The functor for the mesh preset function. |
axes | The texture axes to affect. |
|
privatevirtual |
Visitor action; invoke a preset function on a mesh.
[in,out] | meshEntity | The mesh entity. |
Reimplemented from MeshVisitor.