23 #ifndef WPS_GRAPHIC_SHAPE    24 #  define WPS_GRAPHIC_SHAPE    29 #  include "librevenge/librevenge.h"    56                 bool get(librevenge::RVNGPropertyList &pList, 
Vec2f const &orig) 
const;
   161         Command addTo(
Vec2f const &orig, 
bool asSurface, librevenge::RVNGPropertyList &propList) 
const;
   168         std::vector<PathData> 
getPath() 
const;
 Vec2f m_cornerWidth
the rectangle round corner 
Definition: WPSGraphicShape.h:177
Vec2< float > Vec2f
Vec2 of float. 
Definition: libwps_internal.h:714
Vec2f m_x1
x1 value 
Definition: WPSGraphicShape.h:66
Type
an enum used to define the shape type 
Definition: WPSGraphicShape.h:38
Command addTo(Vec2f const &orig, bool asSurface, librevenge::RVNGPropertyList &propList) const 
updates the propList to send to an interface 
Definition: WPSGraphicShape.cpp:339
Box2f m_bdBox
the shape bdbox 
Definition: WPSGraphicShape.h:173
Vec2f m_r
the radius ( A command) 
Definition: WPSGraphicShape.h:70
static WPSGraphicShape path(Box2f const &box)
static constructor to create a path 
Definition: WPSGraphicShape.h:134
std::vector< PathData > m_path
the list of path component 
Definition: WPSGraphicShape.h:183
Definition: WPSGraphicShape.h:38
std::vector< Vec2f > m_vertices
the list of vertices for lines or polygons 
Definition: WPSGraphicShape.h:181
float m_rotate
the rotate ( A command) 
Definition: WPSGraphicShape.h:72
void translate(Vec2f const &delta)
translate all the coordinate by delta 
Definition: WPSGraphicShape.cpp:77
void scale(Vec2f const &factor)
scale all the coordinate by a factor 
Definition: WPSGraphicShape.cpp:90
Definition: WPSGraphicShape.h:40
Definition: WPSGraphicShape.h:38
friend std::ostream & operator<<(std::ostream &o, PathData const &path)
a print operator 
Definition: WPSGraphicShape.cpp:41
WPSGraphicShape()
constructor 
Definition: WPSGraphicShape.h:80
Command
an enum used to define the interface command 
Definition: WPSGraphicShape.h:40
std::string m_extra
extra data 
Definition: WPSGraphicShape.h:185
static WPSGraphicShape arc(Box2f const &box, Box2f const &circleBox, Vec2f const &angles)
static constructor to create a arc 
Definition: WPSGraphicShape.h:106
static WPSGraphicShape rectangle(Box2f const &box, Vec2f const &corners=Vec2f(0, 0))
static constructor to create a rectangle 
Definition: WPSGraphicShape.h:89
Box2f getBdBox() const 
returns the basic bdbox 
Definition: WPSGraphicShape.h:156
Type getType() const 
returns the type corresponding to a shape 
Definition: WPSGraphicShape.h:151
bool m_sweep
sweep value ( A command) 
Definition: WPSGraphicShape.h:76
Definition: WPSGraphicShape.h:40
a structure used to define a picture shape 
Definition: WPSGraphicShape.h:34
a simple path component 
Definition: WPSGraphicShape.h:42
Definition: WPSGraphicShape.h:40
void rotate(float angle, Vec2f const &delta)
rotate all the coordinate by angle (origin rotation) then translate coordinate 
Definition: WPSGraphicShape.cpp:103
Definition: WPSGraphicShape.h:38
bool m_largeAngle
large angle ( A command) 
Definition: WPSGraphicShape.h:74
virtual ~WPSGraphicShape()
virtual destructor 
Definition: WPSGraphicShape.h:85
char m_type
the type: M, L, ... 
Definition: WPSGraphicShape.h:62
static WPSGraphicShape polygon(Box2f const &box)
static constructor to create a polygon 
Definition: WPSGraphicShape.h:126
Definition: WPSGraphicShape.h:40
Definition: WPSGraphicShape.h:38
Type m_type
the type 
Definition: WPSGraphicShape.h:171
Box2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox ) 
Definition: WPSGraphicShape.h:175
Vec2f m_x
the main x value 
Definition: WPSGraphicShape.h:64
Definition: WPSGraphicShape.h:38
Definition: WPSGraphicShape.h:38
static WPSGraphicShape circle(Box2f const &box)
static constructor to create a circle 
Definition: WPSGraphicShape.h:98
Definition: WPSGraphicShape.h:38
PathData(char type, Vec2f const &x=Vec2f(), Vec2f const &x1=Vec2f(), Vec2f const &x2=Vec2f())
constructor 
Definition: WPSGraphicShape.h:45
Vec2f m_arcAngles
the start and end value which defines an arc 
Definition: WPSGraphicShape.h:179
static WPSGraphicShape line(Vec2f const &orign, Vec2f const &dest)
static constructor to create a line 
Definition: WPSGraphicShape.cpp:193
Vec2f m_x2
x2 value 
Definition: WPSGraphicShape.h:68
Definition: WPSGraphicShape.h:40
static WPSGraphicShape pie(Box2f const &box, Box2f const &circleBox, Vec2f const &angles)
static constructor to create a pie 
Definition: WPSGraphicShape.h:116
int cmp(PathData const &a) const 
comparison function 
Definition: WPSGraphicShape.cpp:169
Definition: WPSGraphicShape.h:40
std::vector< PathData > getPath() const 
return a path corresponding to the shape 
Definition: WPSGraphicShape.cpp:484
Definition: WPSGraphicShape.h:38