ML Reference
|
Field to encapsulate a pointer to an SoNode instance of OpenInventor. More...
#include <mlFields.h>
Public Member Functions | |
SoNodeField () | |
Default constructor, do not use it. | |
SoNodeField (const std::string &name) | |
Constructor, creates a field with a name to manage a SoNode pointer. | |
void | setStringValue (const std::string &stringValue) |
Sets field value from string to stringValue . On non-successful string parsing, a NULL pointer is set. | |
void | setSoNodeValue (SoNode *soNodeValue) |
Sets value of the field to soNodeValue . | |
std::string | getStringValue () const |
Returns the value of the field as string value. | |
SoNode * | getSoNodeValue () const |
Returns the value of the field. | |
Protected Member Functions | |
virtual void | setValueFromField (const Field &field) |
Reimplementation from Field which copies the field value more efficiently. |
Field to encapsulate a pointer to an SoNode instance of OpenInventor.
It is used to define an interface to inputs or outputs of OpenInventor modules or to define an ML output of an OpenInventor object.
Definition at line 1104 of file mlFields.h.
ml::SoNodeField::SoNodeField | ( | ) |
Default constructor, do not use it.
ml::SoNodeField::SoNodeField | ( | const std::string & | name | ) |
Constructor, creates a field with a name
to manage a SoNode pointer.
Default value is NULL.
SoNode* ml::SoNodeField::getSoNodeValue | ( | ) | const |
Returns the value of the field.
std::string ml::SoNodeField::getStringValue | ( | ) | const [virtual] |
Returns the value of the field as string value.
setStringValue must be able to reinterpret this returned string correctly.
Implements ml::Field.
void ml::SoNodeField::setSoNodeValue | ( | SoNode * | soNodeValue | ) |
Sets value of the field to soNodeValue
.
void ml::SoNodeField::setStringValue | ( | const std::string & | stringValue | ) | [virtual] |
Sets field value from string to stringValue
. On non-successful string parsing, a NULL pointer is set.
Implements ml::Field.
virtual void ml::SoNodeField::setValueFromField | ( | const Field & | field | ) | [protected, virtual] |