LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::LWDynaValue Class Reference

Dynamic Values. More...

#include <panel.h>

List of all members.

Public Member Functions

 LWDynaValue ()
 LWDynaValue (std::string s, int len=0)
 Constructor for a LWValString.
 LWDynaValue (int i)
 Constructor for a LWValInt.
 LWDynaValue (unsigned int i)
 Constructor for a LWValInt.
 LWDynaValue (double d)
 Constructor for a LWValFloat.
 LWDynaValue (int i, int j, int k)
 Constructor for a LWValIVector.
 LWDynaValue (int v[3])
 Constructor for a LWValIVector.
 LWDynaValue (double i, double j, double k)
 Constructor for a LWValFVector.
 LWDynaValue (double v[3])
 Constructor for a LWValFVector.
 LWDynaValue (float v[3])
 Constructor for a LWValFVector.
 LWDynaValue (void *p)
 Constructor for a LWValPointer.
 ~LWDynaValue ()
 Destructor.
LWValue * get ()
 Get's the value adress.
void getValue (int &i) const
 Get the LWValInt.
void getValue (double &d) const
 Get the LWValFloat.
void getValue (int &i, int &j, int &k) const
 Get the LWValIVector.
void getValue (int v[]) const
void getValue (double &i, double &j, double &k) const
 Get the LWValFVector.
void getValue (void *&p) const
 Get the LWValPointer.
void getValue (std::string &s) const
 Get the std::string value.
void setType (int type)

Detailed Description

Dynamic Values.

DynaValues are used as function arguments, with commands and requesters, for example, when the function must accept values of multiple types. LWValues are a variation on DynaValues used by Panels and defined in lwpanel.h.


Constructor & Destructor Documentation

lwpp::LWDynaValue::~LWDynaValue ( )
inline

Destructor.

lwpp::LWDynaValue::LWDynaValue ( )
inline
lwpp::LWDynaValue::LWDynaValue ( std::string  s,
int  len = 0 
)
inline

Constructor for a LWValString.

Parameters:
sThe string value.
lenThe lenght of the string.
lwpp::LWDynaValue::LWDynaValue ( int  i)
inline

Constructor for a LWValInt.

Parameters:
iThe integer value.
lwpp::LWDynaValue::LWDynaValue ( unsigned int  i)
inline

Constructor for a LWValInt.

Parameters:
iThe unsigned integer value.
lwpp::LWDynaValue::LWDynaValue ( double  d)
inline

Constructor for a LWValFloat.

Parameters:
dThe double value.
lwpp::LWDynaValue::LWDynaValue ( int  i,
int  j,
int  k 
)
inline

Constructor for a LWValIVector.

Parameters:
iThe int i component.
jThe int j component.
kThe int k component.
lwpp::LWDynaValue::LWDynaValue ( int  v[3])
inline

Constructor for a LWValIVector.

Parameters:
vA vector of three integers
lwpp::LWDynaValue::LWDynaValue ( double  i,
double  j,
double  k 
)
inline

Constructor for a LWValFVector.

Parameters:
iThe double i component.
jThe double j component.
kThe double k component.
lwpp::LWDynaValue::LWDynaValue ( double  v[3])
inline

Constructor for a LWValFVector.

Parameters:
vvector with three components
lwpp::LWDynaValue::LWDynaValue ( float  v[3])
inline

Constructor for a LWValFVector.

Parameters:
vvector with three components
lwpp::LWDynaValue::LWDynaValue ( void *  p)
inline

Constructor for a LWValPointer.

Parameters:
pA pointer.

Member Function Documentation

LWValue* lwpp::LWDynaValue::get ( )
inline

Get's the value adress.

Returns:
&val The address of the value.
void lwpp::LWDynaValue::getValue ( int &  i) const
inline

Get the LWValInt.

Parameters:
ireference of an int variable.
void lwpp::LWDynaValue::getValue ( double &  d) const
inline

Get the LWValFloat.

Parameters:
dreference of a double variable.
void lwpp::LWDynaValue::getValue ( int &  i,
int &  j,
int &  k 
) const
inline

Get the LWValIVector.

Parameters:
ireference of a int variable.
jreference of a int variable.
kreference of a int variable.
void lwpp::LWDynaValue::getValue ( int  v[]) const
inline
void lwpp::LWDynaValue::getValue ( double &  i,
double &  j,
double &  k 
) const
inline

Get the LWValFVector.

Parameters:
ireference of a double variable.
jreference of a double variable.
kreference of a double variable.
void lwpp::LWDynaValue::getValue ( void *&  p) const
inline

Get the LWValPointer.

Parameters:
*&preference of a pointer variable.
void lwpp::LWDynaValue::getValue ( std::string &  s) const
inline

Get the std::string value.

Parameters:
&sreference of a std::string variable.
void lwpp::LWDynaValue::setType ( int  type)
inline

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