Index

C++ Code Documentation

motion::Inertia

Derived from: motion::Mouse

Children: motion::Motion

File: GEOM/motion/Inertia.H

public:
  • Inertia();
    constructor
  • virtual ~Inertia();
    destructor
  • bool inertia_enable() const;
  • void inertia_enable( bool a );
  • } bool inertia_decay() const;
  • void inertia_decay( bool a );
  • float inertia_decay_rate() const;
  • void inertia_decay_rate( float a );
  • virtual motion::TransformX const *inertia() const;
  • virtual void stop_motion();
  • int idle_cb();
  • bool moving() const;
protected:
  • TransformX *_inertia;
private:
  • void enable_inertia(bool state);
  • void decay_inertia();
  • virtual void enable_idle( bool state ) = 0;
  • bool _inertia_enabled;
    true means that the inertia is turned on
  • bool _inertia_decay_enabled;
    true means that the inertia decay is turned on
  • float _inertia_decay_rate;
  • static float const INERTIA_DECAY_RATE_DEFAULT;
  • static float const INERTIA_CLIP;
  • Inertia( Inertia const & );
    disabled copy constructor
  • Inertia &operator=( Inertia const & );
    disabled assignment operator


motion::Inertia GANG