CDRTypes.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libcdr project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef __CDRTYPES_H__
11 #define __CDRTYPES_H__
12 
13 #include <utility>
14 #include <vector>
15 #include <math.h>
16 #include <librevenge/librevenge.h>
17 #include "CDRTransforms.h"
18 #include "CDRPath.h"
19 #include "libcdr_utils.h"
20 
21 namespace libcdr
22 {
23 
24 struct CDRBox
25 {
26  double m_x;
27  double m_y;
28  double m_w;
29  double m_h;
31  : m_x(0.0), m_y(0.0), m_w(0.0), m_h(0.0) {}
32  CDRBox(double x0, double y0, double x1, double y1)
33  : m_x(x0 < x1 ? x0 : x1), m_y(y0 < y1 ? y0 : y1), m_w(fabs(x1-x0)), m_h(fabs(y1-y0)) {}
34  double getWidth() const
35  {
36  return m_w;
37  }
38  double getHeight() const
39  {
40  return m_h;
41  }
42  double getMinX() const
43  {
44  return m_x;
45  }
46  double getMinY() const
47  {
48  return m_y;
49  }
50 
51 };
52 
53 struct CDRColor
54 {
55  unsigned short m_colorModel;
56  unsigned m_colorValue;
58  CDRColor(unsigned short colorModel, unsigned colorValue)
59  : m_colorModel(colorModel), m_colorValue(colorValue) {}
60 };
61 
63 {
65  double m_offset;
67  CDRGradientStop(const CDRColor &color, double offset)
68  : m_color(color), m_offset(offset) {}
69 };
70 
72 {
73  unsigned char m_type;
74  unsigned char m_mode;
75  double m_angle;
76  double m_midPoint;
80  std::vector<CDRGradientStop> m_stops;
82  : m_type(0), m_mode(0), m_angle(0.0), m_midPoint(0.0), m_edgeOffset(0), m_centerXOffset(0), m_centerYOffset(0), m_stops() {}
83 };
84 
86 {
87  unsigned id;
88  double width;
89  double height;
90  bool isRelative;
91  double xOffset;
92  double yOffset;
93  double rcpOffset;
94  unsigned char flags;
95  CDRImageFill() : id(0), width(0.0), height(0.0), isRelative(false), xOffset(0.0), yOffset(0.0), rcpOffset(0.0), flags(0)
96  {}
97  CDRImageFill(unsigned i, double w, double h, bool r, double x, double y, double o, unsigned char f)
98  : id(i), width(w), height(h), isRelative(r), xOffset(x), yOffset(y), rcpOffset(o), flags(f) {}
99 };
100 
102 {
103  unsigned short fillType;
108  : fillType((unsigned short)-1), color1(), color2(), gradient(), imageFill() {}
109  CDRFillStyle(unsigned short ft, CDRColor c1, CDRColor c2, const CDRGradient &gr, const CDRImageFill &img)
110  : fillType(ft), color1(c1), color2(c2), gradient(gr), imageFill(img) {}
111 };
112 
114 {
115  unsigned short lineType;
116  unsigned short capsType;
117  unsigned short joinType;
118  double lineWidth;
119  double stretch;
120  double angle;
122  std::vector<unsigned> dashArray;
126  : lineType((unsigned short)-1), capsType(0), joinType(0), lineWidth(0.0),
127  stretch(0.0), angle(0.0), color(), dashArray(),
128  startMarker(), endMarker() {}
129  CDRLineStyle(unsigned short lt, unsigned short ct, unsigned short jt,
130  double lw, double st, double a, const CDRColor &c, const std::vector<unsigned> &da,
131  const CDRPath &sm, const CDRPath &em)
132  : lineType(lt), capsType(ct), joinType(jt), lineWidth(lw),
133  stretch(st), angle(a), color(c), dashArray(da),
134  startMarker(sm), endMarker(em) {}
135 };
136 
137 struct CDRStyle
138 {
139  unsigned short m_charSet;
140  librevenge::RVNGString m_fontName;
141  double m_fontSize;
142  unsigned m_align;
146  unsigned m_parentId;
148  : m_charSet((unsigned short)-1), m_fontName(),
149  m_fontSize(0.0), m_align(0), m_leftIndent(0.0), m_firstIndent(0.0),
151  {
152  m_fontName.clear();
153  }
154  void overrideStyle(const CDRStyle &override)
155  {
156  if (override.m_charSet != (unsigned short)-1 || override.m_fontName.len())
157  {
158  m_charSet = override.m_charSet;
159  m_fontName = override.m_fontName;
160  }
161  if (!CDR_ALMOST_ZERO(override.m_fontSize))
162  m_fontSize = override.m_fontSize;
163  if (override.m_align)
164  m_align = override.m_align;
165  if (override.m_leftIndent != 0.0 && override.m_firstIndent != 0.0 && override.m_rightIndent != 0.0)
166  {
167  m_leftIndent = override.m_leftIndent;
168  m_firstIndent = override.m_firstIndent;
169  m_rightIndent = override.m_rightIndent;
170  }
171  if (override.m_lineStyle.lineType != (unsigned short)-1)
172  m_lineStyle = override.m_lineStyle;
173  if (override.m_fillStyle.fillType != (unsigned short)-1)
174  m_fillStyle = override.m_fillStyle;
175  }
176 };
177 
179 {
180  unsigned m_numAngles;
181  unsigned m_nextPoint;
182  double m_rx;
183  double m_ry;
184  double m_cx;
185  double m_cy;
186  CDRPolygon() : m_numAngles(0), m_nextPoint(0), m_rx(0.0), m_ry(0.0), m_cx(0.0), m_cy(0.0) {}
187  CDRPolygon(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
188  : m_numAngles(numAngles), m_nextPoint(nextPoint), m_rx(rx), m_ry(ry), m_cx(cx), m_cy(cy) {}
189  void create(CDRPath &path) const;
190 };
191 
192 struct CDRImage
193 {
194  librevenge::RVNGBinaryData m_image;
195  double m_x1;
196  double m_x2;
197  double m_y1;
198  double m_y2;
199  CDRImage() : m_image(), m_x1(0.0), m_x2(0.0), m_y1(0.0), m_y2(0.0) {}
200  CDRImage(const librevenge::RVNGBinaryData &image, double x1, double x2, double y1, double y2)
201  : m_image(image), m_x1(x1), m_x2(x2), m_y1(y1), m_y2(y2) {}
202  double getMiddleX() const
203  {
204  return (m_x1 + m_x2) / 2.0;
205  }
206  double getMiddleY() const
207  {
208  return (m_y1 + m_y2) / 2.0;
209  }
210  const librevenge::RVNGBinaryData &getImage() const
211  {
212  return m_image;
213  }
214 };
215 
217 {
218  unsigned width;
219  unsigned height;
220  std::vector<unsigned char> pattern;
221  CDRPattern() : width(0), height(0), pattern() {}
222  CDRPattern(unsigned w, unsigned h, const std::vector<unsigned char> &p)
223  : width(w), height(h), pattern(p) {}
224 };
225 
226 struct CDRBitmap
227 {
228  unsigned colorModel;
229  unsigned width;
230  unsigned height;
231  unsigned bpp;
232  std::vector<unsigned> palette;
233  std::vector<unsigned char> bitmap;
234  CDRBitmap() : colorModel(0), width(0), height(0), bpp(0), palette(), bitmap() {}
235  CDRBitmap(unsigned cm, unsigned w, unsigned h, unsigned b, const std::vector<unsigned> &p, const std::vector<unsigned char> &bmp)
236  : colorModel(cm), width(w), height(h), bpp(b), palette(p), bitmap(bmp) {}
237 };
238 
239 struct CDRPage
240 {
241  double width;
242  double height;
243  double offsetX;
244  double offsetY;
245  CDRPage() : width(0.0), height(0.0), offsetX(0.0), offsetY(0.0) {}
246  CDRPage(double w, double h, double ox, double oy)
247  : width(w), height(h), offsetX(ox), offsetY(oy) {}
248 };
249 
251 {
252  std::vector<std::pair<double, double> > points;
253  std::vector<unsigned> knotVector;
255  CDRSplineData(const std::vector<std::pair<double, double> > &ps, const std::vector<unsigned> &kntv)
256  : points(ps), knotVector(kntv) {}
257  void clear()
258  {
259  points.clear();
260  knotVector.clear();
261  }
262  bool empty()
263  {
264  return (points.empty() || knotVector.empty());
265  }
266  void create(CDRPath &path) const;
267 };
268 
270 {
271  WaldoRecordInfo(unsigned char t, unsigned i, unsigned o)
272  : type(t), id(i), offset(o) {}
273  WaldoRecordInfo() : type(0), id(0), offset(0) {}
274  unsigned char type;
275  unsigned id;
276  unsigned offset;
277 };
278 
280 {
281  WaldoRecordType1(unsigned id, unsigned short next, unsigned short previous,
282  unsigned short child, unsigned short parent, unsigned short flags,
283  double x0, double y0, double x1, double y1, const CDRTransform &trafo)
284  : m_id(id), m_next(next), m_previous(previous), m_child(child), m_parent(parent),
285  m_flags(flags), m_x0(x0), m_y0(y0), m_x1(x1), m_y1(y1), m_trafo(trafo) {}
287  : m_id(0), m_next(0), m_previous(0), m_child(0), m_parent(0), m_flags(0),
288  m_x0(0.0), m_y0(0.0), m_x1(0.0), m_y1(0.0), m_trafo() {}
289  unsigned m_id;
290  unsigned short m_next;
291  unsigned short m_previous;
292  unsigned short m_child;
293  unsigned short m_parent;
294  unsigned short m_flags;
295  double m_x0;
296  double m_y0;
297  double m_x1;
298  double m_y1;
300 };
301 
303 {
304  CDRCMYKColor(double cyan, double magenta, double yellow, double black)
305  : c(cyan), m(magenta), y(yellow), k(black) {}
307  double c;
308  double m;
309  double y;
310  double k;
311 };
312 
314 {
315  CDRRGBColor(double red, double green, double blue)
316  : r(red), g(green), b(blue) {}
318  double r;
319  double g;
320  double b;
321 };
322 
324 {
325  CDRLab2Color(double l, double A, double B)
326  : L(l), a(A), b(B) {}
328  double L;
329  double a;
330  double b;
331 };
332 
334 {
335  CDRLab4Color(double l, double A, double B)
336  : L(l), a(A), b(B) {}
338  double L;
339  double a;
340  double b;
341 };
342 
343 struct CDRText
344 {
345  CDRText() : m_text(), m_style() {}
346  CDRText(const librevenge::RVNGString &text, const CDRStyle &style)
347  : m_text(text), m_style(style) {}
348  librevenge::RVNGString m_text;
350 };
351 
353 {
355  CDRTextLine(const CDRTextLine &line) : m_line(line.m_line) {}
356  void append(const CDRText &text)
357  {
358  m_line.push_back(text);
359  }
360  void clear()
361  {
362  m_line.clear();
363  }
364  std::vector<CDRText> m_line;
365 };
366 
367 struct CDRFont
368 {
369  CDRFont() : m_name(), m_encoding(0) {}
370  CDRFont(const librevenge::RVNGString &name, unsigned short encoding)
371  : m_name(name), m_encoding(encoding) {}
372  CDRFont(const CDRFont &font)
373  : m_name(font.m_name), m_encoding(font.m_encoding) {}
374  librevenge::RVNGString m_name;
375  unsigned short m_encoding;
376 };
377 
378 } // namespace libcdr
379 
380 #endif /* __CDRTYPES_H__ */
381 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libcdr::CDRLineStyle::lineWidth
double lineWidth
Definition: CDRTypes.h:118
libcdr::CDRText::m_style
CDRStyle m_style
Definition: CDRTypes.h:349
libcdr::CDRImage::m_y1
double m_y1
Definition: CDRTypes.h:197
libcdr::WaldoRecordType1::m_parent
unsigned short m_parent
Definition: CDRTypes.h:293
libcdr::WaldoRecordType1::WaldoRecordType1
WaldoRecordType1()
Definition: CDRTypes.h:286
libcdr::CDRBitmap
Definition: CDRTypes.h:226
libcdr::CDRPolygon::CDRPolygon
CDRPolygon(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
Definition: CDRTypes.h:187
libcdr::CDRCMYKColor::y
double y
Definition: CDRTypes.h:309
libcdr::CDRPolygon::CDRPolygon
CDRPolygon()
Definition: CDRTypes.h:186
libcdr::CDRBox::getHeight
double getHeight() const
Definition: CDRTypes.h:38
libcdr::CDRCMYKColor
Definition: CDRTypes.h:302
libcdr::WaldoRecordInfo::WaldoRecordInfo
WaldoRecordInfo()
Definition: CDRTypes.h:273
libcdr::CDRBitmap::bitmap
std::vector< unsigned char > bitmap
Definition: CDRTypes.h:233
libcdr::CDRBitmap::height
unsigned height
Definition: CDRTypes.h:230
libcdr::CDRImage::CDRImage
CDRImage(const librevenge::RVNGBinaryData &image, double x1, double x2, double y1, double y2)
Definition: CDRTypes.h:200
libcdr::CDRColor::CDRColor
CDRColor()
Definition: CDRTypes.h:57
libcdr::CDRGradientStop::m_color
CDRColor m_color
Definition: CDRTypes.h:64
libcdr::CDRStyle::m_lineStyle
CDRLineStyle m_lineStyle
Definition: CDRTypes.h:144
libcdr::CDRLineStyle::angle
double angle
Definition: CDRTypes.h:120
libcdr::CDRImage::m_image
librevenge::RVNGBinaryData m_image
Definition: CDRTypes.h:194
libcdr::CDRPage::offsetY
double offsetY
Definition: CDRTypes.h:244
libcdr::CDRTextLine::append
void append(const CDRText &text)
Definition: CDRTypes.h:356
libcdr::CDRImageFill::CDRImageFill
CDRImageFill()
Definition: CDRTypes.h:95
libcdr::CDRGradientStop::CDRGradientStop
CDRGradientStop()
Definition: CDRTypes.h:66
libcdr::CDRText
Definition: CDRTypes.h:343
libcdr::CDRImage::getMiddleX
double getMiddleX() const
Definition: CDRTypes.h:202
libcdr::CDRPath::appendPath
void appendPath(const CDRPath &path)
Definition: CDRPath.cpp:694
libcdr::CDRPath::appendQuadraticBezierTo
void appendQuadraticBezierTo(double x1, double y1, double x, double y)
Definition: CDRPath.cpp:651
libcdr::CDRLab4Color::~CDRLab4Color
~CDRLab4Color()
Definition: CDRTypes.h:337
libcdr::WaldoRecordInfo::offset
unsigned offset
Definition: CDRTypes.h:276
libcdr::CDRPattern::pattern
std::vector< unsigned char > pattern
Definition: CDRTypes.h:220
libcdr::CDRStyle::m_rightIndent
double m_rightIndent
Definition: CDRTypes.h:143
libcdr::WaldoRecordInfo::type
unsigned char type
Definition: CDRTypes.h:274
libcdr::CDRFillStyle::color1
CDRColor color1
Definition: CDRTypes.h:104
libcdr::CDRBitmap::width
unsigned width
Definition: CDRTypes.h:229
libcdr::CDRImageFill::CDRImageFill
CDRImageFill(unsigned i, double w, double h, bool r, double x, double y, double o, unsigned char f)
Definition: CDRTypes.h:97
libcdr::CDRRGBColor::b
double b
Definition: CDRTypes.h:320
libcdr::CDRLab2Color::CDRLab2Color
CDRLab2Color(double l, double A, double B)
Definition: CDRTypes.h:325
libcdr::CDRGradientStop
Definition: CDRTypes.h:62
libcdr::CDRPath::appendSplineTo
void appendSplineTo(const std::vector< std::pair< double, double > > &points)
Definition: CDRPath.cpp:661
libcdr::CDRFont::m_name
librevenge::RVNGString m_name
Definition: CDRTypes.h:374
libcdr::CDRPage::CDRPage
CDRPage(double w, double h, double ox, double oy)
Definition: CDRTypes.h:246
libcdr::CDRStyle::CDRStyle
CDRStyle()
Definition: CDRTypes.h:147
libcdr::CDRLab2Color
Definition: CDRTypes.h:323
libcdr::CDRPolygon::m_rx
double m_rx
Definition: CDRTypes.h:182
libcdr::WaldoRecordInfo
Definition: CDRTypes.h:269
libcdr::CDRPolygon::m_cy
double m_cy
Definition: CDRTypes.h:185
libcdr::CDRLineStyle::color
CDRColor color
Definition: CDRTypes.h:121
libcdr::CDRFillStyle::CDRFillStyle
CDRFillStyle(unsigned short ft, CDRColor c1, CDRColor c2, const CDRGradient &gr, const CDRImageFill &img)
Definition: CDRTypes.h:109
libcdr::CDRImage::m_x1
double m_x1
Definition: CDRTypes.h:195
libcdr::CDRPage::height
double height
Definition: CDRTypes.h:242
libcdr::CDRStyle::m_align
unsigned m_align
Definition: CDRTypes.h:142
libcdr::CDRStyle::m_parentId
unsigned m_parentId
Definition: CDRTypes.h:146
libcdr::CDRPage
Definition: CDRTypes.h:239
libcdr::CDRLineStyle::endMarker
CDRPath endMarker
Definition: CDRTypes.h:124
libcdr::CDRPolygon::m_cx
double m_cx
Definition: CDRTypes.h:184
CDRTransforms.h
libcdr::CDRGradient::m_angle
double m_angle
Definition: CDRTypes.h:75
libcdr::CDRLineStyle
Definition: CDRTypes.h:113
libcdr::CDRLineStyle::capsType
unsigned short capsType
Definition: CDRTypes.h:116
libcdr::CDRLineStyle::joinType
unsigned short joinType
Definition: CDRTypes.h:117
libcdr::CDRBox::m_h
double m_h
Definition: CDRTypes.h:29
libcdr::CDRGradientStop::CDRGradientStop
CDRGradientStop(const CDRColor &color, double offset)
Definition: CDRTypes.h:67
libcdr::CDRTransform
Definition: CDRTransforms.h:19
libcdr::CDRCMYKColor::~CDRCMYKColor
~CDRCMYKColor()
Definition: CDRTypes.h:306
libcdr::CDRFillStyle::gradient
CDRGradient gradient
Definition: CDRTypes.h:105
libcdr::CDRText::CDRText
CDRText()
Definition: CDRTypes.h:345
libcdr::CDRGradient::m_stops
std::vector< CDRGradientStop > m_stops
Definition: CDRTypes.h:80
libcdr::CDRImageFill::isRelative
bool isRelative
Definition: CDRTypes.h:90
libcdr::CDRCMYKColor::m
double m
Definition: CDRTypes.h:308
libcdr::CDRPolygon
Definition: CDRTypes.h:178
libcdr::WaldoRecordType1::m_flags
unsigned short m_flags
Definition: CDRTypes.h:294
libcdr::CDRRGBColor::g
double g
Definition: CDRTypes.h:319
libcdr::WaldoRecordType1::m_id
unsigned m_id
Definition: CDRTypes.h:289
libcdr::CDRFillStyle::CDRFillStyle
CDRFillStyle()
Definition: CDRTypes.h:107
libcdr::CDRTextLine::clear
void clear()
Definition: CDRTypes.h:360
libcdr::WaldoRecordType1::m_y1
double m_y1
Definition: CDRTypes.h:298
libcdr::CDRColor::m_colorValue
unsigned m_colorValue
Definition: CDRTypes.h:56
libcdr::WaldoRecordType1
Definition: CDRTypes.h:279
libcdr::CDRStyle::m_fontName
librevenge::RVNGString m_fontName
Definition: CDRTypes.h:140
CDRPath.h
libcdr::CDRLineStyle::lineType
unsigned short lineType
Definition: CDRTypes.h:115
libcdr::CDRImageFill::rcpOffset
double rcpOffset
Definition: CDRTypes.h:93
libcdr::CDRSplineData::create
void create(CDRPath &path) const
Definition: CDRTypes.cpp:54
libcdr::WaldoRecordType1::m_previous
unsigned short m_previous
Definition: CDRTypes.h:291
libcdr::CDRFont::m_encoding
unsigned short m_encoding
Definition: CDRTypes.h:375
libcdr::CDRGradient::m_centerXOffset
int m_centerXOffset
Definition: CDRTypes.h:78
libcdr::CDRImageFill::height
double height
Definition: CDRTypes.h:89
libcdr::CDRSplineData::CDRSplineData
CDRSplineData()
Definition: CDRTypes.h:254
libcdr::CDRText::CDRText
CDRText(const librevenge::RVNGString &text, const CDRStyle &style)
Definition: CDRTypes.h:346
libcdr::WaldoRecordType1::m_x1
double m_x1
Definition: CDRTypes.h:297
libcdr::CDRRGBColor
Definition: CDRTypes.h:313
libcdr::CDRPattern::height
unsigned height
Definition: CDRTypes.h:219
libcdr::CDRBitmap::CDRBitmap
CDRBitmap()
Definition: CDRTypes.h:234
libcdr::CDRSplineData::CDRSplineData
CDRSplineData(const std::vector< std::pair< double, double > > &ps, const std::vector< unsigned > &kntv)
Definition: CDRTypes.h:255
libcdr::CDRPattern::CDRPattern
CDRPattern(unsigned w, unsigned h, const std::vector< unsigned char > &p)
Definition: CDRTypes.h:222
libcdr::CDRBitmap::palette
std::vector< unsigned > palette
Definition: CDRTypes.h:232
libcdr::CDRStyle::overrideStyle
void overrideStyle(const CDRStyle &override)
Definition: CDRTypes.h:154
libcdr::CDRLineStyle::dashArray
std::vector< unsigned > dashArray
Definition: CDRTypes.h:122
libcdr::CDRLineStyle::CDRLineStyle
CDRLineStyle()
Definition: CDRTypes.h:125
libcdr::WaldoRecordType1::m_y0
double m_y0
Definition: CDRTypes.h:296
libcdr::CDRStyle
Definition: CDRTypes.h:137
libcdr::CDRTextLine::CDRTextLine
CDRTextLine()
Definition: CDRTypes.h:354
libcdr::WaldoRecordType1::m_next
unsigned short m_next
Definition: CDRTypes.h:290
libcdr::CDRPattern::CDRPattern
CDRPattern()
Definition: CDRTypes.h:221
libcdr::CDRStyle::m_firstIndent
double m_firstIndent
Definition: CDRTypes.h:143
libcdr
Definition: CDRCollector.h:24
libcdr::CDRBox
Definition: CDRTypes.h:24
libcdr::CDRSplineData::empty
bool empty()
Definition: CDRTypes.h:262
libcdr::CDRPolygon::m_numAngles
unsigned m_numAngles
Definition: CDRTypes.h:180
libcdr::CDRGradient::m_mode
unsigned char m_mode
Definition: CDRTypes.h:74
libcdr::CDRTextLine
Definition: CDRTypes.h:352
libcdr::CDRImage::getImage
const librevenge::RVNGBinaryData & getImage() const
Definition: CDRTypes.h:210
libcdr::CDRImage::CDRImage
CDRImage()
Definition: CDRTypes.h:199
libcdr::CDRBox::getMinX
double getMinX() const
Definition: CDRTypes.h:42
libcdr::CDRTextLine::m_line
std::vector< CDRText > m_line
Definition: CDRTypes.h:364
libcdr::CDRPage::offsetX
double offsetX
Definition: CDRTypes.h:243
libcdr::CDRColor::CDRColor
CDRColor(unsigned short colorModel, unsigned colorValue)
Definition: CDRTypes.h:58
libcdr::CDRPath::appendClosePath
void appendClosePath()
Definition: CDRPath.cpp:666
libcdr::CDRImage::getMiddleY
double getMiddleY() const
Definition: CDRTypes.h:206
libcdr::CDRImageFill::xOffset
double xOffset
Definition: CDRTypes.h:91
libcdr::CDRBox::getMinY
double getMinY() const
Definition: CDRTypes.h:46
libcdr::WaldoRecordType1::m_trafo
CDRTransform m_trafo
Definition: CDRTypes.h:299
libcdr::CDRRGBColor::~CDRRGBColor
~CDRRGBColor()
Definition: CDRTypes.h:317
libcdr::CDRLab4Color::b
double b
Definition: CDRTypes.h:340
libcdr::CDRBitmap::bpp
unsigned bpp
Definition: CDRTypes.h:231
libcdr::CDRColor
Definition: CDRTypes.h:53
libcdr::CDRBitmap::colorModel
unsigned colorModel
Definition: CDRTypes.h:228
libcdr::CDRLab2Color::L
double L
Definition: CDRTypes.h:328
libcdr::CDRLab4Color::CDRLab4Color
CDRLab4Color(double l, double A, double B)
Definition: CDRTypes.h:335
libcdr::WaldoRecordInfo::WaldoRecordInfo
WaldoRecordInfo(unsigned char t, unsigned i, unsigned o)
Definition: CDRTypes.h:271
libcdr::CDRRGBColor::CDRRGBColor
CDRRGBColor(double red, double green, double blue)
Definition: CDRTypes.h:315
libcdr::CDRStyle::m_fillStyle
CDRFillStyle m_fillStyle
Definition: CDRTypes.h:145
libcdr::CDRFillStyle
Definition: CDRTypes.h:101
libcdr::CDRImage
Definition: CDRTypes.h:192
libcdr::CDRPage::CDRPage
CDRPage()
Definition: CDRTypes.h:245
libcdr::CDRGradient::m_edgeOffset
int m_edgeOffset
Definition: CDRTypes.h:77
libcdr::CDRPath::appendMoveTo
void appendMoveTo(double x, double y)
Definition: CDRPath.cpp:636
CDRTypes.h
libcdr::WaldoRecordType1::m_child
unsigned short m_child
Definition: CDRTypes.h:292
libcdr::CDRImageFill::flags
unsigned char flags
Definition: CDRTypes.h:94
CDR_ALMOST_ZERO
#define CDR_ALMOST_ZERO(m)
Definition: libcdr_utils.h:31
libcdr::CDRBox::getWidth
double getWidth() const
Definition: CDRTypes.h:34
libcdr::CDRSplineData::points
std::vector< std::pair< double, double > > points
Definition: CDRTypes.h:252
libcdr::CDRBox::CDRBox
CDRBox()
Definition: CDRTypes.h:30
libcdr::CDRCMYKColor::k
double k
Definition: CDRTypes.h:310
libcdr::CDRStyle::m_fontSize
double m_fontSize
Definition: CDRTypes.h:141
libcdr::CDRLab2Color::b
double b
Definition: CDRTypes.h:330
libcdr::CDRSplineData::knotVector
std::vector< unsigned > knotVector
Definition: CDRTypes.h:253
libcdr::CDRPattern
Definition: CDRTypes.h:216
libcdr::CDRRGBColor::r
double r
Definition: CDRTypes.h:318
libcdr::CDRLab4Color
Definition: CDRTypes.h:333
libcdr::WaldoRecordType1::m_x0
double m_x0
Definition: CDRTypes.h:295
libcdr::CDRGradient::CDRGradient
CDRGradient()
Definition: CDRTypes.h:81
libcdr::CDRFillStyle::imageFill
CDRImageFill imageFill
Definition: CDRTypes.h:106
libcdr::CDRPage::width
double width
Definition: CDRTypes.h:241
libcdr::CDRPattern::width
unsigned width
Definition: CDRTypes.h:218
libcdr::CDRSplineData::clear
void clear()
Definition: CDRTypes.h:257
libcdr::CDRFillStyle::fillType
unsigned short fillType
Definition: CDRTypes.h:103
libcdr::CDRGradientStop::m_offset
double m_offset
Definition: CDRTypes.h:65
M_PI
#define M_PI
Definition: libcdr_utils.h:27
libcdr::CDRGradient
Definition: CDRTypes.h:71
libcdr::CDRStyle::m_leftIndent
double m_leftIndent
Definition: CDRTypes.h:143
libcdr::CDRImage::m_x2
double m_x2
Definition: CDRTypes.h:196
libcdr::CDRImage::m_y2
double m_y2
Definition: CDRTypes.h:198
libcdr::CDRPath::appendLineTo
void appendLineTo(double x, double y)
Definition: CDRPath.cpp:641
libcdr::CDRGradient::m_midPoint
double m_midPoint
Definition: CDRTypes.h:76
libcdr::CDRImageFill::id
unsigned id
Definition: CDRTypes.h:87
libcdr::CDRLineStyle::startMarker
CDRPath startMarker
Definition: CDRTypes.h:123
libcdr::CDRPath::transform
void transform(const CDRTransforms &trafos) override
Definition: CDRPath.cpp:848
libcdr::CDRLab4Color::L
double L
Definition: CDRTypes.h:338
libcdr::CDRLineStyle::stretch
double stretch
Definition: CDRTypes.h:119
libcdr::CDRLab4Color::a
double a
Definition: CDRTypes.h:339
libcdr::CDRBox::m_w
double m_w
Definition: CDRTypes.h:28
libcdr::WaldoRecordType1::WaldoRecordType1
WaldoRecordType1(unsigned id, unsigned short next, unsigned short previous, unsigned short child, unsigned short parent, unsigned short flags, double x0, double y0, double x1, double y1, const CDRTransform &trafo)
Definition: CDRTypes.h:281
libcdr::CDRBox::CDRBox
CDRBox(double x0, double y0, double x1, double y1)
Definition: CDRTypes.h:32
libcdr::CDRPath
Definition: CDRPath.h:36
libcdr::WaldoRecordInfo::id
unsigned id
Definition: CDRTypes.h:275
libcdr_utils.h
libcdr::CDRBox::m_y
double m_y
Definition: CDRTypes.h:27
libcdr::CDRLineStyle::CDRLineStyle
CDRLineStyle(unsigned short lt, unsigned short ct, unsigned short jt, double lw, double st, double a, const CDRColor &c, const std::vector< unsigned > &da, const CDRPath &sm, const CDRPath &em)
Definition: CDRTypes.h:129
libcdr::CDRGradient::m_centerYOffset
int m_centerYOffset
Definition: CDRTypes.h:79
libcdr::CDRGradient::m_type
unsigned char m_type
Definition: CDRTypes.h:73
libcdr::CDRCMYKColor::c
double c
Definition: CDRTypes.h:307
libcdr::CDRColor::m_colorModel
unsigned short m_colorModel
Definition: CDRTypes.h:55
libcdr::CDRFont::CDRFont
CDRFont()
Definition: CDRTypes.h:369
libcdr::CDRCMYKColor::CDRCMYKColor
CDRCMYKColor(double cyan, double magenta, double yellow, double black)
Definition: CDRTypes.h:304
libcdr::CDRText::m_text
librevenge::RVNGString m_text
Definition: CDRTypes.h:348
libcdr::CDRLab2Color::a
double a
Definition: CDRTypes.h:329
libcdr::CDRFont::CDRFont
CDRFont(const CDRFont &font)
Definition: CDRTypes.h:372
libcdr::CDRImageFill::yOffset
double yOffset
Definition: CDRTypes.h:92
libcdr::CDRLab2Color::~CDRLab2Color
~CDRLab2Color()
Definition: CDRTypes.h:327
libcdr::CDRPolygon::m_nextPoint
unsigned m_nextPoint
Definition: CDRTypes.h:181
libcdr::CDRBitmap::CDRBitmap
CDRBitmap(unsigned cm, unsigned w, unsigned h, unsigned b, const std::vector< unsigned > &p, const std::vector< unsigned char > &bmp)
Definition: CDRTypes.h:235
libcdr::CDRFont::CDRFont
CDRFont(const librevenge::RVNGString &name, unsigned short encoding)
Definition: CDRTypes.h:370
libcdr::CDRTextLine::CDRTextLine
CDRTextLine(const CDRTextLine &line)
Definition: CDRTypes.h:355
libcdr::CDRPolygon::create
void create(CDRPath &path) const
Definition: CDRTypes.cpp:14
libcdr::CDRImageFill::width
double width
Definition: CDRTypes.h:88
libcdr::CDRImageFill
Definition: CDRTypes.h:85
libcdr::CDRSplineData
Definition: CDRTypes.h:250
libcdr::CDRFont
Definition: CDRTypes.h:367
libcdr::CDRPolygon::m_ry
double m_ry
Definition: CDRTypes.h:183
libcdr::CDRFillStyle::color2
CDRColor color2
Definition: CDRTypes.h:104
libcdr::CDRStyle::m_charSet
unsigned short m_charSet
Definition: CDRTypes.h:139
libcdr::CDRBox::m_x
double m_x
Definition: CDRTypes.h:26

Generated for libcdr by doxygen 1.8.16