QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Q::Transition Struct Reference
[QServer]

A geometry object for doing simple cross-fade effects. More...

#include <Q/q.h>

Inheritance diagram for Q::Transition:

Q::Geom Q::Object Q::ObjectBase List of all members.

Public Member Functions

 Transition ()
 Transition (const char *name)
unsigned int geomCount () const
Geom geom (unsigned int pos) const
float transitionTime () const
Utils::Result addGeom (unsigned int pos, const Geom &lod)
Utils::Result setTransitionTime (float time)

Static Public Member Functions

Transition create (const char *name, const Database &db=Database())
Transition find (const char *name)
ClassType classType ()
Transition cast (const ObjectBase &)

Detailed Description

A geometry object for doing simple cross-fade effects.

The Transition object manages a number of geoms in a group, with only one object displayed at any given time (or possibly a blend of two objects during a transition). This object is used in conjunction with the TransitionInstance object which selects which element of the group is displayed.


Constructor & Destructor Documentation

Q::Transition::Transition  )  [inline]
 

Create a null transition group reference.

Q::Transition::Transition const char *  name  ) 
 

Search the currently attached databases for a transition group with the given name.


Member Function Documentation

Utils::Result Q::Transition::addGeom unsigned int  pos,
const Geom lod
 

Add a geom at position pos to the group.

Transition Q::Transition::cast const ObjectBase  )  [static]
 

If the object referenced by obj is a transition group, then return a suitable Transition reference to the object.

Note:
Casting this object will cause it to be loaded from the database if it is not currently resident.

Reimplemented from Q::Geom.

ClassType Q::Transition::classType  )  [static]
 

Return the type for this class

Transition Q::Transition::create const char *  name,
const Database db = Database()
[static]
 

Create a new transition group named name in the given database, db, (or the most recently attached read-write database if db is null). The values of the new object's visible, intersectable, collidee, collider, boundsEvent and lightable flags are set to true.

Transition Q::Transition::find const char *  name  )  [static]
 

Search the currently attached databases for a transition group with the given name and return that object, if it exists.

Geom Q::Transition::geom unsigned int  pos  )  const
 

Return the geom at position pos in the group.

unsigned int Q::Transition::geomCount  )  const
 

Return the number of elements in the transition group.

Utils::Result Q::Transition::setTransitionTime float  time  ) 
 

Set the transition time for the group.

float Q::Transition::transitionTime  )  const
 

Return the amount of time taken by a transition between two elements of the group.

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004