![]() |
Visual Servoing Platform
version 3.6.1 under development (2024-09-08)
|
#include <visp3/ar/vpPanda3DLight.h>
Public Member Functions | |
vpPanda3DDirectionalLight (const std::string &name, const vpRGBf &color, const vpColVector &direction) | |
void | addToScene (NodePath &scene) const VP_OVERRIDE |
const std::string & | getName () const |
const vpRGBf & | getColor () const |
Protected Attributes | |
std::string | m_name |
vpRGBf | m_color |
Class representing a directional light.
A directional light has no origin nor falloff.
Definition at line 186 of file vpPanda3DLight.h.
|
inline |
Build a new directional light.
name | name of the light |
color | color of the light |
direction | Position in the scene of the light. Uses ViSP coordinates. |
Definition at line 198 of file vpPanda3DLight.h.
References vpException::dimensionError.
|
inlinevirtual |
Add the light to the scene.
scene | Scene where the light should be added. |
Implements vpPanda3DLight.
Definition at line 207 of file vpPanda3DLight.h.
References vpPanda3DBaseRenderer::vispVectorToPanda().
|
inlineinherited |
|
inlineinherited |
Get the name of the light.
This name should be unique and will be required when interacting with Panda3D to fetch the node.
Definition at line 78 of file vpPanda3DLight.h.
|
protectedinherited |
Name of the light. Should be unique in the scene.
Definition at line 95 of file vpPanda3DLight.h.
|
protectedinherited |
Definition at line 94 of file vpPanda3DLight.h.