30#if defined(EuclideanShapesDecorator_RECURSES)
31#error Recursive header files inclusion detected in EuclideanShapesDecorator.h
34#define EuclideanShapesDecorator_RECURSES
36#if !defined EuclideanShapesDecorator_h
38#define EuclideanShapesDecorator_h
43#include "DGtal/base/Common.h"
44#include "DGtal/base/ConstAlias.h"
46#include "DGtal/shapes/CEuclideanBoundedShape.h"
47#include "DGtal/shapes/CEuclideanOrientedShape.h"
66 template <
typename ShapeA,
typename ShapeB>
81 typedef typename ShapeA::Space
Space;
163 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
165 std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape(
e_plus, b );
187 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
189 std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape(
e_intersection, b );
211 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
213 std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape(
e_minus, b );
224 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
235 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
250 FATAL_ERROR_MSG(
isValid(),
"Operation invalid. Maybe you don't set a ShapeA object." );
254 for(
unsigned int i = 0; i <
v_shapes.size(); ++i)
269 else if ((
v_shapes[i].second->orientation( p ) ==
ON ) && ( orient !=
OUTSIDE ))
288 else if (( orient ==
ON ) || (
v_shapes[i].second->orientation( p ) ==
ON ))
326 std::vector< std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > >
v_shapes;
347#undef EuclideanShapesDecorator_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
std::vector< std::pair< e_operator, CountedConstPtrOrConstPtr< KernelSupport > > > v_shapes
void selfDisplay(std::ostream &out) const
Orientation orientation(const RealPoint &p) const
void intersection(ConstAlias< ShapeB > b)
BOOST_CONCEPT_ASSERT((concepts::CEuclideanOrientedShape< ShapeA >))
EuclideanShapesCSG(ConstAlias< ShapeA > a)
void setParams(ConstAlias< ShapeA > a)
KernelSupport::Space Space
RealPoint getLowerBound() const
void plus(ConstAlias< ShapeB > b)
EuclideanShapesCSG & operator=(const EuclideanShapesCSG &other)
KernelSupport::RealPoint RealPoint
BOOST_CONCEPT_ASSERT((concepts::CEuclideanBoundedShape< ShapeA >))
RealPoint getUpperBound() const
CountedConstPtrOrConstPtr< KernelSupport > myShapeA
EuclideanShapesCSG(const EuclideanShapesCSG &other)
void minus(ConstAlias< ShapeB > b)
static const Dimension dimension
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Aim: characterizes models of digital oriented shapes. For example, models should provide an orientati...