igor::iNodeCamera Class Reference

#include <iNodeCamera.h>

Inherits igor::iNode.

Public Member Functions

void getWorldMatrix (iaMatrixd &matrix)
 
void getViewMatrix (iaMatrixd &viewmatrix)
 
- Public Member Functions inherited from igor::iNode
iNodeKind getKind () const
 
iNodeType getType () const
 
iNodeID getID () const
 
const iaStringgetName () const
 
virtual std::vector< iaStringgetInfo (bool brief=false) const
 
void setName (const iaString &name)
 
void insertNode (iNodePtr node)
 
void insertNodeAsync (iNodePtr node)
 
void setActive (bool active=true)
 
void setActiveAsync (bool active=true)
 
void removeNode (iNodePtr node)
 
void removeNodeAsync (iNodePtr node)
 
bool isChild ()
 
bool isChild (iNodePtr child)
 
bool hasChildren ()
 
const std::vector< iNodePtr > & getChildren () const
 
void getAllChildren (std::vector< iNodePtr > &children) const
 
iNodePtr getChild (const iaString &name)
 
iNodePtr getChild (iNodeID id)
 
const std::vector< iNodePtr > & getInactiveChildren () const
 
iNodePtr getParent ()
 
iScenePtr getScene ()
 
bool isTransformationDirty ()
 
void setTransformationDirty (bool dirty=true)
 
void calcWorldTransformation (iaMatrixd &matrix)
 
bool isActive () const
 
iTransformationChangeEvent & getTransformationChangeEvent ()
 

Protected Member Functions

virtual void onPreSetScene () override
 
virtual void onPostSetScene () override
 
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
 
- 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
 

Detailed Description

camera node

Member Function Documentation

◆ getViewMatrix()

void igor::iNodeCamera::getViewMatrix ( iaMatrixd viewmatrix)

returns the view matrix of the camera

Parameters
viewmatrixin out value to return the cameras view matrix

◆ getWorldMatrix()

void igor::iNodeCamera::getWorldMatrix ( iaMatrixd matrix)

returns world matrix of camera

Parameters
matrixin out value to return the world matrix

◆ onPostSetScene()

void igor::iNodeCamera::onPostSetScene ( )
overrideprotectedvirtual

registers to new scene

Reimplemented from igor::iNode.

◆ onPreSetScene()

void igor::iNodeCamera::onPreSetScene ( )
overrideprotectedvirtual

unregisters camera from scene if it belonged to a scene before

Reimplemented from igor::iNode.

◆ onUpdateTransform()

void igor::iNodeCamera::onUpdateTransform ( iaMatrixd matrix)
protectedvirtual

set the world matrix of the camera

Parameters
matrixworld matrix for the camera

Reimplemented from igor::iNode.

Friends And Related Function Documentation

◆ iNodeManager

friend class iNodeManager
friend

◆ iNodeVisitorUpdateTransform

friend class iNodeVisitorUpdateTransform
friend

Member Data Documentation

◆ _worldMatrix

iaMatrixd igor::iNodeCamera::_worldMatrix
protected

matrix including position an orientation of this camera in world coordinates


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