Documentation of 'jvx.surface.PgGraph' Java class
PgGraph ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.surface

Class PgGraph

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PgGeometryIf


    public class PgGraph
    extends PgElementSet
    Graph of one-dimensional function over a two-dimensional, rectangular domain.

    Use PnSurfaceGraph if more flexibility is needed.

    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    03.12.04, 2.30 revised (ep) Changed domain to be a PgDomain; is now only a graph of an R^2->R function.
    15.10.04, 2.20 revised (kp) Walls implemented.
    26.07.04, 2.10 revised (kp) Class of instance variable m_domain changed to PgDomain.
    16.01.04, 2.00 revised (kp) Copy(), clone() and default initialization of domain and scalar added.
    29.05.03, 1.30 revised (kp) Handling of non-conforming meshes corrected.
    20.11.02, 1.20 revised (ep) Removed update bug.
    19.11.02, 1.10 revised (ep) Added controls for 'normal variation', scaling and offset.
    22.08.99, 1.00 created (kp)
    • Constructor Detail

      • PgGraph

        public PgGraph(int dim)
        Deprecated. since 2004, use PgGraph() instead since only dim=3 is supplied.
        Create a graph of a scalar-valued function over a rectangular 2D domain. The resulting graph surface lives in 2+1=3-dimensional space.
      • PgGraph

        public PgGraph()
        Create a graph of a scalar-valued function over a rectangular 2D domain. The resulting graph surface lives in 2+1=3-dimensional space.
    • Method Detail

      • init

        public void init()
        Initialize sliders.
        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.
        Specified by:
        clone in interface PgGeometryIf
        Overrides:
        clone in class PgElementSet
        See Also:
        copy(PsObject)
        Version:
        16.01.04, 1.00 created (kp)
      • copy

        public void copy(PsObject object)
        Copy a geometry into this geometry.

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

        Overrides:
        copy in class PgElementSet
        See Also:
        PgElementSet.clone()
        Version:
        16.01.04, 1.20 revised (kp) Copy all major instance variables instead of linking them.
        08.11.02, 1.10 revised (kp) Argument changed to PsObject from PgGeometry.
      • toString

        public java.lang.String toString()
        Create a multi-line string representation with detailed information about all instance variables.
        Specified by:
        toString in interface PgGeometryIf
        Overrides:
        toString in class PgElementSet
      • setNumVertices

        public void setNumVertices(int num)
        Get domain of graph.
        Overrides:
        setNumVertices in class PgPointSet
      • getDomain

        public PgDomain getDomain()
        Get domain of graph.
      • getSurface

        public PgElementSet getSurface()
        Get surface of graph.
      • setSurfaces

        public void setSurfaces(PgDomain domain,
                                PgElementSet surface)
        Assign a domain and image surface which provide the data for this graph. The sum of domain and surface dimensions must be equal to the dimension of this graph surface.

        Number of vertices of domain and surface must be equal. The number of vertices and the mesh connectivity of this graph are both adjusted to the properties of the domain.

        This graph is registered as update listener of the new arguments, see addUpdateListener.

        Version:
        17.01.04, 1.10 revised (kp) Register as updateListener instead of parent.
      • getFunction

        public PuFunction getFunction()
        Get function object of the graph.
      • setFunction

        public boolean setFunction(PuFunction function)
        Set function object of the graph whose number of functions must be equal to the dimension of the surface component of the graph, i.e. equal to the dimension of vertices of the graph minus the domain.

        This graph is registered as update listener of the new function, see addUpdateListener.

        Version:
        01.08.04, 1.20 revised (kp) No longer invoke update(), must be called externally.
        17.01.04, 1.10 revised (kp) Register as updateListener instead of parent.
      • isEnabledSynchronization

        public boolean isEnabledSynchronization()
        Check if synchronization of material properties from graph to domain is enabled.
        Since:
        JavaView 3.28.003
        Version:
        17.06.04, 1.00 created (kp)
      • setEnabledSynchronization

        public void setEnabledSynchronization(boolean flag)
        Enable synchronization of material properties from graph to domain.
        Since:
        JavaView 3.28.003
        Version:
        17.06.04, 1.00 created (kp)
      • isShowingDomain

        public boolean isShowingDomain()
        Check if display of domain is enabled.
        Since:
        JavaView 3.28.003
        Version:
        17.06.04, 1.00 created (kp)
      • setShowingDomain

        public void setShowingDomain(boolean flag)
        Enable display of domain.
        Since:
        JavaView 3.28.003
        Version:
        17.06.04, 1.00 created (kp)
      • isShowingWalls

        public boolean isShowingWalls()
        Check if display of bounding walls is enabled.
        Since:
        JavaView 3.58.004
        Version:
        15.10.04, 1.00 created (kp)
      • setShowingWalls

        public void setShowingWalls(boolean flag)
        Enable display of bounding walls.
        Since:
        JavaView 3.58.004
        Version:
        15.10.04, 1.00 created (kp)
      • getOffsetSlider

        public PuDouble getOffsetSlider()
        Get scaling factor for graph (in every component of target space and in direction of domain vertex normals if m_bShowAsNormalVariation) - only the visualization has offset.
        Since:
        JavaView 2.44
      • getOffset

        public double getOffset()
        Get scaling factor for graph (in every component of target space and in direction of domain vertex normals if m_bShowAsNormalVariation) - only the visualization has offset.
        Since:
        JavaView 2.44
      • setOffset

        public void setOffset(double off)
        Set scaling factor for graph (in every component of target space and in direction of domain vertex normals if m_bShowAsNormalVariation) - only the visualization has offset.
        Since:
        JavaView 2.44
      • getScalingFactor

        public double getScalingFactor()
        Get offset of graph (in every component of target space and in direction of domain vertex normals if m_bShowAsNormalVariation) - only the visualization is scaled.
        Since:
        JavaView 2.44
      • setScalingFactor

        public void setScalingFactor(double fac)
        Set offset of graph (in every component of target space and in direction of domain vertex normals if m_bShowAsNormalVariation) - only the visualization is scaled.
        Since:
        JavaView 2.44
      • makeSurface

        public void makeSurface()
        Recompute surface vertices after domain or function have changed.
      • makeVertices

        public void makeVertices()
        Recompute graph vertices after domain or surface have changed.
      • setSurfaceVertex

        public boolean setSurfaceVertex(int anIndex,
                                        PdVector aVertex)
        Assign vertex of surface with given index. The corresponding domain vertex is not modified.
        Parameters:
        anIndex - index of modified vertex
        aVertex - new vertex data
        Version:
        30.01.04, 2.00 revised (kp) Renamed to setSurfaceVertex() from setVertex() since collision with PgPointSet#setVertex().
      • compute

        public void compute()
        Perform all computations to update graph.
        Since:
        JavaView v.3.50.001
        Version:
        26.07.04, 1.00 created (kp) For compatibility reason with other geometry classes.
"JavaView? v5.03.003"

"

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

You see the box below because you did not login.