Interface SurfaceObject

    • Method Detail

      • isVisible

        boolean isVisible()
        Indicates whether the surface object should be drawn during rendering.
        Returns:
        true if the object is to be drawn, otherwise false.
      • setVisible

        void setVisible​(boolean visible)
        Specifies whether the surface object should be drawn during rendering.
        Parameters:
        visible - true if the object is to be drawn, otherwise false.
      • isEnableBatchPicking

        boolean isEnableBatchPicking()
        Indicates whether batch picking is enabled.
        Returns:
        true to enable batch picking; false otherwise.
        See Also:
        setEnableBatchPicking(boolean)
      • setEnableBatchPicking

        void setEnableBatchPicking​(boolean enable)
        Specifies whether adjacent SurfaceObjects in the DrawContext's ordered surface renderable list may be rendered together during picking if they are contained in the same layer. This increases performance and there is seldom a reason to disable it.
        Parameters:
        enable - true to enable batch picking; false otherwise.
      • getDistanceFromEye

        double getDistanceFromEye()
        Returns zero to indicate that the surface object's distance from the eye is unknown. SurfaceObjects are processed on the DrawContext's ordered surface renderable queue. Ordered surface renderables do not utilize the renderable's distance from the eye to determine draw order.
        Specified by:
        getDistanceFromEye in interface OrderedRenderable
        Returns:
        zero, to indicate that the object's distance from the eye is unknown.
      • getDelegateOwner

        java.lang.Object getDelegateOwner()
        Returns the delegate owner of the surface object. If non-null, the returned object replaces the surface object as the pickable object returned during picking. If null, the surface object itself is the pickable object returned during picking.
        Returns:
        the object used as the pickable object returned during picking, or null to indicate the the surface object is returned during picking.
      • setDelegateOwner

        void setDelegateOwner​(java.lang.Object owner)
        Specifies the delegate owner of the surface object. If non-null, the delegate owner replaces the surface object as the pickable object returned during picking. If null, the surface object itself is the pickable object returned during picking.
        Parameters:
        owner - the object to use as the pickable object returned during picking, or null to return the surface object.
      • getExtent

        Extent getExtent​(DrawContext dc)
        Returns the surface object's enclosing volume as an Extent in model coordinates, given a specified DrawContext.
        Parameters:
        dc - the current draw context.
        Returns:
        the surface object's Extent in model coordinates.
        Throws:
        java.lang.IllegalArgumentException - if the draw context is null.
      • preRender

        void preRender​(DrawContext dc)
        Causes the surface object to prepare a representation of itself which can be drawn on the surface terrain, using the provided draw context.
        Specified by:
        preRender in interface PreRenderable
        Parameters:
        dc - the current draw context.
      • pick

        void pick​(DrawContext dc,
                  java.awt.Point pickPoint)
        Causes the surface object to draw a pickable representation of itself on the surface terrain, using the provided draw context.
        Specified by:
        pick in interface OrderedRenderable
        Parameters:
        dc - the current draw context.
        pickPoint - the pick point.
        Throws:
        java.lang.IllegalArgumentException - if the draw context is null.