#include <vtkObjectFactory.h>
Inheritance diagram for vtkObjectFactory:
Public Types | |
typedef vtkObject *(* | CreateFunction )() |
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual const char * | GetVTKSourceVersion ()=0 |
virtual const char * | GetDescription ()=0 |
virtual int | GetNumberOfOverrides () |
virtual const char * | GetClassOverrideName (int index) |
virtual const char * | GetClassOverrideWithName (int index) |
virtual int | GetEnableFlag (int index) |
virtual const char * | GetOverrideDescription (int index) |
virtual void | Disable (const char *className) |
virtual void | SetEnableFlag (int flag, const char *className, const char *subclassName) |
virtual int | GetEnableFlag (const char *className, const char *subclassName) |
virtual int | HasOverride (const char *className) |
virtual int | HasOverride (const char *className, const char *subclassName) |
virtual char * | GetLibraryPath () |
Static Public Methods | |
vtkObjectFactoryCollection * | GetRegisteredFactories () |
int | HasOverrideAny (const char *className) |
int | IsTypeOf (const char *type) |
vtkObjectFactory * | SafeDownCast (vtkObject *o) |
vtkObject * | CreateInstance (const char *vtkclassname) |
void | ReHash () |
void | RegisterFactory (vtkObjectFactory *) |
void | UnRegisterFactory (vtkObjectFactory *) |
void | UnRegisterAllFactories () |
void | GetOverrideInformation (const char *name, vtkOverrideInformationCollection *) |
void | SetAllEnableFlags (int flag, const char *className) |
void | SetAllEnableFlags (int flag, const char *className, const char *subclassName) |
Protected Methods | |
virtual vtkObject * | CreateObject (const char *vtkclassname) |
vtkObjectFactory () | |
~vtkObjectFactory () | |
void | RegisterOverride (const char *classOverride, const char *overrideClassName, const char *description, int enableFlag, CreateFunction createFunction) |
Protected Attributes | |
OverrideInformation * | OverrideArray |
char ** | OverrideClassNames |
int | SizeOverrideArray |
int | OverrideArrayLength |
The vtkObjectFactory can be use to override the creation of any object in VTK with a sub-class of that object. The factories can be registered either at run time with the VTK_AUTOLOAD_PATH, or at compile time with the vtkObjectFactory::RegisterFactory method.
Definition at line 83 of file vtkObjectFactory.h.
|
|
|
|
|
|
|
Create and return an instance of the named vtk object. Each loaded vtkObjectFactory will be asked in the order the factory was in the VTK_AUTOLOAD_PATH. After the first factory returns the object no other factories are asked. Referenced by vtkRayCaster::New().
|
|
Create and return an instance of the named vtk object. Each loaded vtkObjectFactory will be asked in the order the factory was in the VTK_AUTOLOAD_PATH. After the first factory returns the object no other factories are asked. |
|
Create and return an instance of the named vtk object. Each loaded vtkObjectFactory will be asked in the order the factory was in the VTK_AUTOLOAD_PATH. After the first factory returns the object no other factories are asked. |
|
Create and return an instance of the named vtk object. Each loaded vtkObjectFactory will be asked in the order the factory was in the VTK_AUTOLOAD_PATH. After the first factory returns the object no other factories are asked. |
|
Create and return an instance of the named vtk object. Each loaded vtkObjectFactory will be asked in the order the factory was in the VTK_AUTOLOAD_PATH. After the first factory returns the object no other factories are asked. |
|
Return the list of all registered factories. This is NOT a copy, do not remove items from this list! |
|
return 1 if one of the registered factories overrides the given class name |
|
Fill the given collection with all the overrides for the class with the given name. |
|
Set the enable flag for a given named class for all registered factories. |
|
Set the enable flag for a given named class for all registered factories. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
Print ObjectFactory to stream. Reimplemented from vtkObject. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
All sub-classes of vtkObjectFactory should must return the version of VTK they were built with. This should be implemented with the macro VTK_SOURCE_VERSION and NOT a call to vtkVersion::GetVTKSourceVersion. As the version needs to be compiled into the file as a string constant. This is critical to determine possible incompatible dynamic factory loads. Reimplemented in vtkParallelFactory, and vtkKitwareObjectFactory. |
|
Return a descriptive string describing the factory. Reimplemented in vtkParallelFactory. |
|
Return number of overrides this factory can create. |
|
Return the name of a class override at the given index. |
|
Return the name of the class that will override the class at the given index |
|
Return the enable flag for the class at the given index. |
|
Return the description for a the class override at the given index. |
|
Set and Get the Enable flag for the specific override of className. if subclassName is null, then it is ignored. |
|
Set and Get the Enable flag for the specific override of className. if subclassName is null, then it is ignored. |
|
Return 1 if this factory overrides the given class name, 0 otherwise. |
|
Return 1 if this factory overrides the given class name, 0 otherwise. |
|
Set all enable flags for the given class to 0. This will mean that the factory will stop producing class with the given name. |
|
This returns the path to a dynamically loaded factory. |
|
Register object creation information with the factory. |
|
This method is provided by sub-classes of vtkObjectFactory. It should create the named vtk object or return 0 if that object is not supported by the factory implementation. Reimplemented in vtkKitwareObjectFactory. |
|
Definition at line 232 of file vtkObjectFactory.h. |
|
Definition at line 233 of file vtkObjectFactory.h. |
|
Definition at line 234 of file vtkObjectFactory.h. |
|
Definition at line 235 of file vtkObjectFactory.h. |