|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jvx.surface.PgDomainDescr
Two-dimensional domain for parametrized surfaces with variable size and discretization.
Info panel allows to adjust size and discretization of domain and grid.
The domain in R^2 is the rectangle [uMin,vMin]x[uMax,vMax] with
numULines resp. numVLines grid lines in u-horizontal resp.
v-vertical direction.
Single parameter lines may be displayed by linking uMin and uMax resp vMin and vMax together.
PgParmSurface,
Serialized Form| Field Summary |
| Fields inherited from class jv.object.PsObject |
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 Summary | |
PgDomainDescr(int aVertexDim)
Create a new domain descriptor of a planar rectangle and its discretization. |
|
| Method Summary | |
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. |
boolean |
eval(double[] z,
int ix,
int iy)
Compute position in domain at specified grid vertex (int, int). |
int |
getNumULines()
Set number of grid lines in u direction. |
int |
getNumVLines()
Set number of grid lines in v direction. |
double |
getUMax()
|
double |
getUMin()
|
double |
getVMax()
|
double |
getVMin()
|
void |
init()
Initialize and reset data structure and all instance variables. |
boolean |
isShowingULine()
Check whether single u-line is showing or full surface. |
boolean |
isShowingVLine()
Check whether single v-line is showing or full surface. |
void |
setDiscr(int uLines,
int vLines)
Set number of grid lines in u/v direction. |
void |
setDiscrBounds(int uMin,
int vMin,
int uMax,
int vMax)
Set bounds of discretization sliders. |
void |
setMaxSize(double uMin,
double vMin,
double uMax,
double vMax)
Set maximal size of domain in u/v direction to the rectangle [uMin,vMin]x[uMax,vMax]. |
void |
setNumULines(int aNum)
Set number of grid lines in u direction. |
void |
setNumVLines(int aNum)
Set number of grid lines in v direction. |
void |
setSize(double uMin,
double vMin,
double uMax,
double vMax)
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 |
setVMax(double vMax)
|
void |
setVMin(double vMin)
|
void |
showULine(boolean flag)
Switch between showing a single u-parameter line and the full surface. |
void |
showVLine(boolean flag)
Switch between showing a single v-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. |
| Methods inherited from class jv.object.PsObject |
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 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PgDomainDescr(int aVertexDim)
Note, currently the dimension of the rectangle must be 2.
| Method Detail |
public void init()
init in class PsObjectpublic java.lang.Object clone()
clone in class PsObjectcopy(PsObject)public void copy(PsObject object)
copy in class PsObjectPsObject.clone()public java.lang.String toString()
toString in class PsObjectpublic boolean update(java.lang.Object event)
update in interface PsUpdateIfupdate in class PsObjectPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public boolean isShowingULine()
public boolean isShowingVLine()
public void showULine(boolean flag)
public void showVLine(boolean flag)
public void setMaxSize(double uMin,
double vMin,
double uMax,
double vMax)
[uMin,vMin]x[uMax,vMax].
public void setSize(double uMin,
double vMin,
double uMax,
double vMax)
[uMin,vMin]x[uMax,vMax].
public double getUMin()
public double getUMax()
public double getVMin()
public double getVMax()
public void setUMin(double uMin)
public void setUMax(double uMax)
public void setVMin(double vMin)
public void setVMax(double vMax)
public int getNumULines()
public int getNumVLines()
public void setNumULines(int aNum)
public void setNumVLines(int aNum)
public void setDiscr(int uLines,
int vLines)
public void setDiscrBounds(int uMin,
int vMin,
int uMax,
int vMax)
public boolean eval(double[] z,
int ix,
int iy)
z - double array which will contain position in domain on return.ix - grid vertex (ix,iy) at which to evaluate domain.iy - grid vertex (ix,iy) at which to evaluate domain.
true on success, false if missing or void z.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||