NPlot::AxesConstraint::YPixelWorldLength Class Reference

Defines an AxisConstraint that forces the world length corresponding to one pixel on the left y-axis to be a certain value. More...

Inheritance diagram for NPlot::AxesConstraint::YPixelWorldLength:

NPlot::AxesConstraint List of all members.

Public Member Functions

 YPixelWorldLength (double p)
 Constructor, which defines the world pixel length only.
 YPixelWorldLength (double p, PlotSurface2D.XAxisPosition holdFixedX)
 Constructor, which defines the world pixel length together with the x-axis that should be held constant when forcing this constraint [the other x-axis only will be moved].
override void ApplyConstraint (PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2)
 Applies the constraint to the axes.

Private Attributes

double pWorldLength_ = 0.0
object holdFixedX_ = null

Detailed Description

Defines an AxisConstraint that forces the world length corresponding to one pixel on the left y-axis to be a certain value.

TODO: Allow the pixel world length to be set for the right axis.

Definition at line 155 of file AxesConstraint.cs.


Constructor & Destructor Documentation

NPlot::AxesConstraint::YPixelWorldLength::YPixelWorldLength double  p  )  [inline]
 

Constructor, which defines the world pixel length only.

Both x-axes will be moved by equal amounts in order to force this constraint.

Parameters:
p The world pixel length

Definition at line 166 of file AxesConstraint.cs.

NPlot::AxesConstraint::YPixelWorldLength::YPixelWorldLength double  p,
PlotSurface2D.XAxisPosition  holdFixedX
[inline]
 

Constructor, which defines the world pixel length together with the x-axis that should be held constant when forcing this constraint [the other x-axis only will be moved].

Parameters:
p The world pixel length
holdFixedX The position of this x-axis will be held constant. The other x-axis will be moved in order to force the constraint.

Definition at line 178 of file AxesConstraint.cs.


Member Function Documentation

override void NPlot::AxesConstraint::YPixelWorldLength::ApplyConstraint PhysicalAxis  pXAxis1,
PhysicalAxis  pYAxis1,
PhysicalAxis  pXAxis2,
PhysicalAxis  pYAxis2
[inline, virtual]
 

Applies the constraint to the axes.

Parameters:
pXAxis1 The bottom x-axis.
pYAxis1 The left y-axis.
pXAxis2 The top x-axis.
pYAxis2 The right y-axis.

Implements NPlot::AxesConstraint.

Definition at line 192 of file AxesConstraint.cs.

References NPlot::PhysicalAxis::Axis, holdFixedX_, NPlot::PhysicalAxis::PhysicalLength, NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, and NPlot::Axis::WorldLength.


Member Data Documentation

object NPlot::AxesConstraint::YPixelWorldLength::holdFixedX_ = null [private]
 

Definition at line 158 of file AxesConstraint.cs.

Referenced by ApplyConstraint().

double NPlot::AxesConstraint::YPixelWorldLength::pWorldLength_ = 0.0 [private]
 

Definition at line 157 of file AxesConstraint.cs.


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