00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _MO_MESHINTERPOLATEDLOGICALSLICE_
00024 #define _MO_MESHINTERPOLATEDLOGICALSLICE_
00025
00026 #include <MeshVizXLM/MbVec3.h>
00027 #include <MeshVizXLM/extractors/MiBaseLogicalSliceExtract.h>
00028
00029 #include <MeshVizXLM/mapping/nodes/MoMeshRepresentation.h>
00030
00031 #include <Inventor/fields/SoSFPlane.h>
00032
00033 #ifdef _WIN32
00034 #pragma warning(push)
00035 #pragma warning(disable:4251)
00036 #pragma warning(disable:4996)
00037 #endif
00038
00039 class MiInterpolatedLogicalSliceExtractUnstructuredIjk;
00040 class MiInterpolatedLogicalSliceExtract;
00041 class MiVolumeMeshUnstructuredIjk;
00042 class MiVolumeMeshHexahedronIjk;
00043 class MiVolumeMeshRegular;
00044 class MiVolumeMeshRectilinear;
00045 class MiVolumeMeshCurvilinear;
00046
00080 class MESHIVIZDM_API MoMeshInterpolatedLogicalSlice : public MoMeshRepresentation {
00081
00082 SO_NODE_HEADER(MoMeshInterpolatedLogicalSlice) ;
00083
00084 public:
00085
00089 MoMeshInterpolatedLogicalSlice() ;
00090
00094 SoSFFloat sliceValue;
00095
00100 SoSFEnum sliceAxis;
00101
00107 const MiInterpolatedLogicalSliceExtractUnstructuredIjk* getUnstructuredIjkExtractor();
00108 const MiInterpolatedLogicalSliceExtract* getIjkExtractor();
00109
00110 #if 1 class SoDEPRECATED SliceAxis
00113 {
00114 public:
00115 static const MiMesh::Dimension SLICE_I = MiMesh::DIMENSION_I;
00116 static const MiMesh::Dimension SLICE_J = MiMesh::DIMENSION_J;
00117 static const MiMesh::Dimension SLICE_K = MiMesh::DIMENSION_K;
00119
00120 SliceAxis() : m_axis(MiMesh::DIMENSION_I) {}
00121 SliceAxis(MiMesh::Dimension a) : m_axis(a) {}
00122 SliceAxis(int a) : m_axis((MiMesh::Dimension)a) {}
00123 SliceAxis(size_t a) : m_axis((MiMesh::Dimension)a) {}
00124 operator MiMesh::Dimension() const { return m_axis; }
00125
00126 private:
00127 MiMesh::Dimension m_axis;
00128 };
00129 SoDEPRECATED
00131 static const MiMesh::Dimension SLICE_I = MiMesh::DIMENSION_I; SoDEPRECATED
00134 static const MiMesh::Dimension SLICE_J = MiMesh::DIMENSION_J; SoDEPRECATED
00137 static const MiMesh::Dimension SLICE_K = MiMesh::DIMENSION_K;
00139 #endif
00141
00142 private:
00143 static void initClass() ;
00144 static void exitClass() ;
00145
00146 private:
00147 virtual void doExtract(SoAction *action);
00148 virtual const MiMesh* getExtractedMesh(MeshType& meshType);
00149
00150
00151 virtual const MiScalardSetI* extractScalarSetI(SoState * state,size_t scalarSetId) ;
00152
00153
00154 virtual const MiVec3dSetI* extractVec3SetI(SoState * state,size_t vec3SetId) ;
00155
00156 private:
00157 virtual ~MoMeshInterpolatedLogicalSlice() ;
00158
00159 virtual void clear();
00160
00161 template<typename _MeshInterface, typename _Extractor, typename _ScalarSet, typename _CellFilter>
00162 void doExtract(SoState * state,const _MeshInterface* mesh, _Extractor** extractor);
00163
00164 template<typename _Extractor, typename _ScalarSet, typename _CellFilter>
00165 void extract(SoState * state, _Extractor* extractor, const std::vector<const MiScalardSet*>& colorSets, const _CellFilter *cellFilter);
00166
00167
00168 MiInterpolatedLogicalSliceExtractUnstructuredIjk* m_interpolatedLogicalSliceExtractUIjk;
00169 MiInterpolatedLogicalSliceExtract* m_interpolatedLogicalSliceExtractIjk;
00170
00171 } ;
00172
00173 #ifdef _WIN32
00174 #pragma warning(pop)
00175 #endif
00176
00177 #endif
00178
00179
00180
00181