![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpPanda3DLight.h>
Public Member Functions | |
| vpPanda3DAmbientLight (const std::string &name, const vpRGBf &color) | |
| virtual | ~vpPanda3DAmbientLight ()=default |
| 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 an ambient light.
Ambient light are not physically possible, but are used to emulate light coming from all directions. They do not generate speculars or reflections.
Tutorials
If you are interested in using Panda3D in Augmented Reality applications, you may have a look at:
Definition at line 125 of file vpPanda3DLight.h.
|
inline |
Definition at line 128 of file vpPanda3DLight.h.
References vpPanda3DLight::vpPanda3DLight().
|
virtualdefault |
|
inlinevirtual |
Add the light to the scene.
| scene | Scene where the light should be added. |
Implements vpPanda3DLight.
Definition at line 132 of file vpPanda3DLight.h.
References vpPanda3DLight::m_color, and vpPanda3DLight::m_name.
|
inlineinherited |
Get the light's color.
Definition at line 93 of file vpPanda3DLight.h.
References m_color.
|
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 87 of file vpPanda3DLight.h.
References m_name.
|
protectedinherited |
Name of the light. Should be unique in the scene.
Definition at line 104 of file vpPanda3DLight.h.
Referenced by vpPanda3DAmbientLight::addToScene(), vpPanda3DDirectionalLight::addToScene(), vpPanda3DPointLight::addToScene(), getColor(), and vpPanda3DLight().
|
protectedinherited |
Definition at line 103 of file vpPanda3DLight.h.
Referenced by vpPanda3DAmbientLight::addToScene(), vpPanda3DDirectionalLight::addToScene(), vpPanda3DPointLight::addToScene(), getName(), and vpPanda3DLight().