SoSFVec2s Class Reference
[Fields]

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

#include <Inventor/fields/SoSFVec2s.h>

Inheritance diagram for SoSFVec2s:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFVec2soperator= (const SoSFVec2s &f)
 SoSFVec2s ()
virtual ~SoSFVec2s ()
const SbVec2sgetValue () const
void setValue (const SbVec2s &newValue)
const SbVec2soperator= (const SbVec2s &newValue)
int operator== (const SoSFVec2s &f) const
int operator!= (const SoSFVec2s &f) const
virtual size_t getValueSize () const
void setValue (short x, short y)
void setValue (const short xy[2])
void setValue (const SbVec2f &vec2f)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Field containing a two-dimensional vector.

SoSFVec2ss are written to file as a pair of short values separated by whitespace.

SEE ALSO

SoField, SoSField, SoMFVec2f


Constructor & Destructor Documentation

SoSFVec2s::SoSFVec2s (  ) 

Default constructor.

virtual SoSFVec2s::~SoSFVec2s (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoSFVec2s::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoSField.

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

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbVec2s& SoSFVec2s::getValue (  )  const [inline]

Returns this field's value.

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

Get size of the value.

Reimplemented from SoField.

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

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

Reimplemented from SoField.

const SbVec2s& SoSFVec2s::operator= ( const SbVec2s newValue  )  [inline]

Sets this field to newValue.

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

Copy from another field of same type.

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

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

Reimplemented from SoField.

void SoSFVec2s::setValue ( const SbVec2f vec2f  ) 

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

The specified value is converted short precision, then stored.

void SoSFVec2s::setValue ( const short  xy[2]  ) 

Sets the field to the given value.

void SoSFVec2s::setValue ( short  x,
short  y 
)

Sets the field to the given value.

void SoSFVec2s::setValue ( const SbVec2s newValue  ) 

Sets this field to newValue.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/