osg.DisplaySettings

class osg.DisplaySettings
Represents:c++ class
Wraps:osg::DisplaySettings

osg.DisplaySettings class for encapsulating what visuals are required and have been set up, and the status of stereo viewing.

Constructors:

osg.DisplaySettings()

osg.DisplaySettings(osg.DisplaySettings other)

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

Methods:

:setDisplaySettings(osg.DisplaySettings ds)

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

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

:setDisplayType(osg.DisplaySettings.DisplayType dt)

Параметры:dt (osg.DisplaySettings.DisplayType) –
:getDisplayType()

Тип результата:osg.DisplaySettings.DisplayType
:setStereo(bool b)

Параметры:b (bool) –
:getStereo()

Тип результата:bool
:setStereoMode(osg.DisplaySettings.StereoMode sm)

Параметры:sm (osg.DisplaySettings.StereoMode) –
:getStereoMode()

Тип результата:osg.DisplaySettings.StereoMode
:setEyeSeparation(double eyeSeparation)

Параметры:eyeSeparation (double) –
:getEyeSeparation()

Тип результата:double
:setKeystoneHint(bool kh)

Параметры:kh (bool) –
:getKeystoneHint()

Тип результата:bool
:getKeystones()

Тип результата:osg.DisplaySettings.Objects
:setSplitStereoHorizontalEyeMapping(osg.DisplaySettings.SplitStereoHorizontalEyeMapping m)

Параметры:m (osg.DisplaySettings.SplitStereoHorizontalEyeMapping) –
:getSplitStereoHorizontalEyeMapping()

Тип результата:osg.DisplaySettings.SplitStereoHorizontalEyeMapping
:setSplitStereoHorizontalSeparation(int s)

Параметры:s (int) –
:getSplitStereoHorizontalSeparation()

Тип результата:int
:setSplitStereoVerticalEyeMapping(osg.DisplaySettings.SplitStereoVerticalEyeMapping s)

Параметры:s (osg.DisplaySettings.SplitStereoVerticalEyeMapping) –
:getSplitStereoVerticalEyeMapping()

Тип результата:osg.DisplaySettings.SplitStereoVerticalEyeMapping
:setSplitStereoVerticalSeparation(int s)

Параметры:s (int) –
:getSplitStereoVerticalSeparation()

Тип результата:int
:setSplitStereoAutoAdjustAspectRatio(bool flag)

Параметры:flag (bool) –
:getSplitStereoAutoAdjustAspectRatio()

Тип результата:bool
:setScreenWidth(double width)

Параметры:width (double) –
:getScreenWidth()

Тип результата:double
:setScreenHeight(double height)

Параметры:height (double) –
:getScreenHeight()

Тип результата:double
:setScreenDistance(double distance)

Параметры:distance (double) –
:getScreenDistance()

Тип результата:double
:setDoubleBuffer(bool flag)

Параметры:flag (bool) –
:getDoubleBuffer()

Тип результата:bool
:setRGB(bool flag)

Параметры:flag (bool) –
:getRGB()

Тип результата:bool
:setDepthBuffer(bool flag)

Параметры:flag (bool) –
:getDepthBuffer()

Тип результата:bool
:setMinimumNumAlphaBits(unsigned bits)

Параметры:bits (unsigned) –
:getMinimumNumAlphaBits()

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

Тип результата:bool
:setMinimumNumStencilBits(unsigned bits)

Параметры:bits (unsigned) –
:getMinimumNumStencilBits()

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

Тип результата:bool
:setMinimumNumAccumBits(unsigned red, unsigned green, unsigned blue, unsigned alpha)

Параметры:
  • red (unsigned) –
  • green (unsigned) –
  • blue (unsigned) –
  • alpha (unsigned) –
:getMinimumNumAccumRedBits()

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

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

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

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

Тип результата:bool
:setMaxNumberOfGraphicsContexts(unsigned num)

Параметры:num (unsigned) –
:getMaxNumberOfGraphicsContexts()

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

Параметры:samples (unsigned) –
:getNumMultiSamples()

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

Тип результата:bool
:setCompileContextsHint(bool useCompileContexts)

Параметры:useCompileContexts (bool) –
:getCompileContextsHint()

Тип результата:bool
:setSerializeDrawDispatch(bool serializeDrawDispatch)

Параметры:serializeDrawDispatch (bool) –
:getSerializeDrawDispatch()

Тип результата:bool
:setUseSceneViewForStereoHint(bool hint)

Параметры:hint (bool) –
:getUseSceneViewForStereoHint()

Тип результата:bool
:setNumOfDatabaseThreadsHint(unsigned numThreads)

Set the hint for the total number of threads in the osgDB.DatbasePager set up, inclusive of the number of http dedicated threads.

Параметры:numThreads (unsigned) –
:getNumOfDatabaseThreadsHint()

Get the hint for total number of threads in the osgDB.DatbasePager set up, inclusive of the number of http dedicated threads.

Тип результата:unsigned
:setApplication(std.string application)

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

Тип результата:std.string
:setMaxTexturePoolSize(unsigned size)

Параметры:size (unsigned) –
:getMaxTexturePoolSize()

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

Параметры:size (unsigned) –
:getMaxBufferObjectPoolSize()

Тип результата:unsigned
:setImplicitBufferAttachmentMask(unsigned renderMask, unsigned resolveMask)

Параметры:
  • renderMask (unsigned) –
  • resolveMask (unsigned) –
:setImplicitBufferAttachmentRenderMask(unsigned implicitBufferAttachmentRenderMask)

Параметры:implicitBufferAttachmentRenderMask (unsigned) –
:setImplicitBufferAttachmentResolveMask(unsigned implicitBufferAttachmentResolveMask)

Параметры:implicitBufferAttachmentResolveMask (unsigned) –
:getImplicitBufferAttachmentRenderMask()

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

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

Static Methods:

.instance()

Maintain a osg.DisplaySettings singleton for objects to query at runtime.

Тип результата:osg.DisplaySettings