GridWindow Class Reference

#include <grid.hxx>

List of all members.

Public Member Functions

 GridWindow (double *pXValues, double *pYValues, int nValues, Window *pParent, BOOL bCutValues=TRUE)
 ~GridWindow ()
void setBoundings (double fMinX, double fMinY, double fMaxX, double fMaxY)
double getMinX ()
double getMinY ()
double getMaxX ()
double getMaxY ()
int countValues ()
double * getXValues ()
double * getOrigYValues ()
double * getNewYValues ()
void drawPoint (double x, double y)
void drawLine (double x1, double y1, double x2, double y2)
virtual void Paint (const Rectangle &rRect)

Private Member Functions

Point transform (double x, double y)
void transform (const Point &rOriginal, double &x, double &y)
double findMinX ()
double findMinY ()
double findMaxX ()
double findMaxY ()
void drawGrid ()
void drawOriginal ()
void drawNew ()
void drawHandles ()
void computeExtremes ()
void computeChunk (double fMin, double fMax, double &fChunkOut, double &fMinChunkOut)
void computeNew ()
double interpolate (double x, double *pNodeX, double *pNodeY, int nNodes)
 DECL_LINK (ClickButtonHdl, Button *)
virtual void MouseMove (const MouseEvent &)
virtual void MouseButtonDown (const MouseEvent &)
virtual void MouseButtonUp (const MouseEvent &)

Private Attributes

Rectangle m_aGridArea
double m_fMinX
double m_fMinY
double m_fMaxX
double m_fMaxY
double m_fChunkX
double m_fMinChunkX
double m_fChunkY
double m_fMinChunkY
double * m_pXValues
double * m_pOrigYValues
int m_nValues
double * m_pNewYValues
sal_uInt16 m_BmOffX
sal_uInt16 m_BmOffY
BOOL m_bCutValues
std::vector< impHandlem_aHandles
sal_uInt32 m_nDragIndex
BitmapEx m_aMarkerBitmap
OKButton m_aOKButton
CancelButton m_aCancelButton
ListBox m_aResetTypeBox
PushButton m_aResetButton

Classes

struct  impHandle


Detailed Description

Definition at line 51 of file grid.hxx.


Constructor & Destructor Documentation

GridWindow::GridWindow ( double *  pXValues,
double *  pYValues,
int  nValues,
Window *  pParent,
BOOL  bCutValues = TRUE 
)

Definition at line 60 of file grid.cxx.

References computeExtremes(), findMaxX(), findMaxY(), findMinX(), findMinY(), m_aGridArea, m_aHandles, m_aMarkerBitmap, m_aOKButton, m_aResetButton, m_aResetTypeBox, m_BmOffX, m_BmOffY, m_nValues, m_pNewYValues, m_pOrigYValues, SaneResId(), setBoundings(), and transform().

GridWindow::~GridWindow (  ) 

Definition at line 118 of file grid.cxx.

References m_pNewYValues.


Member Function Documentation

Point GridWindow::transform ( double  x,
double  y 
) [private]

Definition at line 201 of file grid.cxx.

References m_aGridArea, m_fMaxX, m_fMaxY, m_fMinX, and m_fMinY.

Referenced by computeNew(), drawGrid(), drawLine(), drawPoint(), and GridWindow().

void GridWindow::transform ( const Point &  rOriginal,
double &  x,
double &  y 
) [private]

Definition at line 217 of file grid.cxx.

References m_aGridArea, m_fMaxX, m_fMaxY, m_fMinX, and m_fMinY.

double GridWindow::findMinX (  )  [private]

Definition at line 126 of file grid.cxx.

References m_nValues, and m_pXValues.

Referenced by GridWindow().

double GridWindow::findMinY (  )  [private]

Definition at line 139 of file grid.cxx.

References m_nValues, and m_pNewYValues.

Referenced by GridWindow().

double GridWindow::findMaxX (  )  [private]

Definition at line 152 of file grid.cxx.

References m_nValues, and m_pXValues.

Referenced by GridWindow().

double GridWindow::findMaxY (  )  [private]

Definition at line 165 of file grid.cxx.

References m_nValues, and m_pNewYValues.

Referenced by GridWindow().

void GridWindow::drawGrid (  )  [private]

Definition at line 355 of file grid.cxx.

References drawLine(), m_fChunkX, m_fChunkY, m_fMaxX, m_fMaxY, m_fMinChunkX, m_fMinChunkY, m_fMinX, m_fMinY, and transform().

Referenced by Paint().

void GridWindow::drawOriginal (  )  [private]

Definition at line 395 of file grid.cxx.

References drawLine(), m_nValues, m_pOrigYValues, and m_pXValues.

Referenced by Paint().

void GridWindow::drawNew (  )  [private]

Definition at line 410 of file grid.cxx.

References drawLine(), m_aGridArea, m_nValues, m_pNewYValues, and m_pXValues.

Referenced by Paint().

void GridWindow::drawHandles (  )  [private]

Definition at line 427 of file grid.cxx.

References m_aHandles, and m_aMarkerBitmap.

Referenced by Paint().

void GridWindow::computeExtremes (  )  [private]

Definition at line 178 of file grid.cxx.

References m_fMaxX, m_fMaxY, m_fMinX, m_fMinY, m_nValues, m_pOrigYValues, m_pXValues, and setBoundings().

Referenced by GridWindow().

void GridWindow::computeChunk ( double  fMin,
double  fMax,
double &  fChunkOut,
double &  fMinChunkOut 
) [private]

Definition at line 239 of file grid.cxx.

Referenced by setBoundings().

void GridWindow::computeNew (  )  [private]

Definition at line 267 of file grid.cxx.

References interpolate(), m_aHandles, m_bCutValues, m_fMaxY, m_fMinY, m_nValues, m_pNewYValues, m_pXValues, and transform().

Referenced by MouseButtonDown(), and MouseButtonUp().

double GridWindow::interpolate ( double  x,
double *  pNodeX,
double *  pNodeY,
int  nNodes 
) [private]

Definition at line 316 of file grid.cxx.

Referenced by computeNew().

GridWindow::DECL_LINK ( ClickButtonHdl  ,
Button *   
) [private]

void GridWindow::MouseMove ( const MouseEvent &   )  [private, virtual]

Definition at line 448 of file grid.cxx.

References m_aGridArea, m_aHandles, and m_nDragIndex.

void GridWindow::MouseButtonDown ( const MouseEvent &   )  [private, virtual]

Definition at line 501 of file grid.cxx.

References computeNew(), m_aGridArea, m_aHandles, m_aMarkerBitmap, m_BmOffX, m_BmOffY, m_nDragIndex, and Paint().

void GridWindow::MouseButtonUp ( const MouseEvent &   )  [private, virtual]

Definition at line 483 of file grid.cxx.

References computeNew(), m_aGridArea, m_nDragIndex, and Paint().

void GridWindow::setBoundings ( double  fMinX,
double  fMinY,
double  fMaxX,
double  fMaxY 
)

Definition at line 342 of file grid.cxx.

References computeChunk(), m_fChunkX, m_fChunkY, m_fMaxX, m_fMaxY, m_fMinChunkX, m_fMinChunkY, m_fMinX, and m_fMinY.

Referenced by computeExtremes(), GridWindow(), and IMPL_LINK().

double GridWindow::getMinX (  )  [inline]

Definition at line 148 of file grid.hxx.

References m_fMinX.

double GridWindow::getMinY (  )  [inline]

Definition at line 149 of file grid.hxx.

References m_fMinY.

double GridWindow::getMaxX (  )  [inline]

Definition at line 150 of file grid.hxx.

References m_fMaxX.

double GridWindow::getMaxY (  )  [inline]

Definition at line 151 of file grid.hxx.

References m_fMaxY.

int GridWindow::countValues (  )  [inline]

Definition at line 153 of file grid.hxx.

References m_nValues.

double* GridWindow::getXValues (  )  [inline]

Definition at line 154 of file grid.hxx.

References m_pXValues.

double* GridWindow::getOrigYValues (  )  [inline]

Definition at line 155 of file grid.hxx.

References m_pOrigYValues.

double* GridWindow::getNewYValues (  )  [inline]

Definition at line 156 of file grid.hxx.

References m_pNewYValues.

Referenced by IMPL_LINK().

void GridWindow::drawPoint ( double  x,
double  y 
)

Definition at line 225 of file grid.cxx.

References transform().

void GridWindow::drawLine ( double  x1,
double  y1,
double  x2,
double  y2 
)

Definition at line 232 of file grid.cxx.

References transform().

Referenced by drawGrid(), drawNew(), and drawOriginal().

void GridWindow::Paint ( const Rectangle &  rRect  )  [virtual]

Definition at line 437 of file grid.cxx.

References drawGrid(), drawHandles(), drawNew(), and drawOriginal().

Referenced by MouseButtonDown(), and MouseButtonUp().


Member Data Documentation

Rectangle GridWindow::m_aGridArea [private]

Definition at line 84 of file grid.hxx.

Referenced by drawNew(), GridWindow(), MouseButtonDown(), MouseButtonUp(), MouseMove(), and transform().

double GridWindow::m_fMinX [private]

Definition at line 86 of file grid.hxx.

Referenced by computeExtremes(), drawGrid(), getMinX(), setBoundings(), and transform().

double GridWindow::m_fMinY [private]

Definition at line 87 of file grid.hxx.

Referenced by computeExtremes(), computeNew(), drawGrid(), getMinY(), setBoundings(), and transform().

double GridWindow::m_fMaxX [private]

Definition at line 88 of file grid.hxx.

Referenced by computeExtremes(), drawGrid(), getMaxX(), setBoundings(), and transform().

double GridWindow::m_fMaxY [private]

Definition at line 89 of file grid.hxx.

Referenced by computeExtremes(), computeNew(), drawGrid(), getMaxY(), setBoundings(), and transform().

double GridWindow::m_fChunkX [private]

Definition at line 91 of file grid.hxx.

Referenced by drawGrid(), and setBoundings().

double GridWindow::m_fMinChunkX [private]

Definition at line 92 of file grid.hxx.

Referenced by drawGrid(), and setBoundings().

double GridWindow::m_fChunkY [private]

Definition at line 93 of file grid.hxx.

Referenced by drawGrid(), and setBoundings().

double GridWindow::m_fMinChunkY [private]

Definition at line 94 of file grid.hxx.

Referenced by drawGrid(), and setBoundings().

double* GridWindow::m_pXValues [private]

Definition at line 96 of file grid.hxx.

Referenced by computeExtremes(), computeNew(), drawNew(), drawOriginal(), findMaxX(), findMinX(), and getXValues().

double* GridWindow::m_pOrigYValues [private]

Definition at line 97 of file grid.hxx.

Referenced by computeExtremes(), drawOriginal(), getOrigYValues(), and GridWindow().

int GridWindow::m_nValues [private]

Definition at line 98 of file grid.hxx.

Referenced by computeExtremes(), computeNew(), countValues(), drawNew(), drawOriginal(), findMaxX(), findMaxY(), findMinX(), findMinY(), and GridWindow().

double* GridWindow::m_pNewYValues [private]

Definition at line 99 of file grid.hxx.

Referenced by computeNew(), drawNew(), findMaxY(), findMinY(), getNewYValues(), GridWindow(), and ~GridWindow().

sal_uInt16 GridWindow::m_BmOffX [private]

Definition at line 101 of file grid.hxx.

Referenced by GridWindow(), and MouseButtonDown().

sal_uInt16 GridWindow::m_BmOffY [private]

Definition at line 102 of file grid.hxx.

Referenced by GridWindow(), and MouseButtonDown().

BOOL GridWindow::m_bCutValues [private]

Definition at line 104 of file grid.hxx.

Referenced by computeNew().

std::vector< impHandle > GridWindow::m_aHandles [private]

Definition at line 107 of file grid.hxx.

Referenced by computeNew(), drawHandles(), GridWindow(), MouseButtonDown(), and MouseMove().

sal_uInt32 GridWindow::m_nDragIndex [private]

Definition at line 108 of file grid.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().

BitmapEx GridWindow::m_aMarkerBitmap [private]

Definition at line 110 of file grid.hxx.

Referenced by drawHandles(), GridWindow(), and MouseButtonDown().

OKButton GridWindow::m_aOKButton [private]

Definition at line 112 of file grid.hxx.

Referenced by GridWindow().

CancelButton GridWindow::m_aCancelButton [private]

Definition at line 113 of file grid.hxx.

ListBox GridWindow::m_aResetTypeBox [private]

Definition at line 115 of file grid.hxx.

Referenced by GridWindow().

PushButton GridWindow::m_aResetButton [private]

Definition at line 116 of file grid.hxx.

Referenced by GridWindow().


The documentation for this class was generated from the following files:
Generated on Thu Feb 28 17:53:33 2008 for AquaScanner by  doxygen 1.5.1