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 _MyLineMeshCurvilinear_H 00025 #define _MyLineMeshCurvilinear_H 00026 00051 #include <MeshVizXLM/mesh/topology/MiTopologyI.h> 00055 class MyTopologyI : public MiTopologyI 00056 { 00057 public: 00061 size_t getNumCells() const 00062 { 00063 // @ADD YOUR CODE HERE. 00064 } 00065 00071 bool hasDeadCells() const 00072 { 00073 // @ADD YOUR CODE HERE (Optional). 00074 // Required only if the topology has dead cells, remove this method otherwise to use 00075 // the default implementation that always returns false. 00076 } 00077 00083 bool isDead(size_t i) const 00084 { 00085 // @ADD YOUR CODE HERE (Optional). 00086 // Required only if the topology has dead cells, remove this method otherwise to use 00087 // the default implementation that always returns false. 00088 } 00089 00093 size_t getTimeStamp() const 00094 { 00095 // @ADD YOUR CODE HERE (see MxTimeStamp). 00096 // When the content of the topology changes, the time stamp must also change. 00097 // The time stamp allows MeshViz to be aware of any change to this topology. 00098 } 00099 00100 00101 }; 00102 00103 #include <MeshVizXLM/mesh/geometry/MiGeometryI.h> 00107 class MyGeometryI : public MiGeometryI //, public YourGeometry 00108 // Advised to inherit from the class containing your application geometry. 00109 { 00110 public: 00114 virtual MbVec3d getCoord(size_t i) const 00115 { 00116 // @ADD YOUR CODE HERE. 00117 } 00118 00122 size_t getTimeStamp() const 00123 { 00124 // @ADD YOUR CODE HERE (see MxTimeStamp). 00125 // When the content of the geometry changes, the time stamp must also change. 00126 // The time stamp allows MeshViz to be aware of any change to this geometry. 00127 } 00128 }; 00129 00130 #include <MeshVizXLM/mesh/MiLineMeshCurvilinear.h> 00134 class MyLineMeshCurvilinear : public MiLineMeshCurvilinear 00135 { 00136 00137 public: 00141 const MiGeometryI& getGeometry() const 00142 { 00143 return m_geometry; 00144 } 00145 00149 const MiTopologyI& getTopology() const 00150 { 00151 return m_topology; 00152 } 00153 00154 00155 private: 00156 MyGeometryI m_geometry; 00157 MyTopologyI m_topology; 00158 00159 }; 00160 00161 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00165 class MyScalarSetI : public MiScalardSetI //, public YouData 00166 // Advised to inherit from the class containing your application data. 00167 { 00168 public: 00169 00173 double get(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 scalar set changes, the time stamp must also change. 00185 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00186 } 00187 00191 std::string getName() const 00192 { 00193 // @ADD YOUR CODE HERE. 00194 } 00195 00199 DataBinding getBinding() const 00200 { 00201 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00202 } 00203 00204 }; 00205 00206 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00210 class MyVectorSetI : public MiVec3dSetI //, public YourData 00211 // Advised to inherit from the class containing your application data. 00212 { 00213 public: 00214 00218 MbVec3d get(size_t i) const 00219 { 00220 // @ADD YOUR CODE HERE. 00221 } 00222 00226 size_t getTimeStamp() const 00227 { 00228 // @ADD YOUR CODE HERE (see MxTimeStamp). 00229 // When the content of the vector set changes, the time stamp must also change. 00230 // The time stamp allows MeshViz to be aware of any change to this vector set. 00231 } 00232 00236 std::string getName() const 00237 { 00238 // @ADD YOUR CODE HERE. 00239 } 00240 00244 DataBinding getBinding() const 00245 { 00246 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00247 } 00248 00249 }; 00250 00251 #endif 00252 00253 00254 00255 00256 00257 00258 00259