Open Inventor Reference
SoMFVec2f Class Reference

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

#include <Inventor/fields/SoMFVec2f.h>

Inheritance diagram for SoMFVec2f:
SoMField SoField

List of all members.

Public Member Functions

void setValues (int start, int num, const float xy[][2])
 Some additional convenience functions:
void set1Value (int index, float x, float y)
 Set the index'th value to the given floating point values.
void set1Value (int index, const float xy[2])
 Set the index'th value to the given floating point values.
void setValue (float x, float y)
 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 xy[2])
 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 two-dimensional vectors.

SoMFVec2fs are written to file as one or more pairs 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, 1.2 3.4, 98.6 -4e1 ]

Definition at line 83 of file SoMFVec2f.h.


Member Function Documentation

static void SoMFVec2f::initClass ( ) [static]

Reimplemented from SoMField.

void SoMFVec2f::set1Value ( int  index,
const float  xy[2] 
)
void SoMFVec2f::set1Value ( int  index,
float  x,
float  y 
)
void SoMFVec2f::setValue ( float  x,
float  y 
)
void SoMFVec2f::setValue ( const float  xy[2])
void SoMFVec2f::setValues ( int  start,
int  num,
const float  xy[][2] 
)

Set values from array of arrays of 2 floats


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