DGtal
0.6.devel
|
#include <StarShaped3D.h>
Public Types | |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef pair< double, double > | AngularCoordinates |
Public Member Functions | |
StarShaped3D () | |
~StarShaped3D () | |
virtual RealPoint | interiorPoint () const |
virtual RealPoint | getLowerBound () const =0 |
virtual RealPoint | getUpperBound () const =0 |
virtual RealPoint | center () const =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 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 |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
StarShaped3D & | operator= (const StarShaped3D &other) |
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 pair<double,double> DGtal::StarShaped3D< TSpace >::AngularCoordinates |
Reimplemented in DGtal::Ball3D< TSpace >.
Definition at line 77 of file StarShaped3D.h.
typedef Space::RealPoint DGtal::StarShaped3D< TSpace >::RealPoint |
Reimplemented in DGtal::Ball3D< TSpace >.
Definition at line 76 of file StarShaped3D.h.
typedef TSpace DGtal::StarShaped3D< TSpace >::Space |
Reimplemented in DGtal::Ball3D< TSpace >.
Definition at line 75 of file StarShaped3D.h.
|
inline |
|
inline |
|
inlinevirtual |
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). |
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). |
Definition at line 218 of file StarShaped3D.ih.
References M_PI.
|
pure virtual |
Implemented in DGtal::Ball3D< TSpace >.
Referenced by DGtal::StarShaped3D< TSpace >::interiorPoint().
|
inlinevirtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi] . |
Definition at line 178 of file StarShaped3D.ih.
|
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 95 of file StarShaped3D.h.
References DGtal::StarShaped3D< TSpace >::center().
|
inlinevirtual |
p | any point in the plane. |
p | any point in the plane. |
Definition at line 58 of file StarShaped3D.ih.
|
inline |
Checks the validity/consistency of the object.
Reimplemented in DGtal::Ball3D< TSpace >.
Definition at line 317 of file StarShaped3D.ih.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi] |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi] |
Definition at line 137 of file StarShaped3D.ih.
|
inlinevirtual |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi]. |
t | is a couple of Teta && Phi wich are 2 angles respectivly between [0,2PI] and [0,Pi] a. |
Definition at line 119 of file StarShaped3D.ih.
|
private |
Constructor. Forbidden by default (protected to avoid g++ warnings). Assignment.
other | the object to copy. |
|
inlinevirtual |
Return the orienatation of a point with respect to a shape.
p | input point |
p | any point in the plane. |
Definition at line 87 of file StarShaped3D.ih.
References DGtal::INSIDE, DGtal::ON, and DGtal::OUTSIDE.
|
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 >.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Reimplemented in DGtal::Ball3D< TSpace >.
Definition at line 305 of file StarShaped3D.ih.
|
inlinevirtual |
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). |
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 surfacelength between x(Teta1,Phi1) and x(Teta2,Phi2). |
Definition at line 251 of file StarShaped3D.ih.
References M_PI.
|
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 >.