Go to the documentation of this file.
28 ss.precision(precision);
34 static std::string
toStlString(
const T& t,
int fieldWidth,
char fillChar)
37 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
44 static std::string toStlString<Geom::Pnt>(
const Geom::Pnt& p,
int precision)
47 ss.precision(precision);
48 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
53 static std::string toStlString<Geom::Vec>(
const Geom::Vec& v,
int precision)
56 ss.precision(precision);
57 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
62 static std::string toStlString<Geom::XYZ>(
const Geom::XYZ& xyz,
int precision)
65 ss.precision(precision);
66 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
71 static std::string toStlString<Geom::Dir>(
const Geom::Dir& dir,
int precision)
74 ss.precision(precision);
75 ss <<
"x: " << dir.
x() <<
" y: " << dir.
y() <<
" z: " << dir.
z();
82 std::wstringstream ss;
90 std::wstringstream ss;
91 ss.precision(precision);
99 std::wstringstream ss;
100 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
107 std::wstringstream ss;
108 ss.precision(precision);
109 ss <<
"x: " << p.
x() <<
" y: " << p.
y() <<
" z: " << p.
z();
116 std::wstringstream ss;
117 ss.precision(precision);
118 ss <<
"x: " << v.
x() <<
" y: " << v.
y() <<
" z: " << v.
z();
125 std::wstringstream ss;
126 ss.precision(precision);
127 ss <<
"x: " << xyz.
x() <<
" y: " << xyz.
y() <<
" z: " << xyz.
z();
134 std::wstringstream ss;
135 ss.precision(precision);
136 ss <<
"x: " << dir.
x() <<
" y: " << dir.
y() <<
" z: " << dir.
z();
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
double y() const
For this point, returns its X coordinate.
double z() const
Returns the X, Y, or Z coordinate of this number triple.
double x() const
For this point, returns its X coordinate.
double x() const
For this vector, returns its X coordinate.
double z() const
For this point, returns its X coordinate.
double z() const
Returns the Z coordinate for a unit vector.
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
double x() const
Returns the X coordinate for a unit vector.
double y() const
Returns the X, Y, or Z coordinate of this number triple.
double x() const
Returns the X, Y, or Z coordinate of this number triple.
double y() const
For this vector, returns its Y coordinate.
double z() const
For this vector, returns its Z coordinate.
double y() const
Returns the Y coordinate for a unit vector.
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
Definition: PropertyContainer.h:33