cgv
Loading...
Searching...
No Matches
cgv::gui::value_animation< T > Class Template Reference
Inheritance diagram for cgv::gui::value_animation< T >:
cgv::gui::animation cgv::data::ref_counted cgv::gui::geometric_blend_animation< T > cgv::gui::linear_blend_animation< T > cgv::gui::slerp_animation< T >

Public Member Functions

 value_animation (T &value, const T &_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

end_value
 

Protected Member Functions

char * get_ptr () const
 
size_t get_value_size () const
 
- Protected Member Functions inherited from cgv::gui::animation
virtual void set_value (double time)=0
 
- 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
 

Protected Attributes

start_value
 
T * 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::value_animation< T >

Definition at line 59 of file animate.h.

Constructor & Destructor Documentation

◆ value_animation()

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

Definition at line 70 of file animate.h.

Member Function Documentation

◆ get_ptr()

template<typename T >
char * cgv::gui::value_animation< T >::get_ptr ( ) const
inlineprotectedvirtual

Implements cgv::gui::animation.

Definition at line 67 of file animate.h.

◆ get_value_size()

template<typename T >
size_t cgv::gui::value_animation< T >::get_value_size ( ) const
inlineprotectedvirtual

Implements cgv::gui::animation.

Definition at line 68 of file animate.h.

Member Data Documentation

◆ end_value

template<typename T >
T cgv::gui::value_animation< T >::end_value

Definition at line 64 of file animate.h.

◆ start_value

template<typename T >
T cgv::gui::value_animation< T >::start_value
protected

Definition at line 62 of file animate.h.

◆ value_ptr

template<typename T >
T* cgv::gui::value_animation< T >::value_ptr
protected

Definition at line 66 of file animate.h.


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