Maya 1.0
|
Statistics about objects and instances. More...
#include <maya.h>
Public Member Functions | |
MayaStatistics (int=0, int=0, int=0, int=0, int=0, int=0) | |
Create statistics. | |
~MayaStatistics () | |
Empty. | |
int | GetObjects () const |
Return the number of unique objects. | |
int | GetObjectsVertices () const |
Return the number of vertices of unique objects. | |
int | GetObjectsTriangles () const |
Return the number of triangles of unique objects. | |
int | GetInstances () const |
Return the number of instances. | |
int | GetInstancesVertices () const |
Return the number of vertices. | |
int | GetInstancesTriangles () const |
Return the number of triangless. | |
MayaStatistics & | operator+= (const MayaStatistics &) |
Destructive addition. | |
QString | GetText () const |
Return a string showing the statistics. | |
Protected Attributes | |
int | s [6] |
Array of integers storing statistics. | |
Friends | |
MayaStatistics | operator+ (const MayaStatistics &a, const MayaStatistics &b) |
Overloaded operator for adding and gathering statistics. | |
Statistics about objects and instances.
|
explicit |
Create statistics.
objects | Number of unique objects. |
tobjects,vobjects | Number of triangles and vertices of unique objects. |
instances | Number of instances. |
tinstances,vinstances | Number of triangles and vertices for instances. |
References s.
Referenced by operator+, and operator+=().