Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ikayaki.gui.StereoPlot Class Reference

Inheritance diagram for ikayaki.gui.StereoPlot:

Inheritance graph
[legend]
Collaboration diagram for ikayaki.gui.StereoPlot:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void add (MeasurementStep step)
void reset ()
int getNumMeasurements ()
void render (int w, int h, Graphics2D g2)

Private Member Functions

Point2D.Double toXY (Double decValue, Double incValue)

Private Attributes

Vector< Point2D > points = new Vector<Point2D>()
Vector< Boolean > incSign = new Vector<Boolean>()
Project project = null

Detailed Description

Implements stereographic plot

Author:
Aki Sysmäläinen

Definition at line 39 of file StereoPlot.java.


Member Function Documentation

void ikayaki.gui.StereoPlot.add MeasurementStep  step  ) 
 

Adds one measurement step to this graph and converts the data to x- and y- coordinates

Implements ikayaki.gui.Plot.

Definition at line 56 of file StereoPlot.java.

References ikayaki.MeasurementStep.getProject(), ikayaki.Project.getValue(), ikayaki.gui.StereoPlot.incSign, ikayaki.gui.null, ikayaki.gui.StereoPlot.points, ikayaki.gui.StereoPlot.project, and ikayaki.gui.StereoPlot.toXY().

Here is the call graph for this function:

int ikayaki.gui.StereoPlot.getNumMeasurements  ) 
 

Returns the number of points in this graph.

Returns:
the number of points in this graph

Implements ikayaki.gui.Plot.

Definition at line 105 of file StereoPlot.java.

References ikayaki.gui.StereoPlot.points.

void ikayaki.gui.StereoPlot.render int  w,
int  h,
Graphics2D  g2
[virtual]
 

Draws the contents of the plot

Parameters:
w Width of the drawable area
h Height of the drawable area
g2 Graphics context

Implements ikayaki.gui.AbstractPlot.

Definition at line 116 of file StereoPlot.java.

References ikayaki.gui.StereoPlot.incSign, ikayaki.gui.StereoPlot.points, and ikayaki.gui.StereoPlot.toXY().

Here is the call graph for this function:

void ikayaki.gui.StereoPlot.reset  ) 
 

Resets and repaints this plot.

Implements ikayaki.gui.Plot.

Definition at line 94 of file StereoPlot.java.

References ikayaki.gui.StereoPlot.incSign, and ikayaki.gui.StereoPlot.points.

Point2D.Double ikayaki.gui.StereoPlot.toXY Double  decValue,
Double  incValue
[private]
 

Does the stereoplot projection for given declination and inclination values.

Parameters:
decValue declination
incValue inclination
Returns:
a stereoplot projected point in XY-coordinates

Definition at line 83 of file StereoPlot.java.

Referenced by ikayaki.gui.StereoPlot.add(), and ikayaki.gui.StereoPlot.render().


Member Data Documentation

Vector<Boolean> ikayaki.gui.StereoPlot.incSign = new Vector<Boolean>() [private]
 

Contains information if inclination was positive or negative positive = true, negative = false; 0 is positive

Definition at line 49 of file StereoPlot.java.

Referenced by ikayaki.gui.StereoPlot.add(), ikayaki.gui.StereoPlot.render(), and ikayaki.gui.StereoPlot.reset().

Vector<Point2D> ikayaki.gui.StereoPlot.points = new Vector<Point2D>() [private]
 

Contains all the data that is shown in this graph.

Definition at line 44 of file StereoPlot.java.

Referenced by ikayaki.gui.StereoPlot.add(), ikayaki.gui.StereoPlot.getNumMeasurements(), ikayaki.gui.StereoPlot.render(), and ikayaki.gui.StereoPlot.reset().

Project ikayaki.gui.StereoPlot.project = null [private]
 

Definition at line 51 of file StereoPlot.java.

Referenced by ikayaki.gui.StereoPlot.add().


The documentation for this class was generated from the following file:
Generated on Fri May 6 16:01:13 2005 for Squid by  doxygen 1.4.1