Fade2.5D Documentation pages v2.14
Delaunay Features
GEOM_FADE25D::VtkWriter Class Reference

A writer for the VTK file format. More...

#include <VtkWriter.h>

Public Member Functions

 VtkWriter (const char *name)
 Constructor. More...
 
 ~VtkWriter ()
 Destructor.
 
void addPoint (const Point2 &p, VtkColor color)
 Add a point with a specified color. More...
 
void addPoints (const std::vector< Point2 * > &vPoints, VtkColor color)
 Add multiple points with a specified color. More...
 
void addPoints (const std::vector< Point2 > &vPoints, VtkColor color)
 
void addSegment (const Point2 &source, const Point2 &target, VtkColor color, bool bWithEndPoints=false)
 Add a segment defined by source and target points. More...
 
void addSegment (const Segment2 &segment, VtkColor color, bool bWithEndPoints=false)
 Add a segment with a specified color. More...
 
void addSegments (const std::vector< Edge2 > &vEdges, VtkColor color, bool bWithEndPoints=false)
 Add multiple Edge2 objects with a specified color. More...
 
void addSegments (const std::vector< Point2 > &vSegmentEndPoints, VtkColor color, bool bWithEndPoints=false)
 Add multiple segments with a specified color. More...
 
void addSegments (const std::vector< Segment2 > &vSegments, VtkColor color, bool bWithEndPoints=false)
 Add multiple segments with a specified color. More...
 
void addTriangle (const Point2 &p0, const Point2 &p1, const Point2 &p2, VtkColor color)
 Add a triangle defined by three points. More...
 
void addTriangle (const Triangle2 &t, VtkColor color)
 Add a triangle with a specified color. More...
 
void addTriangles (const std::vector< Point2 > &vTriangleCorners, VtkColor color)
 Add multiple triangles defined by their corner points. More...
 
void addTriangles (const std::vector< Triangle2 * > &vT, VtkColor color)
 Add multiple triangles with a specified color. More...
 
VtkColor getNextColor ()
 Get the next color in the sequence. More...
 
void writeFile ()
 Write the VTK file.
 

Detailed Description

A writer for the VTK file format.

Constructor & Destructor Documentation

◆ VtkWriter()

GEOM_FADE25D::VtkWriter::VtkWriter ( const char *  name)
explicit

Constructor.

Parameters
nameName of the VTK file to write

Member Function Documentation

◆ addPoint()

void GEOM_FADE25D::VtkWriter::addPoint ( const Point2 p,
VtkColor  color 
)

Add a point with a specified color.

Parameters
pThe point to add
colorThe color of the point

◆ addPoints()

void GEOM_FADE25D::VtkWriter::addPoints ( const std::vector< Point2 * > &  vPoints,
VtkColor  color 
)

Add multiple points with a specified color.

Parameters
vPointsVector of points to add
colorThe color of the points

◆ addSegment() [1/2]

void GEOM_FADE25D::VtkWriter::addSegment ( const Point2 source,
const Point2 target,
VtkColor  color,
bool  bWithEndPoints = false 
)

Add a segment defined by source and target points.

Parameters
source,targetEndpoints of the segment
colorThe color of the segment
bWithEndPointsWhether to include end points

◆ addSegment() [2/2]

void GEOM_FADE25D::VtkWriter::addSegment ( const Segment2 segment,
VtkColor  color,
bool  bWithEndPoints = false 
)

Add a segment with a specified color.

Parameters
segmentThe segment to add
colorThe color of the segment
bWithEndPointsWhether to include end points

◆ addSegments() [1/3]

void GEOM_FADE25D::VtkWriter::addSegments ( const std::vector< Edge2 > &  vEdges,
VtkColor  color,
bool  bWithEndPoints = false 
)

Add multiple Edge2 objects with a specified color.

Parameters
vEdgesVector of edges to add
colorThe color of the edges
bWithEndPointsWhether to include end points

◆ addSegments() [2/3]

void GEOM_FADE25D::VtkWriter::addSegments ( const std::vector< Point2 > &  vSegmentEndPoints,
VtkColor  color,
bool  bWithEndPoints = false 
)

Add multiple segments with a specified color.

Parameters
vSegmentEndPointsspecifies n segments by 2*n endpoints
colorThe color of the segments
bWithEndPointsWhether to include end points

◆ addSegments() [3/3]

void GEOM_FADE25D::VtkWriter::addSegments ( const std::vector< Segment2 > &  vSegments,
VtkColor  color,
bool  bWithEndPoints = false 
)

Add multiple segments with a specified color.

Parameters
vSegmentsVector of segments to add
colorThe color of the segments
bWithEndPointsWhether to include end points

◆ addTriangle() [1/2]

void GEOM_FADE25D::VtkWriter::addTriangle ( const Point2 p0,
const Point2 p1,
const Point2 p2,
VtkColor  color 
)

Add a triangle defined by three points.

Parameters
p0,p1,p2Points defining the triangle
colorThe color of the triangle

◆ addTriangle() [2/2]

void GEOM_FADE25D::VtkWriter::addTriangle ( const Triangle2 t,
VtkColor  color 
)

Add a triangle with a specified color.

Parameters
tThe triangle to add
colorThe color of the triangle

◆ addTriangles() [1/2]

void GEOM_FADE25D::VtkWriter::addTriangles ( const std::vector< Point2 > &  vTriangleCorners,
VtkColor  color 
)

Add multiple triangles defined by their corner points.

Parameters
vTriangleCornersVector of points defining the triangles
colorThe color of the triangles

◆ addTriangles() [2/2]

void GEOM_FADE25D::VtkWriter::addTriangles ( const std::vector< Triangle2 * > &  vT,
VtkColor  color 
)

Add multiple triangles with a specified color.

Parameters
vTVector of triangle pointers to add
colorThe color of the triangles

◆ getNextColor()

VtkColor GEOM_FADE25D::VtkWriter::getNextColor ( )

Get the next color in the sequence.

Returns
The next VtkColor

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