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 _MyVolumeMeshRegular_H 00025 #define _MyVolumeMeshRegular_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/MiGeometryRegular.h> 00122 class MyGeometryRegular : public MiGeometryRegular 00123 { 00124 public: 00128 MbVec3d getMin() const 00129 { 00130 // @ADD YOUR CODE HERE. 00131 } 00132 00136 MbVec3d getMax() const 00137 { 00138 // @ADD YOUR CODE HERE. 00139 } 00140 00144 size_t getTimeStamp() const 00145 { 00146 // @ADD YOUR CODE HERE (see MxTimeStamp). 00147 // When the content of the geometry changes, the time stamp must also change. 00148 // The time stamp allows MeshViz to be aware of any change to this geometry. 00149 } 00150 }; 00151 00152 #include <MeshVizXLM/mesh/MiVolumeMeshRegular.h> 00156 class MyVolumeMeshRegular : public MiVolumeMeshRegular 00157 { 00158 00159 public: 00163 const MiGeometryRegular& getGeometry() const 00164 { 00165 return m_geometry; 00166 } 00167 00171 const MiTopologyIjk& getTopology() const 00172 { 00173 return m_topology; 00174 } 00175 00176 00177 private: 00178 MyGeometryRegular m_geometry; 00179 MyTopologyIjk m_topology; 00180 00181 }; 00182 00183 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00187 class MyScalarSetIjk : public MiScalardSetIjk //, public YourData 00188 // Advised to inherit from the class containing your application data. 00189 { 00190 public: 00191 00195 double get(size_t i,size_t j,size_t k) const 00196 { 00197 // @ADD YOUR CODE HERE. 00198 } 00199 00203 size_t getTimeStamp() const 00204 { 00205 // @ADD YOUR CODE HERE (see MxTimeStamp). 00206 // When the content of the scalar set changes, the time stamp must also change. 00207 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00208 } 00209 00213 std::string getName() const 00214 { 00215 // @ADD YOUR CODE HERE. 00216 } 00217 00221 DataBinding getBinding() const 00222 { 00223 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00224 } 00225 00226 }; 00227 00228 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00232 class MyVectorSetIjk : public MiVec3dSetIjk //, public YourData 00233 // Advised to inherit from the class containing your application data. 00234 { 00235 public: 00236 00240 MbVec3d get(size_t i, size_t j, size_t k) const 00241 { 00242 // @ADD YOUR CODE HERE. 00243 } 00244 00248 size_t getTimeStamp() const 00249 { 00250 // @ADD YOUR CODE HERE (see MxTimeStamp). 00251 // When the content of the vector set changes, the time stamp must also change. 00252 // The time stamp allows MeshViz to be aware of any change to this vector set. 00253 } 00254 00258 std::string getName() const 00259 { 00260 // @ADD YOUR CODE HERE. 00261 } 00262 00266 DataBinding getBinding() const 00267 { 00268 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00269 } 00270 00271 }; 00272 00273 #endif 00274 00275 00276 00277 00278 00279 00280 00281