24 #ifndef BASE_BUILDER3D_H 25 #define BASE_BUILDER3D_H 71 void startPoints(
short pointSize=2,
float color_r=1.0,
float color_g=0.0,
float color_b=0.0);
74 void addPoint(
float x,
float y,
float z);
80 void addSinglePoint(
float x,
float y,
float z,
short pointSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
82 void addSinglePoint(
const Base::Vector3f &vec,
short pointSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
87 void addSingleLine(
Vector3f pt1,
Vector3f pt2,
short lineSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0,
unsigned short linePattern = 0xffff);
90 void addSingleArrow(
Vector3f pt1,
Vector3f pt2,
short lineSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0,
unsigned short linePattern = 0xffff);
95 void addSingleTriangle(
Vector3f pt0,
Vector3f pt1,
Vector3f pt2,
bool filled =
true,
short lineSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
108 void addText(
float pos_x,
float pos_y ,
float pos_z,
const char * text,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
111 void addText(
const Base::Vector3f &vec,
const char * text,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
119 void saveToLog(
void);
122 void saveToFile(
const char* FileName);
127 std::stringstream result;
163 void beginSeparator();
172 void addInfo(
const char* str);
177 void addLabel(
const char* str);
186 void addBaseColor(
float color_r,
float color_g,
float color_b);
194 void addMaterial(
float color_r,
float color_g,
float color_b,
float color_a=0);
199 void beginMaterial();
210 void addColor(
float color_r,
float color_g,
float color_b);
217 void addMaterialBinding(
const char* binding =
"OVERALL");
225 void addDrawStyle(
short pointSize,
short lineWidth,
226 unsigned short linePattern = 0xffff,
const char* style=
"FILLED");
231 void addShapeHints(
float crease=0.0f);
239 void addPolygonOffset(
float factor=1.0f,
float units=1.0f,
const char* styles=
"FILLED",
bool on=
true);
244 void addPoint(
float x,
float y,
float z);
249 void addPoints(
const std::vector<Vector3f> &vec);
269 void addNormalBinding(
const char*);
274 void addSingleLine(
const Vector3f& pt1,
const Vector3f& pt2,
short lineSize=2,
276 float color_r=1.0,
float color_g=1.0,
float color_b=1.0,
unsigned short linePattern = 0xffff);
278 void addSingleArrow(
const Vector3f& pt1,
const Vector3f& pt2,
short lineSize=2,
279 float color_r=1.0,
float color_g=1.0,
float color_b=1.0,
unsigned short linePattern = 0xffff);
281 void addLineSet(
const std::vector<Vector3f>& points,
short lineSize=2,
282 float color_r=1.0,
float color_g=1.0,
float color_b=1.0,
unsigned short linePattern = 0xffff);
289 void addSingleTriangle(
const Vector3f& pt0,
const Vector3f& pt1,
const Vector3f& pt2,
bool filled =
true,
short lineSize=2,
291 float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
292 void addSinglePlane(
const Vector3f& base,
const Vector3f& eX,
const Vector3f& eY,
float length,
float width,
bool filled =
true,
293 short lineSize=2,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
294 void addIndexedFaceSet(
const std::vector<int>& indices);
295 void addFaceSet(
const std::vector<int>& vertices);
300 void addNurbsSurface(
const std::vector<Base::Vector3f>& controlPoints,
301 int numUControlPoints,
int numVControlPoints,
302 const std::vector<float>& uKnots,
const std::vector<float>& vKnots);
303 void addCylinder(
float radius,
float height);
304 void addSphere(
float radius);
309 void addBoundingBox(
const Vector3f& pt1,
const Vector3f& pt2,
short lineWidth=2,
310 float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
315 void addTransformation(
const Matrix4D&);
317 void addTransformation(
const Vector3f& translation,
const Vector3f& rotationaxis,
float fAngle);
322 void addText(
float pos_x,
float pos_y ,
float pos_z,
const char * text,
324 float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
326 void addText(
const Vector3f &vec,
const char * text,
float color_r=1.0,
float color_g=1.0,
float color_b=1.0);
334 std::ostream& result;
340 #endif // BASE_BUILDER3D_H Definition: Builder3D.h:141
Definition: Builder3D.h:61
Definition: AbstractXMLReader.h:5
Definition: Vector3D.h:78