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

#include <ShaderPrograms.h>

Inheritance diagram for cnoid::FullLightingProgram:
cnoid::MaterialLightingProgram cnoid::BasicLightingProgram cnoid::LightingProgram cnoid::ShaderProgram

Public Member Functions

 FullLightingProgram ()
 
 FullLightingProgram (std::initializer_list< ShaderSource > sources)
 
 ~FullLightingProgram ()
 
void setDefaultFramebufferObject (GLuint id)
 
GLuint defaultFramebufferObject () const
 
void setViewportSize (int width, int height)
 
virtual void initialize () override
 
virtual void release () override
 
virtual void activate () override
 
virtual bool setLight (int index, const SgLight *light, const Isometry3 &T, const Isometry3 &view, bool shadowCasting) override
 
virtual void setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L) override
 
void enableWireframe (const Vector4f &color, float width)
 
void disableWireframe ()
 
bool isWireframeEnabled () const
 
void activateShadowMapGenerationPass (int shadowIndex)
 
void activateMainRenderingPass ()
 
void setShadowMapTextureTopIndex (int textureIndex)
 
int maxNumShadows () const
 
void setNumShadows (int n)
 
ShadowMapProgramshadowMapProgram ()
 
void getShadowMapSize (int &width, int &height) const
 
SgCameragetShadowMapCamera (SgLight *light, Isometry3 &io_T)
 
void setShadowMapViewProjection (const Matrix4 &PV)
 
void setShadowAntiAliasingEnabled (bool on)
 
bool isShadowAntiAliasingEnabled () const
 
- Public Member Functions inherited from cnoid::MaterialLightingProgram
virtual void setMaterial (const SgMaterial *material) override
 
virtual void setVertexColorEnabled (bool on) override
 
void setColorTextureIndex (int textureIndex)
 
int colorTextureIndex () const
 
void setTextureEnabled (bool on)
 
void setMinimumTransparency (float t)
 
- Public Member Functions inherited from cnoid::BasicLightingProgram
virtual int maxNumLights () const override
 
virtual void setNumLights (int n) override
 
virtual void setFog (const SgFog *fog) override
 
- Public Member Functions inherited from cnoid::ShaderProgram
virtual ~ShaderProgram ()
 
GLSLProgramglslProgram ()
 
virtual void deactivate ()
 
bool isActive () const
 
int capabilities () const
 
bool hasCapability (int capability) const
 

Friends

class ShadowMapProgram
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ FullLightingProgram() [1/2]

FullLightingProgram::FullLightingProgram ( )

◆ FullLightingProgram() [2/2]

FullLightingProgram::FullLightingProgram ( std::initializer_list< ShaderSource sources)

◆ ~FullLightingProgram()

FullLightingProgram::~FullLightingProgram ( )

Member Function Documentation

◆ activate()

void FullLightingProgram::activate ( )
overridevirtual

Reimplemented from cnoid::MaterialLightingProgram.

◆ activateMainRenderingPass()

void FullLightingProgram::activateMainRenderingPass ( )

◆ activateShadowMapGenerationPass()

void FullLightingProgram::activateShadowMapGenerationPass ( int  shadowIndex)

◆ defaultFramebufferObject()

GLuint FullLightingProgram::defaultFramebufferObject ( ) const

◆ disableWireframe()

void FullLightingProgram::disableWireframe ( )

◆ enableWireframe()

void FullLightingProgram::enableWireframe ( const Vector4f &  color,
float  width 
)

◆ getShadowMapCamera()

SgCamera * FullLightingProgram::getShadowMapCamera ( SgLight light,
Isometry3 io_T 
)

◆ getShadowMapSize()

void FullLightingProgram::getShadowMapSize ( int &  width,
int &  height 
) const

◆ initialize()

void FullLightingProgram::initialize ( )
overridevirtual

Reimplemented from cnoid::MaterialLightingProgram.

◆ isShadowAntiAliasingEnabled()

bool FullLightingProgram::isShadowAntiAliasingEnabled ( ) const

◆ isWireframeEnabled()

bool FullLightingProgram::isWireframeEnabled ( ) const

◆ maxNumShadows()

int FullLightingProgram::maxNumShadows ( ) const

◆ release()

void FullLightingProgram::release ( )
overridevirtual

Reimplemented from cnoid::ShaderProgram.

◆ setDefaultFramebufferObject()

void FullLightingProgram::setDefaultFramebufferObject ( GLuint  id)

◆ setLight()

bool FullLightingProgram::setLight ( int  index,
const SgLight light,
const Isometry3 T,
const Isometry3 view,
bool  shadowCasting 
)
overridevirtual

Reimplemented from cnoid::BasicLightingProgram.

◆ setNumShadows()

void FullLightingProgram::setNumShadows ( int  n)

◆ setShadowAntiAliasingEnabled()

void FullLightingProgram::setShadowAntiAliasingEnabled ( bool  on)

◆ setShadowMapTextureTopIndex()

void FullLightingProgram::setShadowMapTextureTopIndex ( int  textureIndex)

◆ setShadowMapViewProjection()

void FullLightingProgram::setShadowMapViewProjection ( const Matrix4 PV)

◆ setTransform()

void FullLightingProgram::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::ShaderProgram.

◆ setViewportSize()

void FullLightingProgram::setViewportSize ( int  width,
int  height 
)

◆ shadowMapProgram()

ShadowMapProgram * FullLightingProgram::shadowMapProgram ( )

Friends And Related Function Documentation

◆ ShadowMapProgram

friend class ShadowMapProgram
friend

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