Fade2.5D Documentation pages v2.16.8
Delaunay Features
PShape.h
Go to the documentation of this file.
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the Fade2D library. The student license is free
4 // of charge and covers personal, non-commercial research. Licensees
5 // holding a commercial license may use this file in accordance with
6 // the Commercial License Agreement.
7 //
8 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
9 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
10 // FOR A PARTICULAR PURPOSE.
11 //
12 // Please contact the author if any conditions of this licensing are
13 // unclear to you.
14 //
15 // Support: https://www.geom.at/contact/
16 // Project: https://www.geom.at/fade2d/html/
17 
18 
20 #pragma once
21 #include "Point2.h"
22 #include "common.h"
23 
24 #if GEOM_PSEUDO3D==GEOM_TRUE
25  namespace GEOM_FADE25D {
26 #elif GEOM_PSEUDO3D==GEOM_FALSE
27  namespace GEOM_FADE2D {
28 #else
29  #error GEOM_PSEUDO3D is not defined
30 #endif
38 class CLASS_DECLSPEC PShape
39 {
40 public:
49  explicit PShape(std::vector<Point2>& vP_);
50 
58  PShape(const PShape& other);
59 
68  PShape& operator=(const PShape& other);
71 
81  friend std::ostream &operator<<(std::ostream &stream, PShape shape);
82 protected:
83  friend class Visualizer2;
84  std::vector<Point2>* pVP;
85 };
86 
87 } // (namespace)
Polygonal Shape for Visualization.
Definition: PShape.h:39
friend std::ostream & operator<<(std::ostream &stream, PShape shape)
Prints a PShape.
PShape(std::vector< Point2 > &vP_)
Constructor.
PShape(const PShape &other)
Copy Constructor.
PShape & operator=(const PShape &other)
Assignment Operator.
A PDF and Postscript Writer for 2D Visualization.
Definition: Visualizer2.h:60