#include <Cylinder3D.h>
Public Types | |
typedef boost::shared_ptr < Cylinder3D > | Cylinder3DPtr |
typedef Eigen::Matrix3f | Mat3 |
typedef Eigen::Vector3f | Vec3 |
Public Member Functions | |
bool | checkDistance (const Vec3 &point, const float &maxDistance) const |
bool | checkNormal (const Vec3 &normal, const Vec3 &point, const float &mAngleEps) const |
Cylinder3D () | |
Cylinder3D (Vec3 pointOnAxis, Vec3 axisDirection, float radius) | |
Cylinder3D (Vec3 pointOnAxis, Vec3 axisDirection, float radius, const Vec3 &rotationAxis, const float rotationAngle) | |
float | distanceToAxis (const Vec3 &point) const |
float | distanceToCylinderSurface (const Vec3 &point) const |
const Vec3 & | getAxisDirection () const |
const Vec3 & | getPointOnAxis () const |
const float & | getRadius () const |
const Mat3 & | getReTransformRot () const |
const float & | getRotationAngle () const |
const Vec3 & | getRotationAxis () const |
const Mat3 & | getTransformRot () const |
void | projectPoint (Vec3 &outPoint, const Vec3 &point) const |
void | setTransformation (const float rotationAngle, const Vec3 &rotationAxis) |
void | transformToCylinder (Vec3 &outPoint, const Vec3 &point) const |
void | transformToXYZCoords (Vec3 &outPoint, const Vec3 &point) const |
Protected Member Functions | |
void | computeTransformation () |
Calculate transformations from and to cylinder coordinate system. | |
Protected Attributes | |
Vec3 | mAxisDirection |
Vec3 | mPointOnAxis |
float | mRadius |
Mat3 | mReTransformRot |
float | mRotAngle |
Vec3 | mRotAxis |
Mat3 | mTransformRot |
Vec3 | mTransformTrans |
Definition at line 43 of file Cylinder3D.h.
typedef boost::shared_ptr<Cylinder3D> Cylinder3D::Cylinder3DPtr |
Definition at line 47 of file Cylinder3D.h.
typedef Eigen::Matrix3f Cylinder3D::Mat3 |
Reimplemented in CylinderPatch.
Definition at line 46 of file Cylinder3D.h.
typedef Eigen::Vector3f Cylinder3D::Vec3 |
Reimplemented in CylinderPatch.
Definition at line 45 of file Cylinder3D.h.
Cylinder3D::Cylinder3D | ( | ) | [inline] |
Definition at line 49 of file Cylinder3D.h.
Cylinder3D::Cylinder3D | ( | Vec3 | pointOnAxis, |
Vec3 | axisDirection, | ||
float | radius | ||
) | [inline] |
Definition at line 50 of file Cylinder3D.h.
Cylinder3D::Cylinder3D | ( | Vec3 | pointOnAxis, |
Vec3 | axisDirection, | ||
float | radius, | ||
const Vec3 & | rotationAxis, | ||
const float | rotationAngle | ||
) | [inline] |
Definition at line 52 of file Cylinder3D.h.
bool Cylinder3D::checkDistance | ( | const Vec3 & | point, |
const float & | maxDistance | ||
) | const [inline] |
Definition at line 65 of file Cylinder3D.h.
bool Cylinder3D::checkNormal | ( | const Vec3 & | normal, |
const Vec3 & | point, | ||
const float & | mAngleEps | ||
) | const [inline] |
Definition at line 68 of file Cylinder3D.h.
void Cylinder3D::computeTransformation | ( | ) | [inline, protected] |
Calculate transformations from and to cylinder coordinate system.
Definition at line 108 of file Cylinder3D.h.
float Cylinder3D::distanceToAxis | ( | const Vec3 & | point | ) | const [inline] |
Definition at line 89 of file Cylinder3D.h.
float Cylinder3D::distanceToCylinderSurface | ( | const Vec3 & | point | ) | const [inline] |
Definition at line 95 of file Cylinder3D.h.
const Vec3& Cylinder3D::getAxisDirection | ( | ) | const [inline] |
Definition at line 57 of file Cylinder3D.h.
const Vec3& Cylinder3D::getPointOnAxis | ( | ) | const [inline] |
Definition at line 56 of file Cylinder3D.h.
const float& Cylinder3D::getRadius | ( | ) | const [inline] |
Definition at line 58 of file Cylinder3D.h.
const Mat3& Cylinder3D::getReTransformRot | ( | ) | const [inline] |
Definition at line 62 of file Cylinder3D.h.
const float& Cylinder3D::getRotationAngle | ( | ) | const [inline] |
Definition at line 60 of file Cylinder3D.h.
const Vec3& Cylinder3D::getRotationAxis | ( | ) | const [inline] |
Definition at line 59 of file Cylinder3D.h.
const Mat3& Cylinder3D::getTransformRot | ( | ) | const [inline] |
Definition at line 61 of file Cylinder3D.h.
void Cylinder3D::projectPoint | ( | Vec3 & | outPoint, |
const Vec3 & | point | ||
) | const [inline] |
Definition at line 79 of file Cylinder3D.h.
void Cylinder3D::setTransformation | ( | const float | rotationAngle, |
const Vec3 & | rotationAxis | ||
) | [inline] |
Reimplemented in CylinderPatch.
Definition at line 98 of file Cylinder3D.h.
void Cylinder3D::transformToCylinder | ( | Vec3 & | outPoint, |
const Vec3 & | point | ||
) | const [inline] |
Definition at line 87 of file Cylinder3D.h.
void Cylinder3D::transformToXYZCoords | ( | Vec3 & | outPoint, |
const Vec3 & | point | ||
) | const [inline] |
Definition at line 88 of file Cylinder3D.h.
Vec3 Cylinder3D::mAxisDirection [protected] |
Definition at line 117 of file Cylinder3D.h.
Vec3 Cylinder3D::mPointOnAxis [protected] |
Definition at line 116 of file Cylinder3D.h.
float Cylinder3D::mRadius [protected] |
Definition at line 118 of file Cylinder3D.h.
Mat3 Cylinder3D::mReTransformRot [protected] |
Definition at line 122 of file Cylinder3D.h.
float Cylinder3D::mRotAngle [protected] |
Definition at line 121 of file Cylinder3D.h.
Vec3 Cylinder3D::mRotAxis [protected] |
Definition at line 120 of file Cylinder3D.h.
Mat3 Cylinder3D::mTransformRot [protected] |
Definition at line 122 of file Cylinder3D.h.
Vec3 Cylinder3D::mTransformTrans [protected] |
Definition at line 123 of file Cylinder3D.h.