|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Zone:

Public Types | |
| enum | rayTestFlags { throughPortals = 1, instanceValid = 2, normalValid = 4, faceNormalValid = 8 } |
Public Member Functions | |
| Zone () | |
| Zone (const char *name) | |
| Group | root () const |
| Maths::Box3f | box () const |
| Environment | environment () const |
| Utils::Result | setEnvironment (const Environment &e) |
| RayInfo | rayTestClosest (const Maths::Vec3f &position, const Maths::Vec3f &direction, float distance, unsigned int flags, const Group &exclude) |
| bool | rayTestClosest (const Maths::Vec3f &position, const Maths::Vec3f &direction, float distance, unsigned int flags, const Group &exclude, RayInfo *ri) const |
| RayInfo | rayTestAny (const Maths::Vec3f &position, const Maths::Vec3f &direction, float distance, unsigned int flags, const Group &exclude) |
| bool | rayTestAny (const Maths::Vec3f &position, const Maths::Vec3f &direction, float distance, unsigned int flags, const Group &exclude, RayInfo *ri) const |
| List | rangeQuery (const Maths::Box3f &box, unsigned int flags, const Concept &filter) const |
| List | rangeQuery (const Maths::Sphere3f &s, unsigned int flags, const Concept &filter) const |
| List | rangeQuery (const Maths::Cylinder3f &s, unsigned int flags, const Concept &filter) const |
Static Public Member Functions | |
| Zone | create (const char *name, const Database &db=Database()) |
| Zone | find (const char *name) |
| ClassType | classType () |
| Zone | cast (const ObjectBase &) |
The Zone object is the root object for a section of a 3D scene. Typically a scene is made up from a network of zones which are connected by Portal and PortalInstance objects. This allows both efficient rendering (only zones which can be seen and are in Scope need to be rendered) and makes it possible to only load a manageable subset of the scene into memory, allowing scenes larger than the platform memory to be supported. The Zone in which the Camera resides is the only one that will be rendered into the respective CameraLayer, unless there are also visible PortalInstance in the Zone connecting to neighbouring Zones.
|
|
This enumerated type defines the behaviour for the ray testing functions.
|
|
|
Create a null zone reference. |
|
|
Search the currently attached databases for a zone with the given name. |
|
|
Return an axis-aligned box which contains all the geometry of a zone. |
|
|
If the object referenced by
|
|
|
Return the type for this class |
|
||||||||||||
|
Create a new zone named |
|
|
Return the environment parameters used when rendering this zone. If no environment has yet been set on the zone, then an invalid object is returned. |
|
|
Search the currently attached databases for a zone with the given name and return that object, if it exists. |
|
||||||||||||||||
|
filter is specified then only those objects that succeed in the test of 'isa(filter)' will be added to the list. The object overlaps itself and is included in the list.
|
|
||||||||||||||||
|
filter is specified then only those objects that succeed in the test of 'isa(filter)' will be added to the list. The object overlaps itself and is included in the list.
|
|
||||||||||||||||
|
Return a list of Instance in the zone that are overlapped by the given box. Only those instances that are marked as collider, collidee or boundsEvent will be returned.
If
|
|
||||||||||||||||||||||||||||
|
Fire a ray of length |
|
||||||||||||||||||||||||
|
Fire a ray of length
|
|
||||||||||||||||||||||||||||
|
Fire a ray of length |
|
||||||||||||||||||||||||
|
Fire a ray of length
|
|
|
Return the Group which represents the root of the zone's scene graph. |
|
|
Set the environment parameters used when rendering this zone. An environment object maybe be used on many different zones if they all share the same properties. |
|
|
|
Qube Software Limited © 2000-2004
|
|