Visitor that will invoke Execute with a MeshEntity argument if the visited node is a valid mesh. More...
#include <MeshVisitor.h>
Public Member Functions | |
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. |
Protected Member Functions | |
virtual bool | Execute (MeshEntity &meshEntity) const |
Execute function performed for visited meshes. |
Private Attributes | |
unsigned | _visitedCount |
Track the number of Execute invocations. |
Static Private Attributes | |
Callbacks to use when constructing the MeshEntity | |
static const MeshEntity::MessageCallback | _infoReportCallback |
Use GenericPluginUI::InfoReportDialog as MeshEntity info callback. | |
static const MeshEntity::MessageCallback | _warningReportCallback |
Use GenericPluginUI::WarningReportDialog as MeshEntity warning callback. | |
static const MeshEntity::MessageCallback | _errorReportCallback |
Use GenericPluginUI::ErrorReportDialog as MeshEntity error callback. |
Visitor that will invoke Execute with a MeshEntity argument if the visited node is a valid mesh.
Subclasses should override Execute to perform operations on the MeshEntity.
|
protectedvirtual |
Execute function performed for visited meshes.
This implementation does nothing; subclasses should override it.
meshEntity | The MeshEntity. |
Reimplemented in SetScaleDialog::SetScaleVisitor, GetInfoDialog::GetInfoVisitor, GeneralFunctionDialog::GeneralFunctionVisitor, and MainMenu::PresetFuncVisitor.
unsigned MeshVisitor::GetVisitedCount | ( | ) |
Get the visited count.
This is the number of times Execute has been invoked since visitor construction or the most recent reset of the count.
void MeshVisitor::visit | ( | scene::Instance & | instance | ) | const |
Visit a specified scene graph node.
[in,out] | instance | The scene graph node. |