NPlot::PiAxis Class Reference

Axis with labels in multiples of Pi. More...

Inheritance diagram for NPlot::PiAxis:

NPlot::Axis List of all members.

Public Member Functions

override object Clone ()
 Deep copy of PiAxis.
 PiAxis (Axis a)
 Copy constructor.
 PiAxis ()
 Default constructor.
 PiAxis (double worldMin, double worldMax)
 Constructor.

Protected Member Functions

override void DrawTicks (Graphics g, Point physicalMin, Point physicalMax, out object labelOffset, out object boundingBox)
 Given Graphics surface, and physical extents of axis, draw ticks and associated labels.

Static Protected Member Functions

static void DoClone (PiAxis b, PiAxis a)
 Helper method for Clone.

Private Member Functions

void Init ()
 Initialise PiAxis to default state.
internal override void WorldTickPositions_FirstPass (Point physicalMin, Point physicalMax, out ArrayList largeTickPositions, out ArrayList smallTickPositions)
 Determines the positions, in world coordinates, of the large ticks.

Detailed Description

Axis with labels in multiples of Pi.

Maybe needs a better name. Lots of functionality still to be added - currently only puts labels at whole increments of pi, want arbitrary increments, automatically determined and dependance on physical length. Volunteers?

Definition at line 66 of file PiAxis.cs.


Constructor & Destructor Documentation

NPlot::PiAxis::PiAxis Axis  a  )  [inline]
 

Copy constructor.

Parameters:
a The Axis to clone.
TODO: [review notes] I don't think this will work as desired.

Definition at line 110 of file PiAxis.cs.

NPlot::PiAxis::PiAxis  )  [inline]
 

Default constructor.

Definition at line 120 of file PiAxis.cs.

Referenced by Clone().

NPlot::PiAxis::PiAxis double  worldMin,
double  worldMax
[inline]
 

Constructor.

Parameters:
worldMin Minimum world value
worldMax Maximum world value

Definition at line 132 of file PiAxis.cs.


Member Function Documentation

override object NPlot::PiAxis::Clone  )  [inline, virtual]
 

Deep copy of PiAxis.

Returns:
A copy of the LinearAxis Class.

Reimplemented from NPlot::Axis.

Definition at line 73 of file PiAxis.cs.

References PiAxis().

static void NPlot::PiAxis::DoClone PiAxis  b,
PiAxis  a
[inline, static, protected]
 

Helper method for Clone.

Parameters:
a The original object to clone.
b The cloned object.

Definition at line 91 of file PiAxis.cs.

override void NPlot::PiAxis::DrawTicks Graphics  g,
Point  physicalMin,
Point  physicalMax,
out object  labelOffset,
out object  boundingBox
[inline, protected, virtual]
 

Given Graphics surface, and physical extents of axis, draw ticks and associated labels.

Parameters:
g The GDI+ Graphics surface on which to draw.
physicalMin The physical location of the world min point
physicalMax The physical location of the world max point
boundingBox out: smallest box that completely encompasses all of the ticks and tick labels.
labelOffset out: a suitable offset from the axis to draw the axis label.

Reimplemented from NPlot::Axis.

Definition at line 148 of file PiAxis.cs.

void NPlot::PiAxis::Init  )  [inline, private]
 

Initialise PiAxis to default state.

Reimplemented from NPlot::Axis.

Definition at line 100 of file PiAxis.cs.

internal override void NPlot::PiAxis::WorldTickPositions_FirstPass Point  physicalMin,
Point  physicalMax,
out ArrayList  largeTickPositions,
out ArrayList  smallTickPositions
[inline, private, virtual]
 

Determines the positions, in world coordinates, of the large ticks.

Label axes do not have small ticks.

Parameters:
physicalMin The physical position corresponding to the world minimum of the axis.
physicalMax The physical position corresponding to the world maximum of the axis.
largeTickPositions ArrayList containing the positions of the large ticks.
smallTickPositions null

Reimplemented from NPlot::Axis.

Definition at line 202 of file PiAxis.cs.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:08 2005 for NPlot by  doxygen 1.4.5