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

Class PgSurface

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PgGeometryIf
    Direct Known Subclasses:
    PgKleinBottle


    public class PgSurface
    extends PgElementSet
    Computes parameterized surfaces defined by a surface descriptor. Surface is not constrained to 3D Euclidean space but may lie in spaces like the 3-sphere, 3-hyperbolic space, or a higher dimensional Euclidean space.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    04.08.03, 1.20 revised (kp) Clone and copy implemented.
    06.05.01, 1.10 revised (kp) Ambient space settings forwarded to descriptor.
    11.06.99, 1.02 revised (ep) computeSurface: argument removed.
    09.06.99, 1.01 revised (kp) Always check whether descriptor is available.
    07.12.98, 1.00 created (kp)
    • Constructor Detail

      • PgSurface

        public PgSurface()
        Constructor of a parametrized surface in three-dimensional space.

        This constructor allows to create a geometry by specifying the class name as string. By default, showing of vertices is enabled.

      • PgSurface

        public PgSurface(int dim)
        Constructor of a parametrized surface with vertex dimension.
        Parameters:
        dim - number of coordinates of each vertex
    • Method Detail

      • init

        public void init()
        Description copied from class: PgElementSet
        Initialize and reset instance variables after call to super.init().
        Overrides:
        init in class PgElementSet
      • 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.
        Specified by:
        clone in interface PgGeometryIf
        Overrides:
        clone in class PgElementSet
        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 PgElementSet
        Since:
        JavaView 2.89.000
        See Also:
        clone()
        Version:
        30.07.03, 1.00 created (kp)
      • isEnabledAlternateGrid

        public boolean isEnabledAlternateGrid()
        Check if ordinary uv-mesh and diamond mesh is enabled where every other row is shifted.
      • setEnabledAlternateGrid

        public void setEnabledAlternateGrid(boolean bAlternate)
        Switch among ordinary uv-mesh to diamond mesh where every other row is shifted.
      • getDiamondDirection

        public boolean getDiamondDirection()
        Check if diamond is oriented in u- or v-direction.
      • setDiamondDirection

        public void setDiamondDirection(boolean bDirection)
        Determine if diamond is oriented in u- or v-direction.
      • isEnabledDualGrid

        public boolean isEnabledDualGrid()
        Check if dual grid is enabled.
      • setEnabledDualGrid

        public void setEnabledDualGrid(boolean bDualGrid)
        Determine if dual grid is enabled.
      • setAmbientSpace

        public void setAmbientSpace(int mode)
        Set ambient space used in model transformations. This method overwrites the superclass method to notify its descriptor.
        Specified by:
        setAmbientSpace in interface PgGeometryIf
        Overrides:
        setAmbientSpace in class PgGeometry
        Parameters:
        mode - One of the values PgGeometryIf#AMBIENT_...
      • setAmbientProjection

        public void setAmbientProjection(int mode)
        Set projection mode of ambient space used in model transformations. This method overwrites the superclass method to notify its descriptor.
        Specified by:
        setAmbientProjection in interface PgGeometryIf
        Overrides:
        setAmbientProjection in class PgGeometry
        Parameters:
        mode - One of the values PgGeometryIf#PROJ_...
      • setSurface

        public boolean setSurface(int surfaceID)
        Creates a surface descriptor and assign it using setDescr(PgSurfaceDescr descr).
        Parameters:
        surfaceID - choose from PgSurfaceDescr, e.g. PgSurfaceDescr.KLEINBOTTLE
        Since:
        JavaView v4.70.010
        Version:
        26.10.16, 1.00 created (kp)
      • setSurfaceName

        public boolean setSurfaceName(java.lang.String aSurface,
                                      java.lang.String baseSurfaceName)
        Creates a surface descriptor and assign it using setDescr(PgSurfaceDescr descr).

        This method is a shortcut and should be avoided since this method must instantiate a class by name.

      • getDescr

        public PgSurfaceDescr getDescr()
        Get the descriptor of this surface.
      • setDescr

        public void setDescr(PgSurfaceDescr descr)
        Assign a surface descriptor which completely describes this surface. This surface is registered as parent of the descriptor and obtains its name as surface name.
      • computeSurface

        public void computeSurface()
        Recompute surface using current descriptor.
        Author:
        Konrad Polthier
        Version:
        12.06.99, 1.03 revised (kp) Check for empty descriptor.
        11.06.99, 1.02 revised (ep) Argument removed.
        07.12.98, 1.00 created (kp)
"JavaView? v5.03.003"

"

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

Ads help maintain this website.