Inviwo  0.9.10.1
Inviwo documentation
inviwo::animation Namespace Reference

Classes

class  Animation
 
class  AnimationController
 
class  AnimationControllerObservable
 
class  AnimationControllerObserver
 
class  AnimationEditorDockWidgetQt
 
class  AnimationEditorQt
 
class  AnimationLabelViewQt
 
class  AnimationManager
 
class  AnimationObservable
 
class  AnimationObserver
 
class  AnimationPlaySettings
 
class  AnimationQtSupplier
 
class  AnimationSupplier
 
struct  AnimationTimeState
 
class  AnimationViewQt
 
class  BaseKeyframe
 
class  BaseKeyframeSequence
 
class  BasePropertyTrack
 
class  BaseTrack
 
class  ConstantInterpolation
 
class  ControlKeyframe
 
class  ControlKeyframeSequence
 
class  ControlSequenceEditor
 
class  ControlTrack
 
class  ControlTrackWidgetQt
 
class  DemoController
 
class  DemoControllerObservable
 
class  DemoControllerObserver
 
class  DemoNavigatorDockWidgetQt
 
struct  FindDivisionsResult
 
class  Interpolation
 
class  InterpolationFactory
 
class  InterpolationFactoryObject
 
class  InterpolationFactoryObjectTemplate
 
class  InterpolationTyped
 
class  Keyframe
 
class  KeyframeEditorWidget
 
class  KeyframeObservable
 
class  KeyframeObserver
 
class  KeyframeSequence
 
class  KeyframeSequenceObserver
 
class  KeyframeSequenceObserverble
 
class  KeyframeSequenceTyped
 
class  KeyframeSequenceWidgetQt
 
class  KeyframeWidgetQt
 Graphical representation of a keyframe. More...
 
struct  KeyframeWidgetQtLock
 
class  LinearInterpolation
 
class  PropertySequenceEditor
 
class  PropertyTrack
 
class  PropertyTrackWidgetQt
 
class  SequenceEditorFactory
 
class  SequenceEditorFactoryObject
 
class  SequenceEditorFactoryObjectTemplate
 
class  SequenceEditorPanel
 
class  SequenceEditorWidget
 
class  Track
 
class  TrackControlsWidgetQt
 
class  TrackFactory
 
class  TrackFactoryObject
 
class  TrackFactoryObjectTemplate
 
class  TrackObservable
 
class  TrackObserver
 
class  TrackTyped
 
class  TrackWidgetQt
 
class  TrackWidgetQtFactory
 
class  TrackWidgetQtFactoryObject
 
class  TrackWidgetQtFactoryObjectTemplate
 
class  ValueKeyframe
 
class  ValueKeyframeSequence
 
class  ValueKeyframeSequenceObserver
 
class  ValueKeyframeSequenceObserverble
 

Typedefs

using Seconds = std::chrono::duration< double, std::ratio< 1 > >
 

Enumerations

enum  AnimationState { Paused = 0, Playing, Rendering }
 
enum  PlaybackMode { Once = 0, Loop, Swing }
 
enum  ControlAction { Pause, Jump }
 
enum  ItemTypes { Keyframe, KeyframeSequence, ControlTrack, PropertyTrack }
 

Functions

IVW_MODULE_ANIMATION_API bool operator< (const Keyframe &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Keyframe &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Keyframe &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Keyframe &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Keyframe &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Keyframe &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Keyframe &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Keyframe &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Seconds &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Seconds &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Seconds &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Seconds &a, const Keyframe &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const KeyframeSequence &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const KeyframeSequence &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const KeyframeSequence &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const KeyframeSequence &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const KeyframeSequence &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const KeyframeSequence &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const KeyframeSequence &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const KeyframeSequence &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Seconds &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Seconds &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Seconds &a, const KeyframeSequence &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Seconds &a, const KeyframeSequence &b)
 
template<typename Prop , typename Key >
bool operator== (const PropertyTrack< Prop, Key > &a, const PropertyTrack< Prop, Key > &b)
 
template<typename Prop , typename Key >
bool operator!= (const PropertyTrack< Prop, Key > &a, const PropertyTrack< Prop, Key > &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Track &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Track &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Track &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Track &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Track &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Track &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Track &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Track &a, const Seconds &b)
 
IVW_MODULE_ANIMATION_API bool operator< (const Seconds &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator<= (const Seconds &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator> (const Seconds &a, const Track &b)
 
IVW_MODULE_ANIMATION_API bool operator>= (const Seconds &a, const Track &b)
 
template<typename T >
bool operator== (const ValueKeyframe< T > &a, const ValueKeyframe< T > &b)
 
template<typename T >
bool operator!= (const ValueKeyframe< T > &a, const ValueKeyframe< T > &b)
 
template<typename Key >
bool operator== (const KeyframeSequenceTyped< Key > &a, const KeyframeSequenceTyped< Key > &b)
 
template<typename Key >
bool operator!= (const KeyframeSequenceTyped< Key > &a, const KeyframeSequenceTyped< Key > &b)
 
IVW_MODULE_ANIMATION_API bool operator== (const Interpolation &a, const Interpolation &b)
 
IVW_MODULE_ANIMATION_API bool operator!= (const Interpolation &a, const Interpolation &b)
 
AnimationManagergetAnimationManager (InviwoApplication *app)
 
void loadWorkspaceApp (const std::string &path)
 
IVW_MODULE_ANIMATIONQT_API qreal getSnapTime (const qreal &actualTime, const qreal &scale)
 
constexpr double timeToScenePos (Seconds time)
 
constexpr Seconds scenePosToTime (double pos)
 
IVW_MODULE_ANIMATIONQT_API FindDivisionsResult findDivisions (double start, double stop, int divisions)
 

Variables

constexpr int trackHeight = 31
 
constexpr int trackHeightNudge = 2
 
constexpr int timelineHeight = 25
 
constexpr int keyframeWidth = 15
 
constexpr int keyframeHeight = trackHeight
 
constexpr int widthPerSecond = 96
 

Detailed Description

animation

Function Documentation

◆ getSnapTime()

qreal inviwo::animation::getSnapTime ( const qreal &  actualTime,
const qreal &  scale 
)

We snap to certain times depending on the scale (zoom) level and keyboard modifiers. It is important to supply scene coordinates to this function!