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 _MyVolumeMeshRectilinear_H 00025 #define _MyVolumeMeshRectilinear_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/MiVolumeGeometryRectilinear.h> 00122 class MyVolumeGeometryRectilinear : public MiVolumeGeometryRectilinear //, public YourGeometry 00123 // Advised to inherit from the class containing your application geometry. 00124 { 00125 public: 00129 double getX(size_t i) const 00130 { 00131 // @ADD YOUR CODE HERE. 00132 } 00133 00137 double getY(size_t j) const 00138 { 00139 // @ADD YOUR CODE HERE. 00140 } 00141 00145 double getZ(size_t k) const 00146 { 00147 // @ADD YOUR CODE HERE. 00148 } 00149 00153 size_t getTimeStamp() const 00154 { 00155 // @ADD YOUR CODE HERE (see MxTimeStamp). 00156 // When the content of the geometry changes, the time stamp must also change. 00157 // The time stamp allows MeshViz to be aware of any change to this geometry. 00158 } 00159 }; 00160 00161 #include <MeshVizXLM/mesh/MiVolumeMeshRectilinear.h> 00165 class MyVolumeMeshRectilinear : public MiVolumeMeshRectilinear 00166 { 00167 00168 public: 00172 const MiVolumeGeometryRectilinear& getGeometry() const 00173 { 00174 return m_geometry; 00175 } 00176 00180 const MiTopologyIjk& getTopology() const 00181 { 00182 return m_topology; 00183 } 00184 00185 00186 private: 00187 MyVolumeGeometryRectilinear m_geometry; 00188 MyTopologyIjk m_topology; 00189 00190 }; 00191 00192 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00196 class MyScalarSetIjk : public MiScalardSetIjk //, public YourData 00197 // Advised to inherit from the class containing your application data. 00198 { 00199 public: 00200 00204 double get(size_t i,size_t j,size_t k) const 00205 { 00206 // @ADD YOUR CODE HERE. 00207 } 00208 00212 size_t getTimeStamp() const 00213 { 00214 // @ADD YOUR CODE HERE (see MxTimeStamp). 00215 // When the content of the scalar set changes, the time stamp must also change. 00216 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00217 } 00218 00222 std::string getName() const 00223 { 00224 // @ADD YOUR CODE HERE. 00225 } 00226 00230 DataBinding getBinding() const 00231 { 00232 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00233 } 00234 00235 }; 00236 00237 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00241 class MyVectorSetIjk : public MiVec3dSetIjk //, public YourData 00242 // Advised to inherit from the class containing your application data. 00243 { 00244 public: 00245 00249 MbVec3d get(size_t i, size_t j, size_t k) const 00250 { 00251 // @ADD YOUR CODE HERE. 00252 } 00253 00257 size_t getTimeStamp() const 00258 { 00259 // @ADD YOUR CODE HERE (see MxTimeStamp). 00260 // When the content of the vector set changes, the time stamp must also change. 00261 // The time stamp allows MeshViz to be aware of any change to this vector set. 00262 } 00263 00267 std::string getName() const 00268 { 00269 // @ADD YOUR CODE HERE. 00270 } 00271 00275 DataBinding getBinding() const 00276 { 00277 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00278 } 00279 00280 }; 00281 00282 #endif 00283 00284 00285 00286 00287 00288 00289 00290