00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _MBSURFACEMESHCURVILINEAR_H
00025 #define _MBSURFACEMESHCURVILINEAR_H
00026
00027 #ifdef _WIN32
00028 # pragma warning( push )
00029 # pragma warning(disable:4250)
00030 # pragma warning(disable:4251)
00031 #endif
00032
00033 #include <MeshVizXLM/mesh/MiSurfaceMeshCurvilinear.h>
00034 #include <mesh/MbMeshIj.h>
00035
00036 #include <geometry/MbGeometryIj.h>
00037
00048 template <typename _CoordT=MbVec3d, typename _ScalarT=double, typename _Vec3T=MbVec3d>
00049 class MbSurfaceMeshCurvilinear : virtual public MiSurfaceMeshCurvilinear, public MbMeshIj<_ScalarT,_Vec3T>
00050 {
00051 public:
00052
00054 MbSurfaceMeshCurvilinear(size_t numCellI, size_t numCellJ)
00055 : MbMeshIj<_ScalarT,_Vec3T>(numCellI,numCellJ),
00056 m_geometry(numCellI == 0 ? 0 : numCellI + 1, numCellJ == 0 ? 0 : numCellJ + 1)
00057 {
00058 }
00059
00063 virtual void setCoord(size_t i, size_t j, const _CoordT& val )
00064 {
00065 m_geometry.setCoord(i,j,val);
00066 }
00067
00071 virtual const MbGeometryIj<_CoordT>& getGeometry() const
00072 {
00073 return m_geometry;
00074 }
00075
00076 private:
00077 virtual std::ostream& toStream(std::ostream& s) const;
00078
00079 MbGeometryIj<_CoordT> m_geometry;
00080
00081 };
00082
00083
00084 template <typename _CoordT, typename _ScalarT, typename _Vec3T>
00085 inline std::ostream&
00086 MbSurfaceMeshCurvilinear<_CoordT,_ScalarT,_Vec3T>::toStream(std::ostream& s) const
00087 {
00088 MiSurfaceMeshCurvilinear::toStream(s);
00089 MbMeshIj<_ScalarT,_Vec3T>::toStream(s);
00090 return s;
00091 }
00092
00093 #ifdef _WIN32
00094 # pragma warning( pop )
00095 #endif
00096
00097 #endif
00098
00099
00100