#include <grid.hxx>
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< impHandle > | m_aHandles |
sal_uInt32 | m_nDragIndex |
BitmapEx | m_aMarkerBitmap |
OKButton | m_aOKButton |
CancelButton | m_aCancelButton |
ListBox | m_aResetTypeBox |
PushButton | m_aResetButton |
Classes | |
struct | impHandle |
Definition at line 51 of file grid.hxx.
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 | ( | ) |
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] |
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] |
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] |
GridWindow::DECL_LINK | ( | ClickButtonHdl | , | |
Button * | ||||
) | [private] |
void GridWindow::MouseMove | ( | const MouseEvent & | ) | [private, virtual] |
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] |
double GridWindow::getMinY | ( | ) | [inline] |
double GridWindow::getMaxX | ( | ) | [inline] |
double GridWindow::getMaxY | ( | ) | [inline] |
int GridWindow::countValues | ( | ) | [inline] |
double* GridWindow::getXValues | ( | ) | [inline] |
double* GridWindow::getOrigYValues | ( | ) | [inline] |
double* GridWindow::getNewYValues | ( | ) | [inline] |
void GridWindow::drawPoint | ( | double | x, | |
double | y | |||
) |
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().
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] |
double GridWindow::m_fMinChunkX [private] |
double GridWindow::m_fChunkY [private] |
double GridWindow::m_fMinChunkY [private] |
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] |
sal_uInt16 GridWindow::m_BmOffY [private] |
BOOL GridWindow::m_bCutValues [private] |
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] |
CancelButton GridWindow::m_aCancelButton [private] |
ListBox GridWindow::m_aResetTypeBox [private] |
PushButton GridWindow::m_aResetButton [private] |