osgViewer.View

class osgViewer.View
Represents:c++ class
Wraps:osgViewer::View
Bases:osg.View, osgGA.GUIActionAdapter

Constructors:

osgViewer.View()

Methods:

:getViewerBase()

Тип результата:osgViewer.ViewerBase
:take(osg.View view)

Параметры:view (osg.View) –
:setStartTick(uint64 tick)

Параметры:tick (uint64) –
:getStartTick()

Тип результата:uint64
:getScene()

Тип результата:osgViewer.Scene
:setSceneData(osg.Node node)

Параметры:node (osg.Node) –
:getSceneData()

Тип результата:osg.Node
:setEventQueue(osgGA.EventQueue queue)

Параметры:queue (osgGA.EventQueue) –
:getEventQueue()

Тип результата:osgGA.EventQueue
:setCameraManipulator(osgGA.CameraManipulator manipulator)

Параметры:manipulator (osgGA.CameraManipulator) –
:setCameraManipulator(osgGA.CameraManipulator manipulator, bool resetPosition)

Параметры:
:getCameraManipulator()

Тип результата:osgGA.CameraManipulator
:home()

:addEventHandler(osgGA.EventHandler eventHandler)

Параметры:eventHandler (osgGA.EventHandler) –
:removeEventHandler(osgGA.EventHandler eventHandler)

Параметры:eventHandler (osgGA.EventHandler) –
:setDisplaySettings(osg.DisplaySettings ds)

Параметры:ds (osg.DisplaySettings) –
:getDisplaySettings()

Тип результата:osg.DisplaySettings
:apply(osgViewer.ViewConfig config)

Параметры:config (osgViewer.ViewConfig) –
:getLastAppliedViewConfig()

Тип результата:osgViewer.ViewConfig
:setUpViewAcrossAllScreens()

:setUpViewInWindow(int x, int y, int width, int height)

Параметры:
  • x (int) –
  • y (int) –
  • width (int) –
  • height (int) –
:setUpViewInWindow(int x, int y, int width, int height, unsigned screenNum)

Параметры:
  • x (int) –
  • y (int) –
  • width (int) –
  • height (int) –
  • screenNum (unsigned) –
:setUpViewOnSingleScreen()

:setUpViewOnSingleScreen(unsigned screenNum)

Параметры:screenNum (unsigned) –
:containsCamera(osg.Camera camera)

Параметры:camera (osg.Camera) –
Тип результата:bool
:init()

:assignSceneDataToCameras()

:assignSceneDataToCameras()

:createDistortionTexture(int width, int height)

Параметры:
  • width (int) –
  • height (int) –
Тип результата:

osg.Texture

:assignRenderToTextureCamera(osg.GraphicsContext gc, int width, int height, osg.Texture texture)

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

osg.Camera

:assignKeystoneDistortionCamera(osg.DisplaySettings ds, osg.GraphicsContext gc, int x, int y, int width, int height, int buffer, osg.Texture texture, osgViewer.Keystone keystone)

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

osg.Camera

:assignStereoCamera(osg.DisplaySettings ds, osg.GraphicsContext gc, int x, int y, int width, int height, int buffer, double eyeScale)

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

osg.Camera

:assignStereoOrKeystoneToCamera(osg.Camera camera, osg.DisplaySettings ds)

Параметры: