MeVisLabToolboxReference
ml::SoNodeField Class Reference

Field to encapsulate a pointer to an SoNode instance of OpenInventor. More...

#include <mlFields.h>

Inheritance diagram for ml::SoNodeField:
ml::Field

List of all members.

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.

Detailed Description

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 1076 of file mlFields.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Reimplementation from Field which copies the field value more efficiently.

Reimplemented from ml::Field.


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