#include <Primitive.h>
Inheritance diagram for Fluxus::Primitive:
Primitive Interface | |
void | RenderBoundingBox () |
void | Prerender () |
void | ApplyState () |
void | SetState (State *s) |
State * | GetState () |
void | SetPhysicalHint (bool s) |
A hint if we are in the physics system or not. | |
bool | IsPhysicalHint () |
bool | Hidden () |
void | Hide (bool s) |
bool | IsSelectable () |
Whether we should be included in the selection pass. | |
void | Selectable (bool s) |
static void | RenderAxes () |
Public Member Functions | |
Primitive () | |
Primitive (const Primitive &other) | |
virtual | ~Primitive () |
virtual string | GetTypeName () |
This needs to be set appropriately for all derived types. | |
virtual void | RecalculateNormals (bool smooth) |
Only makes sense for certain primitive types. | |
Abstract Primitive Interface | |
virtual Primitive * | Clone () const=0 |
virtual void | Render ()=0 |
virtual dBoundingBox | GetBoundingBox ()=0 |
virtual void | ApplyTransform (bool ScaleRotOnly=false)=0 |
Protected Attributes | |
State | m_State |
Definition at line 31 of file Primitive.h.
Primitive::Primitive | ( | ) |
Definition at line 21 of file Primitive.cpp.
Primitive::Primitive | ( | const Primitive & | other | ) |
Definition at line 28 of file Primitive.cpp.
Primitive::~Primitive | ( | ) | [virtual] |
Definition at line 37 of file Primitive.cpp.
virtual Primitive* Fluxus::Primitive::Clone | ( | ) | const [pure virtual] |
virtual void Fluxus::Primitive::Render | ( | ) | [pure virtual] |
virtual dBoundingBox Fluxus::Primitive::GetBoundingBox | ( | ) | [pure virtual] |
virtual void Fluxus::Primitive::ApplyTransform | ( | bool | ScaleRotOnly = false |
) | [pure virtual] |
virtual string Fluxus::Primitive::GetTypeName | ( | ) | [inline, virtual] |
This needs to be set appropriately for all derived types.
Reimplemented in Fluxus::BlobbyPrimitive, Fluxus::LinePrimitive, Fluxus::LocatorPrimitive, Fluxus::NURBSPrimitive, Fluxus::ParticlePrimitive, Fluxus::PixelPrimitive, Fluxus::PolyPrimitive, and Fluxus::TextPrimitive.
Definition at line 48 of file Primitive.h.
virtual void Fluxus::Primitive::RecalculateNormals | ( | bool | smooth | ) | [inline, virtual] |
Only makes sense for certain primitive types.
Reimplemented in Fluxus::BlobbyPrimitive, Fluxus::NURBSPrimitive, Fluxus::PixelPrimitive, and Fluxus::PolyPrimitive.
Definition at line 51 of file Primitive.h.
void Primitive::RenderBoundingBox | ( | ) |
Definition at line 103 of file Primitive.cpp.
void Primitive::RenderAxes | ( | ) | [static] |
Definition at line 73 of file Primitive.cpp.
void Primitive::Prerender | ( | ) |
Definition at line 41 of file Primitive.cpp.
void Fluxus::Primitive::ApplyState | ( | ) | [inline] |
Definition at line 59 of file Primitive.h.
void Fluxus::Primitive::SetState | ( | State * | s | ) | [inline] |
The primitives state stores everything general to all primitives
Definition at line 63 of file Primitive.h.
State* Fluxus::Primitive::GetState | ( | ) | [inline] |
Definition at line 64 of file Primitive.h.
void Fluxus::Primitive::SetPhysicalHint | ( | bool | s | ) | [inline] |
bool Fluxus::Primitive::IsPhysicalHint | ( | ) | [inline] |
Definition at line 68 of file Primitive.h.
bool Fluxus::Primitive::Hidden | ( | ) | [inline] |
Definition at line 72 of file Primitive.h.
void Fluxus::Primitive::Hide | ( | bool | s | ) | [inline] |
Definition at line 73 of file Primitive.h.
bool Fluxus::Primitive::IsSelectable | ( | ) | [inline] |
void Fluxus::Primitive::Selectable | ( | bool | s | ) | [inline] |
Definition at line 77 of file Primitive.h.
State Fluxus::Primitive::m_State [protected] |
Definition at line 81 of file Primitive.h.