Class LatticeModel

    • Constructor Detail

      • LatticeModel

        public LatticeModel()
    • Method Detail

      • getDefaultView

        public View getDefaultView()
        Description copied from class: Exhibit3D
        Returns the default View of this Exhibit. In the Exhibit3D class, the return value is a basic View3D.
        getDefaultView in class Exhibit3D
      • getCreateAnimation

        public Animation getCreateAnimation(View view)
        Description copied from class: Exhibit
        This method is called to "create" the Exhibit. It should return an animation that will show the process of creating the Exhibit, whatever that means. The animation is run when the Exhibit is first shown on the screen (in the 3dxm shell program) and when the "Create" action command is invoked. If the return value is null, then there is no creation animation for this exhibit. If the return value is non-null, then it can be expected that the animation will be installed in the View's Display.
        getCreateAnimation in class Exhibit
        view - A View that is displaying this Exhibit. The animation, if any, that is returned by this method will be installed in the View's display. If the view is null, than a creation animation that can run independently of a view could be returned.
        A creation animation for the given View of this Exhibit. The return value can be null to indicate that no creation animation is to be run.
      • getSettingsCommandsForView

        public ActionList getSettingsCommandsForView(View view)
        Description copied from class: Exhibit
        Returns a list of "settings commands" that can be applied to this Exibit, when displayed in the specified View.

        The items in the returned list must implement the ActionItem interface and generally belong to one of the classes AbstractActionVMM, ToggleAction, ActionRadioGroup, or ActionList. Null items represent separators. The idea is that the list items will be added to a menu or otherwise presented to the user so that the user can invoke the commands (with ActionList items representing submenus).

        In this top-level Exhibit class, the list contains several commands that call up dialogs where the user can change various settings. (These include: "Set Parameters", "Set Morphing", "Set Number of Frames", and "Set Visible Ranges".) Note that for these commands, the View parameter is used simply to get the View's Display, which is used as the parent of the dialog.

        In general, when overriding this method, subclasses should call "super.getSettingsCommandsForView()" to obtain a list of commands from the superclass. It can then add additional commands or remove or disable commands that are in the list from the superclass.

        getSettingsCommandsForView in class Exhibit
      • getDefaultTransform

        public Transform getDefaultTransform(View view)
        Description copied from class: Exhibit3D
        Returns the default transform for use in the specified View. If the View is an instance of the View3D class, then a Transform3D object is returned; this object is constructed from the exhibit's default viewpoint and default window. If the view is not a View3D, then a 2D Transform is returned that is constructed using the exhibit's default window only.
        getDefaultTransform in class Exhibit3D
        view - The View is provided as a parameter since there might be several types of View appropriate for a given exhibit, and they might require different Transforms. In particular, for example, a 3D View will require a 3D Transform.
        In this top-level Exhibit class, the Transform that is returned is a 2D Transform created by calling "new Transform(xmin,xmax,ymin,ymax)" where the values of xmin, xmax, ymin, and ymax are taken from the array returned by getDefaultWindow.
        See Also:
        Exhibit3D.setDefaultViewpoint(Vector3D), Exhibit.setDefaultWindow(double, double, double, double)

SCaVis 2.2 © jWork.ORG