CheckableFloat Class Reference


Detailed Description

A container class that holds a boolean and a float value.

Can be used to to enable/disable the usage of the float value. Typically represented by a checkbox and a slider below that where the state of the checkbox enables or disables the slider.

Definition at line 1576 of file math.h.

#include <math.h>

List of all members.

Public Member Functions

  CheckableFloat (void)
  CheckableFloat (bool bState, float fValue)
void  SetValue (float f)
  Sets the associated float value.
float  Value (void) const
  Retrieves the associated float value.
void  SetState (bool b)
  Sets the associated boolean value.
bool  State (void) const
  Retrieves the associated boolean value.
bool  operator== (const CheckableFloat &cf) const throw ()
bool  operator!= (const CheckableFloat &cf) const throw ()
CheckableFloat operator= (const CheckableFloat &cf)
void  Serialize (Stream &s)

Protected Attributes

bool  m_bState
float  m_fValue

Constructor & Destructor Documentation

CheckableFloat ( void  ) [inline]

Definition at line 1579 of file math.h.

{ return State() == cf.State() && Value() == cf.Value(); };
CheckableFloat ( bool  bState,
float  fValue 
) [inline]

Definition at line 1580 of file math.h.

{ return !operator ==( cf ); };

Member Function Documentation

void SetValue ( float  f ) [inline]

Sets the associated float value.

Definition at line 1583 of file math.h.

{
float Value ( void  ) const [inline]

Retrieves the associated float value.

Definition at line 1586 of file math.h.

:
    bool m_bState;
void SetState ( bool  b ) [inline]

Sets the associated boolean value.

Definition at line 1589 of file math.h.

:
    bool m_bState;
bool State ( void  ) const [inline]

Retrieves the associated boolean value.

Definition at line 1592 of file math.h.

: public AttributeInstance<CheckableFloat>
bool operator== ( const CheckableFloat cf ) const throw () [inline]

Definition at line 1594 of file math.h.

: public AttributeInstance<CheckableFloat>
bool operator!= ( const CheckableFloat cf ) const throw () [inline]

Definition at line 1595 of file math.h.

: public AttributeInstance<CheckableFloat>
CheckableFloat& operator= ( const CheckableFloat cf ) [inline]

Definition at line 1596 of file math.h.

: public AttributeInstance<CheckableFloat>
void Serialize ( Stream s ) [inline]

Definition at line 1598 of file math.h.

      :
    AttributeCheckableFloat( Node *pOwner = 0, const QString &sID = "", const QString &sValueName = "" ) : AttributeInstance<CheckableFloat>( pOwner, sID )
        { m_iSize = sizeof(CheckableFloat); m_sValueName = sValueName; };
    void SetValueName( const QString &sValueName ) { m_sValueName = sValueName; };

Member Data Documentation

bool m_bState [protected]

Definition at line 1601 of file math.h.

float m_fValue [protected]

Definition at line 1606 of file math.h.


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

CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat
CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat CheckableFloat