VTK  9.4.20241222
Classes | Namespaces | Macros
vtkInherits.h File Reference
#include "vtkTypeName.h"
#include <string>
Include dependency graph for vtkInherits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vtk::detail::AddNames< Container, StopAtType >
 
class  vtk::HasSuperclass< VTKObjectType >
 Determine whether the provided class (VTKObjectType ) has a parent class. More...
 
struct  vtk::ParentClasses< VTKObjectType, false >
 
struct  vtk::ParentClasses< VTKObjectType, true >
 

Namespaces

namespace  vtk
 Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate.
 
namespace  vtk::detail
 

Macros

#define vtkInheritanceHierarchyBodyMacro(thisClass)
 
#define vtkInheritanceHierarchyBaseMacro(thisClass)
 Use these macros to add an "InheritanceHierarchy()" method to a VTK class.
 
#define vtkInheritanceHierarchyOverrideMacro(thisClass)
 

Functions

template<typename VTKObjectType , typename Container >
void vtk::Inherits (Container &container)
 Populate the container with the name of this class and its ancestors.
 
template<typename VTKObjectType , typename StopAtType , typename Container >
void vtk::Inherits (Container &container)
 Populate the container with the name of this class and its ancestors.
 

Macro Definition Documentation

◆ vtkInheritanceHierarchyBodyMacro

#define vtkInheritanceHierarchyBodyMacro (   thisClass)
Value:
{ \
std::vector<vtkStringToken> result; \
vtk::Inherits<thisClass>(result); \
return result; \
}

Definition at line 11 of file vtkInherits.h.

◆ vtkInheritanceHierarchyBaseMacro

#define vtkInheritanceHierarchyBaseMacro (   thisClass)
Value:
virtual std::vector<vtkStringToken> InheritanceHierarchy() \
#define vtkInheritanceHierarchyBodyMacro(thisClass)
Definition vtkInherits.h:11

Use these macros to add an "InheritanceHierarchy()" method to a VTK class.

Note: To use this macro, you must #include "vtkStringToken.h" and #include <vector> as the method returns a vector of string tokens.

Definition at line 23 of file vtkInherits.h.

◆ vtkInheritanceHierarchyOverrideMacro

#define vtkInheritanceHierarchyOverrideMacro (   thisClass)
Value:
std::vector<vtkStringToken> InheritanceHierarchy() \
const override vtkInheritanceHierarchyBodyMacro(thisClass)

Definition at line 27 of file vtkInherits.h.