Choreonoid  1.8
Public Member Functions | List of all members
cnoid::OutlineProgram Class Reference

#include <ShaderPrograms.h>

Inheritance diagram for cnoid::OutlineProgram:
cnoid::SolidColorProgram cnoid::NolightingProgram cnoid::ShaderProgram

Public Member Functions

 OutlineProgram ()
 
virtual void initialize () override
 
virtual void setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L) override
 
void setLineWidth (float width)
 
- Public Member Functions inherited from cnoid::SolidColorProgram
 SolidColorProgram ()
 
 ~SolidColorProgram ()
 
virtual void activate () override
 
virtual void setColor (const Vector3f &color)
 
virtual void setMaterial (const SgMaterial *material) override
 
virtual void setPointSize (float s)
 
void setColorChangable (bool on)
 
bool isColorChangable () const
 
void resetColor (const Vector3f &color)
 
- Public Member Functions inherited from cnoid::NolightingProgram
 NolightingProgram ()
 
 ~NolightingProgram ()
 
- Public Member Functions inherited from cnoid::ShaderProgram
virtual ~ShaderProgram ()
 
GLSLProgramglslProgram ()
 
virtual void release ()
 
virtual void deactivate ()
 
bool isActive () const
 
virtual void setVertexColorEnabled (bool on)
 
int capabilities () const
 
bool hasCapability (int capability) const
 

Additional Inherited Members

- Public Types inherited from cnoid::ShaderProgram
enum  Capability { NoCapability = 0, Lighting = 1, Transparency = 2 }
 
- Protected Member Functions inherited from cnoid::SolidColorProgram
 SolidColorProgram (std::initializer_list< ShaderSource > sources)
 
- Protected Member Functions inherited from cnoid::NolightingProgram
 NolightingProgram (std::initializer_list< ShaderSource > sources)
 
- Protected Member Functions inherited from cnoid::ShaderProgram
 ShaderProgram ()=default
 
 ShaderProgram (std::initializer_list< ShaderSource > sources)
 
void setCapability (int capability)
 

Detailed Description

Experimental implementaion for rendering outlines

Constructor & Destructor Documentation

◆ OutlineProgram()

OutlineProgram::OutlineProgram ( )

Member Function Documentation

◆ initialize()

void OutlineProgram::initialize ( )
overridevirtual

Reimplemented from cnoid::SolidColorProgram.

◆ setLineWidth()

void OutlineProgram::setLineWidth ( float  width)

◆ setTransform()

void OutlineProgram::setTransform ( const Matrix4 PV,
const Isometry3 V,
const Affine3 M,
const Matrix4 L 
)
overridevirtual
Parameters
PVProduct of the project matrix and view matrix
VThe transform corresponding to the view matrix
MThe transform corresponding to the model matrix
LThe transform corresponding to the local vertex transform matrix
Note
L is used when the vertex positions are expressed as normalized ([-1.0, 1.0]) integer value

Reimplemented from cnoid::NolightingProgram.


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