OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions
Quad Class Reference

#include <primitives.hh>

Inherits Primitive.

Public Member Functions

 Quad (const String &name, const geom::Vec3 &a, const geom::Vec3 &b, const geom::Vec3 &c, const geom::Vec3 &d)
 
virtual void RenderGL (RenderPass pass)
 
- Public Member Functions inherited from Primitive
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 ColorGetFillColor () const
 
const ColorGetOutlineColor () const
 
bool HasFill () const
 
bool HasOutline () const
 
float GetLineWidth () const
 
void SetLineWidth (float width)
 
- Public Member Functions inherited from GfxNode
 GfxNode (const String &name)
 
virtual ~GfxNode ()
 
virtual GfxNodeP Copy () const
 
virtual void DeepSwap (GfxNode &n)
 
virtual void RenderPov (PovState &pov)
 
virtual void Export (Exporter *ex)
 
virtual void Apply (GfxNodeVisitor &v, GfxNodeVisitor::Stack st)
 
virtual int GetType () const
 
String GetName () const
 
void RemoveAll ()
 
void Rename (const String &name)
 
void Add (GfxObjP obj)
 
bool IsNameAvailable (const String &name) const
 
void Remove (GfxObjP obj)
 
void Add (GfxNodeP node)
 
void Remove (GfxNodeP node)
 
void Remove (const String &name)
 
size_t GetChildCount () const
 
void Hide ()
 
void Show ()
 
bool IsVisible () const
 
virtual void ContextSwitch ()
 
bool IsAttachedToScene () const
 
gfx::GfxNodeP GetParent () const
 
const GfxNodeVectorGetChildren () const
 
GfxNodeVectorGetChildren ()
 

Additional Inherited Members

- Protected Member Functions inherited from Primitive
 Primitive (const String &name)
 

Detailed Description

a simple rendered quad in 3D space.

Todo:
this class should be part of a more sophisticated polygon rendering class.

Definition at line 79 of file primitives.hh.

Constructor & Destructor Documentation

Quad ( const String name,
const geom::Vec3 a,
const geom::Vec3 b,
const geom::Vec3 c,
const geom::Vec3 d 
)

Member Function Documentation

virtual void RenderGL ( RenderPass  pass)
virtual

Reimplemented from GfxNode.


The documentation for this class was generated from the following file: