#include <primitives.hh>
Inherits ost::gfx::GfxNode.
Inherited by Cuboid, and Quad.
Public Member Functions | |
| void | SetFill (const Color &color, bool fill=true) |
| void | SetOutline (const Color &color, bool line=true, float width=1.0) |
| void | SetFillColor (const Color &color) |
| void | SetOutlineColor (const Color &color) |
| const Color & | GetFillColor () const |
| const Color & | GetOutlineColor () const |
| bool | HasFill () const |
| bool | HasOutline () const |
| float | GetLineWidth () const |
| void | SetLineWidth (float width) |
Protected Member Functions | |
| Primitive (const String &name) | |
The geometric primitives support rendering in both outline and solid mode. These properties are controllable with SetFill() and SetOutline() as well as SetFillColor() and SetOutlineColor(). The line width can be adjusted with SetLineWidth().
Definition at line 43 of file primitives.hh.
| const Color& GetFillColor | ( | ) | const |
| float GetLineWidth | ( | ) | const |
| const Color& GetOutlineColor | ( | ) | const |
| bool HasFill | ( | ) | const |
| bool HasOutline | ( | ) | const |
| void SetFill | ( | const Color & | color, | |
| bool | fill = true | |||
| ) |
| void SetFillColor | ( | const Color & | color | ) |
| void SetLineWidth | ( | float | width | ) |
| void SetOutline | ( | const Color & | color, | |
| bool | line = true, |
|||
| float | width = 1.0 | |||
| ) |
| void SetOutlineColor | ( | const Color & | color | ) |
1.5.8