Represents a 3D sphere. More...
#include <eVision/Easy3D/E3DSphere.h>
Public Member Functions | |
| E3DSphere () | |
| Creates an E3DSphere object. | |
| E3DSphere (const eVision::Easy3D::E3DPoint ¢er, float radius) | |
| Creates an E3DSphere object. | |
| E3DSphere (const eVision::Easy3D::E3DPoint &point1, const eVision::Easy3D::E3DPoint &point2, const eVision::Easy3D::E3DPoint &point3, const eVision::Easy3D::E3DPoint &point4) | |
| Creates an E3DSphere object. | |
| E3DSphere (const eVision::Easy3D::E3DSphere &other) | |
| Creates an E3DSphere object. | |
| virtual | ~E3DSphere () throw () |
| eVision::Easy3D::E3DSphere & | operator= (const eVision::Easy3D::E3DSphere &other) |
| Assignment operator. | |
| void | Define (const eVision::Easy3D::E3DPoint ¢er, float radius) |
| (re)Defines the sphere parameters: | |
| void | Define (const eVision::Easy3D::E3DPoint &point1, const eVision::Easy3D::E3DPoint &point2, const eVision::Easy3D::E3DPoint &point3, const eVision::Easy3D::E3DPoint &point4) |
| (re)Defines the sphere parameters: | |
| eVision::Easy3D::E3DPoint | GetCenter () const |
| Gets the center point of the sphere. | |
| float | GetRadius () const |
| Gets the radius of the sphere. | |
| float | DistanceTo (const eVision::Easy3D::E3DPoint &point) const |
| Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere. | |
| eVision::Easy3D::E3DSphere | Transform (const eVision::Easy3D::E3DTransformMatrix &matrix) const |
| Transforms the 3D sphere with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an isotropic scaling transform. | |
| void | Load (const std::string &path) |
| Loads a E3DSphere. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads a E3DSphere. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves a E3DSphere. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves a E3DSphere. The given ESerializer must have been created for writing. | |
| E3DSphere (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a 3D sphere.
License(s): Easy3D
| eVision::Easy3D::E3DSphere::E3DSphere | ( | ) |
Creates an E3DSphere object.
It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.
| eVision::Easy3D::E3DSphere::E3DSphere | ( | const eVision::Easy3D::E3DPoint & | center, |
| float | radius ) |
Creates an E3DSphere object.
It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.
| center | The center of the sphere. |
| radius | The radius of the sphere. |
| eVision::Easy3D::E3DSphere::E3DSphere | ( | const eVision::Easy3D::E3DPoint & | point1, |
| const eVision::Easy3D::E3DPoint & | point2, | ||
| const eVision::Easy3D::E3DPoint & | point3, | ||
| const eVision::Easy3D::E3DPoint & | point4 ) |
Creates an E3DSphere object.
It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.
| point1 | First points on the surface of the sphere. |
| point2 | Second points on the surface of the sphere. |
| point3 | Third points on the surface of the sphere. |
| point4 | Fourth points on the surface of the sphere. |
| eVision::Easy3D::E3DSphere::E3DSphere | ( | const eVision::Easy3D::E3DSphere & | other | ) |
|
virtual | ||||||||||||
| eVision::Easy3D::E3DSphere::E3DSphere | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::Easy3D::E3DSphere::Define | ( | const eVision::Easy3D::E3DPoint & | center, |
| float | radius ) |
(re)Defines the sphere parameters:
It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.
| center | The center of the sphere. |
| radius | The radius of the sphere. |
| void eVision::Easy3D::E3DSphere::Define | ( | const eVision::Easy3D::E3DPoint & | point1, |
| const eVision::Easy3D::E3DPoint & | point2, | ||
| const eVision::Easy3D::E3DPoint & | point3, | ||
| const eVision::Easy3D::E3DPoint & | point4 ) |
(re)Defines the sphere parameters:
It is possible to use the center and the radius of the sphere or 4 points lying on the surface of the sphere.
| point1 | First points on the surface of the sphere. |
| point2 | Second points on the surface of the sphere. |
| point3 | Third points on the surface of the sphere. |
| point4 | Fourth points on the surface of the sphere. |
| float eVision::Easy3D::E3DSphere::DistanceTo | ( | const eVision::Easy3D::E3DPoint & | point | ) | const |
Computes the distance between a E3DPoint and the sphere, defined as the distance to the nearest point of the sphere.
| point | The 3D point to measure the distance to. |
| eVision::Easy3D::E3DPoint eVision::Easy3D::E3DSphere::GetCenter | ( | ) | const |
Gets the center point of the sphere.
| float eVision::Easy3D::E3DSphere::GetRadius | ( | ) | const |
Gets the radius of the sphere.
| void eVision::Easy3D::E3DSphere::Load | ( | const std::string & | path | ) |
Loads a E3DSphere. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::E3DSphere::Load | ( | eVision::ESerializer * | serializer | ) |
Loads a E3DSphere. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::Easy3D::E3DSphere & eVision::Easy3D::E3DSphere::operator= | ( | const eVision::Easy3D::E3DSphere & | other | ) |
Assignment operator.
| other | The E3DSphere object that should be copied. |
| void eVision::Easy3D::E3DSphere::Save | ( | const std::string & | path | ) |
Saves a E3DSphere. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::E3DSphere::Save | ( | eVision::ESerializer * | serializer | ) |
Saves a E3DSphere. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| eVision::Easy3D::E3DSphere eVision::Easy3D::E3DSphere::Transform | ( | const eVision::Easy3D::E3DTransformMatrix & | matrix | ) | const |
Transforms the 3D sphere with the given transformation matrix. The transformation matrix must contain a rigid transformation (translation and rotation only) optionally combined with an isotropic scaling transform.
| matrix | The 3D transformation matrix. |
| CppWrapperInternal::WrappedClass eVision::Easy3D::E3DSphere::wrappedClass_ |