SoSFVec2f — Field containing a two-dimensional vector
Contents
Description
Field containing a two-dimensional vector.
SoSFVec2fs are written to file as a pair of floating point values separated by whitespace.
Inherits From
SoField > SoSField > SoSFVec2f
Methods
voidsetValue(floatx,floaty)voidsetValue(constfloatxy[2])
Sets the field to the given value.
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
constSbVec2f&getValue()const
Returns this field's value.
constSbVec2f&operator=(constSbVec2f&newValue)voidsetValue(constSbVec2f&newValue)
Sets this field to newValue.
intoperator==(constSoSFVec2f&f)constintoperator!=(constSoSFVec2f&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFVec2f — Field containing a two-dimensional vector
See Also
SoField,SoSField,SoMFVec2fSoSFVec2f(3IV)()
Synopsis
#include<Inventor/fields/SoSFVec2f.h>
Methods from class SoSFVec2f:
voidsetValue(floatx,floaty)voidsetValue(constfloatxy[2])staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbVec2f&getValue()constconstSbVec2f&operator=(constSbVec2f&newValue)voidsetValue(constSbVec2f&newValue)intoperator==(constSoSFVec2f&f)constintoperator!=(constSoSFVec2f&f)const
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const