osg.View¶
-
class
osg.View¶ Represents: c++ class Wraps: osg::View Bases: osg.Objectosg.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.Parameters: rhs ( osg.View) –
-
:
setLightingMode(osg.View.LightingMode lm)¶ Set the global lighting to use for
osg.View. Defaults to headlight.Parameters: lm ( osg.View.LightingMode) –
-
:
getLightingMode()¶ Get the global lighting used for
osg.View.Return type: osg.View.LightingMode
-
:
setCamera(osg.Camera camera)¶ Set the master camera of the
osg.View.Parameters: camera ( osg.Camera) –
-
:
getCamera()¶ Get the master camera of the
osg.View.Return type: osg.Camera
-
:
setFrameStamp(osg.FrameStamp fs)¶ Set the frame stamp of the
osg.View.Parameters: fs ( osg.FrameStamp) –
-
:
getFrameStamp()¶ Get the frame stamp of the
osg.View.Return type: osg.FrameStamp
-
:
addSlave(osg.Camera camera, bool useMastersSceneData)¶ -
Parameters: - camera (
osg.Camera) – - useMastersSceneData (
bool) –
Return type: bool - camera (
-
:
addSlave(osg.Camera camera) -
Parameters: camera ( osg.Camera) –Return type: bool
-
:
addSlave(osg.Camera camera, osg.Matrix projOffset, osg.Matrix viewOffset, bool useMastersSceneData) -
Parameters: - camera (
osg.Camera) – - projOffset (
osg.Matrix) – - viewOffset (
osg.Matrix) – - useMastersSceneData (
bool) –
Return type: bool - camera (
-
:
addSlave(osg.Camera camera, osg.Matrix projOffset, osg.Matrix viewOffset) -
Parameters: - camera (
osg.Camera) – - projOffset (
osg.Matrix) – - viewOffset (
osg.Matrix) –
Return type: bool - camera (
-
:
removeSlave(unsigned pos)¶ -
Parameters: pos ( unsigned) –Return type: bool
-
:
getNumSlaves()¶ -
Return type: unsigned
-
:
getSlave(unsigned pos)¶ -
Parameters: pos ( unsigned) –Return type: osg.View.Slave
-
:
findSlaveIndexForCamera(osg.Camera camera)¶ -
Parameters: camera ( osg.Camera) –Return type: unsigned
-
:
findSlaveForCamera(osg.Camera camera)¶ -
Parameters: camera ( osg.Camera) –Return type: osg.View.Slave
-
:
updateSlaves()¶
-