CDRTypes.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libcdr project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __CDRTYPES_H__
#define __CDRTYPES_H__
#include <utility>
#include <vector>
#include <math.h>
#include <librevenge/librevenge.h>
#include "CDRTransforms.h"
#include "CDRPath.h"
#include "libcdr_utils.h"
namespace libcdr
{
struct CDRBox
{
double m_x;
double m_y;
double m_w;
double m_h;
CDRBox()
: m_x(0.0), m_y(0.0), m_w(0.0), m_h(0.0) {}
CDRBox(double x0, double y0, double x1, double y1)
: m_x(x0 < x1 ? x0 : x1), m_y(y0 < y1 ? y0 : y1), m_w(fabs(x1-x0)), m_h(fabs(y1-y0)) {}
double getWidth() const
{
return m_w;
}
double getHeight() const
{
return m_h;
}
double getMinX() const
{
return m_x;
}
double getMinY() const
{
return m_y;
}
};
struct CDRColor
{
unsigned short m_colorModel;
unsigned short m_colorPalette;
unsigned m_colorValue;
CDRColor(unsigned short colorModel, unsigned short colorPalette, unsigned colorValue)
: m_colorModel(colorModel), m_colorPalette(colorPalette), m_colorValue(colorValue) {}
CDRColor()
: m_colorModel(0), m_colorPalette(0), m_colorValue(0) {}
CDRColor(unsigned short colorModel, unsigned colorValue)
: m_colorModel(colorModel), m_colorPalette(0), m_colorValue(colorValue) {}
};
struct CDRGradientStop
{
CDRColor m_color;
double m_offset;
CDRGradientStop() : m_color(), m_offset(0.0) {}
CDRGradientStop(const CDRColor &color, double offset)
: m_color(color), m_offset(offset) {}
};
struct CDRGradient
{
unsigned char m_type;
unsigned char m_mode;
double m_angle;
double m_midPoint;
int m_edgeOffset;
int m_centerXOffset;
int m_centerYOffset;
std::vector<CDRGradientStop> m_stops;
CDRGradient()
: 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() {}
};
struct CDRImageFill
{
unsigned id;
double width;
double height;
bool isRelative;
double xOffset;
double yOffset;
double rcpOffset;
unsigned char flags;
CDRImageFill() : id(0), width(0.0), height(0.0), isRelative(false), xOffset(0.0), yOffset(0.0), rcpOffset(0.0), flags(0)
{}
CDRImageFill(unsigned i, double w, double h, bool r, double x, double y, double o, unsigned char f)
: id(i), width(w), height(h), isRelative(r), xOffset(x), yOffset(y), rcpOffset(o), flags(f) {}
};
struct CDRFillStyle
{
unsigned short fillType;
CDRColor color1, color2;
CDRGradient gradient;
CDRImageFill imageFill;
CDRFillStyle()
: fillType((unsigned short)-1), color1(), color2(), gradient(), imageFill() {}
CDRFillStyle(unsigned short ft, CDRColor c1, CDRColor c2, const CDRGradient &gr, const CDRImageFill &img)
: fillType(ft), color1(c1), color2(c2), gradient(gr), imageFill(img) {}
};
struct CDRLineStyle
{
unsigned short lineType;
unsigned short capsType;
unsigned short joinType;
double lineWidth;
double stretch;
double angle;
CDRColor color;
std::vector<unsigned> dashArray;
CDRPath startMarker;
CDRPath endMarker;
CDRLineStyle()
: lineType((unsigned short)-1), capsType(0), joinType(0), lineWidth(0.0),
stretch(0.0), angle(0.0), color(), dashArray(),
startMarker(), endMarker() {}
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)
: lineType(lt), capsType(ct), joinType(jt), lineWidth(lw),
stretch(st), angle(a), color(c), dashArray(da),
startMarker(sm), endMarker(em) {}
};
struct CDRStyle
{
unsigned short m_charSet;
librevenge::RVNGString m_fontName;
double m_fontSize;
unsigned m_align;
double m_leftIndent, m_firstIndent, m_rightIndent;
CDRLineStyle m_lineStyle;
CDRFillStyle m_fillStyle;
unsigned m_parentId;
CDRStyle()
: m_charSet((unsigned short)-1), m_fontName(),
m_fontSize(0.0), m_align(0), m_leftIndent(0.0), m_firstIndent(0.0),
m_rightIndent(0.0), m_lineStyle(), m_fillStyle(), m_parentId(0)
{
m_fontName.clear();
}
void overrideStyle(const CDRStyle &override)
{
if (override.m_charSet != (unsigned short)-1 || override.m_fontName.len())
{
m_charSet = override.m_charSet;
m_fontName = override.m_fontName;
}
if (!CDR_ALMOST_ZERO(override.m_fontSize))
m_fontSize = override.m_fontSize;
if (override.m_align)
m_align = override.m_align;
if (!CDR_ALMOST_ZERO(override.m_leftIndent) && !CDR_ALMOST_ZERO(override.m_firstIndent) && !CDR_ALMOST_ZERO(override.m_rightIndent))
{
m_leftIndent = override.m_leftIndent;
m_firstIndent = override.m_firstIndent;
m_rightIndent = override.m_rightIndent;
}
if (override.m_lineStyle.lineType != (unsigned short)-1)
m_lineStyle = override.m_lineStyle;
if (override.m_fillStyle.fillType != (unsigned short)-1)
m_fillStyle = override.m_fillStyle;
}
};
struct CDRPolygon
{
unsigned m_numAngles;
unsigned m_nextPoint;
double m_rx;
double m_ry;
double m_cx;
double m_cy;
CDRPolygon() : m_numAngles(0), m_nextPoint(0), m_rx(0.0), m_ry(0.0), m_cx(0.0), m_cy(0.0) {}
CDRPolygon(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
: m_numAngles(numAngles), m_nextPoint(nextPoint), m_rx(rx), m_ry(ry), m_cx(cx), m_cy(cy) {}
void create(CDRPath &path) const;
};
struct CDRImage
{
librevenge::RVNGBinaryData m_image;
double m_x1;
double m_x2;
double m_y1;
double m_y2;
CDRImage() : m_image(), m_x1(0.0), m_x2(0.0), m_y1(0.0), m_y2(0.0) {}
CDRImage(const librevenge::RVNGBinaryData &image, double x1, double x2, double y1, double y2)
: m_image(image), m_x1(x1), m_x2(x2), m_y1(y1), m_y2(y2) {}
double getMiddleX() const
{
return (m_x1 + m_x2) / 2.0;
}
double getMiddleY() const
{
return (m_y1 + m_y2) / 2.0;
}
const librevenge::RVNGBinaryData &getImage() const
{
return m_image;
}
};
struct CDRPattern
{
unsigned width;
unsigned height;
std::vector<unsigned char> pattern;
CDRPattern() : width(0), height(0), pattern() {}
CDRPattern(unsigned w, unsigned h, const std::vector<unsigned char> &p)
: width(w), height(h), pattern(p) {}
};
struct CDRBitmap
{
unsigned colorModel;
unsigned width;
unsigned height;
unsigned bpp;
std::vector<unsigned> palette;
std::vector<unsigned char> bitmap;
CDRBitmap() : colorModel(0), width(0), height(0), bpp(0), palette(), bitmap() {}
CDRBitmap(unsigned cm, unsigned w, unsigned h, unsigned b, const std::vector<unsigned> &p, const std::vector<unsigned char> &bmp)
: colorModel(cm), width(w), height(h), bpp(b), palette(p), bitmap(bmp) {}
};
struct CDRPage
{
double width;
double height;
double offsetX;
double offsetY;
CDRPage() : width(0.0), height(0.0), offsetX(0.0), offsetY(0.0) {}
CDRPage(double w, double h, double ox, double oy)
: width(w), height(h), offsetX(ox), offsetY(oy) {}
};
struct CDRSplineData
{
std::vector<std::pair<double, double> > points;
std::vector<unsigned> knotVector;
CDRSplineData() : points(), knotVector() {}
CDRSplineData(const std::vector<std::pair<double, double> > &ps, const std::vector<unsigned> &kntv)
: points(ps), knotVector(kntv) {}
void clear()
{
points.clear();
knotVector.clear();
}
bool empty()
{
return (points.empty() || knotVector.empty());
}
void create(CDRPath &path) const;
};
struct WaldoRecordInfo
{
WaldoRecordInfo(unsigned char t, unsigned i, unsigned o)
: type(t), id(i), offset(o) {}
WaldoRecordInfo() : type(0), id(0), offset(0) {}
unsigned char type;
unsigned id;
unsigned offset;
};
struct 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)
: m_id(id), m_next(next), m_previous(previous), m_child(child), m_parent(parent),
m_flags(flags), m_x0(x0), m_y0(y0), m_x1(x1), m_y1(y1), m_trafo(trafo) {}
WaldoRecordType1()
: m_id(0), m_next(0), m_previous(0), m_child(0), m_parent(0), m_flags(0),
m_x0(0.0), m_y0(0.0), m_x1(0.0), m_y1(0.0), m_trafo() {}
unsigned m_id;
unsigned short m_next;
unsigned short m_previous;
unsigned short m_child;
unsigned short m_parent;
unsigned short m_flags;
double m_x0;
double m_y0;
double m_x1;
double m_y1;
CDRTransform m_trafo;
};
struct CDRCMYKColor
{
CDRCMYKColor(double cyan, double magenta, double yellow, double black)
: c(cyan), m(magenta), y(yellow), k(black) {}
~CDRCMYKColor() {}
double c;
double m;
double y;
double k;
};
struct CDRRGBColor
{
CDRRGBColor(double red, double green, double blue)
: r(red), g(green), b(blue) {}
~CDRRGBColor() {}
double r;
double g;
double b;
};
struct CDRLab2Color
{
CDRLab2Color(double l, double A, double B)
: L(l), a(A), b(B) {}
~CDRLab2Color() {}
double L;
double a;
double b;
};
struct CDRLab4Color
{
CDRLab4Color(double l, double A, double B)
: L(l), a(A), b(B) {}
~CDRLab4Color() {}
double L;
double a;
double b;
};
struct CDRText
{
CDRText() : m_text(), m_style() {}
CDRText(const librevenge::RVNGString &text, const CDRStyle &style)
: m_text(text), m_style(style) {}
librevenge::RVNGString m_text;
CDRStyle m_style;
};
struct CDRTextLine
{
CDRTextLine() : m_line() {}
CDRTextLine(const CDRTextLine &line) : m_line(line.m_line) {}
void append(const CDRText &text)
{
m_line.push_back(text);
}
void clear()
{
m_line.clear();
}
std::vector<CDRText> m_line;
};
struct CDRFont
{
CDRFont() : m_name(), m_encoding(0) {}
CDRFont(const librevenge::RVNGString &name, unsigned short encoding)
: m_name(name), m_encoding(encoding) {}
CDRFont(const CDRFont &font) = default;
CDRFont &operator=(const CDRFont &font) = default;
librevenge::RVNGString m_name;
unsigned short m_encoding;
};
} // namespace libcdr
#endif /* __CDRTYPES_H__ */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
CDRPath.h
CDRTransforms.h
libcdr::CDRPath
Definition CDRPath.h:37
libcdr::CDRTransform
Definition CDRTransforms.h:20
libcdr_utils.h
CDR_ALMOST_ZERO
#define CDR_ALMOST_ZERO(m)
Definition libcdr_utils.h:31
libcdr
Definition CDRCollector.h:25
libcdr::CDRBitmap::bpp
unsigned bpp
Definition CDRTypes.h:235
libcdr::CDRBitmap::width
unsigned width
Definition CDRTypes.h:233
libcdr::CDRBitmap::CDRBitmap
CDRBitmap()
Definition CDRTypes.h:238
libcdr::CDRBitmap::bitmap
std::vector< unsigned char > bitmap
Definition CDRTypes.h:237
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:239
libcdr::CDRBitmap::height
unsigned height
Definition CDRTypes.h:234
libcdr::CDRBitmap::palette
std::vector< unsigned > palette
Definition CDRTypes.h:236
libcdr::CDRBitmap::colorModel
unsigned colorModel
Definition CDRTypes.h:232
libcdr::CDRBox::getHeight
double getHeight() const
Definition CDRTypes.h:38
libcdr::CDRBox::getMinX
double getMinX() const
Definition CDRTypes.h:42
libcdr::CDRBox::CDRBox
CDRBox(double x0, double y0, double x1, double y1)
Definition CDRTypes.h:32
libcdr::CDRBox::m_y
double m_y
Definition CDRTypes.h:27
libcdr::CDRBox::m_x
double m_x
Definition CDRTypes.h:26
libcdr::CDRBox::m_h
double m_h
Definition CDRTypes.h:29
libcdr::CDRBox::getMinY
double getMinY() const
Definition CDRTypes.h:46
libcdr::CDRBox::m_w
double m_w
Definition CDRTypes.h:28
libcdr::CDRBox::getWidth
double getWidth() const
Definition CDRTypes.h:34
libcdr::CDRBox::CDRBox
CDRBox()
Definition CDRTypes.h:30
libcdr::CDRCMYKColor::k
double k
Definition CDRTypes.h:314
libcdr::CDRCMYKColor::m
double m
Definition CDRTypes.h:312
libcdr::CDRCMYKColor::CDRCMYKColor
CDRCMYKColor(double cyan, double magenta, double yellow, double black)
Definition CDRTypes.h:308
libcdr::CDRCMYKColor::y
double y
Definition CDRTypes.h:313
libcdr::CDRCMYKColor::~CDRCMYKColor
~CDRCMYKColor()
Definition CDRTypes.h:310
libcdr::CDRCMYKColor::c
double c
Definition CDRTypes.h:311
libcdr::CDRColor
Definition CDRTypes.h:54
libcdr::CDRColor::m_colorValue
unsigned m_colorValue
Definition CDRTypes.h:57
libcdr::CDRColor::CDRColor
CDRColor(unsigned short colorModel, unsigned short colorPalette, unsigned colorValue)
Definition CDRTypes.h:58
libcdr::CDRColor::m_colorModel
unsigned short m_colorModel
Definition CDRTypes.h:55
libcdr::CDRColor::CDRColor
CDRColor(unsigned short colorModel, unsigned colorValue)
Definition CDRTypes.h:62
libcdr::CDRColor::m_colorPalette
unsigned short m_colorPalette
Definition CDRTypes.h:56
libcdr::CDRColor::CDRColor
CDRColor()
Definition CDRTypes.h:60
libcdr::CDRFillStyle
Definition CDRTypes.h:106
libcdr::CDRFillStyle::fillType
unsigned short fillType
Definition CDRTypes.h:107
libcdr::CDRFillStyle::CDRFillStyle
CDRFillStyle()
Definition CDRTypes.h:111
libcdr::CDRFillStyle::color1
CDRColor color1
Definition CDRTypes.h:108
libcdr::CDRFillStyle::color2
CDRColor color2
Definition CDRTypes.h:108
libcdr::CDRFillStyle::gradient
CDRGradient gradient
Definition CDRTypes.h:109
libcdr::CDRFillStyle::imageFill
CDRImageFill imageFill
Definition CDRTypes.h:110
libcdr::CDRFillStyle::CDRFillStyle
CDRFillStyle(unsigned short ft, CDRColor c1, CDRColor c2, const CDRGradient &gr, const CDRImageFill &img)
Definition CDRTypes.h:113
libcdr::CDRFont::CDRFont
CDRFont(const CDRFont &font)=default
libcdr::CDRFont::CDRFont
CDRFont()
Definition CDRTypes.h:373
libcdr::CDRFont::CDRFont
CDRFont(const librevenge::RVNGString &name, unsigned short encoding)
Definition CDRTypes.h:374
libcdr::CDRFont::m_name
librevenge::RVNGString m_name
Definition CDRTypes.h:378
libcdr::CDRFont::m_encoding
unsigned short m_encoding
Definition CDRTypes.h:379
libcdr::CDRFont::operator=
CDRFont & operator=(const CDRFont &font)=default
libcdr::CDRGradientStop::CDRGradientStop
CDRGradientStop()
Definition CDRTypes.h:70
libcdr::CDRGradientStop::CDRGradientStop
CDRGradientStop(const CDRColor &color, double offset)
Definition CDRTypes.h:71
libcdr::CDRGradientStop::m_color
CDRColor m_color
Definition CDRTypes.h:68
libcdr::CDRGradientStop::m_offset
double m_offset
Definition CDRTypes.h:69
libcdr::CDRGradient
Definition CDRTypes.h:76
libcdr::CDRGradient::CDRGradient
CDRGradient()
Definition CDRTypes.h:85
libcdr::CDRGradient::m_angle
double m_angle
Definition CDRTypes.h:79
libcdr::CDRGradient::m_mode
unsigned char m_mode
Definition CDRTypes.h:78
libcdr::CDRGradient::m_stops
std::vector< CDRGradientStop > m_stops
Definition CDRTypes.h:84
libcdr::CDRGradient::m_type
unsigned char m_type
Definition CDRTypes.h:77
libcdr::CDRGradient::m_centerYOffset
int m_centerYOffset
Definition CDRTypes.h:83
libcdr::CDRGradient::m_edgeOffset
int m_edgeOffset
Definition CDRTypes.h:81
libcdr::CDRGradient::m_centerXOffset
int m_centerXOffset
Definition CDRTypes.h:82
libcdr::CDRGradient::m_midPoint
double m_midPoint
Definition CDRTypes.h:80
libcdr::CDRImageFill
Definition CDRTypes.h:90
libcdr::CDRImageFill::isRelative
bool isRelative
Definition CDRTypes.h:94
libcdr::CDRImageFill::CDRImageFill
CDRImageFill()
Definition CDRTypes.h:99
libcdr::CDRImageFill::xOffset
double xOffset
Definition CDRTypes.h:95
libcdr::CDRImageFill::width
double width
Definition CDRTypes.h:92
libcdr::CDRImageFill::id
unsigned id
Definition CDRTypes.h:91
libcdr::CDRImageFill::flags
unsigned char flags
Definition CDRTypes.h:98
libcdr::CDRImageFill::rcpOffset
double rcpOffset
Definition CDRTypes.h:97
libcdr::CDRImageFill::yOffset
double yOffset
Definition CDRTypes.h:96
libcdr::CDRImageFill::height
double height
Definition CDRTypes.h:93
libcdr::CDRImageFill::CDRImageFill
CDRImageFill(unsigned i, double w, double h, bool r, double x, double y, double o, unsigned char f)
Definition CDRTypes.h:101
libcdr::CDRImage::m_y2
double m_y2
Definition CDRTypes.h:202
libcdr::CDRImage::m_x1
double m_x1
Definition CDRTypes.h:199
libcdr::CDRImage::m_y1
double m_y1
Definition CDRTypes.h:201
libcdr::CDRImage::CDRImage
CDRImage()
Definition CDRTypes.h:203
libcdr::CDRImage::getImage
const librevenge::RVNGBinaryData & getImage() const
Definition CDRTypes.h:214
libcdr::CDRImage::getMiddleX
double getMiddleX() const
Definition CDRTypes.h:206
libcdr::CDRImage::CDRImage
CDRImage(const librevenge::RVNGBinaryData &image, double x1, double x2, double y1, double y2)
Definition CDRTypes.h:204
libcdr::CDRImage::getMiddleY
double getMiddleY() const
Definition CDRTypes.h:210
libcdr::CDRImage::m_image
librevenge::RVNGBinaryData m_image
Definition CDRTypes.h:198
libcdr::CDRImage::m_x2
double m_x2
Definition CDRTypes.h:200
libcdr::CDRLab2Color::CDRLab2Color
CDRLab2Color(double l, double A, double B)
Definition CDRTypes.h:329
libcdr::CDRLab2Color::L
double L
Definition CDRTypes.h:332
libcdr::CDRLab2Color::b
double b
Definition CDRTypes.h:334
libcdr::CDRLab2Color::a
double a
Definition CDRTypes.h:333
libcdr::CDRLab2Color::~CDRLab2Color
~CDRLab2Color()
Definition CDRTypes.h:331
libcdr::CDRLab4Color::b
double b
Definition CDRTypes.h:344
libcdr::CDRLab4Color::~CDRLab4Color
~CDRLab4Color()
Definition CDRTypes.h:341
libcdr::CDRLab4Color::CDRLab4Color
CDRLab4Color(double l, double A, double B)
Definition CDRTypes.h:339
libcdr::CDRLab4Color::a
double a
Definition CDRTypes.h:343
libcdr::CDRLab4Color::L
double L
Definition CDRTypes.h:342
libcdr::CDRLineStyle
Definition CDRTypes.h:118
libcdr::CDRLineStyle::capsType
unsigned short capsType
Definition CDRTypes.h:120
libcdr::CDRLineStyle::angle
double angle
Definition CDRTypes.h:124
libcdr::CDRLineStyle::color
CDRColor color
Definition CDRTypes.h:125
libcdr::CDRLineStyle::dashArray
std::vector< unsigned > dashArray
Definition CDRTypes.h:126
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:133
libcdr::CDRLineStyle::endMarker
CDRPath endMarker
Definition CDRTypes.h:128
libcdr::CDRLineStyle::lineType
unsigned short lineType
Definition CDRTypes.h:119
libcdr::CDRLineStyle::startMarker
CDRPath startMarker
Definition CDRTypes.h:127
libcdr::CDRLineStyle::stretch
double stretch
Definition CDRTypes.h:123
libcdr::CDRLineStyle::CDRLineStyle
CDRLineStyle()
Definition CDRTypes.h:129
libcdr::CDRLineStyle::lineWidth
double lineWidth
Definition CDRTypes.h:122
libcdr::CDRLineStyle::joinType
unsigned short joinType
Definition CDRTypes.h:121
libcdr::CDRPage::offsetY
double offsetY
Definition CDRTypes.h:248
libcdr::CDRPage::CDRPage
CDRPage()
Definition CDRTypes.h:249
libcdr::CDRPage::width
double width
Definition CDRTypes.h:245
libcdr::CDRPage::height
double height
Definition CDRTypes.h:246
libcdr::CDRPage::CDRPage
CDRPage(double w, double h, double ox, double oy)
Definition CDRTypes.h:250
libcdr::CDRPage::offsetX
double offsetX
Definition CDRTypes.h:247
libcdr::CDRPattern::CDRPattern
CDRPattern()
Definition CDRTypes.h:225
libcdr::CDRPattern::pattern
std::vector< unsigned char > pattern
Definition CDRTypes.h:224
libcdr::CDRPattern::width
unsigned width
Definition CDRTypes.h:222
libcdr::CDRPattern::height
unsigned height
Definition CDRTypes.h:223
libcdr::CDRPattern::CDRPattern
CDRPattern(unsigned w, unsigned h, const std::vector< unsigned char > &p)
Definition CDRTypes.h:226
libcdr::CDRPolygon::m_cx
double m_cx
Definition CDRTypes.h:188
libcdr::CDRPolygon::m_numAngles
unsigned m_numAngles
Definition CDRTypes.h:184
libcdr::CDRPolygon::create
void create(CDRPath &path) const
Definition CDRTypes.cpp:14
libcdr::CDRPolygon::CDRPolygon
CDRPolygon(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
Definition CDRTypes.h:191
libcdr::CDRPolygon::m_cy
double m_cy
Definition CDRTypes.h:189
libcdr::CDRPolygon::CDRPolygon
CDRPolygon()
Definition CDRTypes.h:190
libcdr::CDRPolygon::m_ry
double m_ry
Definition CDRTypes.h:187
libcdr::CDRPolygon::m_nextPoint
unsigned m_nextPoint
Definition CDRTypes.h:185
libcdr::CDRPolygon::m_rx
double m_rx
Definition CDRTypes.h:186
libcdr::CDRRGBColor::b
double b
Definition CDRTypes.h:324
libcdr::CDRRGBColor::~CDRRGBColor
~CDRRGBColor()
Definition CDRTypes.h:321
libcdr::CDRRGBColor::g
double g
Definition CDRTypes.h:323
libcdr::CDRRGBColor::CDRRGBColor
CDRRGBColor(double red, double green, double blue)
Definition CDRTypes.h:319
libcdr::CDRRGBColor::r
double r
Definition CDRTypes.h:322
libcdr::CDRSplineData::knotVector
std::vector< unsigned > knotVector
Definition CDRTypes.h:257
libcdr::CDRSplineData::points
std::vector< std::pair< double, double > > points
Definition CDRTypes.h:256
libcdr::CDRSplineData::create
void create(CDRPath &path) const
Definition CDRTypes.cpp:54
libcdr::CDRSplineData::CDRSplineData
CDRSplineData(const std::vector< std::pair< double, double > > &ps, const std::vector< unsigned > &kntv)
Definition CDRTypes.h:259
libcdr::CDRSplineData::clear
void clear()
Definition CDRTypes.h:261
libcdr::CDRSplineData::CDRSplineData
CDRSplineData()
Definition CDRTypes.h:258
libcdr::CDRSplineData::empty
bool empty()
Definition CDRTypes.h:266
libcdr::CDRStyle
Definition CDRTypes.h:142
libcdr::CDRStyle::CDRStyle
CDRStyle()
Definition CDRTypes.h:151
libcdr::CDRStyle::m_lineStyle
CDRLineStyle m_lineStyle
Definition CDRTypes.h:148
libcdr::CDRStyle::m_leftIndent
double m_leftIndent
Definition CDRTypes.h:147
libcdr::CDRStyle::m_firstIndent
double m_firstIndent
Definition CDRTypes.h:147
libcdr::CDRStyle::m_fillStyle
CDRFillStyle m_fillStyle
Definition CDRTypes.h:149
libcdr::CDRStyle::m_fontName
librevenge::RVNGString m_fontName
Definition CDRTypes.h:144
libcdr::CDRStyle::m_parentId
unsigned m_parentId
Definition CDRTypes.h:150
libcdr::CDRStyle::m_rightIndent
double m_rightIndent
Definition CDRTypes.h:147
libcdr::CDRStyle::overrideStyle
void overrideStyle(const CDRStyle &override)
Definition CDRTypes.h:158
libcdr::CDRStyle::m_charSet
unsigned short m_charSet
Definition CDRTypes.h:143
libcdr::CDRStyle::m_fontSize
double m_fontSize
Definition CDRTypes.h:145
libcdr::CDRStyle::m_align
unsigned m_align
Definition CDRTypes.h:146
libcdr::CDRTextLine::CDRTextLine
CDRTextLine(const CDRTextLine &line)
Definition CDRTypes.h:359
libcdr::CDRTextLine::clear
void clear()
Definition CDRTypes.h:364
libcdr::CDRTextLine::append
void append(const CDRText &text)
Definition CDRTypes.h:360
libcdr::CDRTextLine::CDRTextLine
CDRTextLine()
Definition CDRTypes.h:358
libcdr::CDRTextLine::m_line
std::vector< CDRText > m_line
Definition CDRTypes.h:368
libcdr::CDRText
Definition CDRTypes.h:348
libcdr::CDRText::CDRText
CDRText()
Definition CDRTypes.h:349
libcdr::CDRText::CDRText
CDRText(const librevenge::RVNGString &text, const CDRStyle &style)
Definition CDRTypes.h:350
libcdr::CDRText::m_text
librevenge::RVNGString m_text
Definition CDRTypes.h:352
libcdr::CDRText::m_style
CDRStyle m_style
Definition CDRTypes.h:353
libcdr::WaldoRecordInfo::type
unsigned char type
Definition CDRTypes.h:278
libcdr::WaldoRecordInfo::WaldoRecordInfo
WaldoRecordInfo()
Definition CDRTypes.h:277
libcdr::WaldoRecordInfo::id
unsigned id
Definition CDRTypes.h:279
libcdr::WaldoRecordInfo::WaldoRecordInfo
WaldoRecordInfo(unsigned char t, unsigned i, unsigned o)
Definition CDRTypes.h:275
libcdr::WaldoRecordInfo::offset
unsigned offset
Definition CDRTypes.h:280
libcdr::WaldoRecordType1::m_previous
unsigned short m_previous
Definition CDRTypes.h:295
libcdr::WaldoRecordType1::m_flags
unsigned short m_flags
Definition CDRTypes.h:298
libcdr::WaldoRecordType1::m_x0
double m_x0
Definition CDRTypes.h:299
libcdr::WaldoRecordType1::WaldoRecordType1
WaldoRecordType1()
Definition CDRTypes.h:290
libcdr::WaldoRecordType1::m_x1
double m_x1
Definition CDRTypes.h:301
libcdr::WaldoRecordType1::m_child
unsigned short m_child
Definition CDRTypes.h:296
libcdr::WaldoRecordType1::m_y0
double m_y0
Definition CDRTypes.h:300
libcdr::WaldoRecordType1::m_next
unsigned short m_next
Definition CDRTypes.h:294
libcdr::WaldoRecordType1::m_parent
unsigned short m_parent
Definition CDRTypes.h:297
libcdr::WaldoRecordType1::m_trafo
CDRTransform m_trafo
Definition CDRTypes.h:303
libcdr::WaldoRecordType1::m_y1
double m_y1
Definition CDRTypes.h:302
libcdr::WaldoRecordType1::m_id
unsigned m_id
Definition CDRTypes.h:293
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:285