SoSFVec2f Class Reference
[Fields]

Field containing a two-dimensional vector. More...

#include <Inventor/fields/SoSFVec2f.h>

Inheritance diagram for SoSFVec2f:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFVec2foperator= (const SoSFVec2f &f)
 SoSFVec2f ()
virtual ~SoSFVec2f ()
const SbVec2fgetValue () const
void setValue (const SbVec2f &newValue)
const SbVec2foperator= (const SbVec2f &newValue)
int operator== (const SoSFVec2f &f) const
int operator!= (const SoSFVec2f &f) const
virtual size_t getValueSize () const
void setValue (float x, float y)
void setValue (const float xy[2])
void setValue (const SbVec2d &vec2d)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Field containing a two-dimensional vector.

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

SEE ALSO

SoField, SoSField, SoMFVec2f


Constructor & Destructor Documentation

SoSFVec2f::SoSFVec2f (  ) 

Default constructor.

virtual SoSFVec2f::~SoSFVec2f (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoSFVec2f::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoSField.

virtual SoType SoSFVec2f::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbVec2f& SoSFVec2f::getValue (  )  const [inline]

Returns this field's value.

virtual size_t SoSFVec2f::getValueSize (  )  const [inline, virtual]

Get size of the value.

Reimplemented from SoField.

int SoSFVec2f::operator!= ( const SoSFVec2f f  )  const [inline]

Returns FALSE if otherField is of the same type and has the same value as this field.

Reimplemented from SoField.

const SbVec2f& SoSFVec2f::operator= ( const SbVec2f newValue  )  [inline]

Sets this field to newValue.

const SoSFVec2f& SoSFVec2f::operator= ( const SoSFVec2f f  ) 

Copy from another field of same type.

int SoSFVec2f::operator== ( const SoSFVec2f f  )  const

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

Reimplemented from SoField.

void SoSFVec2f::setValue ( const SbVec2d vec2d  ) 

Convenience method that allows you to specify a field value using a double precision variable.

Note that Open Inventor fields still store only single precision values, not double precision values. The specified value is converted to single precision, then stored.

void SoSFVec2f::setValue ( const float  xy[2]  ) 

Sets the field to the given value.

void SoSFVec2f::setValue ( float  x,
float  y 
)

Sets the field to the given value.

void SoSFVec2f::setValue ( const SbVec2f newValue  ) 

Sets this field to newValue.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/