|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvmm.core.Exhibit
vmm.core3D.Exhibit3D
vmm.latticemodel.LatticeModel
vmm.latticemodel.FermiPastaUlam
public class FermiPastaUlam
| Nested Class Summary | |
|---|---|
protected class |
FermiPastaUlam.FPULatticeData
|
class |
FermiPastaUlam.FPUView
|
| Nested classes/interfaces inherited from class vmm.latticemodel.LatticeModel |
|---|
LatticeModel.LatticeData, LatticeModel.LMTransform, LatticeModel.LMView |
| Field Summary | |
|---|---|
protected RealParam |
a
|
protected RealParam |
b
|
protected RealParam |
c
|
protected RealParam |
d
|
| Fields inherited from class vmm.core3D.Exhibit3D |
|---|
defaultViewpoint, defaultViewUp, previousTransform3D |
| Fields inherited from class vmm.core.Exhibit |
|---|
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform |
| Constructor Summary | |
|---|---|
FermiPastaUlam()
|
|
| Method Summary | |
|---|---|
protected void |
doDraw3D(java.awt.Graphics2D g,
View3D view,
Transform3D transform)
Draws this Exhibit in a 3D view. |
protected double |
externalForceLaw(double x,
double theLatticeSpacing)
|
View |
getDefaultView()
Returns the default View of this Exhibit. |
protected double |
internalForceLaw(double x,
double theLatticeSpacing)
|
protected double |
potentialEnergy(double x,
double theLatticeSpacing)
|
| Methods inherited from class vmm.latticemodel.LatticeModel |
|---|
drawTransverse, getCreateAnimation, getDefaultTransform, getSettingsCommandsForView |
| Methods inherited from class vmm.core3D.Exhibit3D |
|---|
computeDrawData3D, computeDrawDataHook, doDrawHook, getDefaultViewpoint, getDefaultViewUp, setDefaultViewpoint, setDefaultViewUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RealParam a
protected RealParam b
protected RealParam c
protected RealParam d
| Constructor Detail |
|---|
public FermiPastaUlam()
| Method Detail |
|---|
protected double potentialEnergy(double x,
double theLatticeSpacing)
potentialEnergy in class LatticeModel
protected double internalForceLaw(double x,
double theLatticeSpacing)
internalForceLaw in class LatticeModel
protected double externalForceLaw(double x,
double theLatticeSpacing)
externalForceLaw in class LatticeModel
protected void doDraw3D(java.awt.Graphics2D g,
View3D view,
Transform3D transform)
Exhibit3DExhibit3D.computeDrawData3D(View3D, boolean, Transform3D, Transform3D)
has already been called, so that any cached data should be correct.
Note that this method is called only if the Exhibit is being drawn in a View3D. Exhibits that have
both two and three dimensional renderings should also override Exhibit.doDraw(Graphics2D, View, Transform).
When drawing a 3D exhibit, you are strongly advised to use the drawing routines supplied by the
View3D and View3DLit classes. These routines will automatically produce the correct results
in stereo views -- the same is not true about direct drawing to the graphics context.
doDraw3D in class LatticeModelg - 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.public View getDefaultView()
Exhibit3DView3D.
getDefaultView in class LatticeModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||