osg.Camera

class osg.Camera
Represents:c++ class
Wraps:osg::Camera
Bases:osg.Transform, osg.CullSettings

Constructors:

osg.Camera()

Methods:

:addFinalDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:addInitialDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:addPostDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:addPreDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:attach(osg.Camera.BufferComponent buffer, osg.Texture texture)

Параметры:
:attach(osg.Camera.BufferComponent buffer, osg.Texture texture, unsigned level, int face, bool mipMapGeneration, unsigned multisampleSamples, unsigned multisampleColorSamples)

Параметры:
  • buffer (osg.Camera.BufferComponent) –
  • texture (osg.Texture) –
  • level (unsigned) –
  • face (int) –
  • mipMapGeneration (bool) –
  • multisampleSamples (unsigned) –
  • multisampleColorSamples (unsigned) –
:attachImage(osg.Camera.BufferComponent buffer, osg.Image image)

Параметры:
:attachImage(osg.Camera.BufferComponent buffer, osg.Image image, unsigned multisampleSamples, unsigned multisampleColorSamples)

Параметры:
:detach(osg.Camera.BufferComponent buffer)

Параметры:buffer (osg.Camera.BufferComponent) –
:getAllowEventFocus()

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

Тип результата:osg.Vec4
:getClearColor()

Тип результата:osg.Vec4
:getClearDepth()

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

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

Тип результата:int
:getFinalDrawCallback()

Тип результата:osg.Camera.DrawCallback
:getGraphicsContext()

Тип результата:osg.GraphicsContext
:getInitialDrawCallback()

Тип результата:osg.Camera.DrawCallback
:getInverseViewMatrix()

Тип результата:osg.Matrix
:getPostDrawCallback()

Тип результата:osg.Camera.DrawCallback
:getPreDrawCallback()

Тип результата:osg.Camera.DrawCallback
:getProcessorAffinity()

Тип результата:OpenThreads.Affinity
:getProjectionMatrix()

Тип результата:osg.Matrix
:getProjectionMatrixAsPerspective()

:getRenderOrder()

Тип результата:osg.Camera.RenderOrder
:getRenderOrderNum()

Тип результата:int
:getRenderTargetFallback()

Тип результата:osg.Camera.RenderTargetImplementation
:getRenderTargetImplementation()

Тип результата:osg.Camera.RenderTargetImplementation
:getViewMatrix()

Тип результата:osg.Matrix
:getViewMatrixAsLookAt()

:getViewMatrixAsLookAt(double lookDistance)

Параметры:lookDistance (double) –
:getViewport()

Тип результата:osg.Viewport
:isRenderToTextureCamera()

Тип результата:bool
:removeFinalDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:removeInitialDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:removePostDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:removePreDrawCallback(osg.Camera.DrawCallback nc)

Параметры:nc (osg.Camera.DrawCallback) –
:setAllowEventFocus(bool allow)

Параметры:allow (bool) –
:setClearAccum(osg.Vec4 color)

Параметры:color (osg.Vec4) –
:setClearColor(osg.Vec4 color)

Параметры:color (osg.Vec4) –
:setClearDepth(double depth)

Параметры:depth (double) –
:setClearMask(unsigned mask)

Параметры:mask (unsigned) –
:setClearStencil(int depth)

Параметры:depth (int) –
:setColorMask(bool r, bool g, bool b, bool a)

Параметры:
  • r (bool) –
  • g (bool) –
  • b (bool) –
  • a (bool) –
:setDrawBuffer(int buffer)

Параметры:buffer (int) –
:setFinalDrawCallback(osg.Camera.DrawCallback cb)

Параметры:cb (osg.Camera.DrawCallback) –
:setGraphicsContext(osg.GraphicsContext ctx)

Параметры:ctx (osg.GraphicsContext) –
:setInitialDrawCallback(osg.Camera.DrawCallback cb)

Параметры:cb (osg.Camera.DrawCallback) –
:setPostDrawCallback(osg.Camera.DrawCallback cb)

Параметры:cb (osg.Camera.DrawCallback) –
:setPreDrawCallback(osg.Camera.DrawCallback cb)

Параметры:cb (osg.Camera.DrawCallback) –
:setProcessorAffinity(OpenThreads.Affinity affinity)

Параметры:affinity (OpenThreads.Affinity) –
:setProjectionMatrix(osg.Matrix projmat)

Параметры:projmat (osg.Matrix) –
:setProjectionMatrixAsFrustum(double left, double right, double bottom, double top, double zNear, double zFar)

Параметры:
  • left (double) –
  • right (double) –
  • bottom (double) –
  • top (double) –
  • zNear (double) –
  • zFar (double) –
:setProjectionMatrixAsOrtho(double left, double right, double bottom, double top, double zNear, double zFar)

Параметры:
  • left (double) –
  • right (double) –
  • bottom (double) –
  • top (double) –
  • zNear (double) –
  • zFar (double) –
:setProjectionMatrixAsOrtho2D(double left, double right, double bottom, double top)

Параметры:
  • left (double) –
  • right (double) –
  • bottom (double) –
  • top (double) –
:setProjectionMatrixAsPerspective(double fovy, double ratio, double zNear, double zFar)

Параметры:
  • fovy (double) –
  • ratio (double) –
  • zNear (double) –
  • zFar (double) –
:setReadBuffer(int buffer)

Параметры:buffer (int) –
:setRenderOrder(osg.Camera.RenderOrder order, int orderNum)

Параметры:
:setRenderTargetImplementation(osg.Camera.RenderTargetImplementation impl)

Параметры:impl (osg.Camera.RenderTargetImplementation) –
:setRenderTargetImplementation(osg.Camera.RenderTargetImplementation impl, osg.Camera.RenderTargetImplementation fallback)

Параметры:
:setViewMatrix(osg.Matrix viewmat)

Параметры:viewmat (osg.Matrix) –
:setViewMatrixAsLookAt(osg.Vec3 eye, osg.Vec3 center, osg.Vec3 up)

Параметры:
:setViewport(int x, int y, int width, int height)

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