00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef VRML_H
00015 #define VRML_H
00016
00017 #include "gui/ViewPort.h"
00018
00019
00020 #include <string>
00021 #include <iostream>
00022
00023 namespace gui {
00024 class Vrml : public ViewPort
00025 {
00026 public:
00027 Vrml(std::ostream& out);
00028 virtual ~Vrml();
00029
00030
00031
00032 void set_rgb( float red, float green, float blue );
00033 void set_line_width( float lwid );
00034 void set_line_style( int s );
00035
00036 void set_col_index(int index);
00037 void set_cap_style(int style);
00038 void setJoinStyle(int style);
00039 void setBkColIndex(int index);
00040 void set_marker_size(float size);
00041 void set_enhanced(int);
00042
00043
00044
00045
00046 void set_quad(int quadrant, int highlighted);
00047
00048 void drawPL(const GraphicsVector*,int);
00049
00050
00051 void drawText(const char *text, const GraphicsVector& pnt, int ht=0);
00052 void drawText(const char* text);
00053
00054
00055 void draw_markers(const GraphicsVector*,int);
00056
00057
00058 void beginSeparator();
00059 void endSeparator();
00060
00061
00062 void coordinate3(const GraphicsVector *points, int n);
00063
00064
00065 void indexedLineSet(const int* a, int n);
00066 void indexedFaceSet(const int* a, int n);
00067
00068
00069 void flush();
00070
00071
00072
00073 private:
00074
00075 void lineSet(int n);
00076
00077
00078 std::ostream& _out;
00079 int _ncoord;
00080
00081
00082 };
00083
00084 }
00085
00086 #endif
00087