28 #include "VertexPair2.h"
32 #if GEOM_PSEUDO3D==GEOM_TRUE
33 namespace GEOM_FADE25D {
34 #elif GEOM_PSEUDO3D==GEOM_FALSE
35 namespace GEOM_FADE2D {
37 #error GEOM_PSEUDO3D is not defined
39 class ConstraintSegment2;
40 class ConstraintGraph2;
166 void addObject(
const std::vector<ConstraintSegment2*>& vConstraintSegments,
const Color& c);
243 void setLimit(
const Bbox2& bbx);
258 double scaledDouble(
const double &d);
259 void changeColor(
float r,
float g,
float b,
float linewidth,
bool bFill);
260 void changeColor(
const Color& c);
262 void writeHeader(
const char* title);
264 void writeHeaderLines();
266 void writeLabel(
Label l);
267 void writeLine(
const Point2& pSource,
const Point2& pTarget);
268 void writePolygon(
PShape& pshape,
bool bFill,
double width);
269 void writeTriangle(
const Point2& p0_,
const Point2& p1_,
const Point2& p2_,
bool bFill,
double width);
270 void writeTriangle(
const Triangle2* pT,
bool bFill_,
double width);
271 void writeVoroCell(
VoroCell2* pVoroCell,
bool bFill,
double width);
272 void writePoint(
const Point2& p1_,
float size);
273 void writeMark(
const Point2& p1_,
float size);
274 void writeCircle(
const Point2& p1_,
double radius,
bool bFill);
275 void periodicStroke();
285 std::ofstream outFile;
286 std::vector<std::pair<Segment2,Color> > vSegments;
287 std::vector<std::pair<Circle2,Color> > vCircles;
288 std::vector<std::pair<Point2,Color> > vPoints;
289 std::vector<std::pair<Triangle2,Color> > vTriangles;
290 std::vector<std::pair<Label,Color> > vLabels;
291 std::vector<std::pair<VoroCell2*,Color> > vVoroCells;
292 std::vector<std::pair<PShape,Color> > vPolygons;
Bbox2 is an axis aligned 2D bounding box.
Definition: Bbox2.h:37
Circle for visualization.
Definition: Circle2.h:38
Color for visualization.
Definition: Color.h:59
ConstraintGraph2 is a set of Constraint Edges (ConstraintSegment2)
Definition: ConstraintGraph2.h:52
Edge2 is a directed edge.
Definition: Edge2.h:34
Label is a Text-Label for Visualization.
Definition: Label.h:41
Polygonal Shape for Visualization.
Definition: PShape.h:37
Point.
Definition: Point2.h:53
Segment.
Definition: Segment2.h:39
Triangle.
Definition: Triangle2.h:60
Visualizer2 is a PDF- and Postscript writer.
Definition: Visualizer2.h:55
void addObject(const Edge2 &edge, const Color &c)
Add an Edge2 object to the visualization.
void addObject(const std::vector< PShape > &vPolygonalShapes, const Color &c)
Add polygonal shapes.
void addObject(const Label &lab, const Color &c)
Add a Label object to the visualization.
void writeFile()
Finish and write the output file.
void addObject(const std::vector< Triangle2 > &vT, const Color &c)
Add a vector of Triangle2 objects to the visualization.
void addObject(const Point2 &pnt, const Color &c)
Add a Point2 object to the visualization.
void addObject(const std::vector< ConstraintSegment2 * > &vConstraintSegments, const Color &c)
Add a vector of ConstraintSegment2 pointers to the visualization.
void addObject(VoroCell2 *pVoroCell, const Color &c)
Add a Voronoi cell to the visualization.
void addObject(const std::vector< VertexPair2 > &vVertexPairs, const Color &c)
Add a vector of VertexPair2 objects as segments to the visualization.
void addObject(const Circle2 &circ, const Color &c)
Add a Circle2 object to the visualization.
void addObject(const std::vector< Point2 * > &vPoints, const Color &c)
Add a vector of Point2 pointers to the visualization.
void addObject(const std::vector< Segment2 > &vSegments, const Color &c)
Add a vector of Segment2 objects to the visualization.
void addObject(const Triangle2 &tri, const Color &c)
Add a Triangle2 object to the visualization.
void addHeaderLine(const char *s)
Add a header line to the visualization.
Visualizer2(const char *filename_)
Constructor.
void addObject(const Segment2 &seg, const Color &c)
Add a Segment2 object to the visualization.
void addObject(const std::vector< Point2 > &vPoints, const Color &c)
Add a vector of Point2 objects to the visualization.
void addObject(const PShape &polygonalShape, const Color &c)
Add a polygonal shape.
void addObject(const std::vector< VoroCell2 * > &vC, const Color &c)
Add a vector of Voronoi Cells to the visualization.
void addObject(ConstraintGraph2 *pCG, const Color &c)
Add a ConstraintGraph2 object to the visualization.
Bbox2 computeRange(bool bWithVoronoi)
Compute the range.
void addObject(const std::vector< Edge2 > &vSegments, const Color &c)
Add a vector of Edge2 objects to the visualization.
void addObject(const std::vector< Triangle2 * > &vT, const Color &c)
Add a vector of Triangle2 pointers to the visualization.
Voronoi cell.
Definition: VoroCell2.h:45