Blender V2.61 - r43446
Public Member Functions | Protected Attributes

CFloatValue Class Reference

#include <FloatValue.h>

Inheritance diagram for CFloatValue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CFloatValue ()
 CFloatValue (float fl)
 CFloatValue (float fl, const char *name, AllocationTYPE alloctype=CValue::HEAPVALUE)
virtual const STR_StringGetText ()
void Configure (CValue *menuvalue)
virtual double GetNumber ()
virtual void SetValue (CValue *newval)
float GetFloat ()
void SetFloat (float fl)
virtual ~CFloatValue ()
virtual CValueGetReplica ()
virtual CValueCalc (VALUE_OPERATOR op, CValue *val)
virtual CValueCalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)

Protected Attributes

float m_float
STR_Stringm_pstrRep

Detailed Description

Definition at line 24 of file FloatValue.h.


Constructor & Destructor Documentation

CFloatValue::CFloatValue ( )

Definition at line 29 of file FloatValue.cpp.

References m_pstrRep, and NULL.

Referenced by Calc(), CalcFinal(), and GetReplica().

CFloatValue::CFloatValue ( float  fl)

Definition at line 40 of file FloatValue.cpp.

References m_float, m_pstrRep, and NULL.

CFloatValue::CFloatValue ( float  fl,
const char *  name,
AllocationTYPE  alloctype = CValue::HEAPVALUE 
)
CFloatValue::~CFloatValue ( ) [virtual]

Definition at line 71 of file FloatValue.cpp.

References m_pstrRep.


Member Function Documentation

CValue * CFloatValue::Calc ( VALUE_OPERATOR  op,
CValue val 
) [virtual]
CValue * CFloatValue::CalcFinal ( VALUE_DATA_TYPE  dtype,
VALUE_OPERATOR  op,
CValue val 
) [virtual]
void CFloatValue::Configure ( CValue menuvalue)
float CFloatValue::GetFloat ( )

Definition at line 269 of file FloatValue.cpp.

References m_float.

Referenced by CalcFinal().

double CFloatValue::GetNumber ( ) [virtual]

Implements CValue.

Definition at line 280 of file FloatValue.cpp.

References m_float.

Referenced by KX_Scene::LogicBeginFrame().

CValue * CFloatValue::GetReplica ( void  ) [virtual]

Implements CValue.

Definition at line 306 of file FloatValue.cpp.

References CFloatValue(), m_pstrRep, NULL, and CValue::ProcessReplica().

const STR_String & CFloatValue::GetText ( ) [virtual]

Implements CValue.

Definition at line 295 of file FloatValue.cpp.

References STR_String::Format(), m_float, and m_pstrRep.

Referenced by CalcFinal().

void CFloatValue::SetFloat ( float  fl)

Definition at line 261 of file FloatValue.cpp.

References m_float, and CValue::SetModified().

Referenced by KX_Scene::LogicBeginFrame(), and SCA_TimeEventManager::NextFrame().

void CFloatValue::SetValue ( CValue newval) [virtual]

Sets the value to this cvalue.

Attention:
this particular function should never be called. Why not abstract?

Reimplemented from CValue.

Definition at line 287 of file FloatValue.cpp.

References CValue::GetNumber(), m_float, and CValue::SetModified().


Member Data Documentation

float CFloatValue::m_float [protected]

Definition at line 48 of file FloatValue.h.

Referenced by Calc(), CalcFinal(), CFloatValue(), GetFloat(), GetNumber(), GetText(), SetFloat(), and SetValue().

Definition at line 49 of file FloatValue.h.

Referenced by CFloatValue(), GetReplica(), GetText(), and ~CFloatValue().


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