OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
opencover::coSphere Class Reference

#include <coSphere.h>

Inheritance diagram for opencover::coSphere:
Inheritance graph
[legend]
Collaboration diagram for opencover::coSphere:
Collaboration graph
[legend]

Public Types

enum  RenderMethod {
  RENDER_METHOD_CPU_BILLBOARDS = 0, RENDER_METHOD_CG_SHADER = 1, RENDER_METHOD_ARB_POINT_SPRITES = 2, RENDER_METHOD_PARTICLE_CLOUD = 4,
  RENDER_METHOD_DISC = 5, RENDER_METHOD_TEXTURE = 6, RENDER_METHOD_CG_SHADER_INVERTED = 7
}
 

Public Member Functions

 coSphere ()
 
void setRenderMethod (RenderMethod rm)
 
void setNumberOfSpheres (int n)
 
void updateCoords (const float *x_c, const float *y_c, const float *z_c)
 
void updateCoordsFromMatrices (float *const *matrices)
 
void setCoords (int no_of_points, const float *x, const float *y, const float *z, const float *r)
 
void updateRadii (const float *r)
 
void updateRadii (const double *r)
 
void updateNormals (const float *nx, const float *ny, const float *nz)
 
void setColorBinding (int colorbinding)
 
void setColor (int index, float r, float g, float b, float a)
 
void updateColors (const float *r, const float *g, const float *b, const float *a=NULL)
 
void updateColors (const int *pc)
 
void overrideBoundingBox (const osg::BoundingBox &bb)
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 
void setMaxRadius (float m)
 
void setVertexAttribArray (unsigned int index, const osg::Array *array, osg::Array::Binding binding=osg::Array::BIND_UNDEFINED)
 

Static Public Member Functions

static void setScale (float scale)
 
static void setTransparency (float alpha)
 
static void enableTransparencyOverride (bool)
 

Protected Member Functions

virtual osg::BoundingBox computeBound () const
 

Member Enumeration Documentation

Enumerator
RENDER_METHOD_CPU_BILLBOARDS 
RENDER_METHOD_CG_SHADER 
RENDER_METHOD_ARB_POINT_SPRITES 
RENDER_METHOD_PARTICLE_CLOUD 
RENDER_METHOD_DISC 
RENDER_METHOD_TEXTURE 
RENDER_METHOD_CG_SHADER_INVERTED 

Constructor & Destructor Documentation

opencover::coSphere::coSphere ( )

Member Function Documentation

virtual osg::BoundingBox opencover::coSphere::computeBound ( ) const
protectedvirtual
virtual void opencover::coSphere::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual
static void opencover::coSphere::enableTransparencyOverride ( bool  )
static
void opencover::coSphere::overrideBoundingBox ( const osg::BoundingBox &  bb)
void opencover::coSphere::setColor ( int  index,
float  r,
float  g,
float  b,
float  a 
)
void opencover::coSphere::setColorBinding ( int  colorbinding)
void opencover::coSphere::setCoords ( int  no_of_points,
const float *  x,
const float *  y,
const float *  z,
const float *  r 
)
void opencover::coSphere::setMaxRadius ( float  m)
inline
void opencover::coSphere::setNumberOfSpheres ( int  n)
void opencover::coSphere::setRenderMethod ( RenderMethod  rm)
static void opencover::coSphere::setScale ( float  scale)
static
static void opencover::coSphere::setTransparency ( float  alpha)
static
void opencover::coSphere::setVertexAttribArray ( unsigned int  index,
const osg::Array *  array,
osg::Array::Binding  binding = osg::Array::BIND_UNDEFINED 
)
void opencover::coSphere::updateColors ( const float *  r,
const float *  g,
const float *  b,
const float *  a = NULL 
)
void opencover::coSphere::updateColors ( const int *  pc)
void opencover::coSphere::updateCoords ( const float *  x_c,
const float *  y_c,
const float *  z_c 
)
void opencover::coSphere::updateCoordsFromMatrices ( float *const *  matrices)
void opencover::coSphere::updateNormals ( const float *  nx,
const float *  ny,
const float *  nz 
)
void opencover::coSphere::updateRadii ( const float *  r)
void opencover::coSphere::updateRadii ( const double *  r)

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