MeVisLab Toolbox Reference
mlInitSystemVTKSupport.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 #ifdef WIN32
16 // Suppresses warning C4275: class 'SoCoordinate4' ist keine DLL-Schnittstelle ..."
17 #pragma warning (disable : 4018) // Disable only for VTK
18 #pragma warning (disable : 4516) // Disable only for VTK
19 #pragma warning (disable : 4701) // Disable only for VTK
20 
21 #pragma warning (disable : 4275)
22 #pragma warning (disable : 4505) // warning C4505: 'debugFunc' : Nichtreferenzierte lokale Funktion wurde entfernt
23 
24 #pragma warning ( disable : 4097 )
25 #pragma warning ( disable : 4310 )
26 #pragma warning ( disable : 4511 )
27 #pragma warning ( disable : 4512 )
28 #pragma warning ( disable : 4127 )
29 
30 #endif // WIN32
31 
32 
36 #ifdef WIN32
37 #define VTKML_TYPENAME
38 #else
39 #define VTKML_TYPENAME typename
40 #endif
41 
42 
43 //--------------- DLL exporting ----------------------
44 #ifdef MLVTK_SUPPORT_EXPORTS
45 
46  // To make functions, classes and other symbols available
47  // on this dll interfaces, they must be exported explicitly
48  // on win32 systems. We add simply MLVTK_EXPORT before
49  // them.
50  #define MLVTK_SUPPORT_EXPORT ML_LIBRARY_EXPORT_ATTRIBUTE
51 
52 #else // else MLVTK_SUPPORT_EXPORT
55  #define MLVTK_SUPPORT_EXPORT ML_LIBRARY_IMPORT_ATTRIBUTE
56 
57 #endif // else MLVTK_SUPPORT_EXPORT