DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::CDigitalBoundedShape< TShape > Struct Template Reference

#include <CDigitalBoundedShape.h>

Public Types

typedef TShape::Point Point

Public Member Functions

 BOOST_CONCEPT_USAGE (CDigitalBoundedShape)

Private Attributes

TShape myT
Point myP

Detailed Description

template<typename TShape>
struct DGtal::CDigitalBoundedShape< TShape >

DescriptionDescription of concept 'CDigitalBoundedShape'

Aim: designs the concept of bounded shapes in DGtal (shape for which upper and lower bounding bounds are available).

Refinement of

Associated types :

Notation

Definitions

Valid expressions and

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity
Lower bound x.getLowerBound() Point compute and return the lower bound of the shape bounding box
Upper bound x.getUpperBound() Point compute and return the upper bound of the shape bounding box

Invariants###

Models###

Implicit and Parametric shapes of the shape factory.

Notes###

Definition at line 114 of file CDigitalBoundedShape.h.


Member Typedef Documentation

template<typename TShape >
typedef TShape::Point DGtal::CDigitalBoundedShape< TShape >::Point

Definition at line 119 of file CDigitalBoundedShape.h.


Member Function Documentation

template<typename TShape >
DGtal::CDigitalBoundedShape< TShape >::BOOST_CONCEPT_USAGE ( CDigitalBoundedShape< TShape >  )
inline

Definition at line 121 of file CDigitalBoundedShape.h.

References DGtal::CDigitalBoundedShape< TShape >::myP, DGtal::CDigitalBoundedShape< TShape >::myT, and DGtal::ConceptUtils::sameType().

{
// Shape should have a getUpperBound() returning a Point.
ConceptUtils::sameType( myP, myT.getUpperBound() );
// Shape should have a getLowerBound() returning a Point.
ConceptUtils::sameType( myP, myT.getLowerBound() );
}

Field Documentation

template<typename TShape >
Point DGtal::CDigitalBoundedShape< TShape >::myP
private
template<typename TShape >
TShape DGtal::CDigitalBoundedShape< TShape >::myT
private

The documentation for this struct was generated from the following file: