Documentation of 'org.jzy3d.plot3d.primitives.axes.AxeBox' Java class
AxeBox
org.jzy3d.plot3d.primitives.axes

Class AxeBox

    • Method Detail

      • addAnnotation

        public void addAnnotation(AxeAnnotation annotation)
      • setLineWidth

        public void setLineWidth(int pwidth)
        Set line width to draw boxes and axis.
        Parameters:
        pwidth - with of the pen to draw boxes etc.
      • draw

        public void draw(com.jogamp.opengl.GL gl,
                         com.jogamp.opengl.glu.GLU glu,
                         Camera camera)
        Draws the AxeBox. The camera is used to determine which axis is closest to the ur point ov view, in order to decide for an axis on which to diplay the tick values.
        Specified by:
        draw in interface IAxe
      • doTransform

        public void doTransform(com.jogamp.opengl.GL gl)
        reset to identity and apply scaling
      • cullingDisable

        public void cullingDisable(com.jogamp.opengl.GL gl)
      • cullingEnable

        public void cullingEnable(com.jogamp.opengl.GL gl)
      • drawFace

        public void drawFace(com.jogamp.opengl.GL gl)
      • drawGrid

        public void drawGrid(com.jogamp.opengl.GL gl)
      • drawTicksAndLabels

        public void drawTicksAndLabels(com.jogamp.opengl.GL gl,
                                       com.jogamp.opengl.glu.GLU glu,
                                       Camera camera)
      • drawTicksAndLabelsX

        public void drawTicksAndLabelsX(com.jogamp.opengl.GL gl,
                                        com.jogamp.opengl.glu.GLU glu,
                                        Camera camera)
      • drawTicksAndLabelsY

        public void drawTicksAndLabelsY(com.jogamp.opengl.GL gl,
                                        com.jogamp.opengl.glu.GLU glu,
                                        Camera camera)
      • drawTicksAndLabelsZ

        public void drawTicksAndLabelsZ(com.jogamp.opengl.GL gl,
                                        com.jogamp.opengl.glu.GLU glu,
                                        Camera camera)
      • drawAxisLabel

        public void drawAxisLabel(com.jogamp.opengl.GL gl,
                                  com.jogamp.opengl.glu.GLU glu,
                                  Camera cam,
                                  int direction,
                                  Color color,
                                  BoundingBox3d ticksTxtBounds,
                                  double xlab,
                                  double ylab,
                                  double zlab,
                                  java.lang.String axeLabel)
      • isZDisplayed

        public boolean isZDisplayed(int direction)
      • isYDisplayed

        public boolean isYDisplayed(int direction)
      • isXDisplayed

        public boolean isXDisplayed(int direction)
      • isZ

        public boolean isZ(int direction)
      • isY

        public boolean isY(int direction)
      • isX

        public boolean isX(int direction)
      • getAxisTicks

        public double[] getAxisTicks(int direction)
      • drawAxisTicks

        public void drawAxisTicks(com.jogamp.opengl.GL gl,
                                  com.jogamp.opengl.glu.GLU glu,
                                  Camera cam,
                                  int direction,
                                  Color color,
                                  Halign hal,
                                  Valign val,
                                  float tickLength,
                                  BoundingBox3d ticksTxtBounds,
                                  double xpos,
                                  double ypos,
                                  double zpos,
                                  float xdir,
                                  float ydir,
                                  float zdir,
                                  double[] ticks)
      • drawAxisTickNumericLabel

        public void drawAxisTickNumericLabel(com.jogamp.opengl.GL gl,
                                             com.jogamp.opengl.glu.GLU glu,
                                             int direction,
                                             Camera cam,
                                             Color color,
                                             Halign hAlign,
                                             Valign vAlign,
                                             BoundingBox3d ticksTxtBounds,
                                             java.lang.String tickLabel,
                                             Coord3d tickPosition)
      • layoutVertical

        public Valign layoutVertical(int direction,
                                     Valign val,
                                     float zdir)
      • drawTickLine

        public void drawTickLine(com.jogamp.opengl.GL gl,
                                 Color color,
                                 double xpos,
                                 double ypos,
                                 double zpos,
                                 double xlab,
                                 double ylab,
                                 double zlab)
      • updateHiddenQuads

        public void updateHiddenQuads(com.jogamp.opengl.GL gl,
                                      Camera camera)
      • dispose

        public void dispose()
        Specified by:
        dispose in interface IAxe
      • setTextRenderer

        public void setTextRenderer(ITextRenderer renderer)
      • getView

        public View getView()
      • setView

        public void setView(View view)
        When setting a current view, the AxeBox can know the view is on mode CameraMode.TOP, and optimize some axis placement.
      • getWholeBounds

        public BoundingBox3d getWholeBounds()
        Return the boundingBox of this axis, including the volume occupied by the texts. This requires calling draw() before, which computes actual ticks position in 3d, and updates the bounds.
      • setScale

        public void setScale(Coord3d scale)
        Set the scaling factor that are applyed on this object before GL2 commands.
        Specified by:
        setScale in interface IAxe

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.