#include "vtkDebugLeaksManager.h"
#include "vtkCommonCoreModule.h"
#include "vtkObject.h"
#include <string>
Go to the source code of this file.
#define VTK_CREATE_CREATE_FUNCTION |
( |
|
classname | ) |
|
Value:static vtkObject* vtkObjectFactoryCreate##classname() \
{ return classname::New(); }
abstract base class for most VTK objects
Definition at line 304 of file vtkObjectFactory.h.
#define VTK_FACTORY_INTERFACE_EXPORT VTKCOMMONCORE_EXPORT |
#define VTK_FACTORY_INTERFACE_IMPLEMENT |
( |
|
factoryName | ) |
|
Value:extern "C" \
VTK_FACTORY_INTERFACE_EXPORT \
const char* vtkGetFactoryCompilerUsed() \
{ \
return VTK_CXX_COMPILER; \
} \
extern "C" \
VTK_FACTORY_INTERFACE_EXPORT \
const char* vtkGetFactoryVersion() \
{ \
} \
extern "C" \
VTK_FACTORY_INTERFACE_EXPORT \
vtkObjectFactory* vtkLoad() \
{ \
return factoryName ::New(); \
}
#define VTK_SOURCE_VERSION
Definition at line 317 of file vtkObjectFactory.h.
#define VTK_OBJECT_FACTORY_NEW_BODY |
( |
|
thisClass | ) |
|
Value: if(ret) \
{ \
return static_cast<thisClass*>(ret); \
} \
thisClass *result = new thisClass; \
result->InitializeObjectBase(); \
return result;
abstract base class for most VTK objects
static vtkObject * CreateInstance(const char *vtkclassname, bool isAbstract=false)
Create and return an instance of the named vtk object.
Definition at line 338 of file vtkObjectFactory.h.
#define VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY |
( |
|
thisClass | ) |
|
Value: if(ret) \
{ \
return static_cast<thisClass*>(ret); \
} \
vtkGenericWarningMacro("Error: no override found for '" #thisClass "'."); \
return nullptr;
abstract base class for most VTK objects
static vtkObject * CreateInstance(const char *vtkclassname, bool isAbstract=false)
Create and return an instance of the named vtk object.
Definition at line 351 of file vtkObjectFactory.h.
#define VTK_STANDARD_NEW_BODY |
( |
|
thisClass | ) |
|
Value:thisClass *result = new thisClass; \
result->InitializeObjectBase(); \
return result;
Definition at line 365 of file vtkObjectFactory.h.
#define vtkStandardNewMacro |
( |
|
thisClass | ) |
|
Value:thisClass* thisClass::New() \
}
#define VTK_STANDARD_NEW_BODY(thisClass)
Definition at line 372 of file vtkObjectFactory.h.
#define vtkObjectFactoryNewMacro |
( |
|
thisClass | ) |
|
Value:thisClass* thisClass::New() \
}
#define VTK_OBJECT_FACTORY_NEW_BODY(thisClass)
Definition at line 379 of file vtkObjectFactory.h.
#define vtkAbstractObjectFactoryNewMacro |
( |
|
thisClass | ) |
|
Value:thisClass* thisClass::New() \
}
#define VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY(thisClass)
Definition at line 388 of file vtkObjectFactory.h.