#include <Field.h>
Inheritance diagram for Field:

Public Member Functions | |
| Field (int type, const std::string &name, FieldValue *value, ExposedField *exposedField=NULL, float min=-FLT_MAX, float max=FLT_MAX, int nodeType=NODE_ANY, int flags=0, const char **strings=NULL) | |
| virtual | ~Field () |
| virtual int | getElementType () const |
| virtual void | write (FILE *f, int indent) const |
| const std::string & | getName () const |
| int | getType () const |
| FieldValue * | getDefault () const |
| ExposedField * | getExposedField () const |
| float | getMin () const |
| float | getMax () const |
| int | getNodeType () const |
| int | getFlags () const |
| const char ** | getStrings () const |
Private Attributes | |
| std::string * | _name |
| int | _type |
| FieldValue * | _value |
| ExposedField * | _exposedField |
| float | _min |
| float | _max |
| int | _flags |
| int | _nodeType |
| const char ** | _strings |
| Field::Field | ( | int | type, | |
| const std::string & | name, | |||
| FieldValue * | value, | |||
| ExposedField * | exposedField = NULL, |
|||
| float | min = -FLT_MAX, |
|||
| float | max = FLT_MAX, |
|||
| int | nodeType = NODE_ANY, |
|||
| int | flags = 0, |
|||
| const char ** | strings = NULL | |||
| ) |
Default Field constructor.
| type | the field type, e.g. "SFVEC3F" | |
| name | the name of the field, e.g. "bboxCenter" | |
| value,the | value of the field, e.g. "new SFVec3f(0.0f, 0.0f, 0.0f)" | |
| exposedField | the default value is NULL | |
| min | the default value is -FLT_MAX | |
| max | the default value is FLT_MAX | |
| nodeType | the default value is NODE_ANY (it can also be NODE_CHILD, NODE_GEOMETRY, NODE_TEXTURE, NODE_INTERPOLATOR) | |
| flags | the default value is 0 | |
| **strings | the default value is NULL |
| Field::~Field | ( | ) | [virtual] |
| virtual int Field::getElementType | ( | ) | const [inline, virtual] |
| void Field::write | ( | FILE * | f, | |
| int | indent | |||
| ) | const [virtual] |
| const std::string& Field::getName | ( | ) | const [inline] |
Returns the name of the field, e.g. "bboxCenter"
| int Field::getType | ( | ) | const [inline] |
Returns the type of the field, e.g. "SFVEC3F"
| FieldValue* Field::getDefault | ( | ) | const [inline] |
Returns the default value of the field as it was specified in the Field constructor.
| ExposedField* Field::getExposedField | ( | ) | const [inline] |
Returns the ExposedField of the field as it was specified in the Field constructor.
| float Field::getMin | ( | ) | const [inline] |
Returns the Min value of the field as it was specified in the Field constructor.
| float Field::getMax | ( | ) | const [inline] |
Returns the Max value of the field as it was specified in the Field constructor.
| int Field::getNodeType | ( | ) | const [inline] |
Returns the NodeType of the field as it was specified in the Field constructor.
| int Field::getFlags | ( | ) | const [inline] |
Returns the Flags of the field as it was specified in the Field constructor.
| const char* * Field::getStrings | ( | ) | const [inline] |
Returns the Strings of the field as it was specified in the Field constructor.
std::string* Field::_name [private] |
int Field::_type [private] |
FieldValue* Field::_value [private] |
ExposedField* Field::_exposedField [private] |
float Field::_min [private] |
float Field::_max [private] |
int Field::_flags [private] |
int Field::_nodeType [private] |
const char* * Field::_strings [private] |
1.5.1-p1