osg.Stats

class osg.Stats
Represents:c++ class
Wraps:osg::Stats
Bases:osg.Referenced

Constructors:

osg.Stats(std.string name)

Параметры:name (std.string) –
osg.Stats(std.string name, unsigned numberOfFrames)

Параметры:
  • name (std.string) –
  • numberOfFrames (unsigned) –

Methods:

:allocate(unsigned numberOfFrames)

Параметры:numberOfFrames (unsigned) –
:collectStats(std.string stat, bool flag)

Параметры:
:collectStats(std.string stat)

Параметры:stat (std.string) –
Тип результата:bool
:getAttribute(unsigned frameNumber, std.string attr)

Параметры:
  • frameNumber (unsigned) –
  • attr (std.string) –
:getAttributeMap(unsigned frameNumber)

Параметры:frameNumber (unsigned) –
Тип результата:osg.Stats.AttributeMap
:getAveragedAttribute(std.string attr)

Параметры:attr (std.string) –
:getAveragedAttribute(std.string attr, bool averageInInverseSpace)

Параметры:
  • attr (std.string) –
  • averageInInverseSpace (bool) –
:getAveragedAttribute(unsigned startFameNumber, unsigned endFrameNumber, std.string attr)

Параметры:
  • startFameNumber (unsigned) –
  • endFrameNumber (unsigned) –
  • attr (std.string) –
:getAveragedAttribute(unsigned startFameNumber, unsigned endFrameNumber, std.string attr, bool averageInInverseSpace)

Параметры:
  • startFameNumber (unsigned) –
  • endFrameNumber (unsigned) –
  • attr (std.string) –
  • averageInInverseSpace (bool) –
:getEarliestFrameNumber()

Тип результата:unsigned
:getLatestFrameNumber()

Тип результата:unsigned
:getName()

Тип результата:std.string
:setAttribute(unsigned frameNumber, std.string attr, double val)

Параметры:
  • frameNumber (unsigned) –
  • attr (std.string) –
  • val (double) –
Тип результата:

bool

:setName(std.string name)

Параметры:name (std.string) –