31#ifndef vtkTypeTemplate_h
32#define vtkTypeTemplate_h
40#ifndef VTK_LEGACY_REMOVE
42template<
class ThisT,
class BaseT>
58 return static_cast<ThisT*
>(o);
80 return BaseT::IsTypeOf(
type);
94 vtkTemplateTypeMacro (vtkSetGet.h));
101 static const char* GetClassNameInternalCachedName()
104 return thisType.c_str();
107 const char* GetClassNameInternal() const VTK_OVERRIDE
109 return this->GetClassNameInternalCachedName();
abstract base class for most VTK objects
virtual vtkTypeBool IsA(const char *name)
Return 1 if this class is the same type of (or a subclass of) the named class.
Provides the equivalent of vtkTypeMacro for use with template classes.
vtkTypeBool IsA(const char *type) override
static vtkTypeBool IsTypeOf(const char *type)
ThisT * NewInstance() const
static ThisT * SafeDownCast(vtkObjectBase *o)
virtual vtkObjectBase * NewInstanceInternal() const