- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

IWORKShape.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 libetonyek 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 IWORKSHAPE_H_INCLUDED
11 #define IWORKSHAPE_H_INCLUDED
12
13 #include <boost/shared_ptr.hpp>
14
15 #include "IWORKPath_fwd.h"
16 #include "IWORKStyle.h"
17 #include "IWORKText_fwd.h"
18
19 namespace libetonyek
20 {
21
22 struct IWORKSize;
23
26 struct IWORKShape
27 {
28 IWORKGeometryPtr_t m_geometry;
29 IWORKStylePtr_t m_style;
30 IWORKPathPtr_t m_path;
31 IWORKTextPtr_t m_text;
32
33 IWORKShape();
34 };
35
36 typedef boost::shared_ptr<IWORKShape> IWORKShapePtr_t;
37
40 IWORKPathPtr_t makePolygonPath(const IWORKSize &size, unsigned edges);
41 IWORKPathPtr_t makeRoundedRectanglePath(const IWORKSize &size, double radius);
42
43 IWORKPathPtr_t makeArrowPath(const IWORKSize &size, double headWidth, double stemThickness);
44 IWORKPathPtr_t makeDoubleArrowPath(const IWORKSize &size, double headWidth, double stemThickness);
45 IWORKPathPtr_t makeStarPath(const IWORKSize &size, unsigned points, double innerRadius);
46 IWORKPathPtr_t makeConnectionPath(const IWORKSize &size, double middleX, double middleY);
47
48 IWORKPathPtr_t makeCalloutPath(const IWORKSize &size, double radius, double tailSize, double tailX, double tailY);
49 IWORKPathPtr_t makeQuoteBubblePath(const IWORKSize &size, double radius, double tailSize, double tailX, double tailY);
50
51 }
52
53 #endif // IWORKSHAPE_H_INCLUDED
54
55 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek
Definition: IWORKBezierElement.cpp:18
libetonyek::makePolygonPath
IWORKPathPtr_t makePolygonPath(const IWORKSize &size, const unsigned edges)
Path creator functions for stock shapes.
Definition: IWORKShape.cpp:179
libetonyek::makeQuoteBubblePath
IWORKPathPtr_t makeQuoteBubblePath(const IWORKSize &size, const double radius, const double tailSize, const double tailX, const double tailY)
Definition: IWORKShape.cpp:311
libetonyek::IWORKStylePtr_t
boost::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORKShapePtr_t
boost::shared_ptr< IWORKShape > IWORKShapePtr_t
Definition: IWORKShape.h:36
libetonyek::makeConnectionPath
IWORKPathPtr_t makeConnectionPath(const IWORKSize &size, const double middleX, const double middleY)
Definition: IWORKShape.cpp:280
libetonyek::IWORKShape::m_text
IWORKTextPtr_t m_text
Definition: IWORKShape.h:31
libetonyek::IWORKGeometryPtr_t
boost::shared_ptr< IWORKGeometry > IWORKGeometryPtr_t
Definition: IWORKTypes_fwd.h:40
libetonyek::IWORKSize
Definition: IWORKTypes.h:37
libetonyek::IWORKShape
Representation of a shape.
Definition: IWORKShape.h:26
libetonyek::makeStarPath
IWORKPathPtr_t makeStarPath(const IWORKSize &size, const unsigned points, const double innerRadius)
Definition: IWORKShape.cpp:250
libetonyek::IWORKShape::m_geometry
IWORKGeometryPtr_t m_geometry
Definition: IWORKShape.h:28
IWORKStyle.h
libetonyek::IWORKPathPtr_t
boost::shared_ptr< IWORKPath > IWORKPathPtr_t
Definition: IWORKPath_fwd.h:20
libetonyek::makeDoubleArrowPath
IWORKPathPtr_t makeDoubleArrowPath(const IWORKSize &size, const double headWidth, const double stemThickness)
Definition: IWORKShape.cpp:225
libetonyek::IWORKToken::size
Definition: IWORKToken.h:240
IWORKPath_fwd.h
libetonyek::IWORKShape::m_style
IWORKStylePtr_t m_style
Definition: IWORKShape.h:29
libetonyek::KEY1Token::radius
Definition: KEY1Token.h:156
libetonyek::IWORKShape::m_path
IWORKPathPtr_t m_path
Definition: IWORKShape.h:30
libetonyek::makeRoundedRectanglePath
IWORKPathPtr_t makeRoundedRectanglePath(const IWORKSize &size, const double radius)
Definition: IWORKShape.cpp:193
libetonyek::IWORKShape::IWORKShape
IWORKShape()
Definition: IWORKShape.cpp:29
libetonyek::IWORKTextPtr_t
boost::shared_ptr< IWORKText > IWORKTextPtr_t
Definition: IWORKText_fwd.h:18
libetonyek::makeCalloutPath
IWORKPathPtr_t makeCalloutPath(const IWORKSize &size, const double radius, const double tailSize, const double tailX, const double tailY)
Definition: IWORKShape.cpp:289
IWORKText_fwd.h
libetonyek::IWORKToken::tailSize
Definition: IWORKToken.h:347
libetonyek::makeArrowPath
IWORKPathPtr_t makeArrowPath(const IWORKSize &size, const double headWidth, const double stemThickness)
Definition: IWORKShape.cpp:208