SIM_GeometryCopy Class Reference

This implements a SIM_Geometry that copies the source geometry. More...

#include <SIM_GeometryCopy.h>

Inheritance diagram for SIM_GeometryCopy:

SIM_Geometry SIM_Data SIM_OptionsUser SIM_PopGeometry

List of all members.

Public Member Functions

GU_DetailHandle lockGeometry ()
void releaseGeometry ()
UT_DMatrix4lockTransform ()
void releaseTransform ()

Protected Member Functions

 SIM_GeometryCopy (const SIM_DataFactory *factory)
virtual ~SIM_GeometryCopy ()
virtual void initializeSubclass ()
 Initializes this data by clearing our internal geometry and transform.
virtual void makeEqualSubclass (const SIM_Data *source)
virtual void setParametersSubclass (const SIM_Options &options)


Detailed Description

This implements a SIM_Geometry that copies the source geometry.
Examples:

SIM/SIM_SolverHair.C, and SIM/SIM_SolverHair.h.

Definition at line 22 of file SIM_GeometryCopy.h.


Constructor & Destructor Documentation

SIM_GeometryCopy::SIM_GeometryCopy ( const SIM_DataFactory factory  )  [explicit, protected]

virtual SIM_GeometryCopy::~SIM_GeometryCopy (  )  [protected, virtual]


Member Function Documentation

virtual void SIM_GeometryCopy::initializeSubclass (  )  [protected, virtual]

Initializes this data by clearing our internal geometry and transform.

Reimplemented from SIM_Geometry.

Reimplemented in SIM_PopGeometry.

GU_DetailHandle SIM_GeometryCopy::lockGeometry (  ) 

This method provides access to the internal geometry so that it can be modified. For each call to lockGeometry(), there must be a corresponding call to releaseGeometry(). Calls to lockGeomtry() can be nested.

Examples:
SIM/SIM_SolverHair.C.

UT_DMatrix4& SIM_GeometryCopy::lockTransform (  ) 

This method provides access to the internal transform so that it can be modified. For each call to lockTransform(), there must be a corresponding call to releaseTransform(). Calls to lockTransform() can be nested.

virtual void SIM_GeometryCopy::makeEqualSubclass ( const SIM_Data source  )  [protected, virtual]

This function creates an internal copy of any SIM_Geometry data passed to it.

Reimplemented from SIM_Geometry.

Reimplemented in SIM_PopGeometry.

void SIM_GeometryCopy::releaseGeometry (  ) 

This function releases the lock on our internal geometry. This function must be called once for each call to lockGeometry(). Also, once this function has been called, no more modifications should be made to the geometry returned by lockGeometry() or the result will be undefined.

Examples:
SIM/SIM_SolverHair.C.

void SIM_GeometryCopy::releaseTransform (  ) 

This function releases the lock on our internal transform. This function must be called once for each call to lockTransform(). Also, once this function has been called, no more modifications should be made to the transform returned by lockTransform() or the result will be undefined.

virtual void SIM_GeometryCopy::setParametersSubclass ( const SIM_Options options  )  [protected, virtual]

Respond to setting our parameters by adjusting our transform. The parameters will be in the standard t, r, s style which we convert in to a matrix and multiply by our current transform.

Reimplemented from SIM_Data.


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

Generated on Mon Jan 28 00:29:59 2013 for HDK by  doxygen 1.5.9