DGtal  1.1.0
DigitalShapesDecorator.h
1 
17 #pragma once
18 
30 #if defined(DigitalShapesDecorator_RECURSES)
31 #error Recursive header files inclusion detected in DigitalShapesDecorator.h
32 #else // defined(DigitalShapesDecorator_RECURSES)
33 
34 #define DigitalShapesDecorator_RECURSES
35 
36 #if !defined DigitalShapesDecorator_h
37 
38 #define DigitalShapesDecorator_h
39 
41 // Inclusions
42 #include <iostream>
43 #include "DGtal/base/Common.h"
44 #include "DGtal/base/ConstAlias.h"
45 
46 #include "DGtal/shapes/CDigitalBoundedShape.h"
47 #include "DGtal/shapes/CDigitalOrientedShape.h"
49 
50 namespace DGtal
51 {
52 
54  // template class DigitalShapesCSG
66  template <typename ShapeA, typename ShapeB>
68  {
69  protected:
71  {
74  e_minus
75  };
76 
77  public:
80 
81  typedef typename ShapeA::Space Space;
82  typedef typename ShapeA::Point Point;
83 
89  : bIsValid(false)
90  {}
91 
98  : myShapeA(other.myShapeA), v_shapes(other.v_shapes),
100  bIsValid(other.bIsValid)
101  {}
102 
103 
110  : myShapeA( a )
111  {
112  myLowerBound = myShapeA->getLowerBound();
113  myUpperBound = myShapeA->getUpperBound();
114 
115  bIsValid = true;
116  }
117 
126  {
127  myShapeA = other.myShapeA;
128  v_shapes = other.v_shapes;
129 
130  myLowerBound = other.myLowerBound;
131  myUpperBound = other.myUpperBound;
132 
133  bIsValid = other.bIsValid;
134 
135  return *this;
136  }
137 
144  {
145  myShapeA = a;
146 
147  myLowerBound = myShapeA->getLowerBound();
148  myUpperBound = myShapeA->getUpperBound();
149 
150  bIsValid = true;
151  }
152 
160  {
163 
164  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
165 
166  std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape( e_plus, b );
167 
168  for(Dimension i =0; i < Space::dimension; ++i)
169  {
170  myLowerBound[i] = std::min(myLowerBound[i], b->getLowerBound()[i]);
171  myUpperBound[i] = std::max(myUpperBound[i], b->getUpperBound()[i]);
172  }
173 
174  v_shapes.push_back(shape);
175  }
176 
184  {
187 
188  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
189 
190  std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape( e_intersection, b );
191 
192  for(Dimension i=0; i < Space::dimension; ++i)
193  {
194  myLowerBound[i] = std::max(myLowerBound[i], b->getLowerBound()[i]);
195  myUpperBound[i] = std::min(myUpperBound[i], b->getUpperBound()[i]);
196  }
197 
198  v_shapes.push_back(shape);
199  }
200 
208  {
211 
212  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
213 
214  std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > shape( e_minus, b );
215 
216  v_shapes.push_back(shape);
217 
218  }
219 
225  {
226  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
227 
228  return myLowerBound;
229  }
230 
236  {
237  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
238 
239  return myUpperBound;
240  }
241 
250  Orientation orientation( const Point & p ) const
251  {
252  FATAL_ERROR_MSG( isValid(), "Operation invalid. Maybe you don't set a ShapeA object." );
253 
254  Orientation orient = myShapeA->orientation( p );
255 
256  for(unsigned int i = 0; i < v_shapes.size(); ++i)
257  {
258  if( v_shapes[i].first == e_minus )
259  {
260  if (( v_shapes[i].second->orientation( p ) == INSIDE ) || ( v_shapes[i].second->orientation( p ) == ON ))
261  {
262  orient = OUTSIDE;
263  }
264  }
265  else if( v_shapes[i].first == e_intersection )
266  {
267  if (( orient == ON ) && ( v_shapes[i].second->orientation( p ) != OUTSIDE ))
268  {
269  orient = ON;
270  }
271  else if (( v_shapes[i].second->orientation( p ) == ON ) && ( orient != OUTSIDE ))
272  {
273  orient = ON;
274  }
275  else if (( orient == INSIDE ) && ( v_shapes[i].second->orientation( p ) == INSIDE ))
276  {
277  orient = INSIDE;
278  }
279  else
280  {
281  orient = OUTSIDE;
282  }
283  }
284  else
285  {
286  if (( orient == INSIDE ) || ( v_shapes[i].second->orientation( p ) == INSIDE ))
287  {
288  orient = INSIDE;
289  }
290  else if (( orient == ON ) || ( v_shapes[i].second->orientation( p ) == ON ))
291  {
292  orient = ON;
293  }
294  else
295  {
296  orient = OUTSIDE;
297  }
298  }
299  }
300 
301  return orient;
302  }
303 
304  public:
305 
310  void selfDisplay ( std::ostream & out ) const;
311 
316  bool isValid() const
317  {
318  return bIsValid;
319  }
320 
321  // ------------------------- Internals ------------------------------------
322  private:
323 
326 
328  std::vector< std::pair<e_operator, CountedConstPtrOrConstPtr< ShapeB > > > v_shapes;
329 
332 
335 
337  bool bIsValid;
338 
339  };
340 
341 namespace deprecated
342 {
343 
345 // template class DigitalShapesUnion
353 template <typename ShapeA, typename ShapeB>
355 {
356  // ----------------------- Standard services ------------------------------
357 public:
362 
363  typedef typename ShapeA::Space Space;
364  typedef typename ShapeA::Point Point;
365 
373  : myShapeA( a ),
374  myShapeB( b )
375  {
376  Point shapeALowerBoundary = myShapeA.getLowerBound();
377  Point shapeBLowerBoundary = myShapeB.getLowerBound();
378  Point shapeAUpperBoundary = myShapeA.getUpperBound();
379  Point shapeBUpperBoundary = myShapeB.getUpperBound();
380  for ( unsigned int i = 0; i < myLowerBound.size(); ++i )
381  {
382  myLowerBound[ i ] = std::min( shapeALowerBoundary[ i ], shapeBLowerBoundary[ i ] );
383  myUpperBound[ i ] = std::max( shapeAUpperBoundary[ i ], shapeBUpperBoundary[ i ] );
384  }
385  }
386 
387 
393  {
394  return myLowerBound;
395  }
396 
402  {
403  return myUpperBound;
404  }
405 
413  Orientation orientation( const Point & p ) const
414  {
415  if (( myShapeA.orientation( p ) == INSIDE ) || ( myShapeB.orientation( p ) == INSIDE ))
416  {
417  return INSIDE;
418  }
419  else if (( myShapeA.orientation( p ) == ON ) || ( myShapeB.orientation( p ) == ON ))
420  {
421  return ON;
422  }
423  return OUTSIDE;
424  }
425 
430 
431  // ----------------------- Interface --------------------------------------
432 public:
433 
438  void selfDisplay ( std::ostream & out ) const;
439 
444  bool isValid() const;
445 
446  // ------------------------- Hidden services ------------------------------
447 protected:
448 
454 
455 private:
456 
463 
471 
472  // ------------------------- Internals ------------------------------------
473 private:
474  const ShapeA & myShapeA;
475  const ShapeB & myShapeB;
476 
479 
480 }; // end of class DigitalShapesUnion
481 
483 // template class DigitalShapesIntersection
491 template <typename ShapeA, typename ShapeB>
493 {
494  // ----------------------- Standard services ------------------------------
495 public:
500 
501  typedef typename ShapeA::Space Space;
502  typedef typename ShapeA::Point Point;
503 
511  : myShapeA( a ),
512  myShapeB( b )
513  {
514  Point shapeALowerBoundary = myShapeA.getLowerBound();
515  Point shapeBLowerBoundary = myShapeB.getLowerBound();
516  Point shapeAUpperBoundary = myShapeA.getUpperBound();
517  Point shapeBUpperBoundary = myShapeB.getUpperBound();
518  for ( unsigned int i = 0; i < myLowerBound.size(); ++i )
519  {
520  myLowerBound[ i ] = std::min( shapeALowerBoundary[ i ], shapeBLowerBoundary[ i ] );
521  myUpperBound[ i ] = std::max( shapeAUpperBoundary[ i ], shapeBUpperBoundary[ i ] );
522  }
523  }
524 
525 
531  {
532  return myLowerBound;
533  }
534 
540  {
541  return myUpperBound;
542  }
543 
551  Orientation orientation( const Point & p ) const
552  {
553  if (( myShapeA.orientation( p ) == ON ) && ( myShapeB.orientation( p ) != OUTSIDE ))
554  {
555  return ON;
556  }
557  else if (( myShapeB.orientation( p ) == ON ) && ( myShapeA.orientation( p ) != OUTSIDE ))
558  {
559  return ON;
560  }
561  else if (( myShapeA.orientation( p ) == INSIDE ) && ( myShapeB.orientation( p ) == INSIDE ))
562  {
563  return INSIDE;
564  }
565 
566  return OUTSIDE;
567  }
568 
569 
574 
575  // ----------------------- Interface --------------------------------------
576 public:
577 
582  void selfDisplay ( std::ostream & out ) const;
583 
588  bool isValid() const;
589 
590  // ------------------------- Hidden services ------------------------------
591 protected:
592 
598 
599 private:
600 
607 
615 
616  // ------------------------- Internals ------------------------------------
617 private:
618  const ShapeA & myShapeA;
619  const ShapeB & myShapeB;
620 
623 
624 }; // end of class DigitalShapesIntersection
625 
627 // template class DigitalShapesMinus
635 template <typename ShapeA, typename ShapeB>
637 {
638  // ----------------------- Standard services ------------------------------
639 public:
644 
645  typedef typename ShapeA::Space Space;
646  typedef typename ShapeA::Point Point;
647 
655  : myShapeA( a ),
656  myShapeB( b )
657  {
658  Point shapeALowerBoundary = myShapeA.getLowerBound();
659  Point shapeBLowerBoundary = myShapeB.getLowerBound();
660  Point shapeAUpperBoundary = myShapeA.getUpperBound();
661  Point shapeBUpperBoundary = myShapeB.getUpperBound();
662  for ( unsigned int i = 0; i < myLowerBound.size(); ++i )
663  {
664  myLowerBound[ i ] = std::min( shapeALowerBoundary[ i ], shapeBLowerBoundary[ i ] );
665  myUpperBound[ i ] = std::max( shapeAUpperBoundary[ i ], shapeBUpperBoundary[ i ] );
666  }
667  }
668 
669 
675  {
676  return myLowerBound;
677  }
678 
684  {
685  return myUpperBound;
686  }
687 
695  Orientation orientation( const Point & p ) const
696  {
697  if (( myShapeB.orientation( p ) == INSIDE ) || ( myShapeB.orientation( p ) == ON ))
698  {
699  return OUTSIDE;
700  }
701  return myShapeA.orientation( p );
702  }
703 
704 
709 
710  // ----------------------- Interface --------------------------------------
711 public:
712 
717  void selfDisplay ( std::ostream & out ) const;
718 
723  bool isValid() const;
724 
725  // ------------------------- Hidden services ------------------------------
726 protected:
727 
733 
734 private:
735 
742 
750 
751  // ------------------------- Internals ------------------------------------
752 private:
753  const ShapeA & myShapeA;
754  const ShapeB & myShapeB;
755 
758 
759 }; // end of class DigitalShapesMinus
760 }
761 
768  template <typename ShapeA, typename ShapeB>
769  std::ostream&
770  operator<< ( std::ostream & out, const deprecated::DigitalShapesUnion< ShapeA, ShapeB > & object );
771 
772  template <typename ShapeA, typename ShapeB>
773  std::ostream&
774  operator<< ( std::ostream & out, const deprecated::DigitalShapesIntersection< ShapeA, ShapeB > & object );
775 
776  template <typename ShapeA, typename ShapeB>
777  std::ostream&
778  operator<< ( std::ostream & out, const deprecated::DigitalShapesMinus< ShapeA, ShapeB > & object );
779 
780 } // namespace DGtal
781 
782 
783 
784 #endif // !defined DigitalShapesDecorator_h
785 
786 #undef DigitalShapesDecorator_RECURSES
787 #endif // else defined(DigitalShapesDecorator_RECURSES)
DGtal::deprecated::DigitalShapesUnion::myShapeA
const ShapeA & myShapeA
Definition: DigitalShapesDecorator.h:474
DGtal::deprecated::DigitalShapesUnion::Point
ShapeA::Point Point
Definition: DigitalShapesDecorator.h:364
DGtal::DigitalShapesCSG::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeA >))
DGtal::DigitalShapesCSG::v_shapes
std::vector< std::pair< e_operator, CountedConstPtrOrConstPtr< ShapeB > > > v_shapes
Vector of all operations (ordered) of ShapeB.
Definition: DigitalShapesDecorator.h:328
DGtal::DigitalShapesCSG::getUpperBound
Point getUpperBound() const
Definition: DigitalShapesDecorator.h:235
DGtal::deprecated::DigitalShapesUnion::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeB >))
DGtal::deprecated::DigitalShapesIntersection::operator=
DigitalShapesIntersection & operator=(const DigitalShapesIntersection &other)
DGtal::deprecated::DigitalShapesIntersection::DigitalShapesIntersection
DigitalShapesIntersection()
DGtal::deprecated::DigitalShapesUnion::DigitalShapesUnion
DigitalShapesUnion(const DigitalShapesUnion &other)
DGtal::DigitalShapesCSG::e_intersection
@ e_intersection
Definition: DigitalShapesDecorator.h:73
DGtal::ConstAlias
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition: ConstAlias.h:187
DGtal::deprecated::DigitalShapesIntersection
Aim: Intersection between two models of CDigitalBoundedShape and CDigitalOrientedShape.
Definition: DigitalShapesDecorator.h:493
DGtal::deprecated::DigitalShapesUnion::orientation
Orientation orientation(const Point &p) const
Definition: DigitalShapesDecorator.h:413
DGtal::deprecated::DigitalShapesMinus::selfDisplay
void selfDisplay(std::ostream &out) const
max
int max(int a, int b)
Definition: testArithmeticalDSS.cpp:1108
DGtal::deprecated::DigitalShapesIntersection::getUpperBound
Point getUpperBound() const
Definition: DigitalShapesDecorator.h:539
DGtal::deprecated::DigitalShapesMinus::isValid
bool isValid() const
DGtal::deprecated::DigitalShapesMinus::operator=
DigitalShapesMinus & operator=(const DigitalShapesMinus &other)
DGtal::ON
@ ON
Definition: Common.h:138
DGtal::deprecated::DigitalShapesUnion::operator=
DigitalShapesUnion & operator=(const DigitalShapesUnion &other)
DGtal::Dimension
DGtal::uint32_t Dimension
Definition: Common.h:133
DGtal::deprecated::DigitalShapesUnion::Space
ShapeA::Space Space
Definition: DigitalShapesDecorator.h:363
DGtal::deprecated::DigitalShapesMinus
Aim: Minus between two models of CDigitalBoundedShape and CDigitalOrientedShape.
Definition: DigitalShapesDecorator.h:637
DGtal::DigitalShapesCSG::Point
ShapeA::Point Point
Definition: DigitalShapesDecorator.h:82
DGtal::DigitalShapesCSG::intersection
void intersection(ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:183
DGtal::deprecated::DigitalShapesMinus::getLowerBound
Point getLowerBound() const
Definition: DigitalShapesDecorator.h:674
DGtal::deprecated::DigitalShapesMinus::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeA >))
DGtal::deprecated::DigitalShapesMinus::DigitalShapesMinus
DigitalShapesMinus(const DigitalShapesMinus &other)
DGtal::DigitalShapesCSG::getLowerBound
Point getLowerBound() const
Definition: DigitalShapesDecorator.h:224
DGtal::deprecated::DigitalShapesMinus::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeB >))
DGtal::deprecated::DigitalShapesMinus::Space
ShapeA::Space Space
Definition: DigitalShapesDecorator.h:645
DGtal::deprecated::DigitalShapesUnion::isValid
bool isValid() const
DGtal::deprecated::DigitalShapesUnion
Aim: Union between two models of CDigitalBoundedShape and CDigitalOrientedShape.
Definition: DigitalShapesDecorator.h:355
DGtal::deprecated::DigitalShapesIntersection::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeB >))
DGtal::DigitalShapesCSG::plus
void plus(ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:159
DGtal::deprecated::DigitalShapesIntersection::myLowerBound
Point myLowerBound
Definition: DigitalShapesDecorator.h:621
DGtal::deprecated::DigitalShapesIntersection::myShapeB
const ShapeB & myShapeB
Definition: DigitalShapesDecorator.h:619
DGtal::deprecated::DigitalShapesIntersection::getLowerBound
Point getLowerBound() const
Definition: DigitalShapesDecorator.h:530
DGtal::deprecated::DigitalShapesUnion::myShapeB
const ShapeB & myShapeB
Definition: DigitalShapesDecorator.h:475
DGtal::Orientation
Orientation
Definition: Common.h:138
DGtal::deprecated::DigitalShapesUnion::DigitalShapesUnion
DigitalShapesUnion(ConstAlias< ShapeA > a, ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:372
DGtal::deprecated::DigitalShapesUnion::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeA >))
DGtal::deprecated::DigitalShapesIntersection::myUpperBound
Point myUpperBound
Definition: DigitalShapesDecorator.h:622
DGtal::deprecated::DigitalShapesMinus::myShapeA
const ShapeA & myShapeA
Definition: DigitalShapesDecorator.h:753
DGtal::CountedConstPtrOrConstPtr< ShapeA >
DGtal::deprecated::DigitalShapesMinus::myUpperBound
Point myUpperBound
Definition: DigitalShapesDecorator.h:757
DGtal::deprecated::DigitalShapesMinus::getUpperBound
Point getUpperBound() const
Definition: DigitalShapesDecorator.h:683
DGtal::DigitalShapesCSG::DigitalShapesCSG
DigitalShapesCSG()
Definition: DigitalShapesDecorator.h:88
DGtal::DigitalShapesCSG::setParams
void setParams(ConstAlias< ShapeA > a)
Definition: DigitalShapesDecorator.h:143
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::deprecated::DigitalShapesMinus::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeA >))
DGtal::DigitalShapesCSG::minus
void minus(ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:207
DGtal::deprecated::DigitalShapesUnion::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeB >))
DGtal::DigitalShapesCSG::Space
ShapeA::Space Space
Definition: DigitalShapesDecorator.h:81
DGtal::deprecated::DigitalShapesIntersection::orientation
Orientation orientation(const Point &p) const
Definition: DigitalShapesDecorator.h:551
DGtal::deprecated::DigitalShapesIntersection::~DigitalShapesIntersection
~DigitalShapesIntersection()
Definition: DigitalShapesDecorator.h:573
DGtal::deprecated::DigitalShapesIntersection::isValid
bool isValid() const
DGtal::concepts::CDigitalOrientedShape
Aim: characterizes models of digital oriented shapes. For example, models should provide an orientati...
Definition: CDigitalOrientedShape.h:91
DGtal::deprecated::DigitalShapesIntersection::myShapeA
const ShapeA & myShapeA
Definition: DigitalShapesDecorator.h:618
DGtal::deprecated::DigitalShapesUnion::~DigitalShapesUnion
~DigitalShapesUnion()
Definition: DigitalShapesDecorator.h:429
DGtal::deprecated::DigitalShapesMinus::myLowerBound
Point myLowerBound
Definition: DigitalShapesDecorator.h:756
DGtal::DigitalShapesCSG::DigitalShapesCSG
DigitalShapesCSG(ConstAlias< ShapeA > a)
Definition: DigitalShapesDecorator.h:109
DGtal::deprecated::DigitalShapesUnion::DigitalShapesUnion
DigitalShapesUnion()
DGtal::SpaceND::dimension
static const Dimension dimension
static constants to store the dimension.
Definition: SpaceND.h:132
DGtal::deprecated::DigitalShapesMinus::myShapeB
const ShapeB & myShapeB
Definition: DigitalShapesDecorator.h:754
DGtal::DigitalShapesCSG
Aim: Constructive Solid Geometry (CSG) between models of CDigitalBoundedShape and CDigitalOrientedSha...
Definition: DigitalShapesDecorator.h:68
DGtal::DigitalShapesCSG::bIsValid
bool bIsValid
if the CSG is valid.
Definition: DigitalShapesDecorator.h:337
DGtal::DigitalShapesCSG::e_plus
@ e_plus
Definition: DigitalShapesDecorator.h:72
DGtal::DigitalShapesCSG::e_minus
@ e_minus
Definition: DigitalShapesDecorator.h:74
DGtal::DigitalShapesCSG::e_operator
e_operator
Definition: DigitalShapesDecorator.h:71
DGtal::DigitalShapesCSG::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::deprecated::DigitalShapesIntersection::Point
ShapeA::Point Point
Definition: DigitalShapesDecorator.h:502
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::deprecated::DigitalShapesMinus::~DigitalShapesMinus
~DigitalShapesMinus()
Definition: DigitalShapesDecorator.h:708
DGtal::deprecated::DigitalShapesMinus::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeB >))
DGtal::deprecated::DigitalShapesUnion::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::deprecated::DigitalShapesIntersection::DigitalShapesIntersection
DigitalShapesIntersection(ConstAlias< ShapeA > a, ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:510
DGtal::deprecated::DigitalShapesMinus::Point
ShapeA::Point Point
Definition: DigitalShapesDecorator.h:646
DGtal::deprecated::DigitalShapesUnion::getUpperBound
Point getUpperBound() const
Definition: DigitalShapesDecorator.h:401
DGtal::DigitalShapesCSG::myShapeA
CountedConstPtrOrConstPtr< ShapeA > myShapeA
Base Shape.
Definition: DigitalShapesDecorator.h:325
DGtal::deprecated::DigitalShapesIntersection::DigitalShapesIntersection
DigitalShapesIntersection(const DigitalShapesIntersection &other)
DGtal::deprecated::DigitalShapesUnion::getLowerBound
Point getLowerBound() const
Definition: DigitalShapesDecorator.h:392
DGtal::DigitalShapesCSG::isValid
bool isValid() const
Definition: DigitalShapesDecorator.h:316
DGtal::DigitalShapesCSG::myLowerBound
Point myLowerBound
Domain lower bound.
Definition: DigitalShapesDecorator.h:331
DGtal::deprecated::DigitalShapesIntersection::Space
ShapeA::Space Space
Definition: DigitalShapesDecorator.h:501
DGtal::DigitalShapesCSG::operator=
DigitalShapesCSG & operator=(const DigitalShapesCSG &other)
Definition: DigitalShapesDecorator.h:125
DGtal::OUTSIDE
@ OUTSIDE
Definition: Common.h:138
DGtal::deprecated::DigitalShapesUnion::myLowerBound
Point myLowerBound
Definition: DigitalShapesDecorator.h:477
DGtal::deprecated::DigitalShapesUnion::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeA >))
DGtal::DigitalShapesCSG::orientation
Orientation orientation(const Point &p) const
Definition: DigitalShapesDecorator.h:250
DGtal::deprecated::DigitalShapesMinus::DigitalShapesMinus
DigitalShapesMinus()
Space
SpaceND< 2 > Space
Definition: testSimpleRandomAccessRangeFromPoint.cpp:42
DGtal::deprecated::DigitalShapesIntersection::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::deprecated::DigitalShapesIntersection::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeA >))
DGtal::deprecated::DigitalShapesMinus::DigitalShapesMinus
DigitalShapesMinus(ConstAlias< ShapeA > a, ConstAlias< ShapeB > b)
Definition: DigitalShapesDecorator.h:654
DGtal::concepts::CDigitalBoundedShape
Aim: designs the concept of bounded shapes in DGtal (shape for which upper and lower bounding bounds ...
Definition: CDigitalBoundedShape.h:91
DGtal::DigitalShapesCSG::myUpperBound
Point myUpperBound
Domain upper bound.
Definition: DigitalShapesDecorator.h:334
DGtal::deprecated::DigitalShapesIntersection::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeA >))
DGtal::deprecated::DigitalShapesMinus::orientation
Orientation orientation(const Point &p) const
Definition: DigitalShapesDecorator.h:695
DGtal::deprecated::DigitalShapesUnion::myUpperBound
Point myUpperBound
Definition: DigitalShapesDecorator.h:478
DGtal::DigitalShapesCSG::DigitalShapesCSG
DigitalShapesCSG(const DigitalShapesCSG &other)
Definition: DigitalShapesDecorator.h:97
Point
MyPointD Point
Definition: testClone2.cpp:383
DGtal::DigitalShapesCSG::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalBoundedShape< ShapeA >))
DGtal::INSIDE
@ INSIDE
Definition: Common.h:138
DGtal::deprecated::DigitalShapesIntersection::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDigitalOrientedShape< ShapeB >))