00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _MOMESHVIZDATAMAPPING_H
00024 #define _MOMESHVIZDATAMAPPING_H
00025
00026 #include <MeshVizXLM/MxMeshIViz.h>
00027
00028 #include <Inventor/sys/port.h>
00029
00030 #ifdef _WIN32
00031 # include <SoVersion.h>
00032 # if defined(_DEBUG)
00033 # define __MESHVIZDMDLL "MeshVizDataMappingD.dll"
00034 # define __MESHVIZDMLIB "MeshVizDataMappingD.lib"
00035 # else
00036 # define __MESHVIZDMDLL "MeshVizDataMapping.dll"
00037 # define __MESHVIZDMLIB "MeshVizDataMapping.lib"
00038 # endif
00039
00040
00041 # ifdef MeshVizDataMapping_EXPORTS
00042 # define MESHIVIZDM_API VC_DLL_EXPORT
00043 # else
00044 # define MESHIVIZDM_API VC_DLL_IMPORT
00045 # ifndef OIV_DISABLE_AUTOLINK
00046 # pragma comment(lib,__MESHVIZDMLIB)
00047 # endif
00048 # endif
00049 #else
00050 # define MESHIVIZDM_API GCC_DLLEXPORT
00051 # define __MESHVIZDMDLL "libMeshVizDataMapping"
00052 #endif
00053
00054 #include <Inventor/actions/SoCallbackAction.h>
00055 #include <Inventor/actions/SoGLRenderAction.h>
00056 #include <Inventor/actions/SoGetMatrixAction.h>
00057 #include <Inventor/actions/SoSearchAction.h>
00058 #include <Inventor/actions/SoGetBoundingBoxAction.h>
00059 #include <Inventor/actions/SoWriteAction.h>
00060 #include <Inventor/actions/SoHandleEventAction.h>
00061 #include <Inventor/actions/SoPickAction.h>
00062 #include <Inventor/actions/SoGetPrimitiveCountAction.h>
00063
00064 #include <Inventor/SoModule.h>
00065 SO_MODULE_HEADER(SoMeshVizDataMapping, __MESHVIZDMDLL)
00066
00067
00068 #define MO_ENABLE_ELT_ALL_ACTIONS(_elt)\
00069 SO_ENABLE(SoCallbackAction, _elt);\
00070 SO_ENABLE(SoGLRenderAction, _elt);\
00071 SO_ENABLE(SoGetMatrixAction, _elt);\
00072 SO_ENABLE(SoSearchAction, _elt);\
00073 SO_ENABLE(SoGetBoundingBoxAction, _elt);\
00074 SO_ENABLE(SoWriteAction, _elt);\
00075 SO_ENABLE(SoHandleEventAction, _elt);\
00076 SO_ENABLE(SoPickAction, _elt);\
00077 SO_ENABLE(SoGetPrimitiveCountAction, _elt);
00078
00085 enum MeshType {
00086 VOLUME_MESH_UNSTRUCTURED,
00087 VOLUME_MESH_UNSTRUCTURED_IJK,
00088 VOLUME_MESH_HEXAHEDRON_IJK,
00089 HEXAHEDRON_MESH_IJK,
00090 VOLUME_MESH_REGULAR,
00091 VOLUME_MESH_RECTILINEAR,
00092 VOLUME_MESH_CURVILINEAR,
00093 SURFACE_MESH_UNSTRUCTURED,
00094 SURFACE_MESH_REGULAR,
00095 SURFACE_MESH_RECTILINEAR,
00096 SURFACE_MESH_CURVILINEAR,
00097 LINE_MESH_UNSTRUCTURED,
00098 LINE_MESH_REGULAR,
00099 LINE_MESH_CURVILINEAR,
00100 POINT_MESH_CURVILINEAR,
00101 UNDEFINED_MESH
00102 };
00103
00110 enum CellFilterType {
00111 CELL_FILTER_I,
00112 CELL_FILTER_IJ,
00113 CELL_FILTER_IJK,
00114 UNDEFINED_CELL_FILTER
00115 };
00116
00117 #endif
00118
00119
00120