Class xlifepp::Volume#

class Volume : public xlifepp::Geometry#

Inheritence diagram for xlifepp::Volume:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "4" [label="xlifepp::Ball" tooltip="xlifepp::Ball"] "12" [label="xlifepp::Cone" tooltip="xlifepp::Cone"] "9" [label="xlifepp::Cube" tooltip="xlifepp::Cube"] "8" [label="xlifepp::Cuboid" tooltip="xlifepp::Cuboid"] "14" [label="xlifepp::Cylinder" tooltip="xlifepp::Cylinder"] "3" [label="xlifepp::Ellipsoid" tooltip="xlifepp::Ellipsoid"] "2" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "6" [label="xlifepp::Hexahedron" tooltip="xlifepp::Hexahedron"] "7" [label="xlifepp::Parallelepiped" tooltip="xlifepp::Parallelepiped"] "5" [label="xlifepp::Polyhedron" tooltip="xlifepp::Polyhedron"] "15" [label="xlifepp::Prism" tooltip="xlifepp::Prism"] "13" [label="xlifepp::Pyramid" tooltip="xlifepp::Pyramid"] "17" [label="xlifepp::RevCone" tooltip="xlifepp::RevCone"] "18" [label="xlifepp::RevCylinder" tooltip="xlifepp::RevCylinder"] "16" [label="xlifepp::RevTrunk" tooltip="xlifepp::RevTrunk"] "10" [label="xlifepp::Tetrahedron" tooltip="xlifepp::Tetrahedron"] "11" [label="xlifepp::Trunk" tooltip="xlifepp::Trunk"] "1" [label="xlifepp::Volume" tooltip="xlifepp::Volume" fillcolor="#BFBFBF"] "4" -> "3" [dir=forward tooltip="public-inheritance"] "12" -> "11" [dir=forward tooltip="public-inheritance"] "9" -> "8" [dir=forward tooltip="public-inheritance"] "8" -> "7" [dir=forward tooltip="public-inheritance"] "14" -> "11" [dir=forward tooltip="public-inheritance"] "3" -> "1" [dir=forward tooltip="public-inheritance"] "6" -> "5" [dir=forward tooltip="public-inheritance"] "7" -> "6" [dir=forward tooltip="public-inheritance"] "5" -> "1" [dir=forward tooltip="public-inheritance"] "15" -> "14" [dir=forward tooltip="public-inheritance"] "13" -> "12" [dir=forward tooltip="public-inheritance"] "17" -> "16" [dir=forward tooltip="public-inheritance"] "18" -> "16" [dir=forward tooltip="public-inheritance"] "16" -> "11" [dir=forward tooltip="public-inheritance"] "10" -> "5" [dir=forward tooltip="public-inheritance"] "11" -> "1" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Volume:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "21" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"] "14" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "18" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "29" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"] "38" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"] "10" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"] "8" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"] "37" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"] "39" [label="std::list< T >" tooltip="std::list< T >"] "9" [label="std::map< K, T >" tooltip="std::map< K, T >"] "5" [label="std::vector< T >" tooltip="std::vector< T >"] "24" [label="std::vector< T >" tooltip="std::vector< T >"] "17" [label="std::vector< K >" tooltip="std::vector< K >"] "4" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"] "20" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "25" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "15" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "34" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"] "11" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "22" [label="std::vector< string_t >" tooltip="std::vector< string_t >"] "33" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"] "32" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"] "36" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"] "7" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"] "26" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"] "30" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"] "3" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"] "23" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"] "12" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"] "40" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"] "2" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"] "16" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "31" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"] "6" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"] "35" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"] "28" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"] "27" [label="xlifepp::Point" tooltip="xlifepp::Point"] "13" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "19" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "1" [label="xlifepp::Volume" tooltip="xlifepp::Volume" fillcolor="#BFBFBF"] "21" -> "22" [dir=forward tooltip="public-inheritance"] "21" -> "23" [dir=forward tooltip="template-instance"] "14" -> "15" [dir=forward tooltip="public-inheritance"] "14" -> "16" [dir=forward tooltip="template-instance"] "18" -> "15" [dir=forward tooltip="public-inheritance"] "18" -> "19" [dir=forward tooltip="template-instance"] "29" -> "30" [dir=forward tooltip="public-inheritance"] "29" -> "19" [dir=forward tooltip="template-instance"] "38" -> "39" [dir=forward tooltip="template-instance"] "10" -> "9" [dir=forward tooltip="template-instance"] "8" -> "9" [dir=forward tooltip="template-instance"] "37" -> "9" [dir=forward tooltip="template-instance"] "17" -> "5" [dir=forward tooltip="template-instance"] "4" -> "5" [dir=forward tooltip="template-instance"] "20" -> "5" [dir=forward tooltip="template-instance"] "25" -> "5" [dir=forward tooltip="template-instance"] "15" -> "5" [dir=forward tooltip="template-instance"] "34" -> "5" [dir=forward tooltip="template-instance"] "11" -> "5" [dir=forward tooltip="template-instance"] "22" -> "5" [dir=forward tooltip="template-instance"] "33" -> "5" [dir=forward tooltip="template-instance"] "32" -> "5" [dir=forward tooltip="template-instance"] "36" -> "5" [dir=forward tooltip="template-instance"] "7" -> "5" [dir=forward tooltip="template-instance"] "26" -> "5" [dir=forward tooltip="template-instance"] "30" -> "5" [dir=forward tooltip="template-instance"] "3" -> "4" [dir=forward tooltip="usage"] "23" -> "24" [dir=forward tooltip="public-inheritance"] "12" -> "13" [dir=forward tooltip="usage"] "12" -> "21" [dir=forward tooltip="usage"] "12" -> "25" [dir=forward tooltip="usage"] "12" -> "15" [dir=forward tooltip="usage"] "12" -> "18" [dir=forward tooltip="usage"] "12" -> "26" [dir=forward tooltip="usage"] "12" -> "27" [dir=forward tooltip="usage"] "40" -> "40" [dir=forward tooltip="usage"] "40" -> "2" [dir=forward tooltip="usage"] "2" -> "3" [dir=forward tooltip="usage"] "2" -> "6" [dir=forward tooltip="usage"] "2" -> "8" [dir=forward tooltip="usage"] "2" -> "10" [dir=forward tooltip="usage"] "2" -> "11" [dir=forward tooltip="usage"] "2" -> "12" [dir=forward tooltip="usage"] "2" -> "28" [dir=forward tooltip="usage"] "2" -> "2" [dir=forward tooltip="usage"] "2" -> "40" [dir=forward tooltip="usage"] "16" -> "17" [dir=forward tooltip="public-inheritance"] "31" -> "2" [dir=forward tooltip="usage"] "31" -> "7" [dir=forward tooltip="usage"] "31" -> "32" [dir=forward tooltip="usage"] "31" -> "33" [dir=forward tooltip="usage"] "31" -> "25" [dir=forward tooltip="usage"] "31" -> "34" [dir=forward tooltip="usage"] "31" -> "31" [dir=forward tooltip="usage"] "6" -> "7" [dir=forward tooltip="usage"] "35" -> "36" [dir=forward tooltip="usage"] "35" -> "37" [dir=forward tooltip="usage"] "28" -> "2" [dir=forward tooltip="usage"] "28" -> "18" [dir=forward tooltip="usage"] "28" -> "29" [dir=forward tooltip="usage"] "28" -> "31" [dir=forward tooltip="usage"] "28" -> "35" [dir=forward tooltip="usage"] "28" -> "38" [dir=forward tooltip="usage"] "27" -> "15" [dir=forward tooltip="public-inheritance"] "13" -> "14" [dir=forward tooltip="usage"] "13" -> "18" [dir=forward tooltip="usage"] "13" -> "20" [dir=forward tooltip="usage"] "19" -> "17" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "1" -> "7" [dir=forward tooltip="usage"] "1" -> "25" [dir=forward tooltip="usage"] "1" -> "15" [dir=forward tooltip="usage"] }

base class for 3D geometries

Subclassed by xlifepp::Ellipsoid, xlifepp::Polyhedron, xlifepp::Trunk

Public Functions

Volume()#

default constructor for 3D geometries

default volume is inside bounding box [0,1]^3

inline Volume(const Volume &v)#

copy constructor

inline virtual ~Volume()#

virtual destructor

inline virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor for Geometry

inline virtual std::vector<real_t> &h()#

accessor to local steps (read only)

inline virtual const std::vector<real_t> &h() const#

accessor to local steps (read only)

inline real_t h(number_t i) const#

accessor to local step on vertex i (read only)

inline virtual Volume &homothetize(const Parameter &p1)#

apply a homothety on a Volume (1 key)

inline virtual Volume &homothetize(const Parameter &p1, const Parameter &p2)#

apply a homothety on a Volume (2 keys)

inline virtual Volume &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#

apply a homothety on a Volume

inline virtual Volume &homothetize(real_t factor)#

apply a homothety on a Volume

virtual bool isTranslated(const Geometry&, Point&) const#

check if points of current volume are points of a translated points of an other volume

inline virtual std::vector<number_t> &n()#

accessor to number of nodes (read/write)

inline virtual const std::vector<number_t> &n() const#

accessor to number of nodes (read only)

inline virtual number_t n(number_t i) const#

accessor to number of nodes on edge i (read only)

inline const std::vector<Point> &p() const#

accessor to points

inline const Point &p(number_t i) const#

accessor to point i

inline virtual Volume &pointReflect(const Parameter &p1)#

apply a point reflection on a Volume (1 key)

inline virtual Volume &pointReflect(const Point &c = Point(0., 0., 0.))#

apply a point reflection on a Volume

inline virtual Volume &reflect2d(const Parameter &p1)#

apply a reflection2d on a Volume (1 key)

inline virtual Volume &reflect2d(const Parameter &p1, const Parameter &p2)#

apply a reflection2d on a Volume (2 keys)

inline virtual Volume &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#

apply a reflection2d on a Volume

inline virtual Volume &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#

apply a reflection2d on a Volume

inline virtual Volume &reflect3d(const Parameter &p1)#

apply a reflection3d on a Volume (1 key)

inline virtual Volume &reflect3d(const Parameter &p1, const Parameter &p2)#

apply a reflection3d on a Volume (2 keys)

inline virtual Volume &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#

apply a reflection3d on a Volume

inline virtual Volume &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#

apply a reflection3d on a Volume

inline virtual Volume &rotate2d(const Parameter &p1)#

apply a rotation 2D on a Volume (1 key)

inline virtual Volume &rotate2d(const Parameter &p1, const Parameter &p2)#

apply a rotation 2D on a Volume (2 keys)

inline virtual Volume &rotate2d(const Point &c, real_t angle = 0.)#

apply a rotation 2D on a Volume

inline virtual Volume &rotate3d(const Parameter &p1)#

apply a rotation 3D on a Volume (1 key)

inline virtual Volume &rotate3d(const Parameter &p1, const Parameter &p2)#

apply a rotation 3D on a Volume (2 keys)

inline virtual Volume &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#

apply a rotation 3D on a Volume (3 keys)

inline virtual Volume &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#

apply a rotation on a Volume

inline virtual Volume &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation on a Volume

inline virtual Volume &rotate3d(const Point &c, std::vector<real_t> d = std::vector<real_t>(3, 0.), real_t angle = 0.)#

apply a rotation 3D on a Volume

inline virtual Volume &rotate3d(real_t dx, real_t dy, real_t angle)#

apply a rotation 3D on a Volume

inline virtual Volume &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation 3D on a Volume

inline virtual void setHstep(real_t hs)#

set the main h step, if not overriden do nothing

inline virtual void setNnodes(number_t i)#

set the main nnodes, if not overriden do nothing

virtual Volume &transform(const Transformation &t)#

apply a geometrical transformation on a Volume

inline virtual Volume &translate(const Parameter &p1)#

apply a translation on a Volume (1 key)

inline virtual Volume &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#

apply a translation on a Volume (3 reals version)

inline virtual Volume &translate(std::vector<real_t> u)#

apply a translation on a Volume (vector version)

inline virtual Volume *volume()#

access to Volume object (non const), virtual in Geometry

inline virtual const Volume *volume() const#

access to Volume object (const), virtual in Geometry

inline virtual bool withNnodes() const#

check if geometry is defined only with _nnodes or with _hsteps option