Class SurfaceParametric

    • Constructor Detail

      • SurfaceParametric

        public SurfaceParametric()
        Adds umin, umax, vmin, and vmax as parameters of the exhibit.
    • Method Detail

      • surfacePoint

        public abstract Vector3D surfacePoint(double u,                    double v)
        The parametric equations that define the surface, given as a function from the uv-plane into R3. The return value of this function can be null, indicating that the function is undefined for the given u and v.
      • setPatchCount

        public void setPatchCount(int unumber,                 int vnumber)
        Set number of divisions for U and V variable
        unumber - number of divisions for U
        vnumber - number of divisions for V
      • getPatchCountU

        public int getPatchCountU()
        Get the current value of Nr of patches in U
        number of patches in U
      • getPatchCountV

        public int getPatchCountV()
        Get number of patches in V
        number of patches in V
      • setViewpoint

        public void setViewpoint(double x,                double y,                double z)
        Set view point in X, Y, Z.
        x - X point
        y - Y point
        z - Z point
      • setU

        public void setU(double min,        double max)
        Set minimum and maximum values for U
        min - value for Umin
        max - value for Umax
      • setV

        public void setV(double min,        double max)
        Set minimum and maximum values for V
        min - value for Vmin
        max - value for Vmax
      • setEpsilon

        public void setEpsilon(double epsilon)
        Set precision for derivative of function.
        epsilon - epsilon value (0.00005 is default).
      • deriv_u

        public Vector3D deriv_u(double u,               double v)
        Returns an approximation for the partial derivative in the direction u at a specified (u,v) point.
      • deriv_v

        public Vector3D deriv_v(double u,               double v)
        Returns an approximation for the partial derivative in the direction v at a specified (u,v) point.
      • surfaceNormal

        public Vector3D surfaceNormal(double u,                     double v)
        Returns the Surface Normal, by default from numerical differentiation. For Weierstrass surfaces the known Gauss map allows to override the numerical differentiation.
      • removeView

        public void removeView(View view)
        Overridden to shut down the task manager that is used for parallelization, when there are no more views of the exhibit.
        removeView in class Exhibit
        view - The view that is no longer displaying this exhibit.
      • getActionsForView

        public ActionList getActionsForView(View view)
        Description copied from class: Exhibit
        This method returns a list of ActionItem that can be applied to a View that contains this Exhibit. If the view parameter is null, it should return actions that are appropriate in any View. View is presumably one that is displaying this Exhibit.

        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.

        In this top-level Exhibit class, the return value is a list that contains one object of type AbstractActionVMM. The action represents the "Create" command, which is meant to run the "create animation" of the Exhibit.

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

        getActionsForView in class Exhibit
      • addExtraXML

        public void addExtraXML(Document containingDocument,               Element viewElement)
        Description copied from class: Exhibit
        This method is called when an XML representation of this exhibit is being constructed by the SaveAndRestore class to give the exhibit a chance to write any extra infomation that is not saved by default. Any Parameters associated with the exhibit are saved automatically. Note that Decorations associated with the exhibit are NOT saved automatically UNLESS the decoration class is marked with a VMMSave annotation. Property variables will also be saved automatically IF they are marked with VMMSave annotations.

        The method in this top level class does nothing.

        When a subclass overrides this method, it should ordinarily start by calling super.addExtraXML(containingDocument,exhibitElement) to make sure that information from the superclass is saved.

        addExtraXML in class Exhibit
        containingDocument - The overall XML document that contains the exhibit Element that is being created. This parameter is necessary because it is needed to create any nested subelements that are to be added to the exhibit element.
        viewElement - The XML element that is being constructed. This element already exists; the purpose of this method to add any extra information that would be needed to reconstruct this exhibit object from the XML represenation.
        See Also:
      • gaussMap

        public Vector3D gaussMap(double u,                double v)

SCaVis 2.2 © jWork.ORG