00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2018 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 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/MoMeshSurfaceRepresentation.h> 00030 00031 #ifdef _WIN32 00032 #pragma warning(push) 00033 #pragma warning(disable:4251) 00034 #pragma warning(disable:4996) 00035 #endif 00036 00037 class MiInterpolatedLogicalSliceExtractHexahedronIjk; 00038 class MiInterpolatedLogicalSliceExtract; 00039 00073 class MESHVIZXLM_DMAP_API MoMeshInterpolatedLogicalSlice : public MoMeshSurfaceRepresentation { 00074 00075 SO_NODE_HEADER(MoMeshInterpolatedLogicalSlice) ; 00076 00077 public: 00078 00082 MoMeshInterpolatedLogicalSlice() ; 00083 00087 SoSFFloat sliceValue; 00088 00093 SoSFEnum sliceAxis; 00094 00100 const MiInterpolatedLogicalSliceExtractHexahedronIjk* getHexahedronIjkExtractor(); 00101 const MiInterpolatedLogicalSliceExtract* getIjkExtractor(); 00102 00103 #if 1 SoDEPRECATED 00105 const MiInterpolatedLogicalSliceExtractHexahedronIjk* getUnstructuredIjkExtractor(); 00106 #endif 00108 #if 1 class SoDEPRECATED SliceAxis 00111 { 00112 public: 00113 static const MiMesh::Dimension SLICE_I = MiMesh::DIMENSION_I; 00114 static const MiMesh::Dimension SLICE_J = MiMesh::DIMENSION_J; 00115 static const MiMesh::Dimension SLICE_K = MiMesh::DIMENSION_K; 00117 // constructors + operators 00118 SliceAxis() : m_axis(MiMesh::DIMENSION_I) {} 00119 SliceAxis(MiMesh::Dimension a) : m_axis(a) {} 00120 SliceAxis(int a) : m_axis((MiMesh::Dimension)a) {} 00121 SliceAxis(size_t a) : m_axis((MiMesh::Dimension)a) {} 00122 operator MiMesh::Dimension() const { return m_axis; } 00123 00124 private: 00125 MiMesh::Dimension m_axis; 00126 }; 00127 SoDEPRECATED 00129 static const MiMesh::Dimension SLICE_I = MiMesh::DIMENSION_I; SoDEPRECATED 00132 static const MiMesh::Dimension SLICE_J = MiMesh::DIMENSION_J; SoDEPRECATED 00135 static const MiMesh::Dimension SLICE_K = MiMesh::DIMENSION_K; 00137 #endif 00139 /*----------------------------------------------------------------------------*/ 00140 private: 00141 static void initClass() ; 00142 static void exitClass() ; 00143 00144 private: 00145 virtual void doExtract(SoAction *action); 00146 00147 } ; 00148 00149 #ifdef _WIN32 00150 #pragma warning(pop) 00151 #endif 00152 00153 #endif /* _MO_MESHINTERPOLATEDLOGICALSLICE_ */ 00154 00155 00156 00157