DGtal 1.3.0
|
#include <DGtal/shapes/parametric/StarShaped3D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef std::pair< double, double > | AngularCoordinates |
Public Member Functions | |
StarShaped3D ()=default | |
StarShaped3D & | operator= (const StarShaped3D &other)=delete |
virtual | ~StarShaped3D ()=default |
virtual RealPoint | interiorPoint () const |
virtual RealPoint | getLowerBound () const =0 |
virtual RealPoint | getUpperBound () const =0 |
virtual RealPoint | center () const =0 |
virtual void | moveTo (const RealPoint &newCenter)=0 |
virtual AngularCoordinates | parameter (const RealPoint &p) const =0 |
virtual RealPoint | x (const AngularCoordinates &t) const =0 |
virtual RealPoint | gradient (const AngularCoordinates &t) const =0 |
virtual RealPoint | rt (const AngularCoordinates &t) const =0 |
virtual RealPoint | rp (const AngularCoordinates &t) const =0 |
virtual RealPoint | rtt (const AngularCoordinates &t) const =0 |
virtual RealPoint | rpp (const AngularCoordinates &t) const =0 |
virtual RealPoint | rtp (const AngularCoordinates &t) const =0 |
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 Member Functions | |
template<typename T > | |
bool | isAlmostEqual (T x, T y) const |
Description of template class 'StarShaped3D'
Aim: Abstract class that represents any star-shaped object in dimension 3. Such a shape as a center and any segment from this center to the shape boundary is included in the shape. These shapes can thus be parameterized by a couple of angles 'Teta,Phi' turning around the center.
StarShaped3D and its derived classes are models of CEuclideanBoundedShape and CEuclideanOrientedShape.
NB: A backport from ImaGene.
TSpace | space in which the shape is defined. |
Definition at line 71 of file StarShaped3D.h.
typedef std::pair<double,double> DGtal::StarShaped3D< TSpace >::AngularCoordinates |
Definition at line 77 of file StarShaped3D.h.
typedef Space::RealPoint DGtal::StarShaped3D< TSpace >::RealPoint |
Definition at line 76 of file StarShaped3D.h.
typedef TSpace DGtal::StarShaped3D< TSpace >::Space |
Definition at line 75 of file StarShaped3D.h.
|
default |
Constructor.
|
virtualdefault |
Destructor.
|
virtual |
t1 | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
t2 | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. further from [t1]. |
nb | the number of points used to estimate the arclength between x(Teta1,Phi1) and x(Teta2,Phi2). |
|
pure virtual |
Implemented in DGtal::Ball3D< TSpace >.
Referenced by DGtal::StarShaped3D< TSpace >::interiorPoint().
|
virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
|
pure virtual |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
|
inlinevirtual |
Definition at line 102 of file StarShaped3D.h.
References DGtal::StarShaped3D< TSpace >::center().
|
inlineprivate |
Equality test using relative tolerance.
Definition at line 309 of file StarShaped3D.h.
bool DGtal::StarShaped3D< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi] |
|
pure virtual |
Move the center of the star-shaped object to a new position
newCenter | the new center position |
Implemented in DGtal::Ball3D< TSpace >.
|
virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
|
delete |
Assignment.
other | the object to copy. |
|
virtual |
Return the orienatation of a point with respect to a shape.
p | input point |
|
pure virtual |
p | any point in the sapce. |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
|
pure virtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.
void DGtal::StarShaped3D< TSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
virtual |
t1 | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
t2 | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. further from [t1]. |
nb | the number of points used to estimate the surface between x(Teta1,Phi1) and x(Teta2,Phi2). |
|
pure virtual |
t | is a couple of Theta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
Implemented in DGtal::Ball3D< TSpace >.