Home Hierarchy Members Alphabetical Related Pages

MFTime Class Reference
[Field Types]

#include <mftime.h>

List of all members.

Static Public Member Functions

const char * typeName ()
FieldTypeId typeId ()

Friends

std::ostream & operator<< (std::ostream &s, const MFTime &f)


Detailed Description

A MFTime is a container of SFTime. It is implemented using a STL's deque so you can benefit from its interface. Most common functionnalities you would use are:
   MFTime mf;
   mf.push_back(SFTime(60.0f));  // push_back (60.0f); would fail since
   mf.push_front(SFTime(30.0f)); // constructor SFTime(float) is explicit
   mf[0].setNbSeconds(10.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.10 SFTime and MFTime

The SFTime field or event specifies a single time value. The MFTime field or event specifies zero or more time values. Time values are written to the VRML file as a double-precision floating point number in ISO C floating point format (see 2.[ISOC]). Time values are specified as the number of seconds from a specific time origin. Typically, SFTime fields and events represent the number of seconds since Jan 1, 1970, 00:00:00 GMT. For example:

fooTime 0.0

is an SFTime field, fooTime, representing a time of 0.0 seconds.

The initial value of an SFTime eventOut is -1. The initial value of an MFTime eventOut is [ ].

--- VRML separator bar ---


Member Function Documentation

FieldTypeId typeId  )  [inline, static]
 

const char * typeName  )  [inline, static]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const MFTime f
[friend]
 


Generated on 24 Feb 2005 with doxygen version 1.3.9.1. Valid HTML 4.0! Valid CSS!