MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
MainMenu::PresetFuncVisitor Class Reference

Visitor for invoking a function on a MeshEntity when that function does not require any arguments other than the texture axes. More...

Inheritance diagram for MainMenu::PresetFuncVisitor:
MeshVisitor RefCounted

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

MainMenu::PresetFuncVisitor::PresetFuncVisitor ( const VisitorFunctor visitorFunctor,
MeshEntity::TextureAxisSelection  axes 
)

Constructor.

Parameters:
visitorFunctorThe functor for the mesh preset function.
axesThe texture axes to affect.

Member Function Documentation

bool MainMenu::PresetFuncVisitor::Execute ( MeshEntity meshEntity) const
privatevirtual

Visitor action; invoke a preset function on a mesh.

Parameters:
[in,out]meshEntityThe mesh entity.
Returns:
true.

Reimplemented from MeshVisitor.


The documentation for this class was generated from the following files: