19 #include <vtkObject.h>
20 #include <vtkDataObject.h>
22 #include <vtkMapper.h>
23 #include <vtkRenderer.h>
24 #include <vtkAlgorithm.h>
39 vtkObject *vtkObjPtr);
45 if (
auto result1 = T::SafeDownCast(vtkObjPtr)) {
48 else if (
auto algo = vtkAlgorithm::SafeDownCast(vtkObjPtr)) {
51 int numAlgoOutputs = algo->GetNumberOfOutputPorts();
54 for (
int i = 0; i < numAlgoOutputs; ++i) {
55 if (
auto safeOutput = T::SafeDownCast(algo->GetOutputDataObject(i))) {
#define MLVTK_SUPPORT_EXPORT
When included by other libraries MLVTK_SUPPORT_EXPORT is compiled as import symbol.
vtkObject vtkObjectType
Helper typedef.
T * checkObject(vtkObject *vtkObjPtr)
MLVTK_SUPPORT_EXPORT int VTKCommonTypesAndWrappersInit()
Initializes the wrapper classes.
MLVTK_SUPPORT_EXPORT vtkObject * checkPointer(const std::string &reqConnectType, vtkObject *vtkObjPtr)