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 _MyVolumeMeshCurvilinear_H 00025 #define _MyVolumeMeshCurvilinear_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/MiGeometryIjk.h> 00122 class MyGeometryIjk : public MiGeometryIjk //, public YourGeometry 00123 // Advised to inherit from the class containing your application geometry. 00124 { 00125 public: 00129 virtual MbVec3d getCoord(size_t i, size_t j, size_t k) const 00130 { 00131 // @ADD YOUR CODE HERE. 00132 } 00133 00137 size_t getTimeStamp() const 00138 { 00139 // @ADD YOUR CODE HERE (see MxTimeStamp). 00140 // When the content of the geometry changes, the time stamp must also change. 00141 // The time stamp allows MeshViz to be aware of any change to this geometry. 00142 } 00143 }; 00144 00145 #include <MeshVizXLM/mesh/MiVolumeMeshCurvilinear.h> 00149 class MyVolumeMeshCurvilinear : public MiVolumeMeshCurvilinear 00150 { 00151 00152 public: 00156 const MiGeometryIjk& getGeometry() const 00157 { 00158 return m_geometry; 00159 } 00160 00164 const MiTopologyIjk& getTopology() const 00165 { 00166 return m_topology; 00167 } 00168 00169 00170 private: 00171 MyGeometryIjk m_geometry; 00172 MyTopologyIjk m_topology; 00173 00174 }; 00175 00176 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00180 class MyScalarSetIjk : public MiScalardSetIjk //, public YourData 00181 // Advised to inherit from the class containing your application data. 00182 { 00183 public: 00184 00188 double get(size_t i,size_t j,size_t k) const 00189 { 00190 // @ADD YOUR CODE HERE. 00191 } 00192 00196 size_t getTimeStamp() const 00197 { 00198 // @ADD YOUR CODE HERE (see MxTimeStamp). 00199 // When the content of the scalar set changes, the time stamp must also change. 00200 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00201 } 00202 00206 std::string getName() const 00207 { 00208 // @ADD YOUR CODE HERE. 00209 } 00210 00214 DataBinding getBinding() const 00215 { 00216 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00217 } 00218 00219 }; 00220 00221 #include <MeshVizXLM/mesh/data/MiDataSetIjk.h> 00225 class MyVectorSetIjk : public MiVec3dSetIjk //, public YourData 00226 // Advised to inherit from the class containing your application data. 00227 { 00228 public: 00229 00233 MbVec3d get(size_t i, size_t j, size_t k) const 00234 { 00235 // @ADD YOUR CODE HERE. 00236 } 00237 00241 size_t getTimeStamp() const 00242 { 00243 // @ADD YOUR CODE HERE (see MxTimeStamp). 00244 // When the content of the vector set changes, the time stamp must also change. 00245 // The time stamp allows MeshViz to be aware of any change to this vector set. 00246 } 00247 00251 std::string getName() const 00252 { 00253 // @ADD YOUR CODE HERE. 00254 } 00255 00259 DataBinding getBinding() const 00260 { 00261 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00262 } 00263 00264 }; 00265 00266 #endif 00267 00268 00269 00270 00271 00272 00273 00274