dvi2bitmap
dvi2bitmap1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DviFilePosition.h
Go to the documentation of this file.
1
/* This file is part of dvi2bitmap; see README for copyrights and licence */
2
3
#ifndef DVIFILEPOSITION_HEADER_READ
4
#define DVIFILEPOSITION_HEADER_READ 1
5
6
#include "
DviFile.h
"
7
#include "
verbosity.h
"
8
18
class
DviFilePosition
{
19
private
:
20
int
x, y;
/* position in scaled points */
21
DviFile
* dvif;
22
static
enum
verbosities
verbosity_;
23
public
:
24
DviFilePosition
(
DviFile
*,
double
x,
double
y,
DviFile::DviUnits
);
25
DviFilePosition
(
DviFilePosition
*,
double
x,
double
y,
DviFile::DviUnits
);
26
double
getX
(
const
DviFile::DviUnits
u);
27
double
getY
(
const
DviFile::DviUnits
u);
28
void
shift
(
double
dx,
double
dy,
DviFile::DviUnits
u);
29
void
scale
(
double
factor);
30
//void scale(double factor, DviFilePosition& fixed_point);
31
// make a static copy
32
DviFilePosition
*
copy
();
33
static
verbosities
verbosity
(
const
verbosities
level) {
34
enum
verbosities
oldv = verbosity_;
35
verbosity_ = level;
36
return
oldv;
37
}
38
};
39
40
#endif
/* DVIFILEPOSITION_HEADER_READ */
Generated on Mon Jan 12 2015 16:13:22 for dvi2bitmap by
1.8.4