10#ifndef INCLUDED_POLYGONUTILS_H
11#define INCLUDED_POLYGONUTILS_H
17#include <librevenge/librevenge.h>
77 Coordinate getTextRectangle(
double x,
double y,
double width,
double height, std::function<
double(
unsigned index)> calculator)
const;
79 CustomShape(
const Vertex *p_vertices,
unsigned numVertices,
const unsigned short *p_elements,
unsigned numElements,
const Calculation *p_calculations,
unsigned numCalculations,
const int *p_defaultAdjustValues,
unsigned numDefaultAdjustValues,
const TextRectangle *p_textRectangles,
unsigned numTextRectangles,
unsigned coordWidth,
unsigned coordHeight,
const Vertex *p_gluePoints,
unsigned numGluePoints,
unsigned char adjustShiftMask = 0) :
118librevenge::RVNGPropertyList
calcClipPath(
const std::vector<libmspub::Vertex> &verts,
double x,
double y,
double height,
double width,
VectorTransformation2D transform, std::shared_ptr<const CustomShape> shape);
119void writeCustomShape(
ShapeType shapeType, librevenge::RVNGPropertyList &graphicsProps, librevenge::RVNGDrawingInterface *painter,
double x,
double y,
double height,
double width,
bool closeEverything,
VectorTransformation2D transform, std::vector<Line> lines, std::function<
double(
unsigned index)> calculator,
const std::vector<Color> &palette, std::shared_ptr<const CustomShape> shape);
const int PROP_GEO_BOTTOM
Definition PolygonUtils.h:29
const int PROP_GEO_RIGHT
Definition PolygonUtils.h:28
librevenge::RVNGPropertyList calcClipPath(const std::vector< Vertex > &verts, double x, double y, double height, double width, VectorTransformation2D transform, std::shared_ptr< const CustomShape > shape)
Definition PolygonUtils.cpp:5883
const int PROP_GEO_TOP
Definition PolygonUtils.h:27
ShapeType
Definition ShapeType.h:16
const int PROP_ADJUST_VAL_FIRST
Definition PolygonUtils.h:24
void writeCustomShape(ShapeType shapeType, librevenge::RVNGPropertyList &graphicsProps, librevenge::RVNGDrawingInterface *painter, double x, double y, double height, double width, bool closeEverything, VectorTransformation2D transform, std::vector< Line > lines, std::function< double(unsigned index)> calculator, const std::vector< Color > &palette, std::shared_ptr< const CustomShape > shape)
Definition PolygonUtils.cpp:5908
const int ASPECT_RATIO
Definition PolygonUtils.h:32
bool isShapeTypeRectangle(ShapeType type)
Definition PolygonUtils.cpp:6375
std::shared_ptr< const CustomShape > getFromDynamicCustomShape(const DynamicCustomShape &dcs)
Definition PolygonUtils.cpp:6381
const int PROP_ADJUST_VAL_LAST
Definition PolygonUtils.h:25
const int PROP_GEO_LEFT
Definition PolygonUtils.h:26
const CustomShape * getCustomShape(ShapeType type)
Definition PolygonUtils.cpp:5245
const int OTHER_CALC_VAL
Definition PolygonUtils.h:31
Definition PolygonUtils.h:46
int m_argOne
Definition PolygonUtils.h:48
int m_argTwo
Definition PolygonUtils.h:49
int m_flags
Definition PolygonUtils.h:47
int m_argThree
Definition PolygonUtils.h:50
Definition MSPUBTypes.h:200
Definition Coordinate.h:18
const int * mp_defaultAdjustValues
Definition PolygonUtils.h:67
unsigned m_numDefaultAdjustValues
Definition PolygonUtils.h:68
unsigned m_coordWidth
Definition PolygonUtils.h:71
unsigned m_coordHeight
Definition PolygonUtils.h:72
CustomShape(const Vertex *p_vertices, unsigned numVertices, const unsigned short *p_elements, unsigned numElements, const Calculation *p_calculations, unsigned numCalculations, const int *p_defaultAdjustValues, unsigned numDefaultAdjustValues, const TextRectangle *p_textRectangles, unsigned numTextRectangles, unsigned coordWidth, unsigned coordHeight, const Vertex *p_gluePoints, unsigned numGluePoints, unsigned char adjustShiftMask=0)
Definition PolygonUtils.h:79
const Vertex * mp_vertices
Definition PolygonUtils.h:61
unsigned m_numGluePoints
Definition PolygonUtils.h:74
const Vertex * mp_gluePoints
Definition PolygonUtils.h:73
unsigned m_numElements
Definition PolygonUtils.h:64
unsigned m_numVertices
Definition PolygonUtils.h:62
unsigned char m_adjustShiftMask
Definition PolygonUtils.h:75
Coordinate getTextRectangle(double x, double y, double width, double height, std::function< double(unsigned index)> calculator) const
Definition PolygonUtils.cpp:5683
unsigned m_numTextRectangles
Definition PolygonUtils.h:70
const unsigned short * mp_elements
Definition PolygonUtils.h:63
const Calculation * mp_calculations
Definition PolygonUtils.h:65
const TextRectangle * mp_textRectangles
Definition PolygonUtils.h:69
unsigned m_numCalculations
Definition PolygonUtils.h:66
std::vector< int > m_defaultAdjustValues
Definition PolygonUtils.h:97
unsigned m_coordHeight
Definition PolygonUtils.h:101
unsigned char m_adjustShiftMask
Definition PolygonUtils.h:102
std::vector< Vertex > m_vertices
Definition PolygonUtils.h:94
std::vector< TextRectangle > m_textRectangles
Definition PolygonUtils.h:98
std::vector< Calculation > m_calculations
Definition PolygonUtils.h:96
std::vector< unsigned short > m_elements
Definition PolygonUtils.h:95
std::vector< Vertex > m_gluePoints
Definition PolygonUtils.h:99
unsigned m_coordWidth
Definition PolygonUtils.h:100
DynamicCustomShape(unsigned coordWidth, unsigned coordHeight)
Definition PolygonUtils.h:104
Definition PolygonUtils.h:54
Vertex second
Definition PolygonUtils.h:56
Vertex first
Definition PolygonUtils.h:55
Definition PolygonUtils.h:40
int m_x
Definition PolygonUtils.h:41
int m_y
Definition PolygonUtils.h:42