OpenCOVER
|
#include <coSphere.h>
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 | updateCoords (const double *x_c, const double *y_c, const double *z_c) |
void | updateCoordsFromMatrices (float *const *matrices) |
void | updateCoords (int i, const osg::Vec3 &pos) |
void | setCoords (int no_of_points, const float *x, const float *y, const float *z, const float *r) |
void | setCoords (int no_of_points, const double *x, const double *y, const double *z, const double *r) |
void | setCoords (int no_of_points, const float *x, const float *y, const float *z, float r=1.f) |
void | setCoords (int no_of_points, const osg::Vec3Array *coords, const float *r) |
void | updateRadii (const float *r) |
void | updateRadii (const double *r) |
void | updateRadii (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 |
Friends | |
class | SphereIntersector |
opencover::coSphere::coSphere | ( | ) |
|
protectedvirtual |
|
virtual |
|
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 double * | x, | ||
const double * | y, | ||
const double * | z, | ||
const double * | r | ||
) |
void opencover::coSphere::setCoords | ( | int | no_of_points, |
const float * | x, | ||
const float * | y, | ||
const float * | z, | ||
const float * | r | ||
) |
void opencover::coSphere::setCoords | ( | int | no_of_points, |
const float * | x, | ||
const float * | y, | ||
const float * | z, | ||
float | r = 1.f |
||
) |
void opencover::coSphere::setCoords | ( | int | no_of_points, |
const osg::Vec3Array * | coords, | ||
const float * | r | ||
) |
|
inline |
void opencover::coSphere::setNumberOfSpheres | ( | int | n | ) |
void opencover::coSphere::setRenderMethod | ( | RenderMethod | rm | ) |
|
static |
|
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 double * | x_c, |
const double * | y_c, | ||
const double * | z_c | ||
) |
void opencover::coSphere::updateCoords | ( | const float * | x_c, |
const float * | y_c, | ||
const float * | z_c | ||
) |
void opencover::coSphere::updateCoords | ( | int | i, |
const osg::Vec3 & | pos | ||
) |
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 double * | r | ) |
void opencover::coSphere::updateRadii | ( | const float * | r | ) |
void opencover::coSphere::updateRadii | ( | double | r | ) |
|
friend |