NPlot::PageAlignedPhysicalAxis Class Reference

The bare minimum needed to do world->physical and physical->world transforms for vertical axes. More...

List of all members.

Public Member Functions

 PageAlignedPhysicalAxis (PhysicalAxis physicalAxis)
 Construct from a fully-blown physical axis.
float WorldToPhysical (double world)
 return the physical coordinate corresponding to the supplied world coordinate.
float WorldToPhysicalClipped (double world)
 return the physical coordinate corresponding to the supplied world coordinate, clipped if it is outside the bounds of the axis
double PhysicalToWorld (float physical)
 return the world coordinate corresponding to the supplied physical coordinate.

Private Attributes

int pMin_
int pMax_
int pLength_
double worldMin_
double worldMax_
double worldLength_


Detailed Description

The bare minimum needed to do world->physical and physical->world transforms for vertical axes.

Also includes tick placements. Built for speed.

currently unused

Definition at line 63 of file PageAlignedPhysicalAxis.cs.


Constructor & Destructor Documentation

NPlot::PageAlignedPhysicalAxis::PageAlignedPhysicalAxis PhysicalAxis  physicalAxis  )  [inline]
 

Construct from a fully-blown physical axis.

Parameters:
physicalAxis the physical axis to get initial values from.

Definition at line 79 of file PageAlignedPhysicalAxis.cs.

References NPlot::PhysicalAxis::Axis, NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, pLength_, pMax_, pMin_, worldLength_, NPlot::Axis::WorldMax, worldMax_, NPlot::Axis::WorldMin, and worldMin_.


Member Function Documentation

double NPlot::PageAlignedPhysicalAxis::PhysicalToWorld float  physical  )  [inline]
 

return the world coordinate corresponding to the supplied physical coordinate.

Parameters:
physical physical coordinate to determine world coordinate for.
Returns:
the world coordinate corresponding to the supplied

Definition at line 144 of file PageAlignedPhysicalAxis.cs.

References pLength_, pMin_, worldLength_, and worldMin_.

float NPlot::PageAlignedPhysicalAxis::WorldToPhysical double  world  )  [inline]
 

return the physical coordinate corresponding to the supplied world coordinate.

Parameters:
world world coordinate to determine physical coordinate for.
Returns:
the physical coordinate corresoindng to the supplied world coordinate.

Definition at line 110 of file PageAlignedPhysicalAxis.cs.

References pLength_, pMin_, worldLength_, and worldMin_.

float NPlot::PageAlignedPhysicalAxis::WorldToPhysicalClipped double  world  )  [inline]
 

return the physical coordinate corresponding to the supplied world coordinate, clipped if it is outside the bounds of the axis

Parameters:
world world coordinate to determine physical coordinate for.
Returns:
the physical coordinate corresoindng to the supplied world coordinate.

Definition at line 122 of file PageAlignedPhysicalAxis.cs.

References pLength_, pMax_, pMin_, worldLength_, worldMax_, and worldMin_.


Member Data Documentation

int NPlot::PageAlignedPhysicalAxis::pLength_ [private]
 

Definition at line 68 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), PhysicalToWorld(), WorldToPhysical(), and WorldToPhysicalClipped().

int NPlot::PageAlignedPhysicalAxis::pMax_ [private]
 

Definition at line 67 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), and WorldToPhysicalClipped().

int NPlot::PageAlignedPhysicalAxis::pMin_ [private]
 

Definition at line 66 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), PhysicalToWorld(), WorldToPhysical(), and WorldToPhysicalClipped().

double NPlot::PageAlignedPhysicalAxis::worldLength_ [private]
 

Definition at line 72 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), PhysicalToWorld(), WorldToPhysical(), and WorldToPhysicalClipped().

double NPlot::PageAlignedPhysicalAxis::worldMax_ [private]
 

Definition at line 71 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), and WorldToPhysicalClipped().

double NPlot::PageAlignedPhysicalAxis::worldMin_ [private]
 

Definition at line 70 of file PageAlignedPhysicalAxis.cs.

Referenced by PageAlignedPhysicalAxis(), PhysicalToWorld(), WorldToPhysical(), and WorldToPhysicalClipped().


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