43 const Eigen::Matrix3d& R,
44 const Eigen::Vector3d& extent,
45 const std::string&
name =
"ecvOrientedBBox")
70 virtual Eigen::Vector3d
GetMinBound()
const override;
71 virtual Eigen::Vector3d
GetMaxBound()
const override;
72 virtual Eigen::Vector3d
GetCenter()
const override;
78 const Eigen::Matrix4d& transformation)
override;
80 bool relative =
true)
override;
82 const Eigen::Vector3d& center)
override;
84 const Eigen::Vector3d& center)
override;
97 const std::vector<Eigen::Vector3d>&
points);
99 const std::vector<CCVector3>&
points);
Vector3Tpl< float > operator*(float s, const Vector3Tpl< float > &v)
Multiplication of a 3D vector by a scalar (front) operator (float version)
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Float version of ccGLMatrixTpl.
Double version of ccGLMatrixTpl.
Hierarchical CLOUDVIEWER Object.
virtual ecvOrientedBBox GetOrientedBoundingBox() const
virtual ccHObject & Scale(const double s, const Eigen::Vector3d ¢er)
Apply scaling to the geometry coordinates. Given a scaling factor , and center , a given point is tr...
void draw(CC_DRAW_CONTEXT &context) override
Draws entity and its children.
virtual Eigen::Vector3d GetCenter() const
Returns the center of the geometry coordinates.
virtual ccHObject & Translate(const Eigen::Vector3d &translation, bool relative=true)
Apply translation to the geometry coordinates.
virtual ccHObject & Rotate(const Eigen::Matrix3d &R, const Eigen::Vector3d ¢er)
Apply rotation to the geometry coordinates and normals. Given a rotation matrix , and center ,...
virtual Eigen::Vector3d GetMaxBound() const
Returns max bounds for geometry coordinates.
virtual Eigen::Vector3d GetMinBound() const
Returns min bounds for geometry coordinates.
virtual ccHObject & Transform(const Eigen::Matrix4d &transformation)
Apply transformation (4x4 matrix) to the geometry coordinates.
virtual ccBBox getOwnBB(bool withGLFeatures=false)
Returns the entity's own bounding-box.
virtual ccBBox GetAxisAlignedBoundingBox() const
Returns an axis-aligned bounding box of the geometry.
A bounding box oriented along an arbitrary frame of reference.
static OrientedBoundingBox CreateFromAxisAlignedBoundingBox(const BoundingBox &aabox)
double volume() const
Returns the volume of the bounding box.
virtual bool IsEmpty() const override
~ecvOrientedBBox() override
virtual bool isSerializable() const override
Returns whether object is serializable of not.
virtual CV_CLASS_ENUM getClassID() const override
Returns unique class ID.
ecvOrientedBBox()
Default constructor.
ecvOrientedBBox(const Eigen::Vector3d ¢er, const Eigen::Matrix3d &R, const Eigen::Vector3d &extent, const std::string &name="ecvOrientedBBox")
Parameterized constructor.
::ecvOrientedBBox OrientedBoundingBox
Generic file read and write utility for python interface.