CheckableFloatArray Struct Reference


Detailed Description

Definition at line 1634 of file math.h.

#include <math.h>

List of all members.

Public Member Functions

  CheckableFloatArray ()
void  SetState (bool b)
  Sets the associated boolean value.
bool  State (void) const
  Retrieves the associated boolean value.
float  Value (unsigned int i) const
void  SetValue (int i, float v)
void  AddElement (int i, QString sLabel, float fMin, float fMax, float fValue)
unsigned int  Size () const
bool  IsComplementary () const
  the return value is true when the second range is [0, m_aMax[0] - m_aValue[0]].
void  SetComplementary (bool b)
bool  operator== (const CheckableFloatArray &) const throw ()
bool  operator!= (const CheckableFloatArray &v) const throw ()
void  Serialize (Stream &s)

Public Attributes

unsigned int  m_iSize
QString  m_aLabel [2]
float  m_aMin [2]
float  m_aMax [2]
float  m_aValue [2]
bool  m_bComplementary

Static Public Attributes

static bool  s_bActive

Constructor & Destructor Documentation

CheckableFloatArray ( ) [inline]

Definition at line 1637 of file math.h.

    {
        MB_ASSERT(i < m_iSize); 
        MB_ASSERT(fValue > fMin && fValue < fMax); 
        m_aLabel[i] = sLabel;
        m_aMin[i] = fMin;

Member Function Documentation

void SetState ( bool  b ) [inline]

Sets the associated boolean value.

Definition at line 1645 of file math.h.

{ return m_iSize; }
bool State ( void  ) const [inline]

Retrieves the associated boolean value.

Definition at line 1647 of file math.h.

{ return m_iSize; }
float Value ( unsigned int  i ) const [inline]

Definition at line 1649 of file math.h.

{ return m_bComplementary; }
void SetValue ( int  i,
float  v 
) [inline]

Definition at line 1650 of file math.h.

{ return m_bComplementary; }
void AddElement ( int  i,
QString  sLabel,
float  fMin,
float  fMax,
float  fValue 
) [inline]

Definition at line 1652 of file math.h.

                                  { m_bComplementary = b; }

    inline bool operator ==( const CheckableFloatArray & ) const throw() { return false; };
    inline bool operator !=( const CheckableFloatArray &v ) const throw() { return !operator ==( v ); };

    void Serialize( Stream &s )
    {
        s == s_bActive == m_iSize == m_bComplementary;
        for (unsigned int i = 0; i < m_iSize; ++i)
unsigned int Size ( void  ) const [inline]

Definition at line 1662 of file math.h.

: public AttributeInstance<CheckableFloatArray>
bool IsComplementary ( ) const [inline]

the return value is true when the second range is [0, m_aMax[0] - m_aValue[0]].

Definition at line 1666 of file math.h.

: public AttributeInstance<CheckableFloatArray>
void SetComplementary ( bool  b ) [inline]

Definition at line 1667 of file math.h.

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

Definition at line 1669 of file math.h.

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

Definition at line 1670 of file math.h.

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

Definition at line 1672 of file math.h.

                                   : public AttributeInstance<CheckableFloatArray>
{

Member Data Documentation

bool s_bActive [static]

Definition at line 1677 of file math.h.

unsigned int m_iSize

Definition at line 1680 of file math.h.

QString m_aLabel[2]

Definition at line 1681 of file math.h.

float m_aMin[2]

Definition at line 1682 of file math.h.

float m_aMax[2]

Definition at line 1683 of file math.h.

float m_aValue[2]

Definition at line 1684 of file math.h.

Definition at line 1685 of file math.h.


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