26 #if GEOM_PSEUDO3D == GEOM_TRUE
27 namespace GEOM_FADE25D {
28 #elif GEOM_PSEUDO3D == GEOM_FALSE
29 namespace GEOM_FADE2D {
31 #error GEOM_PSEUDO3D is not defined
84 void addPoints(
const std::vector<Point2>& vPoints,
VtkColor color);
114 void addSegments(
const std::vector<Point2>& vSegmentEndPoints,
VtkColor color,
bool bWithEndPoints =
false);
VtkColor
Enumeration of colors used by the VTKWriter.
Definition: VtkWriter.h:39
@ VTK_TRANSPARENT
Meaning: Don't draw.
Definition: VtkWriter.h:56
Point.
Definition: Point2.h:53
Segment.
Definition: Segment2.h:39
Triangle.
Definition: Triangle2.h:60
A writer for the VTK file format.
Definition: VtkWriter.h:62
void addSegments(const std::vector< Point2 > &vSegmentEndPoints, VtkColor color, bool bWithEndPoints=false)
Add multiple segments with a specified color.
void addTriangle(const Point2 &p0, const Point2 &p1, const Point2 &p2, VtkColor color)
Add a triangle defined by three points.
void addSegments(const std::vector< Edge2 > &vEdges, VtkColor color, bool bWithEndPoints=false)
Add multiple Edge2 objects with a specified color.
void addSegment(const Point2 &source, const Point2 &target, VtkColor color, bool bWithEndPoints=false)
Add a segment defined by source and target points.
void addPoints(const std::vector< Point2 * > &vPoints, VtkColor color)
Add multiple points with a specified color.
void addSegments(const std::vector< Segment2 > &vSegments, VtkColor color, bool bWithEndPoints=false)
Add multiple segments with a specified color.
void addTriangles(const std::vector< Triangle2 * > &vT, VtkColor color)
Add multiple triangles with a specified color.
void writeFile()
Write the VTK file.
void addTriangles(const std::vector< Point2 > &vTriangleCorners, VtkColor color)
Add multiple triangles defined by their corner points.
void addSegment(const Segment2 &segment, VtkColor color, bool bWithEndPoints=false)
Add a segment with a specified color.
void addPoint(const Point2 &p, VtkColor color)
Add a point with a specified color.
VtkWriter(const char *name)
Constructor.
void addTriangle(const Triangle2 &t, VtkColor color)
Add a triangle with a specified color.
VtkColor getNextColor()
Get the next color in the sequence.