Documentation of 'vgp.surface.common.PgSurfaceDescr' Java class
PgSurfaceDescr ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.surface.common

Class PgSurfaceDescr

    • Constructor Detail

      • PgSurfaceDescr

        public PgSurfaceDescr()
    • Method Detail

      • init

        public void init()
        Description copied from class: PgDomainDescr
        Initialize and reset data structure and all instance variables.
        Overrides:
        init in class PgDomainDescr
      • clone

        public java.lang.Object clone()
        Duplicate geometry by recursively cloning all instance variables except inspector panels and lists of registered listeners. The parent relationship is maintained only within this class but not to external classes. In general, all links of the clone to external objects are set to null.
        Overrides:
        clone in class PgDomainDescr
        Since:
        JavaView 2.89.000
        See Also:
        copy(PsObject)
        Version:
        30.07.03, 1.00 created (kp)
      • copy

        public void copy(PsObject object)
        Copy instance variables by duplication, not by copying a reference.

        The argument was changed from PgGeometry to PsObject since there were problems in J/Link which preferred to use jv.object.PsObject#copy(PsObject) instead of jv.project.PgGeometry#copy(PsObject).

        Overrides:
        copy in class PgDomainDescr
        Since:
        JavaView 2.89.000
        See Also:
        clone()
        Version:
        30.07.03, 1.00 created (kp)
      • getAmbientSpace

        public int getAmbientSpace()
        Get ambient space used in model transformations.
      • setAmbientSpace

        public void setAmbientSpace(int mode)
        Set ambient space used in model transformations.
      • getAmbientProjection

        public int getAmbientProjection()
        Get projection mode of ambient space used in model transformations.
      • setAmbientProjection

        public void setAmbientProjection(int mode)
        Set projection mode of ambient space used in model transformations.
      • getDimOfSurface

        public int getDimOfSurface()
        Get dimension of ambient space in which surface is immersed.
      • setDimOfSurface

        public void setDimOfSurface(int dim)
        Set dimension of ambient space in which surface is immersed.

        If function expressions exist, then the number of function expressions must be equal to the surface dimension. Otherwise, the number of expressions is adjusted in this method.

      • getListOfSurfaces

        public static java.lang.String[] getListOfSurfaces()
        Get list of existing surface descriptors.
      • getListOfScenes

        public static java.lang.String[] getListOfScenes()
        Get list of existing scenes.
      • getFunction

        public PuFunction getFunction()
        Get function object, e.g. to modify function strings.
      • setFunction

        public boolean setFunction(PuFunction fun)
        Set function object, which has been setup somewhere else. The number of functions must not be modified after this assignment. Each function must have variables 'u' and 'v'.
      • useFunctionExpression

        public boolean useFunctionExpression()
        Check whether function string has been modified by user.
      • useFunctionExpression

        public void useFunctionExpression(boolean flag)
        Set flag whether function string has been modified by user.
      • isUPeriodic

        public boolean isUPeriodic()
        Determine if surface is periodic in u-direction. This method returns false, but will be overwritten by surface which are periodic.
      • isVPeriodic

        public boolean isVPeriodic()
        Determine if surface is periodic in v-direction. This method returns false, but will be overwritten by surface which are periodic.
      • calc_f

        public boolean calc_f(PdVector f,
                              double u,
                              double v)
        Internal function called by eval(..) to compute function value. It is ensured by the calling eval() function that argument vector exists and has correct size.

        If function set flag m_bUseFunctionExpression==false then we use this indicator that function has not been overridden and use the string functions.

        This function must be overwritten by subclasses to compute surfaces, for example, if a subclass wants to perform the function calculation itself.

        Parameters:
        f - vector where to place the function values.
        Returns:
        true if function has been overridden and evaluated successfully.
        See Also:
        eval(PdVector, double, double)
        Author:
        Konrad Polthier
        Version:
        25.08.03, 1.10 revised (kp) Made public to avoid javadoc warnings.
        00.00.97, 1.00 created (kp)
      • eval

        public PdVector eval(PdVector f,
                             double u,
                             double v)
        Buffered version of calc_f, should not be overridden. Size of argument vector f will be modified if vector is too small.
        Version:
        04.07.99, 1.01 revised (kp) Evaluation of function strings included.
      • df_dU

        public final PdVector df_dU(double u,
                                    double v)
        Buffered versions, used by all other classes, should not be overwritten.
      • df_dV

        public final PdVector df_dV(double u,
                                    double v)
      • df

        public final PdMatrix df(double u,
                                 double v)
      • ddf_dUdU

        public final PdVector ddf_dUdU(double u,
                                       double v)
      • ddf_dUdV

        public final PdVector ddf_dUdV(double u,
                                       double v)
      • ddf_dVdV

        public final PdVector ddf_dVdV(double u,
                                       double v)
      • normal

        public final PdVector normal(double u,
                                     double v)
      • dN_dU

        public final PdVector dN_dU(double u,
                                    double v)
      • dN_dV

        public final PdVector dN_dV(double u,
                                    double v)
      • dN

        public final PdMatrix dN(double u,
                                 double v)
      • firstFundamental

        public final PdMatrix firstFundamental(double u,
                                               double v)
      • secondFundamental

        public final PdMatrix secondFundamental(double u,
                                                double v)
      • weingarten

        public final PdMatrix weingarten(double u,
                                         double v)
      • christoffel

        public final PdMatrix[] christoffel(double u,
                                            double v)
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.