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

#include <ShaderPrograms.h>

Inheritance diagram for cnoid::SolidColorProgram:
cnoid::NolightingProgram cnoid::ShaderProgram cnoid::OutlineProgram cnoid::SolidColorExProgram cnoid::SolidPointProgram cnoid::ThickLineProgram

Public Member Functions

 SolidColorProgram ()
 
 ~SolidColorProgram ()
 
virtual void initialize () override
 
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 ()
 
virtual void setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L) override
 
- 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
 

Protected Member Functions

 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)
 

Additional Inherited Members

- Public Types inherited from cnoid::ShaderProgram
enum  Capability { NoCapability = 0, Lighting = 1, Transparency = 2 }
 

Constructor & Destructor Documentation

◆ SolidColorProgram() [1/2]

SolidColorProgram::SolidColorProgram ( )

◆ ~SolidColorProgram()

SolidColorProgram::~SolidColorProgram ( )

◆ SolidColorProgram() [2/2]

SolidColorProgram::SolidColorProgram ( std::initializer_list< ShaderSource sources)
protected

Member Function Documentation

◆ activate()

void SolidColorProgram::activate ( )
overridevirtual

◆ initialize()

void SolidColorProgram::initialize ( )
overridevirtual

◆ isColorChangable()

bool SolidColorProgram::isColorChangable ( ) const

◆ resetColor()

void SolidColorProgram::resetColor ( const Vector3f &  color)

◆ setColor()

void SolidColorProgram::setColor ( const Vector3f &  color)
virtual

Reimplemented in cnoid::SolidColorExProgram.

◆ setColorChangable()

void SolidColorProgram::setColorChangable ( bool  on)

◆ setMaterial()

void SolidColorProgram::setMaterial ( const SgMaterial material)
overridevirtual

Reimplemented from cnoid::ShaderProgram.

Reimplemented in cnoid::SolidColorExProgram.

◆ setPointSize()

void SolidColorProgram::setPointSize ( float  s)
virtual

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