public class PuIntervalDescr extends PsObject
[uMin,vMin]
with
numULines
sample points in u-horizontal direction.PgDomainDescr
,
Serialized FormHAS_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 |
---|
PuIntervalDescr()
Create a new domain descriptor of a planar rectangle and its discretization.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Duplicate geometry by recursively cloning all instance variables
except inspector panels and lists of registered listeners.
|
void |
copy(PsObject object)
Copy a geometry into this geometry.
|
double |
eval(int ind)
Compute position in interval at given grid point.
|
int |
getDiscr()
Get number of sample points.
|
double |
getUMax() |
double |
getUMin() |
void |
init()
Initialize and reset data structure and all instance variables.
|
boolean |
isShowingULine()
Check whether single u-line is showing or full surface.
|
void |
setDiscr(int num)
Set number of sample points.
|
void |
setDiscrBounds(int uMin,
int uMax)
Set bounds of discretization sliders.
|
void |
setMaxSize(double uMin,
double uMax)
Set maximal size of domain in u/v direction to the rectangle
[uMin,vMin]x[uMax,vMax] . |
void |
setSize(double uMin,
double uMax)
Set current size of domain in u/v direction to the rectangle
[uMin,vMin]x[uMax,vMax] . |
void |
setUMax(double uMax) |
void |
setUMin(double uMin) |
void |
showULine(boolean flag)
Switch between showing a single u-parameter line and the full surface.
|
java.lang.String |
toString()
Create a multi-line string representation
with detailed information about all instance variables.
|
boolean |
update(java.lang.Object event)
Catch all events from integer and double instance variables.
|
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, updatePanels
public PuIntervalDescr()
Note, currently the dimension of the rectangle must be 2.
public void init()
public java.lang.Object clone()
clone
in class PsObject
copy(PsObject)
public void copy(PsObject object)
copy
in class PsObject
PsObject.clone()
public java.lang.String toString()
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PsObject
event
- carries a lot of informationPsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public boolean isShowingULine()
public void showULine(boolean flag)
public void setMaxSize(double uMin, double uMax)
[uMin,vMin]x[uMax,vMax]
.public void setSize(double uMin, double uMax)
[uMin,vMin]x[uMax,vMax]
.public double getUMin()
public void setUMin(double uMin)
public double getUMax()
public void setUMax(double uMax)
public int getDiscr()
public void setDiscr(int num)
public void setDiscrBounds(int uMin, int uMax)
public double eval(int ind)
ind
- index of interval vertex at which to evaluate."