vmm.conformalmap
Class Weierstrass_p
java.lang.Object
vmm.core.Exhibit
vmm.core3D.Exhibit3D
vmm.conformalmap.ConformalMap
vmm.conformalmap.Weierstrass_p
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class Weierstrass_p
- extends ConformalMap
Fields inherited from class vmm.conformalmap.ConformalMap |
argumentGrid, CARTESIAN, FRACTIONAL, gridTypeSelect, IDENTITY, INVERSION, POINTS_PER_INTERVAL, pointsOnCircleFigure, pointsOnLineFigure, pointsOnLineSegmentFigure, POLAR, POLARCONFORMAL, SQRROOT, umax, umin, ures, valueGrid, vmax, vmin, vres |
Method Summary |
protected void |
computeDrawData3D(View3D view,
boolean exhibitNeedsRedraw,
Transform3D previousTransform3D,
Transform3D newTransform3D)
Overridden to compute half of the data as a transformation of the data for the first half. |
protected void |
doDraw3D(java.awt.Graphics2D g,
View3D view,
Transform3D transform)
This is overridded to draw the two halves of the data separately, only one of them in color. |
protected Complex |
function(Complex argument)
The function that is to be graphed, to
be supplied by any concrete subclass. |
protected Complex |
gridMap(double u,
double v)
Finds the input grid point corresponding to (u,v). |
Methods inherited from class vmm.conformalmap.ConformalMap |
addExtraXML, composedFunction, getActionsForView, getCreateAnimation, getDefaultView, getDefaultWindow2D, getGridType, getPostCompFunction, getPreCompFunction, readExtraXML, resetGridType, setDefaultWindow2D, setDefaultWindow2D, setGridType, setPostCompFunction, setPreCompFunction |
Methods inherited from class vmm.core.Exhibit |
addChangeListener, addDecoration, addParameter, addView, clearDecorations, computeDrawData, doDraw, fireExhibitChangeEvent, forceRedraw, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, removeChangeListener, removeDecoration, removeParameter, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Weierstrass_p
public Weierstrass_p()
computeDrawData3D
protected void computeDrawData3D(View3D view,
boolean exhibitNeedsRedraw,
Transform3D previousTransform3D,
Transform3D newTransform3D)
- Overridden to compute half of the data as a transformation of the data for the first half. The
first half of the data is computed by solving an ODE, stepping through the array. The
second half is then computed from the first half by a symmetry of the function, and is stored in a
separate set of value/argument arrays.
- Overrides:
computeDrawData3D
in class ConformalMap
- Parameters:
view
- the 3D View where the Exhibit is about to be drawn.exhibitNeedsRedraw
- if true, then something about the Exhibit has changed that probably requires
recomputation of cached data. For example, this is set to true when one of the Parameters of the Exhibit
has changed since the previous redraw.previousTransform3D
- the Transform3D that was used the last time this exhibit was drawn. This can be null, if
this is the first time that the Exhibit is being drawn (in 3D).newTransform3D
- the transform that will be used to draw the Exhibit during the current drawing operation.
This parameter and the previousTransform3D parameter are provided so that the Exhbit can detect those rare
cases where cached data exists that depends on the transform. Most Exhibits will just ignore the
transform parameters.
doDraw3D
protected void doDraw3D(java.awt.Graphics2D g,
View3D view,
Transform3D transform)
- This is overridded to draw the two halves of the data separately, only one of them in color.
The colored part is where the ODE is solved, the other part needs a few extra lines.
This is done by calling super.doDraw3D() twice, and swapping in the second half of the data
before calling it the second time.
- Overrides:
doDraw3D
in class ConformalMap
- Parameters:
g
- the graphics context where the exhibit is being drawn.view
- The View3D in which the exhibit is being drawn. In general, it is advisable to use the view for
all drawing operations.transform
- The transform that is being used to draw the exhibit.
gridMap
protected Complex gridMap(double u,
double v)
- Description copied from class:
ConformalMap
- Finds the input grid point corresponding to (u,v). For a Cartesian grid, this
is just (u,v) itself. For a polar grid, it is (u*cos(v),u*sin(v)). For a
polar conformal grid, it is (exp(u)*cos(v),exp(u)*sin(v)) which is the same
as exp(u+iv).
- Overrides:
gridMap
in class ConformalMap
function
protected Complex function(Complex argument)
- Description copied from class:
ConformalMap
- The function that is to be graphed, to
be supplied by any concrete subclass.
- Specified by:
function
in class ConformalMap