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 _MyLineMeshUnstructured_H 00025 #define _MyLineMeshUnstructured_H 00026 00052 #include <MeshVizXLM/mesh/cell/MiLineCell.h> 00056 class MyLineCell : public MiLineCell 00057 { 00058 public: 00062 size_t getNumNodes() const 00063 { 00064 // @ADD YOUR CODE HERE. 00065 } 00066 00071 size_t getNodeIndex(size_t node) const 00072 { 00073 // @ADD YOUR CODE HERE. 00074 } 00075 00076 }; 00077 00078 #include <MeshVizXLM/mesh/topology/MiLineTopologyExplicitI.h> 00082 class MyLineTopologyExplicitI : public MiLineTopologyExplicitI 00083 { 00084 public: 00088 size_t getNumCells() const 00089 { 00090 // @ADD YOUR CODE HERE. 00091 } 00092 00098 bool hasDeadCells() const 00099 { 00100 // @ADD YOUR CODE HERE (Optional). 00101 // Required only if the topology has dead cells, remove this method otherwise to use 00102 // the default implementation that always returns false. 00103 } 00104 00110 bool isDead(size_t i) const 00111 { 00112 // @ADD YOUR CODE HERE (Optional). 00113 // Required only if the topology has dead cells, remove this method otherwise to use 00114 // the default implementation that always returns false. 00115 } 00116 00121 const MiLineCell* getCell(size_t id) const 00122 { 00123 // @ADD YOUR CODE HERE. 00124 // For instance, can return an instance of MyLineCell. 00125 } 00126 00133 size_t getEndNodeId() const 00134 { 00135 // @ADD YOUR CODE HERE. 00136 } 00137 00144 size_t getBeginNodeId() const 00145 { 00146 // @ADD YOUR CODE HERE (Optional). 00147 // Remove this method to use the default implementation that returns 0. 00148 } 00149 00153 size_t getTimeStamp() const 00154 { 00155 // @ADD YOUR CODE HERE (see MxTimeStamp). 00156 // When the content of the topology changes, the time stamp must also change. 00157 // The time stamp allows MeshViz to be aware of any change to this topology. 00158 } 00159 00160 }; 00161 00162 #include <MeshVizXLM/mesh/geometry/MiGeometryI.h> 00166 class MyGeometryI : public MiGeometryI //, public YourGeometry 00167 // Advised to inherit from the class containing your application geometry. 00168 { 00169 public: 00173 MbVec3d getCoord(size_t i) const 00174 { 00175 // @ADD YOUR CODE HERE. 00176 } 00177 00181 size_t getTimeStamp() const 00182 { 00183 // @ADD YOUR CODE HERE (see MxTimeStamp). 00184 // When the content of the geometry changes, the time stamp must also change. 00185 // The time stamp allows MeshViz to be aware of any change to this geometry. 00186 } 00187 }; 00188 00189 #include <MeshVizXLM/mesh/MiLineMeshUnstructured.h> 00193 class MyLineMeshUnstructured : public MiLineMeshUnstructured 00194 { 00195 00196 public: 00200 const MiGeometryI& getGeometry() const 00201 { 00202 return m_geometry; 00203 } 00204 00208 const MiLineTopologyExplicitI& getTopology() const 00209 { 00210 return m_topology; 00211 } 00212 00213 00214 private: 00215 MyGeometryI m_geometry; 00216 MyLineTopologyExplicitI m_topology; 00217 00218 }; 00219 00220 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00224 class MyScalarSetI : public MiScalardSetI //, public YourData 00225 // Advised to inherit from the class containing your application data. 00226 { 00227 public: 00228 00232 double get(size_t i) const 00233 { 00234 // @ADD YOUR CODE HERE. 00235 } 00236 00240 size_t getTimeStamp() const 00241 { 00242 // @ADD YOUR CODE HERE (see MxTimeStamp). 00243 // When the content of the scalar set changes, the time stamp must also change. 00244 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00245 } 00246 00250 std::string getName() const 00251 { 00252 // @ADD YOUR CODE HERE. 00253 } 00254 00258 DataBinding getBinding() const 00259 { 00260 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00261 } 00262 00263 }; 00264 00265 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00269 class MyVectorSetI : public MiVec3dSetI //, public YourData 00270 // Advised to inherit from the class containing your application data. 00271 { 00272 public: 00273 00277 MbVec3d get(size_t i) const 00278 { 00279 // @ADD YOUR CODE HERE. 00280 } 00281 00285 size_t getTimeStamp() const 00286 { 00287 // @ADD YOUR CODE HERE (see MxTimeStamp). 00288 // When the content of the vector set changes, the time stamp must also change. 00289 // The time stamp allows MeshViz to be aware of any change to this vector set. 00290 } 00291 00295 std::string getName() const 00296 { 00297 // @ADD YOUR CODE HERE. 00298 } 00299 00303 DataBinding getBinding() const 00304 { 00305 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00306 } 00307 00308 }; 00309 00310 00311 #endif 00312 00313 00314 00315 00316 00317 00318 00319