PrimList Class Reference

rudimentary graphical lines rendering. More...

#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)


Detailed Description

rudimentary graphical lines rendering.

The primitives may be rendered either with gfx::RenderMode::SIMPLE or gfx::RenderMode::CUSTOM. The render mode can be changed with GfxObj::SetRenderMode().

See also:
gfx::Cuboid, Displaying Lines and Quads, gfx::Quad, Gradient Example, Random Lines

Definition at line 47 of file prim_list.hh.


Constructor & Destructor Documentation

PrimList ( const String name  ) 

create new prim list


Member Function Documentation

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 (  ) 

clear all prims

Reimplemented from GfxObj.

virtual void CustomPreRenderGL ( bool  flag  )  [protected, virtual]

Reimplemented from GfxObj.

virtual void CustomRenderGL ( RenderPass  pass  )  [virtual]

Reimplemented from GfxObj.

virtual void CustomRenderPov ( PovState pov  )  [virtual]

Reimplemented from GfxObj.

virtual geom::Vec3 GetCenter (  )  const [virtual]

get center

Reimplemented from GfxObj.

virtual void OnRenderModeChange (  )  [virtual]

Reimplemented from GfxObj.

virtual void ProcessLimits ( geom::Vec3 minc,
geom::Vec3 maxc,
const mol::Transform tf 
) const [virtual]

adjust the given limits according to the represented data

Reimplemented from GfxObj.

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


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

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8