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-2017 BY FEI S.A.S, *** 00017 *** MERIGNAC, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Martial Bonaventure (Mar 2010) 00022 **=======================================================================*/ 00023 00024 #ifndef _MyVolumeMeshVertexHexahedronIjk_H 00025 #define _MyVolumeMeshVertexHexahedronIjk_H 00026 00051 #include <MeshVizXLM/mesh/topology/MiTopologyIjk.h> 00055 class MyTopologyIjk : public MiTopologyIjk 00056 { 00057 public: 00061 size_t getNumCellsI() const 00062 { 00063 // @ADD YOUR CODE HERE. 00064 } 00065 00069 size_t getNumCellsJ() const 00070 { 00071 // @ADD YOUR CODE HERE. 00072 } 00073 00077 size_t getNumCellsK() const 00078 { 00079 // @ADD YOUR CODE HERE. 00080 } 00081 00087 bool hasDeadCells() const 00088 { 00089 // @ADD YOUR CODE HERE (Optional). 00090 // Required only if the topology has dead cells, remove this method otherwise to use 00091 // the default implementation that always returns false. 00092 } 00093 00099 bool isDead(size_t i,size_t j, size_t k) const 00100 { 00101 // @ADD YOUR CODE HERE (Optional). 00102 // Required only if the topology has dead cells, remove this method otherwise to use 00103 // the default implementation that always returns false. 00104 } 00105 00109 size_t getTimeStamp() const 00110 { 00111 // @ADD YOUR CODE HERE (see MxTimeStamp). 00112 // When the content of the topology changes, the time stamp must also change. 00113 // The time stamp allows MeshViz to be aware of any change to this topology. 00114 } 00115 00116 }; 00117 00118 #include <MeshVizXLM/mesh/geometry/MiGeometryHexahedronIjk.h> 00122 class MyGeometryHexahedronIjk : public MiGeometryHexahedronIjk //, public YourGeometry 00123 // Advised to inherit from the class containing your application geometry. 00124 { 00125 public: 00134 void getCellCoords(size_t i, size_t j, size_t k, MbVec3d& v0, MbVec3d& v1, MbVec3d& v2, MbVec3d& v3, 00135 MbVec3d& v4, MbVec3d& v5, MbVec3d& v6, MbVec3d& v7) const 00136 { 00137 // @ADD YOUR CODE HERE. 00138 // The vertices of each hexahedron must be numbered as follows : 00139 // - The first 4 vertices define the "bottom" face of the hexahedron. 00140 // This face is on the logical IJ plane K=k. 00141 // - The last 4 vertices define the "top" face of the hexahedron. 00142 // This face is on the logical IJ plane K=k+1. 00143 } 00144 00148 size_t getTimeStamp() const 00149 { 00150 // @ADD YOUR CODE HERE (see MxTimeStamp). 00151 // When the content of the geometry changes, the time stamp must also change. 00152 // The time stamp allows MeshViz to be aware of any change to this geometry. 00153 } 00154 }; 00155 00156 #include <MeshVizXLM/mesh/MiVolumeMeshVertexHexahedronIjk.h> 00160 class MyVolumeMeshVertexHexahedronIjk : public MiVolumeMeshVertexHexahedronIjk 00161 { 00162 00163 public: 00167 const MiGeometryHexahedronIjk& getGeometry() const 00168 { 00169 return m_geometry; 00170 } 00171 00175 const MiTopologyIjk& getTopology() const 00176 { 00177 return m_topology; 00178 } 00179 00180 00181 private: 00182 MyGeometryHexahedronIjk m_geometry; 00183 MyTopologyIjk m_topology; 00184 00185 }; 00186 00187 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00191 class MyScalarSetIjk : public MiScalardSetIjk //, public YourData 00192 // Advised to inherit from the class containing your application data. 00193 { 00194 public: 00195 00199 double get(size_t i,size_t j,size_t k) const 00200 { 00201 // @ADD YOUR CODE HERE. 00202 } 00203 00207 size_t getTimeStamp() const 00208 { 00209 // @ADD YOUR CODE HERE (see MxTimeStamp). 00210 // When the content of the scalar set changes, the time stamp must also change. 00211 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00212 } 00213 00217 std::string getName() const 00218 { 00219 // @ADD YOUR CODE HERE. 00220 } 00221 00225 DataBinding getBinding() const 00226 { 00227 return MiDataSet::PER_CELL; 00228 } 00229 00230 }; 00231 00232 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00236 class MyVectorSetIjk : public MiVec3dSetIjk //, public YourData 00237 // Advised to inherit from the class containing your application data. 00238 { 00239 public: 00240 00244 MbVec3d get(size_t i, size_t j, size_t k) const 00245 { 00246 // @ADD YOUR CODE HERE. 00247 } 00248 00252 size_t getTimeStamp() const 00253 { 00254 // @ADD YOUR CODE HERE (see MxTimeStamp). 00255 // When the content of the vector set changes, the time stamp must also change. 00256 // The time stamp allows MeshViz to be aware of any change to this vector set. 00257 } 00258 00262 std::string getName() const 00263 { 00264 // @ADD YOUR CODE HERE. 00265 } 00266 00270 DataBinding getBinding() const 00271 { 00272 return MiDataSet::PER_CELL; 00273 } 00274 00275 }; 00276 00277 #endif 00278 00279 00280 00281 00282 00283 00284 00285