|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.TrajectoryVRML
public class TrajectoryVRML
TrajectoryVRML is an observer that watches an instance of NISTMonte for events related to electron trajectory changes. It then outputs a VRML description of the trajectory step. The VRML is then used to
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Institution: National Institute of Standards and Technology
| Nested Class Summary | |
|---|---|
static interface |
TrajectoryVRML.IRender
Each class (nominally a MonteCarloSS.Shape) is responsible for knowing how to render itself as VRML. |
class |
TrajectoryVRML.RenderContext
A set of functions that provide contextual information for rendering an object as VRML. |
| Field Summary | |
|---|---|
static double |
SCALE
|
| Constructor Summary | |
|---|---|
TrajectoryVRML(MonteCarloSS mcss,
java.io.Writer wr)
Constructs a TrajectoryVRML object with the specified RenderContext that outputs to the specified Writer. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed - Implements actionPerformed for the ActionListener interface. |
void |
addView(java.lang.String name,
double[] pos,
double[] towards)
addView - A mechanism for adding viewports into the VRML output file. |
double |
getMaxRadius()
Gets the current value assigned to the maximum radius to plot |
int |
getMaxTrajectories()
Gets the current value assigned to maxTrajectories |
TrajectoryVRML.RenderContext |
getRenderContext()
getRenderContext - Returns the instance of RenderContext associated with this instance of TrajectoryVRML. |
double |
getTrajectoryWidth()
Gets the current value assigned to the width of the cylinders in micrometers |
boolean |
isDisplayBackscatter()
Determines whether backscattered electron tracks are displayed |
boolean |
isDisplayXRayEvent()
Determines whether x-ray events (scattering events) are displayed |
boolean |
isEmissive()
Determines whether the trajectory segments are drawn as an emissive or diffuse color |
boolean |
isShowIncident()
Should we display the incident beam? |
void |
renderSample()
renderSample - A mechanism to render the sample geometry as VRML. |
void |
setDisplayBackscatter(boolean displayBackscatter)
Determines whether backscattered electron tracks are displayed |
void |
setDisplayXRayEvent(boolean displayXRayEvent)
Determines whether x-ray events (scattering events) are displayed |
void |
setEmissive(boolean emissive)
Determines whether the trajectory segments are drawn as an emissive or diffuse color |
void |
setMaxRadius(double maxR)
Sets the value that determines the maximum radius to plot (nominlly 1.0e-4 meters) |
void |
setMaxTrajectories(int max)
setMaxTrajectories - Sets the maximum number of trajectories to add to this image. |
void |
setShowIncident(boolean showIncident)
Should we display the incident beam? |
void |
setTrajectoryWidth(double trajectoryWidth)
Sets the value assigned to the width of the trajectory cylinders in micrometers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double SCALE
| Constructor Detail |
|---|
public TrajectoryVRML(MonteCarloSS mcss,
java.io.Writer wr)
mcss - wr - | Method Detail |
|---|
public void setMaxTrajectories(int max)
max - int
public void renderSample()
throws java.io.IOException
java.io.IOExceptionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - ActionEventpublic boolean isDisplayBackscatter()
public void setDisplayBackscatter(boolean displayBackscatter)
displayBackscatter - public boolean isDisplayXRayEvent()
public void setDisplayXRayEvent(boolean displayXRayEvent)
displayXRayEvent - public int getMaxTrajectories()
public void addView(java.lang.String name,
double[] pos,
double[] towards)
throws java.io.IOException
name - A name for the viewpos - The position of the viewertowards - The place the viewer is looking
java.io.IOExceptionpublic double getTrajectoryWidth()
public void setTrajectoryWidth(double trajectoryWidth)
trajectoryWidth - The value to which to set trajectoryWidth.public double getMaxRadius()
public void setMaxRadius(double maxR)
maxR - The value to which to set the maximum radiuspublic boolean isShowIncident()
public void setShowIncident(boolean showIncident)
showIncident - True to show the incident beam (default = false)public boolean isEmissive()
public void setEmissive(boolean emissive)
emissive - true for emissivepublic TrajectoryVRML.RenderContext getRenderContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||