Key Class Reference

Class representing keyframes in a NumberParameter value animation. More...

#include <Key.h>

List of all members.

Public Member Functions

 Key (float index, QVariant value)
 Constructor of the Key class.
 Key ()
 Standard constructor of the Key class with inex and value = 0.0.
 Key (const Key &key)
 Copy constructor of the Key class.
 ~Key ()
 Destructor of the Key class.
float getIndex () const
 Returns the key's index.
void setIndex (float index)
 Sets the index of the key to the given index.
QVariant getValue () const
 Returns the key's value.
void setValue (QVariant value)
 Sets the value of the key to the given value.
Keyoperator/= (const float &fScalar)
 Operators.

Private Attributes

float m_index
 The key's index.
QVariant m_value
 The key's value.


Detailed Description

Class representing keyframes in a NumberParameter value animation.

Constructor & Destructor Documentation

Key::Key ( float  index,
QVariant  value 
)

Constructor of the Key class.

Constructors and Destructors.

Parameters:
index The index for the new key.
value The value for the new key.
Constructor of the Key class.

Parameters:
index The index for the new key.
value The value for the new key.

Key::Key (  ) 

Standard constructor of the Key class with inex and value = 0.0.

Standard constructor of the Key class with inex = value = 0.0.

Key::Key ( const Key key  ) 

Copy constructor of the Key class.

Parameters:
parameter The parameter to copy.

Key::~Key (  ) 

Destructor of the Key class.


Member Function Documentation

float Key::getIndex (  )  const

Returns the key's index.

Public Functions.

Returns:
The key's index.
Returns the key's index.

Returns:
The key's index.

void Key::setIndex ( float  index  ) 

Sets the index of the key to the given index.

Parameters:
index The index for the key.

QVariant Key::getValue (  )  const

Returns the key's value.

Returns:
The key's value.

void Key::setValue ( QVariant  value  ) 

Sets the value of the key to the given value.

Parameters:
value The value for the key.

Key& Key::operator/= ( const float &  fScalar  )  [inline]

Operators.

Multiplies the Value of the key with the given scalar

Parameters:
Thie geven scalar


Member Data Documentation

float Key::m_index [private]

The key's index.

QVariant Key::m_value [private]

The key's value.


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

Generated on Wed Feb 24 15:01:00 2010 for Frapper by  doxygen 1.5.9