Saga3D API Documentation  1.0-RC4
saga::scene::ISceneNodeAnimatorCameraMaya Class Referenceabstract

Special scene node animator for Maya-style cameras. More...

#include <ISceneNodeAnimatorCameraMaya.h>

Inheritance diagram for saga::scene::ISceneNodeAnimatorCameraMaya:
saga::scene::ISceneNodeAnimator saga::IEventReceiver

Public Member Functions

virtual float getMoveSpeed () const =0
 Returns the speed of movement. More...
 
virtual void setMoveSpeed (float moveSpeed)=0
 Sets the speed of movement. More...
 
virtual float getRotateSpeed () const =0
 Returns the rotation speed. More...
 
virtual void setRotateSpeed (float rotateSpeed)=0
 Set the rotation speed. More...
 
virtual float getZoomSpeed () const =0
 Returns the zoom speed. More...
 
virtual void setZoomSpeed (float zoomSpeed)=0
 Set the zoom speed. More...
 
virtual float getDistance () const =0
 Returns the current distance, i.e. orbit radius. More...
 
virtual void setDistance (float distance)=0
 Set the distance. More...
 
virtual void setTargetMinDistance (float minDistance)=0
 Set the minimal distance to the camera target for zoom. More...
 
virtual float getTargetMinDistance () const =0
 Returns the minimal distance to the camera target for zoom. More...
 
- Public Member Functions inherited from saga::scene::ISceneNodeAnimator
 ISceneNodeAnimator ()
 
virtual void animateNode (ISceneNode &node, const float time)=0
 Animates a scene node. More...
 
virtual void onEvent (const SDL_Event &event) override
 Creates a clone of this animator. More...
 
virtual E_SCENE_NODE_ANIMATOR_TYPE getType () const
 Returns type of the scene node animator. More...
 
virtual bool hasFinished (void) const
 Returns if the animator has finished. More...
 
virtual void setStartTime (std::uint32_t time, bool resetPauseTime=true)
 Reset a time-based movement by changing the starttime. More...
 
virtual std::uint32_t getStartTime () const
 Get the starttime. More...
 
virtual void setEnabled (bool enabled, std::uint32_t timeNow=0)
 Sets the enabled state of this element. More...
 
virtual bool isEnabled () const
 
- Public Member Functions inherited from saga::IEventReceiver
virtual ~IEventReceiver ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from saga::scene::ISceneNodeAnimator
bool IsEnabled
 
std::uint32_t PauseTimeSum
 Only enabled animators are updated. More...
 
std::uint32_t PauseTimeStart
 Sum up time which the animator was disabled. More...
 
std::uint32_t StartTime
 Last time setEnabled(false) was called with a timer > 0. More...
 

Detailed Description

Special scene node animator for Maya-style cameras.

This scene node animator can be attached to a camera to make it act like a 3d modeling tool. The camera is moving relative to the target with the mouse, by pressing either of the three buttons. In order to move the camera, set a new target for the camera. The distance defines the current orbit radius the camera moves on. Distance can be changed via the setter or by mouse events.

Definition at line 25 of file ISceneNodeAnimatorCameraMaya.h.

Member Function Documentation

◆ getDistance()

virtual float saga::scene::ISceneNodeAnimatorCameraMaya::getDistance ( ) const
pure virtual

Returns the current distance, i.e. orbit radius.

◆ getMoveSpeed()

virtual float saga::scene::ISceneNodeAnimatorCameraMaya::getMoveSpeed ( ) const
pure virtual

Returns the speed of movement.

◆ getRotateSpeed()

virtual float saga::scene::ISceneNodeAnimatorCameraMaya::getRotateSpeed ( ) const
pure virtual

Returns the rotation speed.

◆ getTargetMinDistance()

virtual float saga::scene::ISceneNodeAnimatorCameraMaya::getTargetMinDistance ( ) const
pure virtual

Returns the minimal distance to the camera target for zoom.

◆ getZoomSpeed()

virtual float saga::scene::ISceneNodeAnimatorCameraMaya::getZoomSpeed ( ) const
pure virtual

Returns the zoom speed.

◆ setDistance()

virtual void saga::scene::ISceneNodeAnimatorCameraMaya::setDistance ( float  distance)
pure virtual

Set the distance.

◆ setMoveSpeed()

virtual void saga::scene::ISceneNodeAnimatorCameraMaya::setMoveSpeed ( float  moveSpeed)
pure virtual

Sets the speed of movement.

◆ setRotateSpeed()

virtual void saga::scene::ISceneNodeAnimatorCameraMaya::setRotateSpeed ( float  rotateSpeed)
pure virtual

Set the rotation speed.

◆ setTargetMinDistance()

virtual void saga::scene::ISceneNodeAnimatorCameraMaya::setTargetMinDistance ( float  minDistance)
pure virtual

Set the minimal distance to the camera target for zoom.

◆ setZoomSpeed()

virtual void saga::scene::ISceneNodeAnimatorCameraMaya::setZoomSpeed ( float  zoomSpeed)
pure virtual

Set the zoom speed.


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