CheckableFloatArray Struct Reference

CheckableFloatArray Struct Reference

#include <math.h>

Class Description

Definition at line 1690 of file math.h.

Public Member Functions

 CheckableFloatArray ()
 
void SetState (bool b)
 Sets the associated boolean value. More...
 
bool State (void) const
 Retrieves the associated boolean value. More...
 
float Value (unsigned int i) const
 
void SetValue (unsigned int i, float v)
 
void AddElement (unsigned 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]]. More...
 
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 1693 of file math.h.

1694  {
1695  m_iSize = 2;
1696  m_aValue[0] = 0; m_aValue[1] = 1;
1697  m_bComplementary = false;
1698  }
unsigned int m_iSize
Definition: math.h:1736

Member Function Documentation

void SetState ( bool  b)
inline

Sets the associated boolean value.

Definition at line 1701 of file math.h.

1701 { s_bActive = b; };
static bool s_bActive
Definition: math.h:1733
GLubyte GLubyte b
Definition: GLee.h:5404
bool State ( void  ) const
inline

Retrieves the associated boolean value.

Definition at line 1703 of file math.h.

1703 { return s_bActive; };
static bool s_bActive
Definition: math.h:1733
float Value ( unsigned int  i) const
inline

Definition at line 1705 of file math.h.

1705 { MB_ASSERT(i < m_iSize); return m_aValue[i]; }
#define MB_ASSERT(condition)
Definition: mudbox.h:73
unsigned int m_iSize
Definition: math.h:1736
void SetValue ( unsigned int  i,
float  v 
)
inline

Definition at line 1706 of file math.h.

1706 { MB_ASSERT(i < m_iSize); m_aValue[i] = v; }
#define MB_ASSERT(condition)
Definition: mudbox.h:73
unsigned int m_iSize
Definition: math.h:1736
const GLdouble * v
Definition: GLee.h:1174
void AddElement ( unsigned int  i,
QString  sLabel,
float  fMin,
float  fMax,
float  fValue 
)
inline

Definition at line 1708 of file math.h.

1709  {
1710  MB_ASSERT(i < m_iSize);
1711  MB_ASSERT(fValue > fMin && fValue < fMax);
1712  m_aLabel[i] = sLabel;
1713  m_aMin[i] = fMin;
1714  m_aMax[i] = fMax;
1715  m_aValue[i] = fValue;
1716  }
#define MB_ASSERT(condition)
Definition: mudbox.h:73
unsigned int m_iSize
Definition: math.h:1736
unsigned int Size ( void  ) const
inline

Definition at line 1718 of file math.h.

1718 { return m_iSize; }
unsigned int m_iSize
Definition: math.h:1736
bool IsComplementary ( ) const
inline

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

Definition at line 1722 of file math.h.

1722 { return m_bComplementary; }
void SetComplementary ( bool  b)
inline

Definition at line 1723 of file math.h.

1723 { m_bComplementary = b; }
GLubyte GLubyte b
Definition: GLee.h:5404
bool operator== ( const CheckableFloatArray ) const
throw (
)
inline

Definition at line 1725 of file math.h.

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

Definition at line 1726 of file math.h.

1726 { return !operator ==( v ); };
bool operator==(const CheckableFloatArray &) const
Definition: math.h:1725
const GLdouble * v
Definition: GLee.h:1174
void Serialize ( Stream s)
inline

Definition at line 1728 of file math.h.

1729  {
1731  for (unsigned int i = 0; i < m_iSize; ++i)
1732  s == m_aLabel[i] == m_aMin[i] == m_aMax[i] == m_aValue[i];
1733  };
unsigned int m_iSize
Definition: math.h:1736
static bool s_bActive
Definition: math.h:1733
GLdouble s
Definition: GLee.h:1173

Member Data Documentation

bool s_bActive
static

Definition at line 1733 of file math.h.

unsigned int m_iSize

Definition at line 1736 of file math.h.

QString m_aLabel[2]

Definition at line 1737 of file math.h.

float m_aMin[2]

Definition at line 1738 of file math.h.

float m_aMax[2]

Definition at line 1739 of file math.h.

float m_aValue[2]

Definition at line 1740 of file math.h.

bool m_bComplementary

Definition at line 1741 of file math.h.


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