Class Perspective3D

    • Field Detail

      • name

        protected java.lang.String name
        Name of the presentation
      • viewport3d

        protected IViewport3d viewport3d
        The viewport
      • selectedobject

        protected java.lang.Object selectedobject
        The selected object
      • selectCycle

        protected int selectCycle
        Selection cycle for stacked objects
      • selectorDistance

        protected IVector1 selectorDistance
        Maximum selection distance
      • invertxaxis

        protected boolean invertxaxis
        Flag if the x-axis should be inverted
      • invertyaxis

        protected boolean invertyaxis
        Flag if the y-axis should be inverted
      • tryopengl

        protected boolean tryopengl
        Try OpenGL if true
      • bgColor

        protected java.awt.Color bgColor
        The background color.
      • visuals

        protected java.util.Map<java.lang.Object,​java.lang.Object> visuals
        The visuals (DrawableCombiners)
      • staticvisuals

        protected java.util.Collection<DrawableCombiner3d> staticvisuals
        The static visuals (DrawableCombiners)
    • Constructor Detail

      • Perspective3D

        public Perspective3D​(boolean shader,
                             java.lang.String camera,
                             java.lang.String guiCreatorPath)
        Creates a 3D-Perspective.
        Parameters:
        ncreens -
    • Method Detail

      • getFetcher

        public SimpleValueFetcher getFetcher()
        Get the value fetcher.
        Returns:
        The fetcher.
      • getName

        public java.lang.String getName()
        Returns the name of the perspective
        Specified by:
        getName in interface IPerspective
        Returns:
        name of the perspective
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the perspective
        Specified by:
        setName in interface IPerspective
        Parameters:
        name - name of the perspective
      • getSelectedObject

        public java.lang.Object getSelectedObject()
        Returns the currently selected object.
        Specified by:
        getSelectedObject in interface IPerspective
        Returns:
        currently selected object
      • setSelectedObject

        public void setSelectedObject​(java.lang.Object obj)
        Sets the selected object.
        Specified by:
        setSelectedObject in interface IPerspective
        Parameters:
        obj - selected object
      • addVisual

        public void addVisual​(java.lang.Object id,
                              java.lang.Object visual)
        Adds a new visual object.
        Specified by:
        addVisual in interface IPerspective
        Parameters:
        id - identifier of the object
        visual - the visual object
      • removeVisual

        public void removeVisual​(java.lang.Object id)
        Removes a new visual object.
        Specified by:
        removeVisual in interface IPerspective
        Parameters:
        id - identifier of the object
      • getView

        public java.awt.Component getView()
        Gets the view of the perspective.
        Specified by:
        getView in interface IPerspective
        Returns:
        the view
      • getViewport

        public IViewport3d getViewport()
        Gets the viewport
        Returns:
        the viewport
      • getInvertXAxis

        public boolean getInvertXAxis()
        Gets x-axis inversion.
        Returns:
        true, if the x-axis should be inverted.
      • setInvertXAxis

        public void setInvertXAxis​(boolean invert)
        Sets x-axis inversion.
        Parameters:
        invert - true, if the x-axis should be inverted.
      • getInvertYAxis

        public boolean getInvertYAxis()
        Gets y-axis inversion.
        Returns:
        true, if the y-axis should be inverted.
      • setInvertYAxis

        public void setInvertYAxis​(boolean invert)
        Sets y-axis inversion.
        Parameters:
        invert - true, if the y-axis should be inverted.
      • reset

        public void reset()
        Resets position and flushes render info
        Specified by:
        reset in interface IPerspective
      • refresh

        public void refresh()
        Refreshes the perspective.
        Specified by:
        refresh in interface IPerspective
      • getOpenGl

        public boolean getOpenGl()
        Description copied from interface: IPerspective
        Gets whether to try to use OpenGL.
        Specified by:
        getOpenGl in interface IPerspective
        Returns:
        true, if attempt should be made to use OpenGL
      • setOpenGl

        public boolean setOpenGl​(boolean opengl)
        Description copied from interface: IPerspective
        Sets whether to try to use OpenGL.
        Specified by:
        setOpenGl in interface IPerspective
        Parameters:
        opengl - true, if attempt should be made to use OpenGL
      • setPostlayers

        public void setPostlayers​(Layer[] array)
      • setPrelayers

        public void setPrelayers​(Layer[] array)
      • leftClicked

        public void leftClicked​(java.lang.String identification)
        Set the selected Object in the Perspective. Called by the Viewport3d when the selected Object changes
        Parameters:
        identification -
      • isWireframe

        public boolean isWireframe()
        Returns:
        the wireframe
      • setWireframe

        public void setWireframe​(boolean wireframe)
        Parameters:
        wireframe - the wireframe to set
      • setMarkerDrawCombiner

        public void setMarkerDrawCombiner​(DrawableCombiner3d marker)