Fade2.5D Documentation pages v2.16.7
Delaunay Features
GEOM_FADE25D::PShape Class Reference

Polygonal Shape for Visualization. More...

#include <PShape.h>

Public Member Functions

 PShape (const PShape &other)
 Copy Constructor. More...
 
 PShape (std::vector< Point2 > &vP_)
 Constructor. More...
 
 ~PShape ()
 
PShapeoperator= (const PShape &other)
 Assignment Operator. More...
 

Protected Attributes

std::vector< Point2 > * pVP
 

Friends

std::ostream & operator<< (std::ostream &stream, PShape shape)
 Prints a PShape. More...
 
class Visualizer2
 

Detailed Description

PShape represents a polygonal shape used for visualization with the PDF and Postscript Writer Visualizer2.

Constructor & Destructor Documentation

◆ PShape() [1/2]

GEOM_FADE25D::PShape::PShape ( std::vector< Point2 > &  vP_)
explicit

Initializes a PShape object with a vector of Point2 objects. The points in vP_ define the vertices of the polygonal shape.

Parameters
vP_A vector of Point2 objects representing the vertices of the shape.

◆ PShape() [2/2]

GEOM_FADE25D::PShape::PShape ( const PShape other)

Creates a new PShape object as a copy of another PShape object.

Parameters
otherThe PShape object to copy.

◆ ~PShape()

GEOM_FADE25D::PShape::~PShape ( )

Destructor

Member Function Documentation

◆ operator=()

PShape& GEOM_FADE25D::PShape::operator= ( const PShape other)

Assigns the values of one PShape object to another.

Parameters
otherThe PShape object to assign from.
Returns
A reference to the assigned PShape object.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
PShape  shape 
)
friend

Prints the values of a PShape object to the specified output stream.

Parameters
streamThe output stream where the PShape will be printed.
shapeThe PShape object to be printed.
Returns
The output stream after printing the PShape.

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