Class xlifepp::Volume#
-
class Volume : public xlifepp::Geometry#
-
Inheritence diagram for xlifepp::Volume:
Collaboration diagram for xlifepp::Volume:
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 virtual ~Volume()#
-
virtual destructor
-
inline virtual string_t asString() const#
-
format as string
-
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 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
-
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 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, 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, 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, const Parameter &p2)#
-
apply a rotation 2D on a Volume (2 keys)
-
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
-
virtual Volume &transform(const Transformation &t)#
-
apply a geometrical transformation on a Volume
-
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 bool withNnodes() const#
-
check if geometry is defined only with _nnodes or with _hsteps option
-
Volume()#