|
Maya 1.0
|
This class implements a set of mesh instances optimized for the GPU. More...
#include <maya.h>
Public Member Functions | |
| MayaGpuAll () | |
| Empty. | |
| MayaGpuAll (const MayaGeometryAll &) | |
| Create a set of instances on the GPU from a set of instances. | |
| ~MayaGpuAll () | |
| Empty. | |
| void | Render (GpuParameter &) |
| Render the set of instances. | |
| void | RenderBBox () |
| Render the set of instances. | |
| void | RenderBBox (Camera camera, int width, int height) |
| Render the set of instances. | |
| void | Append (const MayaGeometrySet &) |
| Add an instance set to the scene. | |
| void | Append (const MayaGeometryAll &) |
| Append a set of instances with the existing one. | |
| void | Replace (const MayaGeometryAll &) |
| Replace a set of instances with the existing one. | |
| void | UpdateMaterial (MayaGeometryAll &) |
| Update the material. | |
| void | Remove (const QString &) |
| Clears one instance by name. | |
| void | Clear () |
| Clear all instances. | |
| void | ClearFrames () |
| clear all frames, preserving the instances. | |
| Box | getBox () |
| Retourne la boite englobante de la scène. | |
| MayaStatistics | GetStatistics () const |
| Compute some statistics. | |
Protected Attributes | |
| QMap< QString, MayaGpuSet > | instances |
| Map of instances with their set of frames. | |
This class implements a set of mesh instances optimized for the GPU.
| MayaGpuAll::MayaGpuAll | ( | const MayaGeometryAll & | mia | ) |
Create a set of instances on the GPU from a set of instances.
| mia | Set of instances. |
References MayaGeometryAll::instances, and instances.
| void MayaGpuAll::Append | ( | const MayaGeometryAll & | scene | ) |
Append a set of instances with the existing one.
| scene | The set of instances. |
References Append(), and MayaGeometryAll::instances.
| void MayaGpuAll::Append | ( | const MayaGeometrySet & | ins | ) |
Add an instance set to the scene.
Checks if the object already exists in the collection of models: if so, it simply creates a new reference to it, otherwise it creates a new entry.
| ins | The instance. |
References MayaGeometrySet::count(), MayaGeometrySet::GetFrameScaled(), MayaGeometrySet::GetName(), and instances.
| MayaStatistics MayaGpuAll::GetStatistics | ( | ) | const |
Compute some statistics.
This function gathers some statistics and pack them into the structure.
References instances.
| void MayaGpuAll::Remove | ( | const QString & | n | ) |
| void MayaGpuAll::Render | ( | GpuParameter & | gpu | ) |
Render the set of instances.
| gpu | Set of parameters. |
References MayaShader::GetProgram(), and instances.
| void MayaGpuAll::Replace | ( | const MayaGeometryAll & | scene | ) |
Replace a set of instances with the existing one.
| scene | The set of instances. |
References Append(), MayaGeometryAll::instances, and Remove().