Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::animation::CameraKeyframe Class Reference

#include <modules/animation/datastructures/camerakeyframe.h>

Inheritance diagram for inviwo::animation::CameraKeyframe:

Public Types

using value_type = Camera
Public Types inherited from inviwo::animation::BaseKeyframe
using value_type = void

Public Member Functions

 CameraKeyframe (const CameraKeyframe &rhs)=default
 CameraKeyframe (Seconds time)
 CameraKeyframe (Seconds time, const Camera &cam)
virtual CameraKeyframe * clone () const override
virtual void deserialize (Deserializer &d) override
vec3 getDirection () const
 Get unnormalized direction of camera: lookTo - lookFrom.
const vec3 & getLookFrom () const
const vec3 & getLookTo () const
const vec3 & getLookUp () const
CameraKeyframe & operator= (const CameraKeyframe &that)=default
virtual void serialize (Serializer &s) const override
virtual void setLookFrom (vec3 val)
virtual void setLookTo (vec3 val)
virtual void setLookUp (vec3 val)
void updateFrom (const Camera &value)
Public Member Functions inherited from inviwo::animation::BaseKeyframe
 BaseKeyframe (Seconds time)
virtual Seconds getTime () const override
virtual bool isSelected () const override
virtual void setSelected (bool selected) override
virtual void setTime (Seconds time) override
Public Member Functions inherited from inviwo::Observable< KeyframeObserver >
void addObserver (KeyframeObserver *observer)
bool isObservedBy (KeyframeObserver *observer) const
Observable< KeyframeObserver > & operator= (const Observable< KeyframeObserver > &other)
void removeObserver (KeyframeObserver *observer)
virtual void startBlockingNotifications () override final
virtual void stopBlockingNotifications () override final

Static Public Member Functions

static constexpr std::string_view getName ()

Additional Inherited Members

Protected Member Functions inherited from inviwo::animation::BaseKeyframe
 BaseKeyframe (BaseKeyframe &&rhs)=default
 BaseKeyframe (const BaseKeyframe &rhs)=default
BaseKeyframe & operator= (BaseKeyframe &&that)=default
BaseKeyframe & operator= (const BaseKeyframe &that)
Protected Member Functions inherited from inviwo::animation::KeyframeObservable
void notifyKeyframeSelectionChanged (Keyframe *key)
void notifyKeyframeTimeChanged (Keyframe *key, Seconds oldTime)
Protected Member Functions inherited from inviwo::Observable< KeyframeObserver >
void forEachObserver (C callback)
Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
virtual void addObserver (Observer *observer)=0
void removeObservationHelper (Observer *observer)
virtual void removeObserver (Observer *observer)=0

Detailed Description

Keyframe of Camera value type. Stores the KeyFrame value at a given time.

Note
Only considers the Camera lookFrom, lookTo and lookUp
See also
Keyframe

Member Function Documentation

◆ clone()

virtual CameraKeyframe * inviwo::animation::CameraKeyframe::clone ( ) const
overridevirtual

◆ deserialize()

virtual void inviwo::animation::CameraKeyframe::deserialize ( Deserializer & d)
overridevirtual

Reimplemented from inviwo::animation::BaseKeyframe.

◆ serialize()

virtual void inviwo::animation::CameraKeyframe::serialize ( Serializer & s) const
overridevirtual

Reimplemented from inviwo::animation::BaseKeyframe.


The documentation for this class was generated from the following file:
  • modules/animation/include/modules/animation/datastructures/camerakeyframe.h