Functions | |
bool | GEOM_FADE2D::readPointsBIN (const char *filename, std::vector< Point2 > &vPointsIn, bool bWithHeader=true) |
Read points from a binary file. More... | |
bool | GEOM_FADE2D::readSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsOut) |
Read segments from a binary file. More... | |
bool | GEOM_FADE2D::readXY (const char *filename, std::vector< Point2 > &vPointsOut) |
Read (x y) points. More... | |
bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 * > &vPointsIn) |
Write points to an ASCII file. More... | |
bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 > &vPointsIn) |
Write points to an ASCII file. More... | |
bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 * > &vPointsIn) |
Write points to a binary file. More... | |
bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 > &vPointsIn) |
Write points to a binary file. More... | |
bool | GEOM_FADE2D::writeSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsIn) |
Write segments to a binary file. More... | |
bool GEOM_FADE2D::readPointsBIN | ( | const char * | filename, |
std::vector< Point2 > & | vPointsIn, | ||
bool | bWithHeader = true |
||
) |
Reads points from a binary file.
filename | is the input file |
vPointsIn | is used to return the points |
bWithHeader | specifies if the file contains a header (like the ones written by writePointsBIN()) or if the file contains just a sequence of double precision coordinates - use false in this case. |
bool GEOM_FADE2D::readSegmentsBIN | ( | const char * | filename, |
std::vector< Segment2 > & | vSegmentsOut | ||
) |
Reads segments from a binary file of type 21 or 31
bool GEOM_FADE2D::readXY | ( | const char * | filename, |
std::vector< Point2 > & | vPointsOut | ||
) |
Reads points from an ASCII file. Expected file format: Two coordinates (x y) per line, whitespace separated.
bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
const std::vector< Point2 * > & | vPointsIn | ||
) |
Writes points to an ASCII file, two coordinates (x y) per line, whitespace separated.
bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
const std::vector< Point2 > & | vPointsIn | ||
) |
Write points to an ASCII file
bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
std::vector< Point2 * > & | vPointsIn | ||
) |
Writes points to a binary file
bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
std::vector< Point2 > & | vPointsIn | ||
) |
File format:
int filetype (20)
size_t numPoints (vPointsIn.size()
)
double x0
double y0
double z0
...
double xn
double yn
double zn
bool GEOM_FADE2D::writeSegmentsBIN | ( | const char * | filename, |
std::vector< Segment2 > & | vSegmentsIn | ||
) |
Binary file format:
int filetype (21)
size_t numSegments (vSegmentsIn.size()
)
double x0_source
double y0_source
double x0_target
double y0_target
...
double xn_source
double yn_source
double xn_target
double yn_target