osg.View

class osg.View
Represents

c++ class

Wraps

osg::View

Bases

osg.Object

osg.View - maintains a master camera view and a list of slave cameras that are relative to this master camera. Note, if no slave cameras are attached to the view then the master camera does both the control and implementation of the rendering of the scene, but if slave cameras are present then the master controls the view onto the scene, while the slaves implement the rendering of the scene.

Constructors:

osg.View()

Methods:

:take(osg.View rhs)

Take all the settings, Camera and Slaves from the passed in osg.View, leaving it empty.

Параметры

rhs (osg.View) –

:setLightingMode(osg.View.LightingMode lm)

Set the global lighting to use for osg.View. Defaults to headlight.

Параметры

lm (osg.View.LightingMode) –

:getLightingMode()

Get the global lighting used for osg.View.

Тип результата

osg.View.LightingMode

:setLight(osg.Light light)

Get the global light.

Параметры

light (osg.Light) –

:getLight()

Get the global lighting if assigned.

Тип результата

osg.Light

:setCamera(osg.Camera camera)

Set the master camera of the osg.View.

Параметры

camera (osg.Camera) –

:getCamera()

Get the master camera of the osg.View.

Тип результата

osg.Camera

:setFrameStamp(osg.FrameStamp fs)

Set the frame stamp of the osg.View.

Параметры

fs (osg.FrameStamp) –

:getFrameStamp()

Get the frame stamp of the osg.View.

Тип результата

osg.FrameStamp

:addSlave(osg.Camera camera, bool useMastersSceneData)

Параметры
  • camera (osg.Camera) –

  • useMastersSceneData (bool) –

Тип результата

bool

:addSlave(osg.Camera camera)

Параметры

camera (osg.Camera) –

Тип результата

bool

:addSlave(osg.Camera camera, osg.Matrix projOffset, osg.Matrix viewOffset, bool useMastersSceneData)

Параметры
Тип результата

bool

:addSlave(osg.Camera camera, osg.Matrix projOffset, osg.Matrix viewOffset)

Параметры
Тип результата

bool

:removeSlave(unsigned pos)

Параметры

pos (unsigned) –

Тип результата

bool

:getNumSlaves()

Тип результата

unsigned

:findSlaveIndexForCamera(osg.Camera camera)

Параметры

camera (osg.Camera) –

Тип результата

unsigned

:findSlaveForCamera(osg.Camera camera)

Параметры

camera (osg.Camera) –

Тип результата

osg.View.Slave

:updateSlaves()