vgp.surface.common
Class PgSurface_Torus
java.lang.Object
|
+--jv.object.PsObject
|
+--jvx.surface.PgDomainDescr
|
+--vgp.surface.common.PgSurfaceDescr
|
+--vgp.surface.common.PgSurface_Torus
- All Implemented Interfaces:
- java.lang.Cloneable, PsUpdateIf, java.io.Serializable
- public class PgSurface_Torus
- 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.
- Version:
- 00.00.99, 1.00 revised (sk)
00.00.99, 1.00 created (sk)
- Author:
- Samy Khadem
- See Also:
- Serialized Form
| Fields inherited from class vgp.surface.common.PgSurfaceDescr |
m_bUseFunctionExpression, m_christoffel, m_ddf_dUdU, m_ddf_dUdV, m_ddf_dVdV, m_df, m_df_dU, m_df_dV, m_dN, m_dN_dU, m_dN_dV, m_f, m_firstFundamental, m_function, m_normal, m_numFunctions, m_numVariables, m_parm, m_secondFundamental, m_weingarten, SCENES, SURFACES |
| Fields inherited from class jvx.surface.PgDomainDescr |
m_bMaxSizeEnabled, m_bShowULine, m_bShowVLine, m_dimOfVertices, m_numULines, m_numVLines, m_stripSize, m_uMax, m_uMin, m_vMax, m_vMin |
| 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 |
| Methods inherited from class vgp.surface.common.PgSurfaceDescr |
addParameter, calc_christoffel, calc_df, calc_dN_dU, calc_dN_dV, calc_dN, calc_firstFundamental, calc_normal, calc_secondFundamental, calc_weingarten, christoffel, ddf_dUdU, ddf_dUdV, ddf_dVdV, df_dU, df_dV, df, dN_dU, dN_dV, dN, eval, firstFundamental, getDomainPanel, getFunction, getListOfScenes, getListOfSurfaces, getParameter, getParameters, normal, secondFundamental, setFunction, useFunctionExpression, useFunctionExpression, weingarten |
| Methods inherited from class jvx.surface.PgDomainDescr |
eval, getNumULines, getNumVLines, getUMax, getUMin, getVMax, getVMin, isShowingULine, isShowingVLine, setDiscr, setDiscrBounds, setMaxSize, setNumULines, setNumVLines, setSize, setUMax, setUMin, setVMax, setVMin, showULine, showVLine |
| 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, updatePanels |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_innerRadius
protected PuDouble m_innerRadius
m_tubeRadius
protected PuDouble m_tubeRadius
PgSurface_Torus
public PgSurface_Torus()
init
public void init()
- Description copied from class:
PgDomainDescr
- Initialize and reset data structure and all instance variables.
- Overrides:
init in class PgSurfaceDescr
isUPeriodic
public boolean isUPeriodic()
- Overrides:
isUPeriodic in class PgSurfaceDescr
isVPeriodic
public boolean isVPeriodic()
- Overrides:
isVPeriodic in class PgSurfaceDescr
update
public boolean update(java.lang.Object event)
- Description copied from class:
PgSurfaceDescr
- Catch events from function strings.
Update the class whenever a child has changed.
Method is usually invoked from the children.
- Overrides:
update in class PgSurfaceDescr
- Following copied from class:
jv.object.PsObject
- See Also:
PsObject.setParent(PsUpdateIf),
PsObject.getFather(),
PsObject.addUpdateListener(PsUpdateIf)
calc_f
public boolean calc_f(PdVector fun,
double u,
double v)
- Description copied from class:
PgSurfaceDescr
- Internal function called by eval(..) to compute function value. It is ensured by the
calling eval() function that argument vector exists and has correct size.
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 should be overwritten by subclasses to compute surfaces.
HACK: Access lowered to public since other javadoc comments refer to class.
- Overrides:
calc_f in class PgSurfaceDescr
- Following copied from class:
vgp.surface.common.PgSurfaceDescr
- Parameters:
f - vector where to place the function values.- Returns:
true if function has been overridden and evaluated successfully.- See Also:
PgSurfaceDescr.eval(PdVector, double, double)
calc_df_dU
protected PdVector calc_df_dU(double u,
double v)
- Description copied from class:
PgSurfaceDescr
- These default functions compute the differential by difference quotients
and should be overridden when explicit derivatives are known.
- Overrides:
calc_df_dU in class PgSurfaceDescr
calc_df_dV
protected PdVector calc_df_dV(double u,
double v)
- Overrides:
calc_df_dV in class PgSurfaceDescr
calc_ddf_dUdU
protected PdVector calc_ddf_dUdU(double u,
double v)
- Overrides:
calc_ddf_dUdU in class PgSurfaceDescr
calc_ddf_dVdV
protected PdVector calc_ddf_dVdV(double u,
double v)
- Overrides:
calc_ddf_dVdV in class PgSurfaceDescr
calc_ddf_dUdV
protected PdVector calc_ddf_dUdV(double u,
double v)
- Overrides:
calc_ddf_dUdV in class PgSurfaceDescr
The software JavaView® is copyright protected. All Rights Reserved.