Package com.aspose.threed
Class Viewport
- java.lang.Object
-
- com.aspose.threed.Viewport
-
public class Viewport extends java.lang.Object
AIRenderTarget
contains at least one viewport for rendering the scene.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Viewport
clone()
RelativeRectangle
getArea()
Gets the area of the viewport in render target.java.awt.Color
getBackgroundColor()
Gets the background color of the viewport.float
getDepthClear()
Gets the depth value used when clear the viewport with depth buffer bit set.boolean
getEnabled()
Enable or disable this viewport.Frustum
getFrustum()
Gets the camera of thisViewport
IRenderTarget
getRenderTarget()
Gets the render target that created this viewport.int
getZOrder()
Gets the Z-order of the viewport.void
setArea(RelativeRectangle value)
Sets the area of the viewport in render target.void
setBackgroundColor(java.awt.Color value)
Sets the background color of the viewport.void
setDepthClear(float value)
Sets the depth value used when clear the viewport with depth buffer bit set.void
setEnabled(boolean value)
Enable or disable this viewport.void
setFrustum(Frustum value)
Sets the camera of thisViewport
void
setZOrder(int value)
Sets the Z-order of the viewport.
-
-
-
Method Detail
-
setFrustum
public void setFrustum(Frustum value)
Sets the camera of thisViewport
- Parameters:
value
- New value
-
getEnabled
public boolean getEnabled()
Enable or disable this viewport.
-
setEnabled
public void setEnabled(boolean value)
Enable or disable this viewport.- Parameters:
value
- New value
-
getRenderTarget
public IRenderTarget getRenderTarget()
Gets the render target that created this viewport.
-
getArea
public RelativeRectangle getArea()
Gets the area of the viewport in render target.
-
setArea
public void setArea(RelativeRectangle value)
Sets the area of the viewport in render target.- Parameters:
value
- New value
-
getZOrder
public int getZOrder()
Gets the Z-order of the viewport.
-
setZOrder
public void setZOrder(int value)
Sets the Z-order of the viewport.- Parameters:
value
- New value
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
Gets the background color of the viewport.
-
setBackgroundColor
public void setBackgroundColor(java.awt.Color value)
Sets the background color of the viewport.- Parameters:
value
- New value
-
getDepthClear
public float getDepthClear()
Gets the depth value used when clear the viewport with depth buffer bit set.
-
setDepthClear
public void setDepthClear(float value)
Sets the depth value used when clear the viewport with depth buffer bit set.- Parameters:
value
- New value
-
clone
public Viewport clone()
- Overrides:
clone
in classjava.lang.Object
-
-