MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GeneralFunctionDialog::GeneralFunctionVisitor Class Reference

Visitor for applying the chosen equation to a mesh. More...

Inheritance diagram for GeneralFunctionDialog::GeneralFunctionVisitor:
MeshVisitor RefCounted

List of all members.

Public Member Functions

 GeneralFunctionVisitor (const MeshEntity::GeneralFunctionFactors *sFactors, const MeshEntity::GeneralFunctionFactors *tFactors, const MeshEntity::SliceDesignation *alignRow, const MeshEntity::SliceDesignation *alignCol, const MeshEntity::RefSliceDescriptor *refRow, const MeshEntity::RefSliceDescriptor *refCol, bool surfaceValues)
 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 MeshEntity::GeneralFunction on a mesh.

Private Attributes

const
MeshEntity::GeneralFunctionFactors
_sFactors
const
MeshEntity::GeneralFunctionFactors
_tFactors
const
MeshEntity::SliceDesignation
_alignRow
const
MeshEntity::SliceDesignation
_alignCol
const
MeshEntity::RefSliceDescriptor
_refRow
const
MeshEntity::RefSliceDescriptor
_refCol
bool _surfaceValues

Detailed Description

Visitor for applying the chosen equation to a mesh.


Constructor & Destructor Documentation

GeneralFunctionDialog::GeneralFunctionVisitor::GeneralFunctionVisitor ( const MeshEntity::GeneralFunctionFactors sFactors,
const MeshEntity::GeneralFunctionFactors tFactors,
const MeshEntity::SliceDesignation alignRow,
const MeshEntity::SliceDesignation alignCol,
const MeshEntity::RefSliceDescriptor refRow,
const MeshEntity::RefSliceDescriptor refCol,
bool  surfaceValues 
)

Constructor.

See MeshEntity::GeneralFunction for details of how these arguments are interpreted.

Parameters:
sFactorsFactors to determine the S texture coords; NULL if S axis unaffected.
tFactorsFactors to determine the T texture coords; NULL if T axis unaffected.
alignRowPointer to zero-point row; if NULL, row 0 is assumed.
alignColPointer to zero-point column; if NULL, column 0 is assumed.
refRowPointer to reference row description, including how to use the reference; NULL if no reference.
refColPointer to reference column description, including how to use the reference; NULL if no reference.
surfaceValuestrue if calculations are for S/T values on the mesh surface; false if calculations are for S/T values at the control points.

Member Function Documentation

bool GeneralFunctionDialog::GeneralFunctionVisitor::Execute ( MeshEntity meshEntity) const
privatevirtual

Visitor action; invoke MeshEntity::GeneralFunction on a mesh.

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

Reimplemented from MeshVisitor.


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