#include <SIM_DataFactory.h>
This class provides a means of creating and destroying SIM_Data objects. Nothing needs to be known about the SIM_Data object except its data type name. It is possible to derive a subclass to use instead of relying on the default implementations used by the DECLARE_DATAFACTORY and IMPLEMENT_DATAFACTORY macros. But generally these macros will be sufficient.
- Examples:
- SIM/GAS_NetVDBSliceExchange.C, SIM/GAS_NetVDBSliceExchange.h, SIM/SIM_ElectricalProperties.C, SIM/SIM_ElectricalProperties.h, SIM/SIM_ForceOrbit.C, SIM/SIM_ForceOrbit.h, SIM/SIM_GasAdd.C, SIM/SIM_GasAdd.h, SIM/SIM_RadialEmit.C, SIM/SIM_RadialEmit.h, SIM/SIM_SolverHair.C, SIM/SIM_SolverHair.h, SIM/SNOW_Solver.C, and SIM/SNOW_Solver.h.
Definition at line 33 of file SIM_DataFactory.h.
Constructor which receives all the data for this factory. The constructor arguments contain all the information that may be required for the new data type without actually requiring an instance of that data type to be constructed.
virtual SIM_DataFactory::~SIM_DataFactory |
( |
| ) |
|
|
virtual |
virtual void SIM_DataFactory::deleteData |
( |
SIM_Data * |
data | ) |
const |
|
virtual |
Delete an instance of our particular subclass of SIM_Data.
Get the name of the data type that is created by this factory. This is the unique identifier that is passed to a SIM_Object to create a new instance of this data type.
Definition at line 56 of file SIM_DataFactory.h.
Get array of all superclass names of our data type.
Definition at line 59 of file SIM_DataFactory.h.
Gets a string that describes what this data type does. This descriptive string is what is presented to the user when given a menu of data type choices.
const SIM_Engine& SIM_DataFactory::getEngine |
( |
| ) |
const |
const UT_String& SIM_DataFactory::getSource |
( |
| ) |
const |
Returns the name of the DSO or DLL file that defines the data type. For data types defined internally to Houdini the returned string will be empty.
virtual SIM_Data* SIM_DataFactory::newData |
( |
bool |
doinit | ) |
const |
|
virtual |
Create a new instance of our particular subclass of SIM_Data.
Calls newData() to create some new data, then changes the unique id.
The documentation for this class was generated from the following file: