Scroll to navigation

SoSFVec2f(3IV)() SoSFVec2f(3IV)()

NAME

SoSFVec2f — Field containing a two-dimensional vector

INHERITS FROM

SoField > SoSField > SoSFVec2f

SYNOPSIS

#include <Inventor/fields/SoSFVec2f.h>


Methods from class SoSFVec2f:


void setValue(float x, float y)

void setValue(const float xy[2])

static SoType getClassTypeId()

virtual void getTypeId() const

const SbVec2f & getValue() const

const SbVec2f & operator =(const SbVec2f & newValue)

void setValue(const SbVec2f & newValue)

int operator ==(const SoSFVec2f &f) const

int operator !=(const SoSFVec2f &f) const


Methods from class SoField:


void setIgnored(SbBool ignore)

SbBool isIgnored() const

SbBool isDefault() const

virtual SbBool isOfType(SoType type) const

SbBool set(const char *valueString)

void get(SbString &valueString)

void touch()

SbBool connectFrom(SoField *fromField)

SbBool connectFrom(SoEngineOutput *fromEngine)

void disconnect()

SbBool isConnected() const

SbBool isConnectedFromField() const

SbBool getConnectedField(SoField *&writingField) const

SbBool isConnectedFromEngine() const

SbBool getConnectedEngine(SoEngineOutput *&engineOutput) const

void enableConnection(SbBool flag)

SbBool isConnectionEnabled() const

int getForwardConnections(SoFieldList &list) const

SoFieldContainer * getContainer() const

DESCRIPTION

Field containing a two-dimensional vector.

SoSFVec2fs are written to file as a pair of floating point values separated by whitespace.

METHODS


void setValue(float x, float y)

void setValue(const float xy[2])

Sets the field to the given value.



static SoType getClassTypeId()

virtual void getTypeId() const

Returns the type for this class or a particular object of this class.



const SbVec2f & getValue() const

Returns this field's value.



const SbVec2f & operator =(const SbVec2f & newValue)

void setValue(const SbVec2f & newValue)

Sets this field to newValue.



int operator ==(const SoSFVec2f &f) const

int operator !=(const SoSFVec2f &f) const

Returns TRUE if f is of the same type and has the same value as this field.


SEE ALSO

SoField, SoSField, SoMFVec2f