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

Public Member Functions

 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
 
virtual char * get_ptr () const =0
 
virtual size_t get_value_size () const =0
 
bool set_time (double time)
 
- Public Member Functions inherited from cgv::data::ref_counted
int get_ref_count () const
 read access to current count
 

Protected Member Functions

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

AnimationParameterMapping parameter_mapping
 
double start_time
 
double end_time
 
cgv::base::base_ptr bp
 

Detailed Description

Definition at line 31 of file animate.h.

Constructor & Destructor Documentation

◆ animation()

cgv::gui::animation::animation ( double  _start_time,
double  _end_time,
AnimationParameterMapping  _parameter_mapping = APM_LINEAR 
)

Definition at line 8 of file animate.cxx.

◆ ~animation()

virtual cgv::gui::animation::~animation ( )
inlinevirtual

Definition at line 41 of file animate.h.

Member Function Documentation

◆ animates()

bool cgv::gui::animation::animates ( const void *  ptr) const

Definition at line 55 of file animate.cxx.

◆ configure()

void cgv::gui::animation::configure ( AnimationParameterMapping  _parameter_mapping,
cgv::base::base_ptr  _bp 
)

Definition at line 18 of file animate.cxx.

◆ get_parameter()

double cgv::gui::animation::get_parameter ( double  time) const

Definition at line 41 of file animate.cxx.

◆ get_start_time()

double cgv::gui::animation::get_start_time ( ) const

Definition at line 32 of file animate.cxx.

◆ has_started()

bool cgv::gui::animation::has_started ( double  time) const

Definition at line 28 of file animate.cxx.

◆ is_over()

bool cgv::gui::animation::is_over ( double  time) const

Definition at line 37 of file animate.cxx.

◆ overlaps()

bool cgv::gui::animation::overlaps ( const char *  value_ptr,
size_t  value_size 
) const

Definition at line 60 of file animate.cxx.

◆ set_base_ptr()

void cgv::gui::animation::set_base_ptr ( cgv::base::base_ptr  _bp)

Definition at line 14 of file animate.cxx.

◆ set_parameter_mapping()

void cgv::gui::animation::set_parameter_mapping ( AnimationParameterMapping  _parameter_mapping)

Definition at line 24 of file animate.cxx.

◆ set_time()

bool cgv::gui::animation::set_time ( double  time)

Definition at line 69 of file animate.cxx.

Member Data Documentation

◆ bp

cgv::base::base_ptr cgv::gui::animation::bp
protected

Definition at line 37 of file animate.h.

◆ end_time

double cgv::gui::animation::end_time
protected

Definition at line 36 of file animate.h.

◆ parameter_mapping

AnimationParameterMapping cgv::gui::animation::parameter_mapping
protected

Definition at line 34 of file animate.h.

◆ start_time

double cgv::gui::animation::start_time
protected

Definition at line 35 of file animate.h.


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