Class Viewport

  • java.lang.Object
    • com.aspose.threed.Viewport

  • public class Viewport
    extends java.lang.Object
    A IRenderTarget contains at least one viewport for rendering the scene.
    • Method Detail

      • getFrustum

        public Frustum getFrustum()
        Gets the camera of this Viewport
      • setFrustum

        public void setFrustum​(Frustum value)
        Sets the camera of this Viewport
        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 class java.lang.Object