nw::gfx::Camera Class

Syntax

class Camera : public nw::gfx::TransformNode

Description

Class that represents a camera.

Classes

nw::gfx::Camera::DynamicBuilder Class for building cameras dynamically.

Structures

nw::gfx::Camera::Description Content to configure.

Enumerated Types

TraversalResults Definition of the bit flag indicating the traversal results.(Derived from SceneNode.)

typedef Definitions

CalculateMatrixSignal Definition of a callback signal that is called during matrix calculation.(Derived from TransformNode.)
CalculateMatrixSlot Definition of a callback slot that is called during matrix calculation.(Derived from TransformNode.)
UpdateSignal Definition of a callback signal that is called during updates.(Derived from SceneNode.)
UpdateSlot Definition of a callback slot that is called during updates.(Derived from SceneNode.)

Member Constants

S DEFAULT_MAX_CHILDREN const int Maximum number of children when a fixed amount of memory is used.(Derived from SceneObject.)
S DEFAULT_MAX_CALLBACKS const int Maximum number of callbacks when a fixed amount of memory is used.(Derived from SceneObject.)
S MAX_NAME_LENGTH const int Limit on names of scene objects.(Derived from SceneObject.)

Member Variables

NW_UT_RUNTIME_TYPEINFO
protected m_Children SceneNodeChildren Child node.(Derived from SceneNode.)
protected m_AnimBinding GfxPtr< AnimBinding > Animation binding.(Derived from SceneNode.)
protected m_BranchVisible bool Visibility of a branch and descendants.(Derived from SceneNode.)

Member Functions

Creation/Destruction
S Create Creates a camera from a resource.
S GetMemorySize Gets the memory size required at time of creation.
DestroyBranch Destroys all nodes on the current branch, including the current node.(Derived from SceneNode.)
Destroy Destroys an object.(Derived from GfxObject.)
Scene Trees
V Accept Accepts visitors.
V TrackbackWorldMatrix Tracks back to the parent node and gets the world matrix.
V TrackbackWorldTransform Tracks back to the parent node and gets the world transform.
V TrackbackLocalTransform Tracks back to the parent node and gets the local transform.
V InheritTraversalResults Inherits transform information from the parent node.
AttachChild Attaches a child.(Derived from SceneNode.)
DetachChild Removes a child.(Derived from SceneNode.)
GetChildBegin Gets the beginning of a child.(Derived from SceneNode.)
GetChildEnd Gets the end of a child.(Derived from SceneNode.)
DetachAllChildren Removes all children.(Derived from SceneNode.)
Resources
GetResCamera Gets the camera resource.
GetResTransformNode Gets the transform node resource.(Derived from TransformNode.)
GetResSceneNode Gets the scene node resource.(Derived from SceneNode.)
GetResSceneObject Gets the scene object resource.(Derived from SceneObject.)
GetName Gets the name from the resource.(Derived from SceneObject.)
Camera Matrices
UpdateCameraMatrix Updates the view matrix and the projection matrix.
ProjectionMatrix Gets the projection matrix.
InverseProjectionMatrix Gets the inverse matrix of a projection matrix.
ViewMatrix Gets the view matrix.
InverseViewMatrix Gets the inverse matrix of a view matrix.
TextureProjectionMatrix Gets the projection matrix used for projection texture mapping.
Updater
GetViewUpdater Gets the view matrix updater.
SetViewUpdater Sets the view matrix updater.
SwapViewUpdater Swaps the view matrix updater. Returns the previously configured view matrix updater without destroying it.
GetProjectionUpdater Gets the projection matrix updater.
SetProjectionUpdater Sets the projection matrix updater.
SwapProjectionUpdater Swaps the projection matrix updater. Returns the previously configured projection matrix updater without destroying it.
WScale
GetWScale Gets WScale.
SetWScale Sets WScale.
Animation
GetAnimGroup Gets the animation group.
GetAnimObject Gets the animation object.
SetAnimObject Sets the animation object.
GetAnimBinding Gets the animation binding.(Derived from SceneNode.)
SetAnimBinding Sets the animation binding.(Derived from SceneNode.)
UpdateFrame Updates the frames for all configured animation objects.(Derived from SceneNode.)
View Updater Utility Functions
GetTargetPosition Gets the target coordinates for the configured view updater.
SetTargetPosition Sets the target coordinates for the configured view updater.
GetUpwardVector Gets the up vector of the configured view updater.
SetUpwardVector Sets the up vector of the configured view updater.
GetTwist Gets the twist of the configured view updater.
SetTwist Sets the twist of the configured view updater.
GetViewRotate Gets the rotation angle of the configured view updater.
SetViewRotate Sets the rotation angle of the configured view updater.
Projection Updater Utility Functions
GetPerspective Gets the projection updater parameters for the configured Perspective.
SetPerspective Sets the projection updater parameters for the configured Perspective.
GetFrustum Gets the projection updater parameters for the configured Frustum.
SetFrustum Sets the projection updater parameters for the configured Frustum.
GetOrtho Gets the projection updater parameters for the configured Ortho.
SetOrtho Sets the projection updater parameters for the configured Ortho.
GetNear Gets the distance to the near clip plane for the configured projection updater.
SetNear Sets the distance to the near clip plane for the configured projection updater.
GetFar Gets the distance to the far clip plane for the configured projection updater.
SetFar Sets the distance to the far clip plane for the configured projection updater.
Transforms
Transform Gets the transformation info.(Derived from TransformNode.)
WorldMatrix Gets the world matrix.(Derived from TransformNode.)
WorldTransform Gets the detailed transformation info after WorldMatrix calculation.(Derived from TransformNode.)
InverseWorldMatrix Gets the inverse matrix of the world matrix. Uses a cache the second time it is called and thereafter.(Derived from TransformNode.)
InvalidateInverseWorldMatrix Invalidates the cache used for the inverse matrix of the world matrix. (Call this when updating the world matrix.)(Derived from TransformNode.)
V UpdateDirection Updates direction information.
V UpdateTransform Updates transform information.
SetResourceBasedTransform Sets a transform based on a resource's transform information.(Derived from TransformNode.)
SetResourceScaledTransform Sets a transform based on a resource's transform information.(Derived from TransformNode.)
Callbacks
PostCalculateWorldMatrixSignal Gets the signal after world matrix calculation.(Derived from TransformNode.)
PreUpdateSignal Gets the signal before the scene node is updated.(Derived from SceneNode.)
Traverses
GetTraversalResults Gets the results of a traversal.(Derived from SceneNode.)
SetTraversalResults Sets the results of a traversal.(Derived from SceneNode.)
IsEnabledResults Gets a value indicating whether a given traversal result is enabled.(Derived from SceneNode.)
EnableTraversalResults Enables the results of a traversal.(Derived from SceneNode.)
DisableTraversalResults Disables the results of a traversal.(Derived from SceneNode.)
ResetTraversalResults Copies the result of traversal from a node.(Derived from SceneNode.)
CopyTraversalResults Copies the result of traversal from a node.(Derived from SceneNode.)
SetBranchVisible Sets the flag used to render the node and descendants.(Derived from SceneNode.)
IsBranchVisible Gets the flag used to render the node and descendants.(Derived from SceneNode.)
Constructors and Destructors
protected Camera Constructor.
protected V ~Camera Destructor.
Other
protected CalcInheritingDiretion Calculates direction inherited from parent node conversion information.(Derived from TransformNode.)
protected IsCircularReference Returns true if there is a circular reference.(Derived from SceneNode.)
protected AcceptChildren Makes all nodes accept visitors.(Derived from SceneNode.)

Class Hierarchy

nw::gfx::GfxObject
  nw::gfx::SceneObject
    nw::gfx::SceneNode
      nw::gfx::TransformNode
        nw::gfx::Camera


CONFIDENTIAL