HDK_Sample::SNOW_VoxelArray Class Reference

#include <SIM_SolverSNOW.h>

Inheritance diagram for HDK_Sample::SNOW_VoxelArray:

SIM_Geometry SIM_Data SIM_OptionsUser

List of all members.

Public Member Functions

int getXDivisions () const
void setXDivisions (int divisions)
int getYDivisions () const
void setYDivisions (int divisions)
int getZDivisions () const
void setZDivisions (int divisions)
u8 getVoxel (int x, int y, int z) const
void setVoxel (u8 voxel, int x, int y, int z)
void collapseAllTiles ()
void pubHandleModification ()

Protected Member Functions

 SNOW_VoxelArray (const SIM_DataFactory *factory)
virtual ~SNOW_VoxelArray ()
virtual void initializeSubclass ()
 Set initial values on all the geometry attributes.
virtual void makeEqualSubclass (const SIM_Data *source)
 Makes this geometry equal to some other SIM_Geometry.
virtual void saveSubclass (ostream &os) const
 Saves our attributes, and our internal data if it has been set.
virtual bool loadSubclass (UT_IStream &is)
 Loads our attributes and internal data if it was set when we saved.
virtual void handleModificationSubclass (int code)
virtual GU_ConstDetailHandle getGeometrySubclass () const


Detailed Description

Examples:

SIM/SIM_SolverSNOW.C.

Definition at line 135 of file SIM_SolverSNOW.h.


Constructor & Destructor Documentation

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

Examples:
SIM/SIM_SolverSNOW.h.

Definition at line 64 of file SIM_SolverSNOW.C.

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

Examples:
SIM/SIM_SolverSNOW.h.

Definition at line 70 of file SIM_SolverSNOW.C.


Member Function Documentation

void SNOW_VoxelArray::collapseAllTiles (  ) 

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 460 of file SIM_SolverSNOW.C.

GU_ConstDetailHandle SNOW_VoxelArray::getGeometrySubclass (  )  const [protected, virtual]

This function is called by getGeometry() to return the actual geometry data. The default implementation returns an empty geometry.

Reimplemented from SIM_Geometry.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 149 of file SIM_SolverSNOW.C.

u8 SNOW_VoxelArray::getVoxel ( int  x,
int  y,
int  z 
) const

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 124 of file SIM_SolverSNOW.C.

int SNOW_VoxelArray::getXDivisions (  )  const

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 76 of file SIM_SolverSNOW.C.

int SNOW_VoxelArray::getYDivisions (  )  const

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 92 of file SIM_SolverSNOW.C.

int SNOW_VoxelArray::getZDivisions (  )  const

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 108 of file SIM_SolverSNOW.C.

void SNOW_VoxelArray::handleModificationSubclass ( int  code  )  [protected, virtual]

Override this method to customize the behavior when our internal data changes. The code parameter is a data type specific value which can be used to indicate the type of change that has occurred. The default implementation deletes all subdata that was created with the deleteifmodified flag turned on. Remember to call the base class implementation.

Reimplemented from SIM_Data.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 453 of file SIM_SolverSNOW.C.

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

Set initial values on all the geometry attributes.

Reimplemented from SIM_Geometry.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 322 of file SIM_SolverSNOW.C.

bool SNOW_VoxelArray::loadSubclass ( UT_IStream is  )  [protected, virtual]

Loads our attributes and internal data if it was set when we saved.

Reimplemented from SIM_Geometry.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 394 of file SIM_SolverSNOW.C.

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

Makes this geometry equal to some other SIM_Geometry.

Reimplemented from SIM_Geometry.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 333 of file SIM_SolverSNOW.C.

void HDK_Sample::SNOW_VoxelArray::pubHandleModification (  )  [inline]

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 152 of file SIM_SolverSNOW.h.

void SNOW_VoxelArray::saveSubclass ( ostream &  os  )  const [protected, virtual]

Saves our attributes, and our internal data if it has been set.

Reimplemented from SIM_Geometry.

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 361 of file SIM_SolverSNOW.C.

void SNOW_VoxelArray::setVoxel ( u8  voxel,
int  x,
int  y,
int  z 
)

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 133 of file SIM_SolverSNOW.C.

void SNOW_VoxelArray::setXDivisions ( int  divisions  ) 

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 82 of file SIM_SolverSNOW.C.

void SNOW_VoxelArray::setYDivisions ( int  divisions  ) 

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 98 of file SIM_SolverSNOW.C.

void SNOW_VoxelArray::setZDivisions ( int  divisions  ) 

Examples:
SIM/SIM_SolverSNOW.C, and SIM/SIM_SolverSNOW.h.

Definition at line 114 of file SIM_SolverSNOW.C.


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

Generated on Fri May 25 00:10:57 2012 for HDK by  doxygen 1.5.9