Documentation of 'org.jzy3d.plot3d.rendering.scene.Graph' Java class
Graph
org.jzy3d.plot3d.rendering.scene

Class Graph



  • public class Graph
    extends java.lang.Object
    The scene's Graph basically stores the scene content and facilitate objects control The graph may decompose all AbstractComposite into a list of their AbstractDrawables primitives if constructor is called with parameters enabling sorting. The list of primitives is ordered using either the provided DefaultOrderingStrategy or an other specified AbstractOrderingStrategy. Sorting is usefull for handling transparency properly. The Graph maintains a reference to its mother Scene in order to inform the Views when its content has change and that repainting is required. The add() method allows adding a AbstractDrawable to the scene Graph and updates all views' viewpoint in order to target the center of the scene.
    • Method Detail

      • dispose

        public void dispose()
      • add

        public void add(AbstractDrawable drawable,
                        boolean updateViews)
        Add a Drawable to the graph and call all views' so that they update their bounds according to their mode (automatic or manual). Addition is to the graph is synchronized.
        Parameters:
        drawable - : The drawable that must be added to the scene graph.
        update - : should be true if you wish to have all the views updated with old bounds including drawable bounds
      • add

        public void add(java.util.List<? extends AbstractDrawable> drawables,
                        boolean updateViews)
      • remove

        public boolean remove(AbstractDrawable drawable,
                              boolean updateViews)
        Delete a Drawable from the SceneGraph and update all views' viewpoint in order to target the center of the scene.
        Parameters:
        drawable - The drawable that must be deleted from the scene graph.
      • getAllGLBindedResources

        public java.util.List<IGLBindedResource> getAllGLBindedResources()
      • mountAllGLBindedResources

        public void mountAllGLBindedResources(com.jogamp.opengl.GL gl)
      • glMatrixMode

        public void glMatrixMode(com.jogamp.opengl.GL gl)
      • drawSimple

        public void drawSimple(com.jogamp.opengl.GL gl,
                               com.jogamp.opengl.glu.GLU glu,
                               Camera camera,
                               java.util.List<AbstractDrawable> components)
      • drawDecomposition

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

        public java.util.List<AbstractDrawable> getDecomposition()
        Expand all AbstractComposites instance into a list of atomic AbstractDrawable types and return all the current Graph primitives decomposition.
      • project

        public void project(com.jogamp.opengl.GL gl,
                            com.jogamp.opengl.glu.GLU glu,
                            Camera camera)
        Update all interactive AbstractDrawable projections
      • setTransform

        public void setTransform(Transform transform)
        Delegate transforming iteratively to all Drawable of this graph and stores the given transform for keeping the ability of retrieving it.
      • getTransform

        public Transform getTransform()
        Return the transform that was affected to this composite.
      • getBounds

        public BoundingBox3d getBounds()
        Creates and return a BoundingBox3d that embed all Drawable bounds, among those that have a defined bounding box.
      • toString

        public java.lang.String toString()
        Print out information concerning all Drawable of this composite.
        Overrides:
        toString in class java.lang.Object
      • isSort

        public boolean isSort()
      • setSort

        public void setSort(boolean sort)
        Set sort to false to desactivate decomposition of drawable. This bypass ranking polygons w.r.t. camera. This will produce visual cue if the scene is dynamic (changing the list of polygons or viewpoints).
        Parameters:
        sort -
      • getScene

        public Scene getScene()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.