Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD..
More...
#include <DGtal/shapes/implicit/ImplicitBall.h>
template<typename TSpace>
class DGtal::ImplicitBall< TSpace >
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD..
Description of template class 'ImplicitBall'
Model of CImplicitFunction
- Template Parameters
-
TSpace | the Digital space definition. |
- Examples
- shapes/exampleEuclideanShapesDecorator.cpp, topology/frontierAndBoundary.cpp, and tutorial-examples/volDTGranulo.cpp.
Definition at line 64 of file ImplicitBall.h.
◆ Integer
template<typename TSpace>
◆ RealPoint
template<typename TSpace>
◆ Self
template<typename TSpace>
◆ Space
template<typename TSpace>
◆ Value
template<typename TSpace>
◆ ImplicitBall() [1/2]
template<typename TSpace>
Constructor. Contructs a ball with center aCenter and radius aRadius.
- Parameters
-
aCenter | the ball center. |
aRadius | the ball radius. |
Definition at line 81 of file ImplicitBall.h.
83 {};
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball in nD....
double myRadius
Ball Radius.
RealPoint myCenter
Ball center.
◆ ~ImplicitBall()
template<typename TSpace>
◆ ImplicitBall() [2/2]
template<typename TSpace>
Constructor. Forbidden by default (protected to avoid g++ warnings).
◆ center()
template<typename TSpace>
- Returns
- the center of the star-shaped object.
Definition at line 128 of file ImplicitBall.h.
◆ getLowerBound()
template<typename TSpace>
◆ getUpperBound()
template<typename TSpace>
◆ isValid()
template<typename TSpace>
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ moveTo()
template<typename TSpace>
Modify the shape center
- Parameters
-
newCenter | the new center position |
Definition at line 138 of file ImplicitBall.h.
◆ operator()()
template<typename TSpace>
◆ operator=()
template<typename TSpace>
Assignment.
- Parameters
-
- Returns
- a reference on 'this'. Forbidden by default.
◆ orientation()
template<typename TSpace>
Definition at line 102 of file ImplicitBall.h.
103 {
104 if (this->
operator()(
aPoint) > 0.0)
106 else
107 if (this->
operator()(
aPoint) < 0.0)
109 else
111 }
◆ selfDisplay()
template<typename TSpace>
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ myCenter
template<typename TSpace>
◆ myRadius
template<typename TSpace>
The documentation for this class was generated from the following file: