MeVisLab Toolbox Reference
mlVTKCommonWrappers.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
15 // Include dll-specific settings.
16 #include "mlInitSystemVTKSupport.h"
17 #include "mlVTKMLBaseWrapper.h"
18 
19 #include <vtkObject.h>
20 #include <vtkDataObject.h>
21 #include <vtkActor.h>
22 #include <vtkMapper.h>
23 #include <vtkRenderer.h>
24 
26 typedef vtkObject vtkObjectType;
27 
28 ML_START_NAMESPACE
29 
37 MLVTK_SUPPORT_EXPORT vtkObject* checkPointer(const std::string &reqConnectType,
38  vtkObject *vtkObjPtr);
39 MLVTK_SUPPORT_EXPORT vtkAlgorithmOutput* checkPointerPort(const std::string &reqConnectType,
40  vtkObject *vtkObjPtr);
41 
42 // Termination criterion must be set correctly in Base classes
43 // by specifying class name == super class name as 3rd macro parameter!
44 // Otherwise checks for inheritance and base classes will not terminate!
45 
46 // Type to be wrapped | Pointer to wrapped type | Class name of Base wrapper | Superclass wrapped type | dll-Export macro
48 
51 
52 ML_END_NAMESPACE
#define ML_CREATE_BASE_WRAPPER_FOR_OBJECT_H(CLASS_NAME, CLASS_NAME_POINTER, WRAPPER_CLASS_NAME, PARENT_CLASS_NAME, ML_EXPORT_MACRO)
Macro to create a wrapper class for an object.
#define MLVTK_SUPPORT_EXPORT
When included by other libraries MLVTK_SUPPORT_EXPORT is compiled as import symbol.
vtkObject vtkObjectType
Helper typedef.
MLVTK_SUPPORT_EXPORT vtkAlgorithmOutput * checkPointerPort(const std::string &reqConnectType, vtkObject *vtkObjPtr)
MLVTK_SUPPORT_EXPORT int VTKCommonTypesAndWrappersInit()
Initializes the wrapper classes.
MLVTK_SUPPORT_EXPORT vtkObject * checkPointer(const std::string &reqConnectType, vtkObject *vtkObjPtr)