DGtal
0.6.devel
|
#include <Ball3D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef 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 bool | isInside (const RealPoint &p) 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 |
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 pair<double,double> DGtal::Ball3D< TSpace >::AngularCoordinates |
Reimplemented from DGtal::StarShaped3D< TSpace >.
typedef Space::RealPoint DGtal::Ball3D< TSpace >::RealPoint |
Reimplemented from DGtal::StarShaped3D< TSpace >.
typedef TSpace DGtal::Ball3D< TSpace >::Space |
Reimplemented from DGtal::StarShaped3D< TSpace >.
|
inline |
|
inline |
|
inline |
|
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 >::myCenter.
|
inlinevirtual |
Constructor.
aPoint | the sphere center. |
r | the radius of the sphere. |
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.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [0,2PI] and [0,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
inline |
Checks the validity/consistency of the object.
Reimplemented from DGtal::StarShaped3D< TSpace >.
Definition at line 236 of file Ball3D.ih.
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. Assignment. |
other | the object to copy. |
|
inlinevirtual |
p | any point in the space. |
p | any point in the plane. |
Implements DGtal::StarShaped3D< TSpace >.
Definition at line 79 of file Ball3D.ih.
References M_PI.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [-Pi/2,Pi/2) and [-Pi,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [0,2PI] and [0,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [0,2PI] and [0,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [0,2PI] and [0,Pi] |
Implements DGtal::StarShaped3D< TSpace >.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | is a couple of Teta && Phi wich are angles respectivly betweend [0,2PI] and [0,Pi]. |
Implements DGtal::StarShaped3D< TSpace >.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Reimplemented from DGtal::StarShaped3D< TSpace >.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are respectivly between [-Pi/2,Pi/2) and [-Pi,Pi]. |
t | any angle between 0 and 2*Pi. |
Implements DGtal::StarShaped3D< TSpace >.
|
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().