DGtal
0.9.3
|
#include <DGtal/shapes/parametric/Ball3D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef std::pair< double, double > | AngularCoordinates |
![]() | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef std::pair< double, double > | AngularCoordinates |
Public Member Functions | |
~Ball3D () | |
Ball3D (const double x0, const double y0, const double z0, const double r) | |
Ball3D (const RealPoint &aPoint, const double r) | |
RealPoint | getLowerBound () const |
RealPoint | getUpperBound () const |
RealPoint | center () const |
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 |
![]() | |
StarShaped3D () | |
~StarShaped3D () | |
virtual RealPoint | interiorPoint () const |
virtual Orientation | orientation (const RealPoint &p) const |
virtual RealPoint | normal (AngularCoordinates t) const |
virtual double | gaussianCurvature (AngularCoordinates t) const |
virtual double | meanCurvature (AngularCoordinates t) const |
virtual double | arclength (AngularCoordinates t1, AngularCoordinates t2, unsigned int nb) const |
virtual double | surfacelength (AngularCoordinates t1, AngularCoordinates t2, unsigned int nb) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
Ball3D () | |
Private Member Functions | |
Ball3D & | operator= (const Ball3D &other) |
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 |
DGtal::Ball3D< TSpace >::~Ball3D | ( | ) |
Destructor.
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. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 129 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::gradient(), DGtal::Ball3D< TSpace >::myCenter, DGtal::Ball3D< TSpace >::parameter(), DGtal::Ball3D< TSpace >::rp(), DGtal::Ball3D< TSpace >::rpp(), DGtal::Ball3D< TSpace >::rt(), DGtal::Ball3D< TSpace >::rtp(), DGtal::Ball3D< TSpace >::rtt(), and DGtal::Ball3D< TSpace >::x().
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 107 of file Ball3D.h.
References DGtal::Ball3D< TSpace >::myCenter, and DGtal::Ball3D< TSpace >::myRadius.
|
inlinevirtual |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 119 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 >.
Referenced by DGtal::Ball3D< TSpace >::center().
bool DGtal::Ball3D< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. Assignment. |
other | the object to copy. |
|
virtual |
p | any point in the space. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
virtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
Referenced by DGtal::Ball3D< TSpace >::center().
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 >.
Referenced by DGtal::Ball3D< TSpace >::center().
|
private |
Center of the sphere.
Definition at line 220 of file Ball3D.h.
Referenced by DGtal::Ball3D< TSpace >::center(), DGtal::Ball3D< TSpace >::getLowerBound(), and DGtal::Ball3D< TSpace >::getUpperBound().
|
private |
Radius of the sphere.
Definition at line 215 of file Ball3D.h.
Referenced by DGtal::Ball3D< TSpace >::getLowerBound(), and DGtal::Ball3D< TSpace >::getUpperBound().