Documentation of 'org.jzy3d.plot3d.rendering.view.View' Java class
View
org.jzy3d.plot3d.rendering.view

Class View

  • Direct Known Subclasses:
    ChartView, SelectableView


    public class View
    extends java.lang.Object
    A View holds a Scene, a LightSet, an ICanvas to render into. It is the responsability to layout a set of concrete AbstractViewportManagers such as the rendering the scene or an AWTImageViewport for displaying an image in the same window. On can control the Camera with a and get notifyed by a IViewPointChangedListener that the view point has changed. The control is relative to the center of the Scene and is defined using polar coordinates. The View supports post rendering through the addition of Renderer2ds whose implementation can define Java2d calls to render on top on OpenGL2. Last, the View offers the ability to get an AxeBox for embedding the Scene and getting values along axes.
    • Field Detail

      • STRETCH_RATIO

        public static float STRETCH_RATIO
      • DEFAULT_VIEW

        public static final Coord3d DEFAULT_VIEW
    • Constructor Detail

      • View

        public View(IChartComponentFactory factory,
                    Scene scene,
                    ICanvas canvas,
                    Quality quality)
        Create a view attached to a Scene, with its own Camera and Axe. The initial view point is set at View.DEFAULT_VIEW.

        The Quality allows setting the rendering capabilities that are set one time by the init() method.

    • Method Detail

      • getChart

        public Chart getChart()
      • setChart

        public void setChart(Chart chart)
      • isSlave

        public boolean isSlave()
      • setSlave

        public void setSlave(boolean slave)
      • dispose

        public void dispose()
      • shoot

        public void shoot()
        Current view selection into the mother Scene, and call to target canvas rendering.
      • project

        public void project()
      • projectMouse

        public Coord3d projectMouse(int x,
                                    int y)
      • rotate

        public void rotate(Coord2d move)
        GENERAL DISPLAY CONTROLS
      • rotate

        public void rotate(Coord2d move,
                           boolean updateView)
      • shift

        public void shift(float factor)
      • shift

        public void shift(float factor,
                          boolean updateView)
      • zoom

        public void zoom(float factor)
      • zoom

        public void zoom(float factor,
                         boolean updateView)
      • zoomX

        public void zoomX(float factor)
      • zoomX

        public void zoomX(float factor,
                          boolean updateView)
      • zoomY

        public void zoomY(float factor)
      • zoomY

        public void zoomY(float factor,
                          boolean updateView)
      • zoomZ

        public void zoomZ(float factor)
      • zoomZ

        public void zoomZ(float factor,
                          boolean updateView)
      • setScale

        public void setScale(Scale scale)
        Z scale.
        See Also:
        setScaleX, setScaleY, setScaleZ
      • setScale

        public void setScale(Scale scale,
                             boolean notify)
        Z scale.
        See Also:
        setScaleX, setScaleY, setScaleZ
      • setScaleX

        public void setScaleX(Scale scale)
      • setScaleX

        public void setScaleX(Scale scale,
                              boolean notify)
      • setScaleY

        public void setScaleY(Scale scale)
      • setScaleY

        public void setScaleY(Scale scale,
                              boolean notify)
      • setScaleZ

        public void setScaleZ(Scale scale)
      • setScaleZ

        public void setScaleZ(Scale scale,
                              boolean notify)
      • getScale

        public Scale getScale()
      • lookToBox

        public void lookToBox(BoundingBox3d box)
        Set the surrounding AxeBox dimensions and the Camera target, and the colorbar range.
      • setViewPoint

        public void setViewPoint(Coord3d polar,
                                 boolean updateView)
        Set the viewpoint using polar coordinates relative to the target (i.e. the center of the scene). Only X and Y dimensions are required, as the distance to center will be computed automatically by updateCamera().
      • setViewPoint

        public void setViewPoint(Coord3d polar)
        Set the viewpoint and query a view update.
        See Also:
        setViewPoint(Coord3d polar, boolean updateView)}
      • getViewPoint

        public Coord3d getViewPoint()
        Get the viewpoint. The Z dimension is the one defined by updateCamera(), which depends on the view scaling.
        See Also:
        setViewPoint(Coord3d polar, boolean updateView)}
      • getLastViewScaling

        public Coord3d getLastViewScaling()
        Return the last used view scaling that was set according to the setSquared(boolean v) status.
      • setAxe

        public void setAxe(IAxe ax)
      • getAxe

        public IAxe getAxe()
      • getSquared

        public boolean getSquared()
      • setSquared

        public void setSquared(boolean status)
      • isAxeBoxDisplayed

        public boolean isAxeBoxDisplayed()
      • setAxeBoxDisplayed

        public void setAxeBoxDisplayed(boolean axeBoxDisplayed)
      • setBackgroundColor

        public void setBackgroundColor(Color color)
      • getBackgroundColor

        public Color getBackgroundColor()
      • getCamera

        public Camera getCamera()
      • setCameraMode

        public void setCameraMode(CameraMode mode)
        Set the projection of this view, either Camera.ORTHOGONAL or Camera.PERSPECTIVE.
      • getCameraMode

        public CameraMode getCameraMode()
        Get the projection of this view, either CameraMode.ORTHOGONAL or CameraMode.PERSPECTIVE.
      • setMaximized

        public void setMaximized(boolean status)
      • getScene

        public Scene getScene()
      • getSceneViewportRectangle

        public Rectangle getSceneViewportRectangle()
      • getCanvas

        public ICanvas getCanvas()
      • getAnnotations

        public Graph getAnnotations()
      • setBoundMode

        public void setBoundMode(ViewBoundMode mode)
        Select between an automatic bounding (that allows fitting the entire scene graph), or a custom bounding.
      • updateBounds

        public void updateBounds()
        Set the bounds of the view according to the current ViewBoundMode , and orders a Camera.shoot().
      • updateBoundsForceUpdate

        public void updateBoundsForceUpdate(boolean refresh)
        Update the bounds according to the scene graph whatever is the current ViewBoundMode, and orders a Camera.shoot()
      • setBoundManual

        public void setBoundManual(BoundingBox3d bounds)
        Set a manual bounding box and switch the bounding mode to {ViewBoundMode.MANUAL}, meaning that any call to updateBounds() will update view bounds to the current bounds.
      • getCurrentGL

        public com.jogamp.opengl.GL getCurrentGL()
      • getCurrentContext

        public com.jogamp.opengl.GLContext getCurrentContext()
      • init

        public void init(com.jogamp.opengl.GL gl)
        The initialization function:
        • specifies general GL settings that impact the rendering quality and performance (computation speed).
        • enable light management
        • load all required texture resources
        • fix the current view bounds to the whole scene graph bounds

        The rendering settings are set by the Quality given in the constructor parameters.

      • setInitBounds

        public void setInitBounds(BoundingBox3d initBounds)
      • initQuality

        public void initQuality(com.jogamp.opengl.GL gl)
      • initLights

        public void initLights(com.jogamp.opengl.GL gl)
      • initResources

        public void initResources(com.jogamp.opengl.GL gl)
      • clear

        public void clear(com.jogamp.opengl.GL gl)
        Clear the color and depth buffer.
      • clearColorAndDepth

        public void clearColorAndDepth(com.jogamp.opengl.GL gl)
      • render

        public void render(com.jogamp.opengl.GL gl,
                           com.jogamp.opengl.glu.GLU glu)
      • renderBackground

        public void renderBackground(com.jogamp.opengl.GL gl,
                                     com.jogamp.opengl.glu.GLU glu2,
                                     float f,
                                     float g)
        To be implemented (see AWTView)
      • renderBackground

        public void renderBackground(com.jogamp.opengl.GL gl,
                                     com.jogamp.opengl.glu.GLU glu2,
                                     ViewportConfiguration backgroundViewPort)
        To be implemented (see AWTView)
      • renderScene

        public void renderScene(com.jogamp.opengl.GL gl,
                                com.jogamp.opengl.glu.GLU glu)
      • renderScene

        public void renderScene(com.jogamp.opengl.GL gl,
                                com.jogamp.opengl.glu.GLU glu,
                                float left,
                                float right)
      • renderScene

        public void renderScene(com.jogamp.opengl.GL gl,
                                com.jogamp.opengl.glu.GLU glu,
                                ViewportConfiguration viewport)
      • updateQuality

        public void updateQuality(com.jogamp.opengl.GL gl)
      • computeScaledViewBounds

        public BoundingBox3d computeScaledViewBounds()
      • computeSceneScaling

        public Coord3d computeSceneScaling()
      • updateCamera

        public void updateCamera(com.jogamp.opengl.GL gl,
                                 com.jogamp.opengl.glu.GLU glu,
                                 ViewportConfiguration viewport,
                                 BoundingBox3d bounds,
                                 float sceneRadiusScaled)
      • computeCameraTarget

        public Coord3d computeCameraTarget()
      • computeCameraEyeProfile

        public static Coord3d computeCameraEyeProfile(Coord3d viewpoint,
                                                      Coord3d target)
      • computeCameraUpAndTriggerEvents

        public Coord3d computeCameraUpAndTriggerEvents()
      • computeCameraUp

        public Coord3d computeCameraUp()
      • computeCameraRenderingSphereRadius

        public void computeCameraRenderingSphereRadius(com.jogamp.opengl.GL gl,
                                                       com.jogamp.opengl.glu.GLU glu,
                                                       ViewportConfiguration viewport,
                                                       BoundingBox3d bounds)
      • renderAxeBox

        public void renderAxeBox(com.jogamp.opengl.GL gl,
                                 com.jogamp.opengl.glu.GLU glu)
      • glModelView

        public void glModelView(com.jogamp.opengl.GL gl)
      • renderSceneGraph

        public void renderSceneGraph(com.jogamp.opengl.GL gl,
                                     com.jogamp.opengl.glu.GLU glu)
      • renderSceneGraph

        public void renderSceneGraph(com.jogamp.opengl.GL gl,
                                     com.jogamp.opengl.glu.GLU glu,
                                     boolean light)
      • renderOverlay

        public void renderOverlay(com.jogamp.opengl.GL gl)
      • renderOverlay

        public void renderOverlay(com.jogamp.opengl.GL gl,
                                  ViewportConfiguration viewportConfiguration)
      • renderAnnotations

        public void renderAnnotations(com.jogamp.opengl.GL gl,
                                      com.jogamp.opengl.glu.GLU glu)
      • current

        public static View current()
      • setSpaceTransformer

        public void setSpaceTransformer(SpaceTransformer transformer)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.