JavaView® v2.00.008

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

Field Summary
protected  PiVector[] m_bndShape
          Same size as m_element, one PiVector per edge.
protected  java.util.BitSet[] m_bndShapeBits
          Same size as m_element, one bitSet per edge.
protected  int m_bndType
           
protected  int m_dim
           
protected  PiVector m_element
          Indices of those vertices in m_vertex which are the major vertices of the present patch.
protected  int m_numULines
           
protected  int m_numUSubs
           
protected  int m_numVLines
           
protected  int m_numVSubs
           
protected  int m_orientation
           
protected  PdVector[] m_vertex
          Reference to PgBdLoader instance variable.
protected  PiVector[] m_vertexType
          Reference to PgBdLoader instance variable.
 
Fields inherited from class jv.object.PsObject
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_MATERIAL_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_SELECTED, IS_USED, m_infoPanel, m_name, m_panelList, m_parent, m_tag, m_updateList, 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, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_vertexType

protected PiVector[] m_vertexType
Reference to PgBdLoader instance variable.

m_vertex

protected PdVector[] m_vertex
Reference to PgBdLoader instance variable.

m_element

protected PiVector m_element
Indices of those vertices in m_vertex which are the major vertices of the present patch.

m_bndShapeBits

protected java.util.BitSet[] m_bndShapeBits
Same size as m_element, one bitSet per edge.

m_bndShape

protected PiVector[] m_bndShape
Same size as m_element, one PiVector per edge.

m_dim

protected int m_dim

m_bndType

protected int m_bndType

m_orientation

protected int m_orientation

m_numULines

protected int m_numULines

m_numVLines

protected int m_numVLines

m_numUSubs

protected int m_numUSubs

m_numVSubs

protected int m_numVSubs
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.00.008

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