Viz interface.
General | |
| virtual eVizMode | GetMode () const =0 |
| Get the viz mode. {Property}. More... | |
| virtual iGraphics * | GetGraphics () const =0 |
| Get the viz's graphics interface. {Property}. More... | |
| virtual ni::tBool | SuggestGarbageCollect (iVizSink *apSink, tF32 afTime)=0 |
| The function will report through iVizSink::OnVizSink_RemovalSuggested method all objects that haven't been visible (in any camera) during the last 'afTime' seconds. More... | |
| virtual void | ClearCaches ()=0 |
| When this function is called, all sub-systems will be informed to minimize their memory usage. This will cause freeing of all temporary allocations, invalidation of all caches etc. This function shouldn't be called often as it has a negative impact on the speed of the following visibility queries (as caches are rebuilt and new temporary memory allocations are performed). More... | |
| virtual iMaterial * | GetMaterial (eVizMaterial aMaterial) const =0 |
| Get the specificed viz material. More... | |
| virtual tBool | SetUserObjectUUID (const tUUID &aUUID)=0 |
| Set the required interface of the viz object's user object. More... | |
| virtual const tUUID & | GetUserObjectUUID () const =0 |
| Get the required interface of the viz object's user object. {Property}. More... | |
Shapes | |
| virtual iVizShape * | CreateShapeAABB (const sVec3f &avMin, const sVec3f &avMax)=0 |
| Creates an AABB shape. More... | |
| virtual iVizShape * | CreateShapeOOBB (const sMatrixf &aMatrix)=0 |
| Creates an OOBB shape. More... | |
| virtual iVizShape * | CreateShapeSphere (const sVec3f &avSphere, tF32 afRadius)=0 |
| Creates a sphere shape. More... | |
| virtual iVizShape * | CreateShapeMesh (const sVec3f *apVertices, tU32 anNumVertices, const tIndex *apTris, tU32 anNumTris, ni::tBool abClockwise)=0 |
| Creates a mesh shape from the specified vertices and triangles. {NoAutomation}. More... | |
| virtual iVizShape * | CreateShapeMeshFromPtr (const tPtr apVertices, tU32 anNumVertices, tU32 anVertexStride, const tPtr apTris, tU32 anNumTris, tU32 anTriStride, ni::tBool abClockwise)=0 |
| Creates a mesh shape from raw pointers. More... | |
| virtual iVizShape * | CreateShapeMeshFromFile (iFile *apVertices, tU32 anNumVertices, tU32 anVertexStride, iFile *apTris, tU32 anNumTris, tU32 anTriStride, ni::tBool abClockwise)=0 |
| Creates a mesh shape from file objects. More... | |
| virtual iVizShape * | CreateShapeMeshFromArrays (iVertexArray *apVA, iIndexArray *apIA, ni::tBool abClockwise)=0 |
| Creates a mesh shape from the specified vertex and index arrays. More... | |
| virtual iVizShape * | CreateShapeMeshFromArraysRange (iVertexArray *apVA, iIndexArray *apIA, tU32 anFirstIndex, tU32 anNumIndices, ni::tBool abClockwise)=0 |
| Creates a mesh shape from the specified vertex and index arrays range. More... | |
| virtual iVizShape * | CreateShapeMeshFromDrawOperations (const tDrawOperationCVec *apLst, ni::tBool abClockwise)=0 |
| Creates a mesh shape from the specified draw operations. More... | |
| virtual iVizShape * | CreateShapeLocalBV (ni::iBoundingVolume *apLocalBV)=0 |
| Creates a shape around a local bounding volume. More... | |
Objects | |
| virtual iVizObject * | CreateObject (iVizShape *apTestShape, iVizShape *apWriteShape, ni::tBool abIsOccluder)=0 |
| Creates a viz object. More... | |
| virtual iVizObject * | CreateObjectUnbounded (ni::tBool abIsOccluder)=0 |
| Creates an unbounded object. More... | |
Cells | |
| virtual iVizCell * | CreateCell ()=0 |
| Creates a viz cell. More... | |
Camera | |
| virtual iVizCamera * | CreateCamera (iCamera *apBaseCamera)=0 |
| Creates a viz camera. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the viz mode. {Property}.
|
pure virtual |
Get the viz's graphics interface. {Property}.
The function will report through iVizSink::OnVizSink_RemovalSuggested method all objects that haven't been visible (in any camera) during the last 'afTime' seconds.
|
pure virtual |
When this function is called, all sub-systems will be informed to minimize their memory usage. This will cause freeing of all temporary allocations, invalidation of all caches etc. This function shouldn't be called often as it has a negative impact on the speed of the following visibility queries (as caches are rebuilt and new temporary memory allocations are performed).
|
pure virtual |
Get the specificed viz material.
Set the required interface of the viz object's user object.
|
pure virtual |
Get the required interface of the viz object's user object. {Property}.
Creates an AABB shape.
Creates a sphere shape.
|
pure virtual |
Creates a mesh shape from the specified vertices and triangles. {NoAutomation}.
|
pure virtual |
Creates a mesh shape from raw pointers.
|
pure virtual |
Creates a mesh shape from file objects.
|
pure virtual |
Creates a mesh shape from the specified vertex and index arrays.
|
pure virtual |
Creates a mesh shape from the specified vertex and index arrays range.
|
pure virtual |
Creates a mesh shape from the specified draw operations.
|
pure virtual |
Creates a shape around a local bounding volume.
|
pure virtual |
Creates a viz object.
| apTestShape | is the test shape of the object, if not specified the object creation fails. |
| apWriteShape | is the write shape of the object, optional, only usefull in software mode and if the object is an occluder. |
| abIsOccluder | sets whether the object will be used as an occluder in the visibility tests. |
|
pure virtual |
Creates an unbounded object.
|
pure virtual |
Creates a viz cell.
|
pure virtual |
Creates a viz camera.
1.8.7