DGtal 1.4.0
|
Aim: Defines the concept describing an object that computes some primitive from input points given one at a time, while keeping some internal state. At any moment, the object is supposed to store at least one valid primitive for the formerly given input points. A primitive is an informal word that describes some family of objects that share common characteristics. Often, the primitives are geometric, e.g. digital planes. More...
#include <DGtal/geometry/surfaces/CIncrementalPrimitiveComputer.h>
Public Types | |
typedef T::Point | Point |
Public Types inherited from DGtal::concepts::CPrimitiveComputer< T > | |
typedef T::Primitive | Primitive |
typedef T::Space | Space |
Public Member Functions | |
BOOST_CONCEPT_USAGE (CIncrementalPrimitiveComputer) | |
void | checkConstConstraints () const |
Public Member Functions inherited from DGtal::concepts::CPrimitiveComputer< T > | |
BOOST_CONCEPT_USAGE (CPrimitiveComputer) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myX |
Point | myPoint |
bool | myBool |
Aim: Defines the concept describing an object that computes some primitive from input points given one at a time, while keeping some internal state. At any moment, the object is supposed to store at least one valid primitive for the formerly given input points. A primitive is an informal word that describes some family of objects that share common characteristics. Often, the primitives are geometric, e.g. digital planes.
Description of concept 'CIncrementalPrimitiveComputer'
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
insert new point | x.extend(p) | bool | tries to find a primitive that matches the new point p and all formerly given input points, return true on success (state may change), false otherwise (state is unchanged) | ||||
check new point | x.isExtendable(p) | bool | tries to find a primitive that matches the new point p and all formerly given input points, return true only if it possible, the state is always unchanged |
T | the type that should be a model of CIncrementalPrimitiveComputer. |
Definition at line 99 of file CIncrementalPrimitiveComputer.h.
typedef T::Point DGtal::concepts::CIncrementalPrimitiveComputer< T >::Point |
Definition at line 104 of file CIncrementalPrimitiveComputer.h.
|
inline |
Definition at line 107 of file CIncrementalPrimitiveComputer.h.
References DGtal::concepts::CIncrementalPrimitiveComputer< T >::checkConstConstraints(), DGtal::concepts::CIncrementalPrimitiveComputer< T >::myBool, DGtal::concepts::CIncrementalPrimitiveComputer< T >::myPoint, DGtal::concepts::CIncrementalPrimitiveComputer< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
|
inline |
Definition at line 112 of file CIncrementalPrimitiveComputer.h.
References DGtal::concepts::CIncrementalPrimitiveComputer< T >::myBool, DGtal::concepts::CIncrementalPrimitiveComputer< T >::myPoint, DGtal::concepts::CIncrementalPrimitiveComputer< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
Referenced by DGtal::concepts::CIncrementalPrimitiveComputer< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 120 of file CIncrementalPrimitiveComputer.h.
Referenced by DGtal::concepts::CIncrementalPrimitiveComputer< T >::BOOST_CONCEPT_USAGE(), and DGtal::concepts::CIncrementalPrimitiveComputer< T >::checkConstConstraints().
|
private |
Definition at line 119 of file CIncrementalPrimitiveComputer.h.
Referenced by DGtal::concepts::CIncrementalPrimitiveComputer< T >::BOOST_CONCEPT_USAGE(), and DGtal::concepts::CIncrementalPrimitiveComputer< T >::checkConstConstraints().
|
private |
Definition at line 118 of file CIncrementalPrimitiveComputer.h.
Referenced by DGtal::concepts::CIncrementalPrimitiveComputer< T >::BOOST_CONCEPT_USAGE(), and DGtal::concepts::CIncrementalPrimitiveComputer< T >::checkConstConstraints().