19 #ifndef OST_GFX_PRIM_LIST_HH
20 #define OST_GFX_PRIM_LIST_HH
26 #include <boost/shared_ptr.hpp>
33 namespace ost {
namespace gfx {
42 pos(p), rad(r), col(c) {}
48 typedef std::vector<PointEntry> PointEntryList;
52 pos1(p1), pos2(p2), radius_1(r1), radius_2(r2), col1(c1), col2(c2) {}
54 float radius_1, radius_2;
58 typedef std::vector<LineEntry> LineEntryList;
71 virtual void CustomRenderPov(
PovState& pov);
75 virtual void OnRenderModeChange();
77 virtual void SetLineWidth(
float w);
124 void AddText(
const std::string& text,
const geom::Vec3& pos,
const Color& col,
float point_size);
127 void SetDiameter(
float d);
130 void SetRadius(
float r);
133 void SetColor(
const Color& c);
135 void SetSphereDetail(
unsigned int d);
138 void SetArcDetail(
unsigned int d);
159 void AddMesh(
float* v,
float* n,
float* c,
size_t nv,
unsigned int* i,
size_t ni);
162 virtual void CustomPreRenderGL(
bool flag);
170 unsigned int sphere_detail_;
171 unsigned int arc_detail_;
175 std::vector<IndexedVertexArray> vas_;
177 void prep_simple_va();
std::vector< CylinderPrim > CylinderPrimList
unsigned int GetArcDetail() const
unsigned int GetSphereDetail() const
main class for all graphic objects
#define DLLEXPORT_OST_GFX
Three dimensional vector class, using Real precision.
ImageStateConstModIPAlgorithm< ClearFnc > Clear
std::vector< TextPrim > TextPrimList
std::vector< SpherePrim > SpherePrimList