HDK_Sample::SNOW_VoxelArray Class Reference

#include <SNOW_Solver.h>

Inheritance diagram for HDK_Sample::SNOW_VoxelArray:

SIM_Geometry SIM_Data SIM_OptionsUser

List of all members.

Public Member Functions

 GETSET_DATA_FUNCS_V3 (SNOW_NAME_DIVISIONS, Divisions)
 GETSET_DATA_FUNCS_V3 (SNOW_NAME_SIZE, Size)
 GETSET_DATA_FUNCS_V3 (SNOW_NAME_CENTER, Center)
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 int64 getMemorySizeSubclass () const
virtual void optionChangedSubclass (const char *name)
virtual GU_ConstDetailHandle getGeometrySubclass () const


Detailed Description

Examples:

SIM/SNOW_Solver.C.

Definition at line 136 of file SNOW_Solver.h.


Constructor & Destructor Documentation

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

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

Definition at line 641 of file SNOW_Solver.C.

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

Examples:
SIM/SNOW_Solver.h.

Definition at line 647 of file SNOW_Solver.C.


Member Function Documentation

void SNOW_VoxelArray::collapseAllTiles (  ) 

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

Definition at line 1048 of file SNOW_Solver.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/SNOW_Solver.C, and SIM/SNOW_Solver.h.

Definition at line 709 of file SNOW_Solver.C.

int64 SNOW_VoxelArray::getMemorySizeSubclass (  )  const [protected, virtual]

Override this function to return an accurate representation of the amount of memory used by this piece of data. The size of subdata should not be included in this calculation.

Reimplemented from SIM_Geometry.

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

Definition at line 1020 of file SNOW_Solver.C.

HDK_Sample::SNOW_VoxelArray::GETSET_DATA_FUNCS_V3 ( SNOW_NAME_CENTER  ,
Center   
)

HDK_Sample::SNOW_VoxelArray::GETSET_DATA_FUNCS_V3 ( SNOW_NAME_SIZE  ,
Size   
)

HDK_Sample::SNOW_VoxelArray::GETSET_DATA_FUNCS_V3 ( SNOW_NAME_DIVISIONS  ,
Divisions   
)

Examples:
SIM/SNOW_Solver.h.

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

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

Definition at line 690 of file SNOW_Solver.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/SNOW_Solver.C, and SIM/SNOW_Solver.h.

Definition at line 1039 of file SNOW_Solver.C.

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

Set initial values on all the geometry attributes.

Reimplemented from SIM_Geometry.

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

Definition at line 904 of file SNOW_Solver.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/SNOW_Solver.C, and SIM/SNOW_Solver.h.

Definition at line 967 of file SNOW_Solver.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/SNOW_Solver.C, and SIM/SNOW_Solver.h.

Definition at line 912 of file SNOW_Solver.C.

void SNOW_VoxelArray::optionChangedSubclass ( const char *  name  )  [protected, virtual]

Invoked when our parameters are changed, we use it to invalidate our array.

Reimplemented from SIM_OptionsUser.

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

Definition at line 677 of file SNOW_Solver.C.

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

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

Definition at line 151 of file SNOW_Solver.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/SNOW_Solver.C, and SIM/SNOW_Solver.h.

Definition at line 938 of file SNOW_Solver.C.

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

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

Definition at line 699 of file SNOW_Solver.C.


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

Generated on Thu Jan 31 00:34:37 2013 for HDK by  doxygen 1.5.9