HDK
|
#include <SIM_DataFactory.h>
Friends | |
class | SIM_DataFactoryCreator |
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.
Definition at line 33 of file SIM_DataFactory.h.
SIM_DataFactory::SIM_DataFactory | ( | const UT_StringHolder & | datatype, |
const UT_StringHolder & | description, | ||
SIM_GetSuperclasses | get_superclasses, | ||
SIM_DataConstructor | constructor, | ||
SIM_DataDestructor | destructor, | ||
const SIM_DopDescription * | dopdesc, | ||
const SIM_Engine * | engine | ||
) |
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 |
Destructor.
Delete an instance of our particular subclass of SIM_Data.
|
inline |
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.
|
inline |
Get array of all superclass names of our data type.
Definition at line 59 of file SIM_DataFactory.h.
const UT_StringHolder& SIM_DataFactory::getDescription | ( | ) | const |
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.
|
virtual |
Return our SIM_DopDescription.
const SIM_Engine& SIM_DataFactory::getEngine | ( | ) | const |
Return the SIM_Engine that owns this factory.
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 |
Create a new instance of our particular subclass of SIM_Data.
Calls newData() to create some new data, then changes the unique id.
|
friend |
Definition at line 91 of file SIM_DataFactory.h.