DGtal 1.3.0
|
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD.. More...
#include <DGtal/shapes/implicit/ImplicitBall.h>
Public Types | |
typedef ImplicitBall< TSpace > | Self |
typedef TSpace | Space |
typedef Space::RealPoint | RealPoint |
typedef Space::Integer | Integer |
typedef double | Value |
Public Member Functions | |
ImplicitBall (const RealPoint &aCenter, const double &aRadius) | |
~ImplicitBall () | |
Value | operator() (const RealPoint &aPoint) const |
Orientation | orientation (const RealPoint &aPoint) const |
RealPoint | getLowerBound () const |
RealPoint | getUpperBound () const |
RealPoint | center () const |
void | moveTo (const RealPoint &newCenter) |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
ImplicitBall () | |
Private Member Functions | |
ImplicitBall & | operator= (const ImplicitBall &other) |
Private Attributes | |
RealPoint | myCenter |
Ball center. More... | |
double | myRadius |
Ball Radius. More... | |
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD..
Description of template class 'ImplicitBall'
Model of CImplicitFunction
TSpace | the Digital space definition. |
Definition at line 64 of file ImplicitBall.h.
typedef Space::Integer DGtal::ImplicitBall< TSpace >::Integer |
Definition at line 71 of file ImplicitBall.h.
typedef Space::RealPoint DGtal::ImplicitBall< TSpace >::RealPoint |
Definition at line 70 of file ImplicitBall.h.
typedef ImplicitBall<TSpace> DGtal::ImplicitBall< TSpace >::Self |
Definition at line 68 of file ImplicitBall.h.
typedef TSpace DGtal::ImplicitBall< TSpace >::Space |
Definition at line 69 of file ImplicitBall.h.
typedef double DGtal::ImplicitBall< TSpace >::Value |
Definition at line 72 of file ImplicitBall.h.
|
inline |
Constructor. Contructs a ball with center aCenter and radius aRadius.
aCenter | the ball center. |
aRadius | the ball radius. |
Definition at line 81 of file ImplicitBall.h.
DGtal::ImplicitBall< TSpace >::~ImplicitBall | ( | ) |
Destructor.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inline |
Definition at line 128 of file ImplicitBall.h.
References DGtal::ImplicitBall< TSpace >::myCenter.
|
inline |
Definition at line 114 of file ImplicitBall.h.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::diagonal(), DGtal::ImplicitBall< TSpace >::myCenter, and DGtal::ImplicitBall< TSpace >::myRadius.
|
inline |
Definition at line 120 of file ImplicitBall.h.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::diagonal(), DGtal::ImplicitBall< TSpace >::myCenter, and DGtal::ImplicitBall< TSpace >::myRadius.
bool DGtal::ImplicitBall< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
inline |
Modify the shape center
newCenter | the new center position |
Definition at line 138 of file ImplicitBall.h.
References DGtal::ImplicitBall< TSpace >::myCenter.
|
inline |
Definition at line 96 of file ImplicitBall.h.
References aPoint(), DGtal::ImplicitBall< TSpace >::myCenter, and DGtal::ImplicitBall< TSpace >::myRadius.
|
private |
Assignment.
other | the object to copy. |
|
inline |
Definition at line 102 of file ImplicitBall.h.
References DGtal::INSIDE, DGtal::ON, and DGtal::OUTSIDE.
void DGtal::ImplicitBall< TSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
Ball center.
Definition at line 164 of file ImplicitBall.h.
Referenced by DGtal::ImplicitBall< TSpace >::center(), DGtal::ImplicitBall< TSpace >::getLowerBound(), DGtal::ImplicitBall< TSpace >::getUpperBound(), DGtal::ImplicitBall< TSpace >::moveTo(), and DGtal::ImplicitBall< TSpace >::operator()().
|
private |
Ball Radius.
Definition at line 167 of file ImplicitBall.h.
Referenced by DGtal::ImplicitBall< TSpace >::getLowerBound(), DGtal::ImplicitBall< TSpace >::getUpperBound(), and DGtal::ImplicitBall< TSpace >::operator()().