Primitive Class Reference
base class for geometric primitives such as cuboids, and circles
More...
#include <primitives.hh>
Inherits ost::gfx::GfxNode.
Inherited by Cuboid, and Quad.
Detailed Description
base class for geometric primitives such as cuboids, and circles
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().
- See also:
- gfx::Cuboid, gfx::Quad
- Todo:
- transparent primitives would require the gfx objects to be ordered back to front. This has to be properly implemented in the rendering system.
Definition at line 43 of file primitives.hh.
Constructor & Destructor Documentation
Member Function Documentation
const Color& GetFillColor |
( |
|
) |
const |
float GetLineWidth |
( |
|
) |
const |
const Color& GetOutlineColor |
( |
|
) |
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 |
) |
|
The documentation for this class was generated from the following file: