cgv
Loading...
Searching...
No Matches
cgv::gui::rotation_animation< T > Class Template Reference
Inheritance diagram for cgv::gui::rotation_animation< T >:
cgv::gui::value_animation< cgv::math::fvec< T, 3 > > cgv::gui::animation cgv::data::ref_counted

Public Member Functions

 rotation_animation (cgv::math::fvec< T, 3 > &value, const cgv::math::fvec< T, 3 > &_axis, double _angle, double _start_time, double _end_time, AnimationParameterMapping _parameter_mapping=APM_SIN_SQUARED)
 
 rotation_animation (cgv::math::fvec< T, 3 > &value, const cgv::math::fvec< T, 3 > &_end_value, double _start_time, double _end_time, AnimationParameterMapping _parameter_mapping=APM_SIN_SQUARED)
 
- Public Member Functions inherited from cgv::gui::value_animation< cgv::math::fvec< T, 3 > >
 value_animation (cgv::math::fvec< T, 3 > &value, const cgv::math::fvec< T, 3 > &_end_value, double _start_time, double _end_time, AnimationParameterMapping _parameter_mapping=APM_SIN_SQUARED)
 
- Public Member Functions inherited from cgv::gui::animation
 animation (double _start_time, double _end_time, AnimationParameterMapping _parameter_mapping=APM_LINEAR)
 
void set_base_ptr (cgv::base::base_ptr _bp)
 
void configure (AnimationParameterMapping _parameter_mapping, cgv::base::base_ptr _bp)
 
void set_parameter_mapping (AnimationParameterMapping _parameter_mapping)
 
double get_start_time () const
 
bool has_started (double time) const
 
bool is_over (double time) const
 
double get_parameter (double time) const
 
bool animates (const void *ptr) const
 
bool overlaps (const char *value_ptr, size_t value_size) const
 
bool set_time (double time)
 
- Public Member Functions inherited from cgv::data::ref_counted
int get_ref_count () const
 read access to current count
 

Public Attributes

cgv::math::fvec< T, 3 > axis
 
angle
 
- Public Attributes inherited from cgv::gui::value_animation< cgv::math::fvec< T, 3 > >
cgv::math::fvec< T, 3 > end_value
 

Protected Member Functions

void set_value (double time)
 
- Protected Member Functions inherited from cgv::gui::value_animation< cgv::math::fvec< T, 3 > >
char * get_ptr () const
 
size_t get_value_size () const
 
- Protected Member Functions inherited from cgv::data::ref_counted
 ref_counted ()
 constructor initializes the count to 0
 
void set_ref_count (int c) const
 write access is also const to allow ref counted pointers to const instances
 

Additional Inherited Members

- Protected Attributes inherited from cgv::gui::value_animation< cgv::math::fvec< T, 3 > >
cgv::math::fvec< T, 3 > start_value
 
cgv::math::fvec< T, 3 > * value_ptr
 
- Protected Attributes inherited from cgv::gui::animation
AnimationParameterMapping parameter_mapping
 
double start_time
 
double end_time
 
cgv::base::base_ptr bp
 

Detailed Description

template<typename T>
class cgv::gui::rotation_animation< T >

Definition at line 122 of file animate.h.

Constructor & Destructor Documentation

◆ rotation_animation() [1/2]

template<typename T >
cgv::gui::rotation_animation< T >::rotation_animation ( cgv::math::fvec< T, 3 > &  value,
const cgv::math::fvec< T, 3 > &  _axis,
double  _angle,
double  _start_time,
double  _end_time,
AnimationParameterMapping  _parameter_mapping = APM_SIN_SQUARED 
)
inline

Definition at line 133 of file animate.h.

◆ rotation_animation() [2/2]

template<typename T >
cgv::gui::rotation_animation< T >::rotation_animation ( cgv::math::fvec< T, 3 > &  value,
const cgv::math::fvec< T, 3 > &  _end_value,
double  _start_time,
double  _end_time,
AnimationParameterMapping  _parameter_mapping = APM_SIN_SQUARED 
)
inline

Definition at line 136 of file animate.h.

Member Function Documentation

◆ set_value()

template<typename T >
void cgv::gui::rotation_animation< T >::set_value ( double  time)
inlineprotectedvirtual

Implements cgv::gui::animation.

Definition at line 128 of file animate.h.

Member Data Documentation

◆ angle

template<typename T >
T cgv::gui::rotation_animation< T >::angle

Definition at line 126 of file animate.h.

◆ axis

template<typename T >
cgv::math::fvec<T, 3> cgv::gui::rotation_animation< T >::axis

Definition at line 125 of file animate.h.


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