24 #ifndef _GSPAGEPARAMS_INCLUDED_
25 #define _GSPAGEPARAMS_INCLUDED_ /
45 double m_dPaperHeight;
48 double m_dRightMargin;
50 double m_dBottomMargin;
54 , m_dPaperHeight(297.)
63 : m_dPaperWidth(dPaperWidth)
64 , m_dPaperHeight(dPaperHeight)
83 m_dPaperWidth = from.m_dPaperWidth;
84 m_dPaperHeight = from.m_dPaperHeight;
85 m_dLeftMargin = from.m_dLeftMargin;
86 m_dRightMargin = from.m_dRightMargin;
87 m_dTopMargin = from.m_dTopMargin;
88 m_dBottomMargin = from.m_dBottomMargin;
102 double dLeftMargin = 0.,
103 double dRightMargin = 0.,
104 double dTopMargin = 0.,
105 double dBottomMargin = 0.
129 m_dPaperWidth = dPaperWidth;
130 m_dPaperHeight = dPaperHeight;
131 m_dLeftMargin = dLeftMargin;
132 m_dRightMargin = dRightMargin;
133 m_dTopMargin = dTopMargin;
134 m_dBottomMargin = dBottomMargin;
141 m_dPaperWidth *= dScale;
142 m_dPaperHeight *= dScale;
143 m_dLeftMargin *= dScale;
144 m_dRightMargin *= dScale;
145 m_dTopMargin *= dScale;
146 m_dBottomMargin *= dScale;
bool OdNegative(double x, double tol=1.e-10)
bool OdPositive(double x, double tol=1.e-10)
bool OdGreaterOrEqual(double x, double y, double tol=1.e-10)
double getRightMargin() const
double getPaperHeight() const
OdGsPageParams(const OdGsPageParams &data)
void scale(double dScale)
OdGsPageParams(double dPaperWidth, double dPaperHeight)
void set(double dPaperWidth, double dPaperHeight, double dLeftMargin=0., double dRightMargin=0., double dTopMargin=0., double dBottomMargin=0.)
double getTopMargin() const
double getBottomMargin() const
double getPaperWidth() const
double getLeftMargin() const
OdGsPageParams & operator=(const OdGsPageParams &from)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
static GE_STATIC_EXPORT OdGeTol gZeroTol