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

CVectorValue Class Reference

#include <VectorValue.h>

Inheritance diagram for CVectorValue:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void SetValue (CValue *newval)
void SetVector (double newvec[])
void Configure (CValue *menuvalue)
virtual double * GetVector3 (bool bGetTransformedVec=false)
virtual double GetNumber ()
CValueCalc (VALUE_OPERATOR op, CValue *val)
CValueCalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)
 CVectorValue (double vec[], const char *name, AllocationTYPE alloctype=CValue::HEAPVALUE)
 CVectorValue ()
 CVectorValue (double vec[], AllocationTYPE alloctype=CValue::HEAPVALUE)
 CVectorValue (float x, float y, float z, AllocationTYPE alloctype=CValue::HEAPVALUE)
virtual ~CVectorValue ()
void AddConfigurationData (CValue *menuvalue)
virtual CValueGetReplica ()
virtual const STR_StringGetText ()

Protected Attributes

double m_vec [3]
double m_transformedvec [3]

Detailed Description

Definition at line 29 of file VectorValue.h.


Constructor & Destructor Documentation

CVectorValue::CVectorValue ( double  vec[],
const char *  name,
AllocationTYPE  alloctype = CValue::HEAPVALUE 
)
CVectorValue::CVectorValue ( ) [inline]

Definition at line 49 of file VectorValue.h.

Referenced by CalcFinal(), and GetReplica().

CVectorValue::CVectorValue ( double  vec[],
AllocationTYPE  alloctype = CValue::HEAPVALUE 
)
CVectorValue::CVectorValue ( float  x,
float  y,
float  z,
AllocationTYPE  alloctype = CValue::HEAPVALUE 
)
CVectorValue::~CVectorValue ( ) [virtual]

Definition at line 83 of file VectorValue.cpp.


Member Function Documentation

void CVectorValue::AddConfigurationData ( CValue menuvalue)
CValue* CVectorValue::Calc ( VALUE_OPERATOR  op,
CValue val 
) [inline, virtual]

Implements CValue.

Definition at line 41 of file VectorValue.h.

References CValue::CalcFinal(), and VALUE_VECTOR_TYPE.

CValue * CVectorValue::CalcFinal ( VALUE_DATA_TYPE  dtype,
VALUE_OPERATOR  op,
CValue val 
) [virtual]
void CVectorValue::Configure ( CValue menuvalue)
double CVectorValue::GetNumber ( ) [virtual]

Implements CValue.

Definition at line 158 of file VectorValue.cpp.

References KX_X, and m_vec.

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

Implements CValue.

Definition at line 204 of file VectorValue.cpp.

References CVectorValue(), and CValue::ProcessReplica().

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

Implements CValue.

Definition at line 198 of file VectorValue.cpp.

References assertd, and gstrVectorStr.

Referenced by CalcFinal().

double * CVectorValue::GetVector3 ( bool  bGetTransformedVec = false) [virtual]

Reimplemented from CValue.

Definition at line 164 of file VectorValue.cpp.

References m_transformedvec, and m_vec.

Referenced by CalcFinal().

void CVectorValue::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 186 of file VectorValue.cpp.

References KX_X, KX_Y, KX_Z, m_transformedvec, m_vec, and CValue::SetModified().

void CVectorValue::SetVector ( double  newvec[])

Definition at line 176 of file VectorValue.cpp.

References KX_X, KX_Y, KX_Z, m_transformedvec, m_vec, and CValue::SetModified().


Member Data Documentation

double CVectorValue::m_transformedvec[3] [protected]

Definition at line 85 of file VectorValue.h.

Referenced by CVectorValue(), GetVector3(), SetValue(), and SetVector().

double CVectorValue::m_vec[3] [protected]

Definition at line 84 of file VectorValue.h.

Referenced by CVectorValue(), GetNumber(), GetVector3(), SetValue(), and SetVector().


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