|
DGtal
0.6.devel
|
#include <ImplicitNorm1Ball.h>
Public Types | |
| typedef ImplicitNorm1Ball< TSpace > | Self |
| typedef TSpace | Space |
| typedef Space::RealPoint | RealPoint |
| typedef double | Value |
Public Member Functions | |
| ImplicitNorm1Ball (const RealPoint &aCenter, const double &aHalfWidth) | |
| ~ImplicitNorm1Ball () | |
| double | operator() (const RealPoint &aPoint) const |
| bool | isInside (const RealPoint &aPoint) const |
| Orientation | orientation (const RealPoint &aPoint) const |
| RealPoint | getLowerBound () const |
| RealPoint | getUpperBound () const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Protected Member Functions | |
| ImplicitNorm1Ball () | |
Private Member Functions | |
| ImplicitNorm1Ball & | operator= (const ImplicitNorm1Ball &other) |
Private Attributes | |
| RealPoint | myCenter |
| double | myHalfWidth |
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball for the L_1 norm in nD.
Description of template class 'ImplicitNorm1Ball'
| TSpace | the Digital space definition. |
Definition at line 59 of file ImplicitNorm1Ball.h.
| typedef Space::RealPoint DGtal::ImplicitNorm1Ball< TSpace >::RealPoint |
Definition at line 65 of file ImplicitNorm1Ball.h.
| typedef ImplicitNorm1Ball<TSpace> DGtal::ImplicitNorm1Ball< TSpace >::Self |
Definition at line 63 of file ImplicitNorm1Ball.h.
| typedef TSpace DGtal::ImplicitNorm1Ball< TSpace >::Space |
Definition at line 64 of file ImplicitNorm1Ball.h.
| typedef double DGtal::ImplicitNorm1Ball< TSpace >::Value |
Definition at line 66 of file ImplicitNorm1Ball.h.
|
inline |
Constructor. Contructs a ball with center aCenter and width aWidth.
| aCenter | the cube center. |
| aHalfWidth | the cube half-width. |
Definition at line 75 of file ImplicitNorm1Ball.h.
|
inline |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inline |
Returns the lower bound of the Shape bounding box.
Definition at line 137 of file ImplicitNorm1Ball.h.
References DGtal::ImplicitNorm1Ball< TSpace >::myCenter, and DGtal::ImplicitNorm1Ball< TSpace >::myHalfWidth.
|
inline |
Returns the upper bound of the Shape bounding box.
Definition at line 149 of file ImplicitNorm1Ball.h.
References DGtal::ImplicitNorm1Ball< TSpace >::myCenter, and DGtal::ImplicitNorm1Ball< TSpace >::myHalfWidth.
|
inline |
Return true if the given point belongs to the shape.
| aPoint | the point to evalute the function at. |
Definition at line 111 of file ImplicitNorm1Ball.h.
References DGtal::ImplicitNorm1Ball< TSpace >::operator()().
|
inline |
Checks the validity/consistency of the object.
Definition at line 72 of file ImplicitNorm1Ball.ih.
|
inline |
Operator() of the implicit function. Given a point, it returns the function value at p. In Shapes, positive values are used to construct a set.
| aPoint | the point to evalute the function at. |
Definition at line 99 of file ImplicitNorm1Ball.h.
References DGtal::ImplicitNorm1Ball< TSpace >::myCenter.
Referenced by DGtal::ImplicitNorm1Ball< TSpace >::isInside().
|
private |
Assignment.
| other | the object to copy. |
|
inline |
Definition at line 119 of file ImplicitNorm1Ball.h.
References DGtal::INSIDE, DGtal::ON, and DGtal::OUTSIDE.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 60 of file ImplicitNorm1Ball.ih.
|
private |
Ball center.
Definition at line 175 of file ImplicitNorm1Ball.h.
Referenced by DGtal::ImplicitNorm1Ball< TSpace >::getLowerBound(), DGtal::ImplicitNorm1Ball< TSpace >::getUpperBound(), and DGtal::ImplicitNorm1Ball< TSpace >::operator()().
|
private |
Ball HalfWidth.
Definition at line 178 of file ImplicitNorm1Ball.h.
Referenced by DGtal::ImplicitNorm1Ball< TSpace >::getLowerBound(), and DGtal::ImplicitNorm1Ball< TSpace >::getUpperBound().
1.8.1.1