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 _MySurfaceMeshCurvilinear_H 00025 #define _MySurfaceMeshCurvilinear_H 00026 00051 #include <MeshVizXLM/mesh/topology/MiTopologyIj.h> 00052 00056 class MyTopologyIj : public MiTopologyIj 00057 { 00058 public: 00062 size_t getNumCellsI() const 00063 { 00064 // @ADD YOUR CODE HERE. 00065 } 00066 00070 size_t getNumCellsJ() const 00071 { 00072 // @ADD YOUR CODE HERE. 00073 } 00074 00080 bool hasDeadCells() const 00081 { 00082 // @ADD YOUR CODE HERE (Optional). 00083 // Required only if the topology has dead cells, remove this method otherwise to use 00084 // the default implementation that always returns false. 00085 } 00086 00092 bool isDead(size_t i,size_t j) const 00093 { 00094 // @ADD YOUR CODE HERE (Optional). 00095 // Required only if the topology has dead cells, remove this method otherwise to use 00096 // the default implementation that always returns false. 00097 } 00098 00102 size_t getTimeStamp() const 00103 { 00104 // @ADD YOUR CODE HERE (see MxTimeStamp). 00105 // When the content of the topology changes, the time stamp must also change. 00106 // The time stamp allows MeshViz to be aware of any change to this topology. 00107 } 00108 00109 }; 00110 00111 #include <MeshVizXLM/mesh/geometry/MiGeometryIj.h> 00115 class MyGeometryIj : public MiGeometryIj //, public YourGeometry 00116 // Advised to inherit from the class containing your application geometry. 00117 { 00118 public: 00122 virtual MbVec3d getCoord(size_t i, size_t j) const 00123 { 00124 // @ADD YOUR CODE HERE. 00125 } 00126 00130 size_t getTimeStamp() const 00131 { 00132 // @ADD YOUR CODE HERE (see MxTimeStamp). 00133 // When the content of the geometry changes, the time stamp must also change. 00134 // The time stamp allows MeshViz to be aware of any change to this geometry. 00135 } 00136 }; 00137 00138 #include <MeshVizXLM/mesh/MiSurfaceMeshCurvilinear.h> 00142 class MySurfaceMeshCurvilinear : public MiSurfaceMeshCurvilinear 00143 { 00144 00145 public: 00149 const MiGeometryIj& getGeometry() const 00150 { 00151 return m_geometry; 00152 } 00153 00157 const MiTopologyIj& getTopology() const 00158 { 00159 return m_topology; 00160 } 00161 00162 00163 private: 00164 MyGeometryIj m_geometry; 00165 MyTopologyIj m_topology; 00166 00167 }; 00168 00169 #include <MeshVizXLM/mesh/data/MiDataSetIj.h> 00173 class MyScalarSetIj : public MiScalardSetIj //, public YourData 00174 // Advised to inherit from the class containing your application data. 00175 { 00176 public: 00177 00181 double get(size_t i,size_t j) const 00182 { 00183 // @ADD YOUR CODE HERE. 00184 } 00185 00189 size_t getTimeStamp() const 00190 { 00191 // @ADD YOUR CODE HERE (see MxTimeStamp). 00192 // When the content of the scalar set changes, the time stamp must also change. 00193 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00194 } 00195 00199 std::string getName() const 00200 { 00201 // @ADD YOUR CODE HERE. 00202 } 00203 00207 DataBinding getBinding() const 00208 { 00209 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00210 } 00211 00212 }; 00213 00214 #include <MeshVizXLM/mesh/data/MiDataSetIj.h> 00218 class MyVectorSetIj : public MiVec3dSetIj //, public YourData 00219 // Advised to inherit from the class containing your application data. 00220 { 00221 public: 00222 00226 MbVec3d get(size_t i, size_t j) const 00227 { 00228 // @ADD YOUR CODE HERE. 00229 } 00230 00234 size_t getTimeStamp() const 00235 { 00236 // @ADD YOUR CODE HERE (see MxTimeStamp). 00237 // When the content of the vector set changes, the time stamp must also change. 00238 // The time stamp allows MeshViz to be aware of any change to this vector set. 00239 } 00240 00244 std::string getName() const 00245 { 00246 // @ADD YOUR CODE HERE. 00247 } 00248 00252 DataBinding getBinding() const 00253 { 00254 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00255 } 00256 00257 }; 00258 00259 #endif 00260 00261 00262 00263 00264 00265 00266 00267