JavaView® v2.12

jv.loader
Class PgMacroPatch

java.lang.Object
  |
  +--jv.object.PsObject
        |
        +--jv.loader.PgMacroPatch
All Implemented Interfaces:
java.lang.Cloneable, PsUpdateIf, java.io.Serializable

public class PgMacroPatch
extends PsObject

Macro patch obtained from reading a build file '*.bd' through PgBdLoader. An application is responsible to generate a geometries, like triangulation, out of a macro patch.

Each macro patch may be boundaed by simple straight lines or be a curve with sophisticated boundary constraints to be used in calculus of variations. See description of the file format '*.bd' for more details.

Version:
28.08.99 revised (kp) Name changed from PgBuildPatch to PgMacroPatch.
00.00.98 created (kp)
Author:
Konrad Polthier
See Also:
Serialized Form

Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, NUM_TAGS
 
Constructor Summary
PgMacroPatch(int aDim)
           
 
Method Summary
 PgElementSet buildElementSet(PgElementSet geom)
          Build an element set from the information of this macro patch.
 int getBndType()
           
 int getNumVertices()
           
 int getOrientation()
           
 void init()
          If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
 PgBndConstraint makeBndConstraint(PgBndConstraint aBndConstraint, int anInd)
          Compute the constraints of the boundary polygon with index anInd.
 PgPolygon makePolygon(PgPolygon aPolygon, int anInd)
          Compute the vertices of the boundary polygon with index anInd.
 void setBndType(int aNum)
           
 void setNumVertices(int aNum)
           
 void setOrientation(int aNum)
           
 void setVertex(PdVector[] vertex)
           
 void setVertexType(PiVector[] vertexType)
           
 
Methods inherited from class jv.object.PsObject
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, removeInspector, removeUpdateListener, setName, setParent, setTag, toString, update, updatePanels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PgMacroPatch

public PgMacroPatch(int aDim)
Method Detail

init

public void init()
Description copied from class: PsObject
If instance has missing name then assign default name 'object_NUMBER' where number is the total number of already created instances.
Overrides:
init in class PsObject

getNumVertices

public int getNumVertices()

setNumVertices

public void setNumVertices(int aNum)

getBndType

public int getBndType()

setBndType

public void setBndType(int aNum)

getOrientation

public int getOrientation()

setOrientation

public void setOrientation(int aNum)

setVertexType

public void setVertexType(PiVector[] vertexType)

setVertex

public void setVertex(PdVector[] vertex)

makePolygon

public PgPolygon makePolygon(PgPolygon aPolygon,
                             int anInd)
Compute the vertices of the boundary polygon with index anInd. Use information in PgMacroPatch available from *.bd files.

makeBndConstraint

public PgBndConstraint makeBndConstraint(PgBndConstraint aBndConstraint,
                                         int anInd)
Compute the constraints of the boundary polygon with index anInd. Use information in PgMacroPatch available from *.bd files.
Parameters:
aBndConstraint - constraint which is made, created if argument is null
anInd - index of edge in current macro patch

buildElementSet

public PgElementSet buildElementSet(PgElementSet geom)
Build an element set from the information of this macro patch. Surface boundary is created with constraints.
Parameters:
geom - initialized element set, created if argument is null.

JavaView® v2.12

The software JavaView® is copyright protected. All Rights Reserved.