XdkWrl: MFVec3f Class Reference

Home | Hierarchy | Members | Alphabetical | Related Pages

# MFVec3f Class Reference
[Field Types]

`#include <mfvec3f.h>`

Inherits deque.

List of all members.

## Public Member Functions
| MFVec3f ()
template<class T>
| MFVec3f (T first, T last)
## Static Public Member Functions
static const char * | typeName ()
static FieldTypeId | typeId ()
## Friends
std::ostream & | operator<< (std::ostream &s, const MFVec3f &f)

## Detailed Description

A MFVec3f is a container of SFVec3f. It is implemented using a STL's deque so you can benefit from its interface. Most common functionnalities you would use are:

       MFVec3f mf;
       mf.push_back(SFVec3f(0.0f,0.0f));
       mf.push_front(SFVec3f(1.0f,0.0f));
       mf[0].setX(1.0f);

but since it uses STL principles, you have all useful concepts such as iterator, algorithms, etc...

Below is included the documentation for this field type from the ISO standard.

## 5.12 SFVec3f and MFVec3f

The SFVec3f field or event specifies a three-dimensional (3D) vector. An MFVec3f field or event specifies zero or more 3D vectors. SFVec3f's and MFVec3f's are written to the VRML file as three ISO C floating point values (see 2.[ISOC]) separated by whitespace. For example:

        fooVec3f [ 1 42 666, 7 94 0 ]

is an MFVec3f field, fooVec3f, with two valid vectors.

The initial value of an SFVec3f eventOut is (0 0 0). The initial value of an MFVec3f eventOut is [ ].

## Constructor & Destructor Documentation

MFVec3f | ( |  | ) | `[inline]`

MFVec3f | ( | T | first,
|  | T | last |
| ) |  |  | `[inline]`

## Member Function Documentation

const char * typeName | ( |  | ) | `[inline, static]`

FieldTypeId typeId | ( |  | ) | `[inline, static]`

## Friends And Related Function Documentation

std::ostream& operator<< | ( | std::ostream & | s,
|  | const MFVec3f & | f |
| ) |  |  | `[friend]`

Generated on 5 Jan 2007 with version 1.5.1. |