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();
Provides the equivalent of vtkTypeMacro for use with template classes.
ThisT * NewInstance() const
static int IsTypeOf(const char *type)
static ThisT * SafeDownCast(vtkObjectBase *o)
virtual vtkObjectBase * NewInstanceInternal() const
virtual int IsA(const char *type)
abstract base class for most VTK objects
virtual int IsA(const char *name)