VTK
|
Go to the source code of this file.
Classes | |
class | vtkObjectFactory |
abstract base class for vtkObjectFactories More... | |
struct | vtkObjectFactory::OverrideInformation |
Defines | |
#define | VTK_CREATE_CREATE_FUNCTION(classname) |
#define | VTK_FACTORY_INTERFACE_EXPORT VTKCOMMONCORE_EXPORT |
#define | VTK_FACTORY_INTERFACE_IMPLEMENT(factoryName) |
#define | VTK_OBJECT_FACTORY_NEW_BODY(thisClass) |
#define | VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY(thisClass) |
#define | VTK_STANDARD_NEW_BODY(thisClass) return new thisClass; |
#define | vtkStandardNewMacro(thisClass) |
#define | vtkObjectFactoryNewMacro(thisClass) |
#define | vtkAbstractObjectFactoryNewMacro(thisClass) |
#define VTK_CREATE_CREATE_FUNCTION | ( | classname | ) |
static vtkObject* vtkObjectFactoryCreate##classname() \ { return classname::New(); }
Definition at line 238 of file vtkObjectFactory.h.
#define VTK_FACTORY_INTERFACE_EXPORT VTKCOMMONCORE_EXPORT |
Definition at line 244 of file vtkObjectFactory.h.
#define VTK_FACTORY_INTERFACE_IMPLEMENT | ( | factoryName | ) |
extern "C" \ VTK_FACTORY_INTERFACE_EXPORT \ const char* vtkGetFactoryCompilerUsed() \ { \ return VTK_CXX_COMPILER; \ } \ extern "C" \ VTK_FACTORY_INTERFACE_EXPORT \ const char* vtkGetFactoryVersion() \ { \ return VTK_SOURCE_VERSION; \ } \ extern "C" \ VTK_FACTORY_INTERFACE_EXPORT \ vtkObjectFactory* vtkLoad() \ { \ return factoryName ::New(); \ }
Definition at line 251 of file vtkObjectFactory.h.
#define VTK_OBJECT_FACTORY_NEW_BODY | ( | thisClass | ) |
vtkObject* ret = vtkObjectFactory::CreateInstance(#thisClass); \ if(ret) \ { \ return static_cast<thisClass*>(ret); \ } \ return new thisClass;
Definition at line 272 of file vtkObjectFactory.h.
#define VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY | ( | thisClass | ) |
vtkObject* ret = vtkObjectFactory::CreateInstance(#thisClass); \ if(ret) \ { \ return static_cast<thisClass*>(ret); \ } \ vtkGenericWarningMacro("Error: no override found for '" #thisClass "'."); \ return NULL;
Definition at line 283 of file vtkObjectFactory.h.
#define VTK_STANDARD_NEW_BODY | ( | thisClass | ) | return new thisClass; |
Definition at line 301 of file vtkObjectFactory.h.
#define vtkStandardNewMacro | ( | thisClass | ) |
thisClass* thisClass::New() \ { \ VTK_STANDARD_NEW_BODY(thisClass) \ } \ vtkInstantiatorNewMacro(thisClass)
Definition at line 306 of file vtkObjectFactory.h.
#define vtkObjectFactoryNewMacro | ( | thisClass | ) |
thisClass* thisClass::New() \ { \ VTK_OBJECT_FACTORY_NEW_BODY(thisClass) \ } \ vtkInstantiatorNewMacro(thisClass)
Definition at line 314 of file vtkObjectFactory.h.
#define vtkAbstractObjectFactoryNewMacro | ( | thisClass | ) |
thisClass* thisClass::New() \ { \ VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY(thisClass) \ } \ vtkInstantiatorNewMacro(thisClass)
Definition at line 324 of file vtkObjectFactory.h.