public class PgMacroPatch extends PsObject
Each macro patch may be bounded 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.
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
Constructor and Description |
---|
PgMacroPatch(int aDim)
Constructs a macro patch with given dimension of ambient space.
|
Modifier and Type | Method and Description |
---|---|
PgElementSet |
buildElementSet(PgElementSet geom)
Build an element set from the information of this macro patch.
|
int |
getBndType() |
int |
getDimVertices()
Get dimension of vertices.
|
int |
getNumVertices()
Get dimension of macro vertices.
|
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)
Set dimension of macro vertices.
|
void |
setOrientation(int aNum) |
void |
setVertex(PdVector[] vertex)
Set reference to array of macro vertices.
|
void |
setVertexType(PiVector[] vertexType) |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, update, updatePanels
public PgMacroPatch(int aDim)
public void init()
PsObject
public int getDimVertices()
public int getNumVertices()
public void setNumVertices(int aNum)
public int getBndType()
public void setBndType(int aNum)
public int getOrientation()
public void setOrientation(int aNum)
public void setVertexType(PiVector[] vertexType)
public void setVertex(PdVector[] vertex)
public PgPolygon makePolygon(PgPolygon aPolygon, int anInd)
public PgBndConstraint makeBndConstraint(PgBndConstraint aBndConstraint, int anInd)
aBndConstraint
- constraint which is made, created if argument is nullanInd
- index of edge in current macro patchpublic PgElementSet buildElementSet(PgElementSet geom)
If container element set is null, then a new element set is created.
geom
- initialized element set, created if argument is null."