#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 * | GetDescription (int index) |
virtual void | SetEnableFlag (int flag, const char *className, const char *subclassName) |
virtual int | GetEnableFlag (const char *className, const char *subclassName) |
virtual void | Disable (const char *className) |
virtual char * | GetLibraryPath () |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkObjectFactory * | SafeDownCast (vtkObject *o) |
vtkObject * | CreateInstance (const char *vtkclassname) |
void | ReHash () |
void | RegisterFactory (vtkObjectFactory *) |
void | UnRegisterFactory (vtkObjectFactory *) |
void | UnRegisterAllFactories () |
vtkObjectFactoryCollection * | GetRegisteredFactories () |
Protected Methods | |
void | RegisterOverride (const char *classOverride, const char *overrideClassName, const char *description, int enableFlag, CreateFunction createFunction) |
virtual vtkObject * | CreateObject (const char *vtkclassname) |
vtkObjectFactory () | |
~vtkObjectFactory () | |
vtkObjectFactory (const vtkObjectFactory &) | |
void | operator= (const vtkObjectFactory &) |
Protected Attributes | |
OverrideInformation * | OverrideArray |
char ** | OverrideClassNames |
int | SizeOverrideArray |
int | OverrideArrayLength |
This can be use to override the creation of any object in VTK.
Definition at line 74 of file vtkObjectFactory.h.
|
|
|
|
|
|
|
Definition at line 167 of file vtkObjectFactory.h. |
|
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 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 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 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 vtkKitwareObjectFactory. Referenced by vtkObjectFactoryCollection::GetNextItem().
|
|
Print ObjectFactor to stream. Reimplemented from vtkObject. Reimplemented in vtkKitwareObjectFactory. |
|
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. |
|
Re-check the VTK_AUTOLOAD_PATH for new factory libraries. This calls UnRegisterAll before re-loading |
|
Register a factory so it can be used to create vtk objects |
|
Remove a factory from the list of registered factories |
|
Unregister all factories |
|
Return the list of all registered factories. This is NOT a copy, do not remove items from this list! |
|
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 vtkKitwareObjectFactory. |
|
Return a descriptive string describing the factory. |
|
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 |
|
|
|
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 168 of file vtkObjectFactory.h. |
|
Definition at line 178 of file vtkObjectFactory.h. |
|
Definition at line 179 of file vtkObjectFactory.h. |
|
Definition at line 180 of file vtkObjectFactory.h. |
|
Definition at line 181 of file vtkObjectFactory.h. |