public class PgSurface_Zoll extends PgSurfaceDescr
Parametrized surface given by method, or interactively, by function expressions.
If the functions of a surface are specified in calc_f method
and, later, interactively edited, then the interactive expressions are further used.
This is important for evaluation of higher order differentials since they are only
approximated using finite differences in the later case.
PgSurfaceDescr,
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 |
|---|
PgSurface_Zoll() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
calc_f(PdVector fun,
double u,
double v)
Internal function called by eval(..) to compute function value.
|
void |
init()
Initialize and reset data structure and all instance variables.
|
boolean |
isUPeriodic()
Determine if surface is periodic in u-direction.
|
boolean |
polint(double[] xa,
double[] ya,
int off,
int n,
double x,
double[] y,
double[] c,
double[] d) |
double |
qromb(double a,
double b) |
double |
trapzd(double a,
double b,
int n) |
boolean |
update(java.lang.Object event)
Catch events from function strings.
|
addParameter, christoffel, clone, copy, ddf_dUdU, ddf_dUdV, ddf_dVdV, df_dU, df_dV, df, dN_dU, dN_dV, dN, eval, firstFundamental, getAmbientProjection, getAmbientSpace, getDimOfSurface, getFunction, getListOfScenes, getListOfSurfaces, getParameter, getParameters, isVPeriodic, normal, secondFundamental, setAmbientProjection, setAmbientSpace, setDimOfSurface, setFunction, useFunctionExpression, useFunctionExpression, weingarteneval, getNameOfLines, getNumULines, getNumVLines, getUMax, getUMin, getVMax, getVMin, isShowingULine, isShowingVLine, setDiscr, setDiscrBounds, setMaxSize, setNameOfLines, setNumULines, setNumVLines, setSize, setUMax, setUMin, setVMax, setVMin, showULine, showVLine, toStringaddInspector, 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, updatePanelspublic void init()
PgDomainDescrinit in class PgSurfaceDescrpublic boolean update(java.lang.Object event)
PgSurfaceDescrupdate in interface PsUpdateIfupdate in class PgSurfaceDescrevent - carries a lot of informationPsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)public boolean isUPeriodic()
PgSurfaceDescrisUPeriodic in class PgSurfaceDescrpublic boolean calc_f(PdVector fun, double u, double v)
PgSurfaceDescr
If function set flag m_bUseFunctionExpression==false then we use this indicator that
function has not been overridden and use the string functions.
This function must be overwritten by subclasses to compute surfaces, for example, if a subclass wants to perform the function calculation itself.
calc_f in class PgSurfaceDescrfun - vector where to place the function values.true if function has been overridden and evaluated successfully.PgSurfaceDescr.eval(PdVector, double, double)public double qromb(double a,
double b)
public double trapzd(double a,
double b,
int n)
public boolean polint(double[] xa,
double[] ya,
int off,
int n,
double x,
double[] y,
double[] c,
double[] d)
xa - given argument arrayya - given valuesoff - offset index into xa and yan - number of given pairs (xa, ya) counting from off positionx - argument where to evaluatey - contains computed values of y and dy.c - array passed as arg to avoid repeated allocationd - array passed as arg to avoid repeated allocation"