Open Inventor Reference
SoMFVec3f Class Reference

Multiple-value field containing any number of three-dimensional vectors. More...

#include <Inventor/fields/SoMFVec3f.h>

Inheritance diagram for SoMFVec3f:
SoMField SoField

List of all members.

Public Member Functions

void setValues (int start, int num, const float xyz[][3])
 Some additional convenience functions:
void set1Value (int index, float x, float y, float z)
 Set the index'th value to the given floating point values.
void set1Value (int index, const float xyz[3])
 Set the index'th value to the given floating point values.
void setValue (float x, float y, float z)
 Sets the field to contain the given value and only the given value (if the array had multiple values before, they are deleted).
void setValue (const float xyz[3])
 Sets the field to contain the given value and only the given value (if the array had multiple values before, they are deleted).

Static Public Member Functions

static void initClass ()

Detailed Description

A multiple-value field that contains any number of three-dimensional vectors.

SoMFVec3fs are written to file as one or more triples of floating point values separated by whitespace.

When more than one value is present, all of the values are enclosed in square brackets and separated by commas; for example:

[ 0 0 0, 1.2 3.4 5.6, 98.6 -4e1 212 ]

Definition at line 85 of file SoMFVec3f.h.


Member Function Documentation

static void SoMFVec3f::initClass ( ) [static]

Reimplemented from SoMField.

void SoMFVec3f::set1Value ( int  index,
const float  xyz[3] 
)
void SoMFVec3f::set1Value ( int  index,
float  x,
float  y,
float  z 
)
void SoMFVec3f::setValue ( float  x,
float  y,
float  z 
)
void SoMFVec3f::setValue ( const float  xyz[3])
void SoMFVec3f::setValues ( int  start,
int  num,
const float  xyz[][3] 
)

Set values from array of arrays of 3 floats


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