osg.View¶
- class osg.View¶
- Represents
c++ class
- Wraps
osg::View
- Bases
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
) –
- :setCamera(osg.Camera camera)¶
Set the master camera of the
osg.View
.- Параметры
camera (
osg.Camera
) –
- :setFrameStamp(osg.FrameStamp fs)¶
Set the frame stamp of the
osg.View
.- Параметры
fs (
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)
-
- Параметры
camera (
osg.Camera
) –projOffset (
osg.Matrix
) –viewOffset (
osg.Matrix
) –useMastersSceneData (
bool
) –
- Тип результата
bool
- :addSlave(osg.Camera camera, osg.Matrix projOffset, osg.Matrix viewOffset)
-
- Параметры
camera (
osg.Camera
) –projOffset (
osg.Matrix
) –viewOffset (
osg.Matrix
) –
- Тип результата
bool
- :removeSlave(unsigned pos)¶
-
- Параметры
pos (
unsigned
) –- Тип результата
bool
- :getNumSlaves()¶
-
- Тип результата
unsigned
- :findSlaveIndexForCamera(osg.Camera camera)¶
-
- Параметры
camera (
osg.Camera
) –- Тип результата
unsigned
- :findSlaveForCamera(osg.Camera camera)¶
-
- Параметры
camera (
osg.Camera
) –- Тип результата
- :updateSlaves()¶