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

Q::TransitionInstance Struct Reference
[QServer]

Instance required for using Transitions. More...

#include <Q/q.h>

Inheritance diagram for Q::TransitionInstance:

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

Public Member Functions

 TransitionInstance ()
 TransitionInstance (const char *)
unsigned int level () const
Utils::Result setLevel (unsigned int l)

Static Public Member Functions

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

Detailed Description

Instance required for using Transitions.

The TransitionInstance is used with Transition to select between a set of geoms. A transition from one geom to another is made by specifying a new level for the instance. A smooth blend from the old geom to the new geom is performed using parameters from the transition.


Constructor & Destructor Documentation

Q::TransitionInstance::TransitionInstance  )  [inline]
 

Create a null transition instance reference.

Q::TransitionInstance::TransitionInstance const char *   ) 
 

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


Member Function Documentation

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

If the object referenced by obj is a transition instance, then return a suitable TransitionInstance 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::Instance.

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

Return the type for this class.

Reimplemented from Q::Instance.

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

Create a new transition instance named name in the given database, db, (or the most recently attached read-write database if db is null). The transition trans is bound into the scene graph at location group.

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

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

Reimplemented from Q::Instance.

unsigned int Q::TransitionInstance::level  )  const
 

Return the current level number for this transition instance.

Utils::Result Q::TransitionInstance::setLevel unsigned int  l  ) 
 

Set the level number for this transition instance, triggering a transition blend if necessary.

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