DGtal
1.4.2
|
Aim: Model of the concept StarShaped3D represents any Sphere in the space. More...
#include <DGtal/shapes/parametric/Ball3D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef std::pair< double, double > | AngularCoordinates |
Public Types inherited from DGtal::StarShaped3D< TSpace > | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef std::pair< double, double > | AngularCoordinates |
Public Member Functions | |
Ball3D ()=delete | |
Ball3D (const double x0, const double y0, const double z0, const double r) | |
Ball3D (const RealPoint &aPoint, const double r) | |
Ball3D (const Ball3D &other) | |
Ball3D & | operator= (const Ball3D &other)=delete |
~Ball3D ()=default | |
RealPoint | getLowerBound () const |
RealPoint | getUpperBound () const |
RealPoint | center () const |
void | moveTo (const RealPoint &newCenter) |
AngularCoordinates | parameter (const RealPoint &p) const |
RealPoint | x (const AngularCoordinates &t) const |
virtual RealPoint | gradient (const AngularCoordinates &t) const |
virtual RealPoint | rt (const AngularCoordinates &t) const |
virtual RealPoint | rp (const AngularCoordinates &t) const |
virtual RealPoint | rtt (const AngularCoordinates &t) const |
virtual RealPoint | rpp (const AngularCoordinates &t) const |
virtual RealPoint | rtp (const AngularCoordinates &t) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Public Member Functions inherited from DGtal::StarShaped3D< TSpace > | |
StarShaped3D ()=default | |
StarShaped3D & | operator= (const StarShaped3D &other)=delete |
virtual | ~StarShaped3D ()=default |
virtual RealPoint | interiorPoint () const |
virtual Orientation | orientation (const RealPoint &p) const |
virtual RealPoint | normal (const AngularCoordinates &t) const |
virtual double | gaussianCurvature (const AngularCoordinates &t) const |
virtual double | meanCurvature (const AngularCoordinates &t) const |
virtual double | arclength (const AngularCoordinates &t1, AngularCoordinates t2, unsigned int nb) const |
virtual double | surfacelength (const AngularCoordinates &t1, AngularCoordinates t2, unsigned int nb) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Attributes | |
double | myRadius |
RealPoint | myCenter |
Aim: Model of the concept StarShaped3D represents any Sphere in the space.
Description of template class 'Ball3D'
typedef std::pair<double,double> DGtal::Ball3D< TSpace >::AngularCoordinates |
typedef Space::RealPoint DGtal::Ball3D< TSpace >::RealPoint |
typedef TSpace DGtal::Ball3D< TSpace >::Space |
|
delete |
Constructor. Forbidden by default.
DGtal::Ball3D< TSpace >::Ball3D | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | r | ||
) |
Constructor.
x0 | the x-coordinate of the sphere center. |
y0 | the y-coordinate of the sphere center. |
z0 | the z-coordinate of the sphere center. |
r | the radius of the sphere. |
DGtal::Ball3D< TSpace >::Ball3D | ( | const RealPoint & | aPoint, |
const double | r | ||
) |
Constructor.
aPoint | the sphere center. |
r | the radius of the sphere. |
DGtal::Ball3D< TSpace >::Ball3D | ( | const Ball3D< TSpace > & | other | ) |
Copy constructor.
other | the object to clone. |
|
default |
Destructor.
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 135 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::myCenter.
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 117 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::myCenter, and DGtal::Ball3D< TSpace >::myRadius.
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 127 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::myCenter, and DGtal::Ball3D< TSpace >::myRadius.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
bool DGtal::Ball3D< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
inlinevirtual |
Modify the shape center
newCenter | the new center position |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 145 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::myCenter.
|
delete |
Assignment.
other | the object to copy. |
|
virtual |
p | any point in the space. |
Implements DGtal::StarShaped3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
void DGtal::Ball3D< TSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
private |
Center of the sphere.
Definition at line 221 of file Ball3D.h.
Referenced by DGtal::Ball3D< TSpace >::center(), DGtal::Ball3D< TSpace >::getLowerBound(), DGtal::Ball3D< TSpace >::getUpperBound(), and DGtal::Ball3D< TSpace >::moveTo().
|
private |
Radius of the sphere.
Definition at line 216 of file Ball3D.h.
Referenced by DGtal::Ball3D< TSpace >::getLowerBound(), and DGtal::Ball3D< TSpace >::getUpperBound().