class Scaler

class for scaling coordinates

Public Methods

Scaler (Config *c, Viewer *v, DrawWindow *d)
virtual ~Scaler ()
void MakeLarger ()
Make larger. Change scale value.
void MakeSmaller ()
Make smaller. Change scale value.
void ScaleFactor ()
Popup scale factor dialog.
void NormalScale ()
Return to normal scaling.
void WholeDrawing ()
Calculate scale value such that whole document fits to one page.
void ScreenFit ()
int Scale (int x) const
scale coordinate x.
Point Scale (const Point *p) const
int ScaleCorrect (int x) const
Correct X-window coordinate to the right scaled coordinate.
Point ScaleCorrect (const Point *p) const
void SetScaleValue (double newValue)
Really do the scaling. Redraws the contents of the viewer.
double GetScaleValue () const
void SetScaleFactor (double d)
DrawWindow* GetMainWindow () const
ScaleDialog* GetScaleDialog () const
void Save (OutputFile *f)
Save scale value to file.
bool Load (InputFile *f, double format)
Load scale value from file.
bool Check (InputFile *f, double format)
Check (but not load) scale value from file.

Documentation

class for scaling coordinates
Scaler(Config *c, Viewer *v, DrawWindow *d)

virtual ~Scaler()

void MakeLarger()
Make larger. Change scale value.

void MakeSmaller()
Make smaller. Change scale value.

void ScaleFactor()
Popup scale factor dialog.

void NormalScale()
Return to normal scaling.

void WholeDrawing()
Calculate scale value such that whole document fits to one page.

void ScreenFit()

int Scale(int x) const
scale coordinate x.

Point Scale(const Point *p) const

int ScaleCorrect(int x) const
Correct X-window coordinate to the right scaled coordinate.

Point ScaleCorrect(const Point *p) const

void SetScaleValue(double newValue)
Really do the scaling. Redraws the contents of the viewer.

double GetScaleValue() const

void SetScaleFactor(double d)

DrawWindow* GetMainWindow() const

ScaleDialog* GetScaleDialog() const

void Save(OutputFile *f)
Save scale value to file.

bool Load(InputFile *f, double format)
Load scale value from file.

bool Check(InputFile *f, double format)
Check (but not load) scale value from file.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de