Class to encapsulate reading shader files and setting up rendering of a Spline.
More...
#include <SplineRenderer.h>
|
| | SplineShader (size_t initialBufferSize=256) |
| |
| void | add (const agx::Vec3 &startPoint, const agx::Vec3 &endPoint, agx::Real radius, agx::Vec2 redShift=agx::Vec2(0, 0)) |
| | Add cylinder given world start- and end point, and radius. More...
|
| |
| void | add (const agx::Vec3 &point, const agx::Quat &zToDir, agx::Real radius, agx::Real redShift=agx::Real(0)) |
| | Continuous mesh, for splines. More...
|
| |
| void | add (const agxCollide::Geometry *geometry) |
| | All compatible shapes in geometry will be rendered. More...
|
| |
| void | add2 (const agx::Vec3 &point, const agx::Quat &quat, agx::Real radius, agx::Real xTexCoord, agx::Real redShift) |
| |
| osg::Uniform * | getCircleNormalUniform () |
| |
| const osg::Uniform * | getCircleNormalUniform () const |
| |
| osg::Uniform * | getCircleResolutionUniform () |
| |
| const osg::Uniform * | getCircleResolutionUniform () const |
| |
| osg::Uniform * | getCylinderColorUniform () |
| |
| const osg::Uniform * | getCylinderColorUniform () const |
| |
| osg::Program * | getProgram () |
| |
| const osg::Program * | getProgram () const |
| |
| osg::Vec4Array * | getQuatsInColorArray () |
| |
| osg::FloatArray * | getRadiusArray () |
| |
| osg::Vec3Array * | getVertexArray () |
| |
| void | resetCounters () |
| | Resets all internal counters. More...
|
| |
| void | setNumActiveElements (size_t numActiveElements) |
| |
| void | setUseRedShiftScale (bool) |
| |
| void | update () |
| | Push the data to the graphics card. More...
|
| |
Class to encapsulate reading shader files and setting up rendering of a Spline.
Definition at line 43 of file SplineRenderer.h.
| agxOSG::SplineShader::SplineShader |
( |
size_t |
initialBufferSize = 256 | ) |
|
| virtual agxOSG::SplineShader::~SplineShader |
( |
| ) |
|
|
protectedvirtual |
Add cylinder given world start- and end point, and radius.
Continuous mesh, for splines.
Add point and direction towards the next.
All compatible shapes in geometry will be rendered.
- Parameters
-
| geometry | - geometry with one or several compatible shapes |
| osg::Uniform* agxOSG::SplineShader::getCircleNormalUniform |
( |
| ) |
|
|
inline |
| const osg::Uniform* agxOSG::SplineShader::getCircleNormalUniform |
( |
| ) |
const |
|
inline |
| osg::Uniform* agxOSG::SplineShader::getCircleResolutionUniform |
( |
| ) |
|
|
inline |
- Returns
- the uniform holding the number of cylinder segments in the shader
Definition at line 85 of file SplineRenderer.h.
| const osg::Uniform* agxOSG::SplineShader::getCircleResolutionUniform |
( |
| ) |
const |
|
inline |
| osg::Uniform* agxOSG::SplineShader::getCylinderColorUniform |
( |
| ) |
|
|
inline |
- Returns
- the uniform holding the color of the cylinders
Definition at line 91 of file SplineRenderer.h.
| const osg::Uniform* agxOSG::SplineShader::getCylinderColorUniform |
( |
| ) |
const |
|
inline |
| osg::Program* agxOSG::SplineShader::getProgram |
( |
| ) |
|
|
inline |
| const osg::Program* agxOSG::SplineShader::getProgram |
( |
| ) |
const |
|
inline |
| osg::Vec4Array* agxOSG::SplineShader::getQuatsInColorArray |
( |
| ) |
|
|
inline |
| osg::FloatArray* agxOSG::SplineShader::getRadiusArray |
( |
| ) |
|
|
inline |
| osg::Vec3Array* agxOSG::SplineShader::getVertexArray |
( |
| ) |
|
|
inline |
| void agxOSG::SplineShader::resetCounters |
( |
| ) |
|
Resets all internal counters.
I.e., all old data will be forgotten.
| void agxOSG::SplineShader::setNumActiveElements |
( |
size_t |
numActiveElements | ) |
|
|
inline |
| void agxOSG::SplineShader::setUseRedShiftScale |
( |
bool |
| ) |
|
| void agxOSG::SplineShader::update |
( |
| ) |
|
Push the data to the graphics card.
| osg::ref_ptr<osg::Uniform> agxOSG::SplineShader::m_circleNormalUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> agxOSG::SplineShader::m_circleResolutionUniform |
|
protected |
| osg::ref_ptr<osg::Uniform> agxOSG::SplineShader::m_cylinderColorUniform |
|
protected |
| size_t agxOSG::SplineShader::m_numActiveElements |
|
protected |
| osg::DrawArrays* agxOSG::SplineShader::m_primitiveSet |
|
protected |
| osg::Program* agxOSG::SplineShader::m_program |
|
protected |
| osg::Vec4Array* agxOSG::SplineShader::m_quatsInColorArray |
|
protected |
| osg::FloatArray* agxOSG::SplineShader::m_radiusArray |
|
protected |
| osg::FloatArray* agxOSG::SplineShader::m_redShiftArray |
|
protected |
| osg::ref_ptr<osg::Uniform> agxOSG::SplineShader::m_useRedShiftUniform |
|
protected |
| osg::Vec3Array* agxOSG::SplineShader::m_vertexArray |
|
protected |
| osg::FloatArray* agxOSG::SplineShader::m_xTexCoordArray |
|
protected |
The documentation for this class was generated from the following file: