3ds Max C++ API Reference
TranslatorStatistics Class Reference

Container for translation statistics. More...

#include <TranslatorStatistics.h>

Public Member Functions

 TranslatorStatistics ()
 Initializes all statistics to 0. More...
 
size_t GetNumLights () const
 The total number of lights. More...
 
size_t GetNumGeomObjects () const
 The total number of geometric objects. More...
 
size_t GetNumFaces () const
 The total number of faces. More...
 
void AddLights (const size_t numLights)
 Adds the given number of lights to the statistics. More...
 
void AddGeomObject (const size_t numGeomObjects)
 Adds the given number of geometric objects to the statistics. More...
 
void AddFaces (const size_t numFaces)
 Adds the given number of faces to the statistics. More...
 

Detailed Description

Container for translation statistics.

Simple container with which translation statistics are accumulated.

Constructor & Destructor Documentation

◆ TranslatorStatistics()

Initializes all statistics to 0.

18  : mNumLights(0),
19  mNumGeomObjects(0),
20  mNumFaces(0)
21 {
22 
23 }

Member Function Documentation

◆ GetNumLights()

size_t GetNumLights ( ) const
inline

The total number of lights.

26 {
27  return mNumLights;
28 }

◆ GetNumGeomObjects()

size_t GetNumGeomObjects ( ) const
inline

The total number of geometric objects.

31 {
32  return mNumGeomObjects;
33 }

◆ GetNumFaces()

size_t GetNumFaces ( ) const
inline

The total number of faces.

Remarks
The exact meaning of faces is defined by the renderer. It could triangles, quads, lollipops, or else.
36 {
37  return mNumFaces;
38 }

◆ AddLights()

void AddLights ( const size_t  numLights)
inline

Adds the given number of lights to the statistics.

41 {
42  mNumLights += numLights;
43 }

◆ AddGeomObject()

void AddGeomObject ( const size_t  numGeomObjects)
inline

Adds the given number of geometric objects to the statistics.

46 {
47  mNumGeomObjects += numGeomObjects;
48 }

◆ AddFaces()

void AddFaces ( const size_t  numFaces)
inline

Adds the given number of faces to the statistics.

Remarks
The exact meaning of faces is defined by the renderer. It could triangles, quads, lollipops, or else.
51 {
52  mNumFaces += numFaces;
53 }