Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
vpPanda3DLightableScene Class Reference

#include <vpPanda3DLight.h>

Inheritance diagram for vpPanda3DLightableScene:

Public Member Functions

 vpPanda3DLightableScene ()
 vpPanda3DLightableScene (NodePath &scene)
virtual ~vpPanda3DLightableScene ()=default
void addLight (const vpPanda3DLight &light) VP_OVERRIDE

Protected Member Functions

void setLightableScene (NodePath &scene)

Detailed Description

Implementation of vpPanda3DLightable for a panda scene with a root node.

The root node should be specified with setLightableScene by an inheriting implementation.

Tutorials & Examples

Tutorials
If you are interested in using Panda3D in Augmented Reality applications, you may have a look at:

Definition at line 291 of file vpPanda3DLight.h.

Constructor & Destructor Documentation

◆ vpPanda3DLightableScene() [1/2]

vpPanda3DLightableScene::vpPanda3DLightableScene ( )
inline

Definition at line 294 of file vpPanda3DLight.h.

◆ vpPanda3DLightableScene() [2/2]

vpPanda3DLightableScene::vpPanda3DLightableScene ( NodePath & scene)
inline

Definition at line 297 of file vpPanda3DLight.h.

◆ ~vpPanda3DLightableScene()

virtual vpPanda3DLightableScene::~vpPanda3DLightableScene ( )
virtualdefault

Member Function Documentation

◆ addLight()

void vpPanda3DLightableScene::addLight ( const vpPanda3DLight & light)
inlinevirtual

Add a light to the scene. All of the objects in the scene will be lit.

Exceptions
ifthe scene is not setup (setLightableScene or constructor with NodePath has not been called)
Parameters
lightlight to add

Implements vpPanda3DLightable.

Definition at line 308 of file vpPanda3DLight.h.

References vpException::notInitialized.

◆ setLightableScene()

void vpPanda3DLightableScene::setLightableScene ( NodePath & scene)
inlineprotected

Definition at line 316 of file vpPanda3DLight.h.

Referenced by vpPanda3DRGBRenderer::setupScene().