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

- File List
- File Members

KEYShape.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 KEYSHAPE_H_INCLUDED
11 #define KEYSHAPE_H_INCLUDED
12
13 #include <boost/shared_ptr.hpp>
14
15 #include "KEYPath_fwd.h"
16 #include "KEYStyle.h"
17 #include "KEYText_fwd.h"
18
19 namespace libetonyek
20 {
21
22 struct KEYSize;
23
26 struct KEYShape
27 {
28 KEYGeometryPtr_t geometry;
29 KEYStylePtr_t style;
30 KEYPathPtr_t path;
31 KEYTextPtr_t text;
32
33 KEYShape();
34 };
35
36 typedef boost::shared_ptr<KEYShape> KEYShapePtr_t;
37
40 KEYObjectPtr_t makeObject(const KEYShapePtr_t &shape);
41
44 KEYPathPtr_t makePolygonPath(const KEYSize &size, unsigned edges);
45 KEYPathPtr_t makeRoundedRectanglePath(const KEYSize &size, double radius);
46
47 KEYPathPtr_t makeArrowPath(const KEYSize &size, double headWidth, double stemThickness);
48 KEYPathPtr_t makeDoubleArrowPath(const KEYSize &size, double headWidth, double stemThickness);
49 KEYPathPtr_t makeStarPath(const KEYSize &size, unsigned points, double innerRadius);
50 KEYPathPtr_t makeConnectionPath(const KEYSize &size, double middleX, double middleY);
51
52 KEYPathPtr_t makeCalloutPath(const KEYSize &size, double radius, double tailSize, double tailX, double tailY);
53 KEYPathPtr_t makeQuoteBubblePath(const KEYSize &size, double radius, double tailSize, double tailX, double tailY);
54
55 }
56
57 #endif // KEYSHAPE_H_INCLUDED
58
59 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::KEYShape::geometry
KEYGeometryPtr_t geometry
Definition: KEYShape.h:28
KEYText_fwd.h
libetonyek::KEYShape
Representation of a shape.
Definition: KEYShape.h:26
libetonyek::makeQuoteBubblePath
KEYPathPtr_t makeQuoteBubblePath(const KEYSize &size, const double radius, const double tailSize, const double tailX, const double tailY)
Definition: KEYShape.cpp:364
libetonyek::KEYStylePtr_t
boost::shared_ptr< KEYStyle > KEYStylePtr_t
Definition: KEYStyle.h:49
libetonyek::KEY1Token::shape
Definition: KEY1Token.h:71
libetonyek::KEYPathPtr_t
boost::shared_ptr< KEYPath > KEYPathPtr_t
Definition: KEYPath_fwd.h:17
libetonyek::KEYShape::path
KEYPathPtr_t path
Definition: KEYShape.h:30
libetonyek::KEYTextPtr_t
boost::shared_ptr< KEYText > KEYTextPtr_t
Definition: KEYText_fwd.h:16
libetonyek::KEYObjectPtr_t
boost::shared_ptr< KEYObject > KEYObjectPtr_t
Definition: KEYObject.h:44
libetonyek::makeDoubleArrowPath
KEYPathPtr_t makeDoubleArrowPath(const KEYSize &size, const double headWidth, const double stemThickness)
Definition: KEYShape.cpp:278
libetonyek::KEYShape::style
KEYStylePtr_t style
Definition: KEYShape.h:29
libetonyek::KEYSize
Definition: KEYTypes.h:27
libetonyek::makePolygonPath
KEYPathPtr_t makePolygonPath(const KEYSize &size, const unsigned edges)
Path creator functions for stock shapes.
Definition: KEYShape.cpp:232
libetonyek::makeObject
KEYObjectPtr_t makeObject(const KEYShapePtr_t &shape)
Object creator function for shape.
Definition: KEYShape.cpp:88
libetonyek::makeStarPath
KEYPathPtr_t makeStarPath(const KEYSize &size, const unsigned points, const double innerRadius)
Definition: KEYShape.cpp:303
libetonyek::KEY1Token::size
Definition: KEY1Token.h:72
libetonyek::KEYShape::text
KEYTextPtr_t text
Definition: KEYShape.h:31
libetonyek::makeConnectionPath
KEYPathPtr_t makeConnectionPath(const KEYSize &size, const double middleX, const double middleY)
Definition: KEYShape.cpp:333
libetonyek::KEY1Token::radius
Definition: KEY1Token.h:149
libetonyek::KEYGeometryPtr_t
boost::shared_ptr< KEYGeometry > KEYGeometryPtr_t
Definition: KEYTypes_fwd.h:25
KEYStyle.h
libetonyek::KEY2Token::tailSize
Definition: KEY2Token.h:1103
libetonyek::makeRoundedRectanglePath
KEYPathPtr_t makeRoundedRectanglePath(const KEYSize &size, const double radius)
Definition: KEYShape.cpp:246
libetonyek::KEYShapePtr_t
boost::shared_ptr< KEYShape > KEYShapePtr_t
Definition: KEYShape.h:36
libetonyek::makeCalloutPath
KEYPathPtr_t makeCalloutPath(const KEYSize &size, const double radius, const double tailSize, const double tailX, const double tailY)
Definition: KEYShape.cpp:342
KEYPath_fwd.h
libetonyek::KEYShape::KEYShape
KEYShape()
Definition: KEYShape.cpp:30
libetonyek::makeArrowPath
KEYPathPtr_t makeArrowPath(const KEYSize &size, const double headWidth, const double stemThickness)
Definition: KEYShape.cpp:261