#include <prim_list.hh>
Inherits ost::gfx::GfxObj.
Data Structures | |
| struct | LineEntry |
| struct | PointEntry |
Public Member Functions | |
| PrimList (const String &name) | |
| virtual void | ProcessLimits (geom::Vec3 &minc, geom::Vec3 &maxc, const mol::Transform &tf) const |
| virtual geom::Vec3 | GetCenter () const |
| virtual void | CustomRenderPov (PovState &pov) |
| virtual void | CustomRenderGL (RenderPass pass) |
| virtual void | OnRenderModeChange () |
| void | Clear () |
| void | AddPoint (geom::Vec3 &p, const Color &col=Color()) |
| void | AddLine (geom::Vec3 &p1, geom::Vec3 &p2, const Color &col=Color()) |
| void | SetDiameter (float d) |
| void | SetRadius (float r) |
| void | SetColor (const Color &c) |
Protected Member Functions | |
| virtual void | CustomPreRenderGL (bool flag) |
The primitives may be rendered either with gfx::RenderMode::SIMPLE or gfx::RenderMode::CUSTOM. The render mode can be changed with GfxObj::SetRenderMode().
Definition at line 47 of file prim_list.hh.
| void AddLine | ( | geom::Vec3 & | p1, | |
| geom::Vec3 & | p2, | |||
| const Color & | col = Color() | |||
| ) |
add line as defined by two endpoints
| void AddPoint | ( | geom::Vec3 & | p, | |
| const Color & | col = Color() | |||
| ) |
add line as defined by two endpoints
| void Clear | ( | ) |
| virtual void CustomPreRenderGL | ( | bool | flag | ) | [protected, virtual] |
Reimplemented from GfxObj.
| virtual void CustomRenderGL | ( | RenderPass | pass | ) | [virtual] |
Reimplemented from GfxObj.
| virtual geom::Vec3 GetCenter | ( | ) | const [virtual] |
| virtual void OnRenderModeChange | ( | ) | [virtual] |
Reimplemented from GfxObj.
| virtual void ProcessLimits | ( | geom::Vec3 & | minc, | |
| geom::Vec3 & | maxc, | |||
| const mol::Transform & | tf | |||
| ) | const [virtual] |
| void SetColor | ( | const Color & | c | ) |
set global prims color, overriding individual ones
| void SetDiameter | ( | float | d | ) |
cylinder diameter for custom rendering mode
| void SetRadius | ( | float | r | ) |
sphere radius for points in custom rendering mode
1.5.8