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 _MyLineMeshRegular_H 00025 #define _MyLineMeshRegular_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 00084 bool isDead(size_t i) const 00085 { 00086 // @ADD YOUR CODE HERE (Optional). 00087 // Required only if the topology has dead cells, remove this method otherwise to use 00088 // the default implementation that always returns false. 00089 } 00090 00094 size_t getTimeStamp() const 00095 { 00096 // @ADD YOUR CODE HERE (see MxTimeStamp). 00097 // When the content of the topology changes, the time stamp must also change. 00098 // The time stamp allows MeshViz to be aware of any change to this topology. 00099 } 00100 00101 }; 00102 00103 #include <MeshVizXLM/mesh/geometry/MiGeometryRegular.h> 00107 class MyGeometryRegular : public MiGeometryRegular 00108 { 00109 public: 00113 MbVec3d getMin() const 00114 { 00115 // @ADD YOUR CODE HERE. 00116 } 00117 00121 MbVec3d getMax() const 00122 { 00123 // @ADD YOUR CODE HERE. 00124 } 00125 00129 size_t getTimeStamp() const 00130 { 00131 // @ADD YOUR CODE HERE (see MxTimeStamp). 00132 // When the content of the geometry changes, the time stamp must also change. 00133 // The time stamp allows MeshViz to be aware of any change to this geometry. 00134 } 00135 }; 00136 00137 #include <MeshVizXLM/mesh/MiLineMeshRegular.h> 00141 class MyLineMeshRegular : public MiLineMeshRegular 00142 { 00143 00144 public: 00148 const MiGeometryRegular& getGeometry() const 00149 { 00150 return m_geometry; 00151 } 00152 00156 const MiTopologyI& getTopology() const 00157 { 00158 return m_topology; 00159 } 00160 00161 00162 private: 00163 MyGeometryRegular m_geometry; 00164 MyTopologyI m_topology; 00165 00166 }; 00167 00168 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00172 class MyScalarSetI : public MiScalardSetI //, public YourData 00173 // Advised to inherit from the class containing your application data. 00174 { 00175 public: 00176 00180 double get(size_t i) const 00181 { 00182 // @ADD YOUR CODE HERE. 00183 } 00184 00188 size_t getTimeStamp() const 00189 { 00190 // @ADD YOUR CODE HERE (see MxTimeStamp). 00191 // When the content of the scalar set changes, the time stamp must also change. 00192 // The time stamp allows MeshViz to be aware of any change to this scalar set. 00193 } 00194 00198 std::string getName() const 00199 { 00200 // @ADD YOUR CODE HERE. 00201 } 00202 00206 DataBinding getBinding() const 00207 { 00208 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00209 } 00210 00211 }; 00212 00213 #include <MeshVizXLM/mesh/data/MiDataSetI.h> 00217 class MyVectorSetI : public MiVec3dSetI //, public YourData 00218 // Advised to inherit from the class containing your application data. 00219 { 00220 public: 00221 00225 MbVec3d get(size_t i) const 00226 { 00227 // @ADD YOUR CODE HERE. 00228 } 00229 00233 size_t getTimeStamp() const 00234 { 00235 // @ADD YOUR CODE HERE (see MxTimeStamp). 00236 // When the content of the vector set changes, the time stamp must also change. 00237 // The time stamp allows MeshViz to be aware of any change to this vector set. 00238 } 00239 00243 std::string getName() const 00244 { 00245 // @ADD YOUR CODE HERE. 00246 } 00247 00251 DataBinding getBinding() const 00252 { 00253 // @ADD YOUR CODE HERE (see MiDataSet::DataBinding). 00254 } 00255 00256 }; 00257 00258 #endif 00259 00260 00261 00262 00263 00264 00265 00266