LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LinearMotionTransform Class Reference

#include <linearmotiontransform.h>

Inheritance diagram for LinearMotionTransform:
[legend]
Collaboration diagram for LinearMotionTransform:
[legend]

Public Slots

virtual void slotTimetic (const qreal absTime=0)
 

Signals

void signalDisplacementTrigger (qreal t, qreal d, qreal last_t, qreal last_d, LinearMotionTransformTriggers::Type reason)
 
void signalVelocityTrigger (qreal t, qreal v, qreal last_t, qreal last_v, LinearMotionTransformTriggers::Type reason)
 
void signalAccelerationTrigger (qreal t, qreal a, qreal last_t, qreal last_a, LinearMotionTransformTriggers::Type reason)
 
void signalRecomputed (qreal t, qreal d, qreal v, qreal a)
 

Public Member Functions

virtual qreal setStartTime (const qreal time)
 
virtual qreal startTime ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual bool isActive () const
 
virtual void restart (const qreal newStartTime)
 
virtual qreal setAutocount (const qreal incTime)
 
virtual void disableAutocount ()
 
virtual qreal setInitialDisplacement (const qreal di)
 
virtual qreal setInitialVelocity (const qreal vi)
 
virtual qreal setInitialAcceleration (const qreal ai)
 
virtual qreal initialDisplacement () const
 
virtual qreal initialVelocity () const
 
virtual qreal initialAcceleration () const
 
virtual qreal displacement (const qreal time)
 
virtual qreal velocity (const qreal time)
 
virtual qreal acceleration (const qreal time)
 
virtual void vec (const qreal time, qreal &d, qreal &v, qreal &a)
 
virtual QVector< qreal > vec (const qreal time)
 
virtual void setTrigger (quint32 component, LinearMotionTransformTriggers::Type type, const qreal val, QObject *receiver, const char *slot, LinearMotionTransformTriggers::Freq freq=LinearMotionTransformTriggers::SINGLE)
 
virtual void clearTrigger (quint32 component)
 
virtual void positiveOnly (bool v=true)
 
virtual void negativeOnly (bool v=true)
 

Protected Member Functions

 LinearMotionTransform (const qreal startTime=0.0)
 
virtual ~LinearMotionTransform ()
 
virtual void parametersChanged ()
 
virtual void update (const qreal t, const qreal d, const qreal v, const qreal a)
 

Protected Attributes

bool m_active
 
bool m_anyTrigger
 
bool m_posOnly
 
bool m_negOnly
 
qreal m_startTime
 
bool m_useAutocount
 
qreal m_autocountIncrement
 
qreal m_autocountAccumulator
 
qreal m_initialDisplacement
 
qreal m_initialVelocity
 
qreal m_initialAcceleration
 
bool m_validLast
 
qreal m_lastComputedTime
 
qreal m_lastComputedAcceleration
 
qreal m_lastComputedVelocity
 
qreal m_lastComputedDisplacement
 
LinearMotionTransformTriggers::Type m_aTrigger
 
LinearMotionTransformTriggers::Freq m_aTriggerFreq
 
qreal m_aTriggerValue
 
bool m_aTriggerSR
 
LinearMotionTransformTriggers::Type m_vTrigger
 
LinearMotionTransformTriggers::Freq m_vTriggerFreq
 
qreal m_vTriggerValue
 
bool m_vTriggerSR
 
LinearMotionTransformTriggers::Type m_dTrigger
 
LinearMotionTransformTriggers::Freq m_dTriggerFreq
 
qreal m_dTriggerValue
 
bool m_dTriggerSR
 

Constructor & Destructor Documentation

LinearMotionTransform::LinearMotionTransform ( const qreal  startTime = 0.0)
protected
LinearMotionTransform::~LinearMotionTransform ( )
protectedvirtual

Member Function Documentation

qreal LinearMotionTransform::acceleration ( const qreal  time)
virtual

Reimplemented in FrictionTransform.

void LinearMotionTransform::activate ( )
virtual
void LinearMotionTransform::clearTrigger ( quint32  component)
virtual
void LinearMotionTransform::deactivate ( )
virtual
void LinearMotionTransform::disableAutocount ( )
virtual
qreal LinearMotionTransform::displacement ( const qreal  time)
virtual

Reimplemented in FrictionTransform.

qreal LinearMotionTransform::initialAcceleration ( ) const
virtual

Reimplemented in FrictionTransform.

qreal LinearMotionTransform::initialDisplacement ( ) const
virtual
qreal LinearMotionTransform::initialVelocity ( ) const
virtual
bool LinearMotionTransform::isActive ( ) const
virtual
void LinearMotionTransform::negativeOnly ( bool  v = true)
virtual
void LinearMotionTransform::parametersChanged ( )
protectedvirtual

Reimplemented in FrictionTransform.

void LinearMotionTransform::positiveOnly ( bool  v = true)
virtual
void LinearMotionTransform::restart ( const qreal  newStartTime)
virtual

Reimplemented in FrictionTransform.

qreal LinearMotionTransform::setAutocount ( const qreal  incTime)
virtual
qreal LinearMotionTransform::setInitialAcceleration ( const qreal  ai)
virtual

Reimplemented in FrictionTransform.

qreal LinearMotionTransform::setInitialDisplacement ( const qreal  di)
virtual
qreal LinearMotionTransform::setInitialVelocity ( const qreal  vi)
virtual
qreal LinearMotionTransform::setStartTime ( const qreal  time)
virtual
void LinearMotionTransform::setTrigger ( quint32  component,
LinearMotionTransformTriggers::Type  type,
const qreal  val,
QObject receiver,
const char *  slot,
LinearMotionTransformTriggers::Freq  freq = LinearMotionTransformTriggers::SINGLE 
)
virtual
void LinearMotionTransform::signalAccelerationTrigger ( qreal  t,
qreal  a,
qreal  last_t,
qreal  last_a,
LinearMotionTransformTriggers::Type  reason 
)
signal
void LinearMotionTransform::signalDisplacementTrigger ( qreal  t,
qreal  d,
qreal  last_t,
qreal  last_d,
LinearMotionTransformTriggers::Type  reason 
)
signal
void LinearMotionTransform::signalRecomputed ( qreal  t,
qreal  d,
qreal  v,
qreal  a 
)
signal
void LinearMotionTransform::signalVelocityTrigger ( qreal  t,
qreal  v,
qreal  last_t,
qreal  last_v,
LinearMotionTransformTriggers::Type  reason 
)
signal
void LinearMotionTransform::slotTimetic ( const qreal  absTime = 0)
virtualslot
qreal LinearMotionTransform::startTime ( )
virtual
void LinearMotionTransform::update ( const qreal  t,
const qreal  d,
const qreal  v,
const qreal  a 
)
protectedvirtual
void LinearMotionTransform::vec ( const qreal  time,
qreal &  d,
qreal &  v,
qreal &  a 
)
virtual

Reimplemented in FrictionTransform.

QVector< qreal > LinearMotionTransform::vec ( const qreal  time)
virtual

Reimplemented in FrictionTransform.

qreal LinearMotionTransform::velocity ( const qreal  time)
virtual

Reimplemented in FrictionTransform.

Member Data Documentation

bool LinearMotionTransform::m_active
protected
bool LinearMotionTransform::m_anyTrigger
protected
LinearMotionTransformTriggers::Type LinearMotionTransform::m_aTrigger
protected
LinearMotionTransformTriggers::Freq LinearMotionTransform::m_aTriggerFreq
protected
bool LinearMotionTransform::m_aTriggerSR
protected
qreal LinearMotionTransform::m_aTriggerValue
protected
qreal LinearMotionTransform::m_autocountAccumulator
protected
qreal LinearMotionTransform::m_autocountIncrement
protected
LinearMotionTransformTriggers::Type LinearMotionTransform::m_dTrigger
protected
LinearMotionTransformTriggers::Freq LinearMotionTransform::m_dTriggerFreq
protected
bool LinearMotionTransform::m_dTriggerSR
protected
qreal LinearMotionTransform::m_dTriggerValue
protected
qreal LinearMotionTransform::m_initialAcceleration
protected
qreal LinearMotionTransform::m_initialDisplacement
protected
qreal LinearMotionTransform::m_initialVelocity
protected
qreal LinearMotionTransform::m_lastComputedAcceleration
protected
qreal LinearMotionTransform::m_lastComputedDisplacement
protected
qreal LinearMotionTransform::m_lastComputedTime
protected
qreal LinearMotionTransform::m_lastComputedVelocity
protected
bool LinearMotionTransform::m_negOnly
protected
bool LinearMotionTransform::m_posOnly
protected
qreal LinearMotionTransform::m_startTime
protected
bool LinearMotionTransform::m_useAutocount
protected
bool LinearMotionTransform::m_validLast
protected
LinearMotionTransformTriggers::Type LinearMotionTransform::m_vTrigger
protected
LinearMotionTransformTriggers::Freq LinearMotionTransform::m_vTriggerFreq
protected
bool LinearMotionTransform::m_vTriggerSR
protected
qreal LinearMotionTransform::m_vTriggerValue
protected

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