SoSFVec4f Class Reference
[Fields]

Field containing a homogeneous three-dimensional vector. More...

#include <Inventor/fields/SoSFVec4f.h>

Inheritance diagram for SoSFVec4f:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFVec4foperator= (const SoSFVec4f &f)
 SoSFVec4f ()
virtual ~SoSFVec4f ()
const SbVec4fgetValue () const
void setValue (const SbVec4f &newValue)
const SbVec4foperator= (const SbVec4f &newValue)
int operator== (const SoSFVec4f &f) const
int operator!= (const SoSFVec4f &f) const
virtual size_t getValueSize () const
void setValue (float x, float y, float z, float w)
void setValue (const float xyzw[4])
void setValue (const SbVec4d &vec4d)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Field containing a homogeneous three-dimensional vector.

Field containing a homogeneous three-dimensional vector.

SoSFVec4fs are written to file as four floating point values separated by whitespace.

SEE ALSO

SoField, SoSField, SoMFVec4f


Constructor & Destructor Documentation

SoSFVec4f::SoSFVec4f (  ) 

Default constructor.

virtual SoSFVec4f::~SoSFVec4f (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoSFVec4f::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoSField.

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

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbVec4f& SoSFVec4f::getValue (  )  const [inline]

Returns this field's value.

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

Get size of the value.

Reimplemented from SoField.

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

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

Reimplemented from SoField.

const SbVec4f& SoSFVec4f::operator= ( const SbVec4f newValue  )  [inline]

Sets this field to newValue.

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

Copy from another field of same type.

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

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

Reimplemented from SoField.

void SoSFVec4f::setValue ( const SbVec4d vec4d  ) 

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 SoSFVec4f::setValue ( const float  xyzw[4]  ) 

Sets the field to the given value.

void SoSFVec4f::setValue ( float  x,
float  y,
float  z,
float  w 
)

Sets the field to the given value.

void SoSFVec4f::setValue ( const SbVec4f newValue  ) 

Sets this field to newValue.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/