Interface DrawingTools

    • Method Detail

      • getCanvas

        Canvas getCanvas()
        Return the canvas where draw is done.
        Returns:
        the canvas where draw is done.
      • getTransformationManager

        TransformationManager getTransformationManager()
        Return the transformation manager.
        Returns:
        the transformation manager.
      • getLightManager

        LightManager getLightManager()
        Return the light manager.
        Returns:
        the light manager.
      • getClippingManager

        ClippingManager getClippingManager()
        Return the clipping manager.
        Returns:
        the clipping manager.
      • clear

        void clear​(Color color)
        Clear the canvas with the given color.
        Parameters:
        color - the color used to clear the canvas.
      • clear

        void clear​(java.awt.Color color)
        Clear the canvas with the given color.
        Parameters:
        color - the color used to clear the canvas.
      • clearDepthBuffer

        void clearDepthBuffer()
        Clear the depth buffer.
      • draw

        void draw​(Renderer renderer)
        Ask the given renderer to perform a draw.
        Parameters:
        renderer - the given renderer.
      • draw

        void draw​(Texture texture)
           throws SciRendererException
        Draw the texture on XY plane in current coordinate. The texture is drawn on the rectangle [(0,0)-(texture width,texture height)].
        Parameters:
        texture - the texture to drawn.
        Throws:
        SciRendererException - if the texture is not drawable.
      • draw

        void draw​(Texture texture,
                  AnchorPosition anchor,
                  ElementsBuffer positions,
                  double rotationAngle)
           throws SciRendererException
        Draw the given texture at all given position with the given rotation angle.
        Parameters:
        texture - the texture to draw.
        anchor - the texture anchor position.
        positions - the positions where the texture will be drawn.
        rotationAngle - the rotation angle.
        Throws:
        SciRendererException - if the texture is not drawable.
      • draw

        void draw​(Texture texture,
                  AnchorPosition anchor,
                  Vector3d position)
           throws SciRendererException
        Draw the given texture at given position.
        Parameters:
        texture - the texture to draw.
        anchor - the texture anchor position.
        position - the position where the texture will be drawn.
        Throws:
        SciRendererException - if the texture is not drawable.
      • draw

        void draw​(Texture texture,
                  AnchorPosition anchor,
                  Vector3d position,
                  double rotationAngle)
           throws SciRendererException
        Draw the given texture at given position with the given rotation angle.
        Parameters:
        texture - the texture to draw.
        anchor - the texture anchor position.
        position - the position where the texture will be drawn.
        rotationAngle - the rotation angle.
        Throws:
        SciRendererException - if the texture is not drawable.