MeVisLab Scripting Reference
MLABSoNodeField Class Reference

Inherits MLABField.

Public Slots

Scripting access.
SoNode * object () const
 
void setObject (SoNode *object)
 
bool isNodeDerivedFrom (const QString &name)
 
QString nodeType ()
 
bool isNull () const
 
QString persistentString ()
 
void setPersistentString (const QString &string)
 
- Public Slots inherited from MLABField
bool isInventorField ()
 
bool isMLField ()
 
QString getType () const
 
QString getName () const
 
QString truncatedStringValue (int maxChars=80)
 
virtual void touch ()
 
MLABFieldOwnerowner ()
 
MLABFieldconnectedField ()
 
MLABFieldinputField ()
 
bool isConnected ()
 
bool isConnectedToFieldInSameNetwork ()
 
int outputCount ()
 
MLABFieldoutputField (int index)
 
QList< MLABField * > outputFields ()
 
bool connectFrom (MLABField *field)
 
void disconnect ()
 
void disconnectOutputs ()
 
void disconnectAll ()
 
bool connectFromUndoable (MLABField *field)
 
void disconnectUndoable ()
 
void disconnectOutputsUndoable ()
 
void disconnectAllUndoable ()
 
virtual bool isConnectionPossible (MLABField *field)
 
bool isConnectionInSameNetworkPossible (MLABField *field)
 
bool isInSameNetwork (MLABField *field)
 
virtual QString toolTipInfo ()
 
void setPriority (int aPriority)
 
int priority ()
 
void setProxy (bool flag)
 
bool isProxy ()
 
void setComment (const QString &comment)
 
QString comment ()
 
void setTitle (const QString &title)
 
QString title ()
 
QString fullName () const
 
bool isHidden ()
 
void setHidden (bool flag)
 
bool isIgnored ()
 
void setIgnored (bool flag)
 
bool isInterfaceField ()
 
bool isParameterField ()
 
bool isInput ()
 
bool isOutput ()
 
bool isInOut ()
 
QString infoString ()
 
bool isPersistent () const
 
bool isEditable () const
 
bool triggersLoading () const
 
void setTriggersLoading (bool flag)
 

Public Member Functions

virtual void setStringValue (const QString &)
 
virtual QString stringValue ()
 
virtual QString stringValueForProfiling ()
 

Detailed Description

A field containing a SoNode pointer value.

Member Function Documentation

bool MLABSoNodeField::isNodeDerivedFrom ( const QString &  name)
slot

Returns whether the contained node is derived from the class given as a name.

bool MLABSoNodeField::isNull ( ) const
slot

Return true if no SoNode is set on this field.

QString MLABSoNodeField::nodeType ( )
slot

Returns the type of the contained node.

SoNode* MLABSoNodeField::object ( ) const
inlineslot

Returns the pointer to the SoNode object.

QString MLABSoNodeField::persistentString ( )
slot

Returns the persistent string of the SoNode object.

void MLABSoNodeField::setObject ( SoNode *  object)
inlineslot

Sets the pointer to the SoNode object.

void MLABSoNodeField::setPersistentString ( const QString &  string)
slot

Sets the persistent string of the base SoNode and touches it.

virtual void MLABSoNodeField::setStringValue ( const QString &  )
inlinevirtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

virtual QString MLABSoNodeField::stringValue ( )
inlinevirtual

Returns the value of the field as a string value.

Reimplemented from MLABField.

virtual QString MLABSoNodeField::stringValueForProfiling ( )
virtual

Returns the string value used for profiling, default returns the string value.

NOTE: be careful on how you re-implement this method in subclasses, since we don't want the profiling to cause side effects, e.g. changing the state of an ML image.

Reimplemented from MLABField.