0.44.0
|
#include <iNodeLight.h>
Inherits igor::iNode.
Protected Member Functions | |
virtual void | onPreSetScene () |
virtual void | onPostSetScene () |
void | onUpdateTransform (iaMatrixd &matrix) |
Protected Member Functions inherited from igor::iNode | |
void | setTransformationDirtyDown () |
void | setTransformationDirtyUp () |
void | setDataDirty () |
bool | isDataDirty () |
void | setParent (iNodePtr parent) |
void | setScene (iScenePtr scene) |
virtual void | onUpdateTransform (iaMatrixd &matrix) |
virtual void | onPreSetScene () |
virtual void | onPostSetScene () |
virtual bool | onUpdateData () |
virtual void | onPostCopyLink (std::map< iNodeID, iNodeID > &nodeIDMap) |
iNode () | |
iNode (iNodePtr node) | |
virtual | ~iNode () |
Protected Attributes | |
iaMatrixd | _worldMatrix |
iaColor3f | _ambient = {0.7f, 0.7f, 0.7f} |
iaColor3f | _diffuse = {0.9f, 0.9f, 0.9f} |
iaColor3f | _specular = {1.0f, 1.0f, 1.0f} |
iLightType | _type = iLightType::Directional |
Protected Attributes inherited from igor::iNode | |
bool | _active = true |
iNodeType | _nodeType = iNodeType::iNode |
iNodeKind | _nodeKind = iNodeKind::Node |
iaString | _name = L"iNode" |
bool | _transformationDirty = true |
iScenePtr | _scene = nullptr |
iNodePtr | _parent = nullptr |
std::vector< iNodePtr > | _children |
std::vector< iNodePtr > | _inactiveChildren |
iTransformationChangeEvent | _transformationChangeEvent |
Friends | |
class | iNodeVisitorUpdateTransform |
class | iNodeManager |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iNode | |
static iaString | getKindName (iNodeKind kind) |
static iaString | getTypeName (iNodeType nodeType) |
Static Public Attributes inherited from igor::iNode | |
static const iNodeID | INVALID_NODE_ID = IGOR_INVALID_ID |
this node implementation controls a light within the scene
iaColor3f & igor::iNodeLight::getAmbient | ( | ) |
returns ambient material color
iaColor3f & igor::iNodeLight::getDiffuse | ( | ) |
returns diffuse material color
const iaVector3d & igor::iNodeLight::getDirection | ( | ) | const |
const iaVector3d & igor::iNodeLight::getPosition | ( | ) | const |
iaColor3f & igor::iNodeLight::getSpecular | ( | ) |
returns specular material color
iLightType igor::iNodeLight::getType | ( | ) | const |
void igor::iNodeLight::getWorldMatrix | ( | iaMatrixd & | matrix | ) |
returns world matrix
[out] | matrix | returned world matrix |
|
protectedvirtual |
register to scene
Reimplemented from igor::iNode.
|
protectedvirtual |
unregister from scene
Reimplemented from igor::iNode.
|
protectedvirtual |
void igor::iNodeLight::setAmbient | ( | const iaColor3f & | color | ) |
set ambient material color
color | ambient color |
set ambient material color
r | red |
g | green |
b | blue |
void igor::iNodeLight::setDiffuse | ( | const iaColor3f & | color | ) |
set diffuse material color
color | diffuse color |
set diffuse material color
r | red |
g | green |
b | blue |
void igor::iNodeLight::setSpecular | ( | const iaColor3f & | color | ) |
set specular material color
color | specular color |
set specular material color
r | red |
g | green |
b | blue |
void igor::iNodeLight::setType | ( | iLightType | type | ) |
set type of light
the | type of light |
|
friend |
|
friend |
|
protected |
ambient material color
|
protected |
diffuse material color
|
protected |
specular material color
|
protected |
type of light
|
protected |
resulting world matrix of light