VTK
Classes | Macros
vtkObjectFactory.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkObject.h"
Include dependency graph for vtkObjectFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vtkObjectFactory
 abstract base class for vtkObjectFactories More...
 
struct  vtkObjectFactory::OverrideInformation
 

Macros

#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)
 

Macro Definition Documentation

#define VTK_CREATE_CREATE_FUNCTION (   classname)
Value:
static vtkObject* vtkObjectFactoryCreate##classname() \
{ return classname::New(); }
abstract base class for most VTK objects
Definition: vtkObject.h:61

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)
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: vtkVersion.h:34
#define VTK_CXX_COMPILER
Definition: vtkConfigure.h:132

Definition at line 251 of file vtkObjectFactory.h.

#define VTK_OBJECT_FACTORY_NEW_BODY (   thisClass)
Value:
if(ret) \
{ \
return static_cast<thisClass*>(ret); \
} \
return new thisClass;
abstract base class for most VTK objects
Definition: vtkObject.h:61
static vtkObject * CreateInstance(const char *vtkclassname)

Definition at line 272 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 NULL;
abstract base class for most VTK objects
Definition: vtkObject.h:61
static vtkObject * CreateInstance(const char *vtkclassname)

Definition at line 283 of file vtkObjectFactory.h.

#define VTK_STANDARD_NEW_BODY (   thisClass)    return new thisClass;

Definition at line 302 of file vtkObjectFactory.h.

#define vtkStandardNewMacro (   thisClass)
Value:
thisClass* thisClass::New() \
{ \
}
#define VTK_STANDARD_NEW_BODY(thisClass)

Definition at line 307 of file vtkObjectFactory.h.

#define vtkObjectFactoryNewMacro (   thisClass)
Value:
thisClass* thisClass::New() \
{ \
}
#define VTK_OBJECT_FACTORY_NEW_BODY(thisClass)

Definition at line 314 of file vtkObjectFactory.h.

#define vtkAbstractObjectFactoryNewMacro (   thisClass)
Value:
thisClass* thisClass::New() \
{ \
}
#define VTK_ABSTRACT_OBJECT_FACTORY_NEW_BODY(thisClass)

Definition at line 323 of file vtkObjectFactory.h.