MeVisLab Scripting Reference
MLABSoNodeField Class Reference

#include <mlabSoNodeField.h>

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
 
virtual QString persistentStringValue ()
 
virtual void setPersistentStringValue (const QString &value)
 
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)
 
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 isFilePath ()
 
void setIsFilePath (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)
 

Signals

void valueChanged ()
 

Public Member Functions

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

Detailed Description

A field containing a SoNode pointer value.

Member Function Documentation

◆ isNodeDerivedFrom

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

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

◆ isNull

bool MLABSoNodeField::isNull ( ) const
slot

Return true if no SoNode is set on this field.

◆ nodeType

QString MLABSoNodeField::nodeType ( )
slot

Returns the type of the contained node.

◆ object

SoNode * MLABSoNodeField::object ( ) const
inlineslot

Returns the pointer to the SoNode object.

◆ persistentString

QString MLABSoNodeField::persistentString ( )
slot

Returns the persistent string of the SoNode object.

◆ setObject

void MLABSoNodeField::setObject ( SoNode * object)
inlineslot

Sets the pointer to the SoNode object.

◆ setPersistentString

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

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

◆ setStringValue()

void MLABSoNodeField::setStringValue ( const QString & )
inlineoverridevirtual

Sets the value of the field as a string value.

Reimplemented from MLABField.

◆ stringValue()

QString MLABSoNodeField::stringValue ( )
inlineoverridevirtual

Returns the value of the field as a string value.

Reimplemented from MLABField.

◆ stringValueForProfiling()

QString MLABSoNodeField::stringValueForProfiling ( )
overridevirtual

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.

◆ valueChanged

void MLABSoNodeField::valueChanged ( )
signal

Signal that is emitted when the field's value changes.