ML Reference
ml::Vector2Field Class Reference

Field to encapsulate a vector of 2 double values. More...

#include <mlFields.h>

Inheritance diagram for ml::Vector2Field:
ml::Field

List of all members.

Public Member Functions

 Vector2Field ()
 Default constructor, do not use it.
 Vector2Field (const std::string &name)
 Constructor, creates a field with a name to manage a vector of 2 double values.
void setStringValue (const std::string &stringValue)
 Sets the value of the field to stringValue.
void setVector2Value (const Vector2 &vectorValue)
 Sets the value of the field to vectorValue.
void updateVector2Value (const Vector2 &vectorValue)
 Sets the value of the field to vectorValue, but only touch field if the new value is different from the old value.
void setVectorValue (const Vector2 &vectorValue)
 Sets the value of the field to vectorValue.
std::string getStringValue () const
 Returns the value of the field as a string value.
const Vector2getVector2Value () const
 Returns the value of the field.
const Vector2getVectorValue () const
 Returns the value of the field.
Deprecated
void setVec2fValue (const Vector2 &value)
const Vector2getVec2fValue () const
 Vector2Field (const std::string &name, Vector2 *valuePtr)

Protected Member Functions

virtual void setValueFromField (const Field &field)
 Reimplementation from Field which copies the field value more efficiently.

Detailed Description

Field to encapsulate a vector of 2 double values.

Definition at line 1193 of file mlFields.h.


Constructor & Destructor Documentation

ml::Vector2Field::Vector2Field ( )

Default constructor, do not use it.

ml::Vector2Field::Vector2Field ( const std::string &  name)

Constructor, creates a field with a name to manage a vector of 2 double values.

Default is (0,0).

ml::Vector2Field::Vector2Field ( const std::string &  name,
Vector2 valuePtr 
)

Member Function Documentation

std::string ml::Vector2Field::getStringValue ( ) const [virtual]

Returns the value of the field as a string value.

Implements ml::Field.

const Vector2& ml::Vector2Field::getVec2fValue ( ) const [inline]
Deprecated:
Use getVector2Value instead.

Definition at line 1257 of file mlFields.h.

const Vector2& ml::Vector2Field::getVector2Value ( ) const

Returns the value of the field.

const Vector2& ml::Vector2Field::getVectorValue ( ) const [inline]

Returns the value of the field.

Definition at line 1228 of file mlFields.h.

void ml::Vector2Field::setStringValue ( const std::string &  stringValue) [virtual]

Sets the value of the field to stringValue.

Implements ml::Field.

virtual void ml::Vector2Field::setValueFromField ( const Field field) [protected, virtual]

Reimplementation from Field which copies the field value more efficiently.

Reimplemented from ml::Field.

void ml::Vector2Field::setVec2fValue ( const Vector2 value) [inline]
Deprecated:
Use setVector2Value instead.

Definition at line 1254 of file mlFields.h.

void ml::Vector2Field::setVector2Value ( const Vector2 vectorValue)

Sets the value of the field to vectorValue.

void ml::Vector2Field::setVectorValue ( const Vector2 vectorValue) [inline]

Sets the value of the field to vectorValue.

Definition at line 1219 of file mlFields.h.

void ml::Vector2Field::updateVector2Value ( const Vector2 vectorValue)

Sets the value of the field to vectorValue, but only touch field if the new value is different from the old value.

(NOTE that values must be identical to avoid touching the field!)


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