eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::Easy3D::E3DSphere Class Reference

Represents a 3D sphere. More...

#include <eVision/Easy3D/E3DSphere.h>

Collaboration diagram for eVision::Easy3D::E3DSphere:

Public Member Functions

 E3DSphere ()
 Creates an E3DSphere object.
 E3DSphere (const eVision::Easy3D::E3DPoint &center, 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 &center, 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_

Detailed Description

Represents a 3D sphere.

License(s): Easy3D

Constructor & Destructor Documentation

◆ E3DSphere() [1/5]

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.

◆ E3DSphere() [2/5]

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.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ E3DSphere() [3/5]

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.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ E3DSphere() [4/5]

eVision::Easy3D::E3DSphere::E3DSphere ( const eVision::Easy3D::E3DSphere & other)

Creates an E3DSphere object.

It is possible to initialize it by specifying its center and radius or 4 points lying on it surface.

Parameters
otherThe other E3DSphere that we will copy into this one.

◆ ~E3DSphere()

eVision::Easy3D::E3DSphere::~E3DSphere ( )
throw ( )
virtual

◆ E3DSphere() [5/5]

eVision::Easy3D::E3DSphere::E3DSphere ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Define() [1/2]

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.

Parameters
centerThe center of the sphere.
radiusThe radius of the sphere.

◆ Define() [2/2]

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.

Parameters
point1First points on the surface of the sphere.
point2Second points on the surface of the sphere.
point3Third points on the surface of the sphere.
point4Fourth points on the surface of the sphere.

◆ DistanceTo()

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.

Parameters
pointThe 3D point to measure the distance to.

◆ GetCenter()

eVision::Easy3D::E3DPoint eVision::Easy3D::E3DSphere::GetCenter ( ) const

Gets the center point of the sphere.

◆ GetRadius()

float eVision::Easy3D::E3DSphere::GetRadius ( ) const

Gets the radius of the sphere.

◆ Load() [1/2]

void eVision::Easy3D::E3DSphere::Load ( const std::string & path)

Loads a E3DSphere. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Load() [2/2]

void eVision::Easy3D::E3DSphere::Load ( eVision::ESerializer * serializer)

Loads a E3DSphere. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ operator=()

eVision::Easy3D::E3DSphere & eVision::Easy3D::E3DSphere::operator= ( const eVision::Easy3D::E3DSphere & other)

Assignment operator.

Parameters
otherThe E3DSphere object that should be copied.

◆ Save() [1/2]

void eVision::Easy3D::E3DSphere::Save ( const std::string & path)

Saves a E3DSphere. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Save() [2/2]

void eVision::Easy3D::E3DSphere::Save ( eVision::ESerializer * serializer)

Saves a E3DSphere. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

◆ Transform()

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.

Parameters
matrixThe 3D transformation matrix.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::Easy3D::E3DSphere::wrappedClass_