Go to the documentation of this file.
30 #ifndef vtkTypeTemplate_h
31 #define vtkTypeTemplate_h
37 template<
class ThisT,
class BaseT>
54 return static_cast<ThisT*
>(o);
76 return BaseT::IsTypeOf(
type);
94 static const char* GetClassNameInternalCachedName()
97 return thisType.c_str();
100 virtual const char* GetClassNameInternal()
const
102 return this->GetClassNameInternalCachedName();
virtual int IsA(const char *name)
virtual vtkObjectBase * NewInstanceInternal() const
ThisT * NewInstance() const
GLuint const GLchar * name
static ThisT * SafeDownCast(vtkObjectBase *o)
abstract base class for most VTK objects
static int IsTypeOf(const char *type)
GLuint GLuint GLsizei GLenum type
GLsizei const GLchar ** string
Provides the equivalent of vtkTypeMacro for use with template classes.
virtual int IsA(const char *type)