a simple path component More...
#include <WPSGraphicShape.h>
Public Member Functions | |
| PathData (char type, Vec2f const &x=Vec2f(), Vec2f const &x1=Vec2f(), Vec2f const &x2=Vec2f()) | |
| constructor | |
| void | translate (Vec2f const &delta) |
| translate all the coordinate by delta | |
| void | scale (Vec2f const &factor) |
| scale all the coordinate by a factor | |
| void | rotate (float angle, Vec2f const &delta) |
| rotate all the coordinate by angle (origin rotation) then translate coordinate | |
| bool | get (librevenge::RVNGPropertyList &pList, Vec2f const &orig) const |
| update the property list to correspond to a command | |
| int | cmp (PathData const &a) const |
| comparison function | |
Public Attributes | |
| char | m_type |
| the type: M, L, ... | |
| Vec2f | m_x |
| the main x value | |
| Vec2f | m_x1 |
| x1 value | |
| Vec2f | m_x2 |
| x2 value | |
| Vec2f | m_r |
| the radius ( A command) | |
| float | m_rotate |
| the rotate ( A command) | |
| bool | m_largeAngle |
| large angle ( A command) | |
| bool | m_sweep |
| sweep value ( A command) | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, PathData const &path) |
| a print operator | |
a simple path component
| WPSGraphicShape::PathData::PathData | ( | char | type, |
| Vec2f const & | x = Vec2f(), |
||
| Vec2f const & | x1 = Vec2f(), |
||
| Vec2f const & | x2 = Vec2f() |
||
| ) | [inline] |
constructor
| int WPSGraphicShape::PathData::cmp | ( | WPSGraphicShape::PathData const & | a | ) | const |
comparison function
| bool WPSGraphicShape::PathData::get | ( | librevenge::RVNGPropertyList & | pList, |
| Vec2f const & | orig | ||
| ) | const |
update the property list to correspond to a command
| void WPSGraphicShape::PathData::rotate | ( | float | angle, |
| Vec2f const & | delta | ||
| ) |
rotate all the coordinate by angle (origin rotation) then translate coordinate
| void WPSGraphicShape::PathData::scale | ( | Vec2f const & | factor | ) |
scale all the coordinate by a factor
| void WPSGraphicShape::PathData::translate | ( | Vec2f const & | delta | ) |
translate all the coordinate by delta
| std::ostream& operator<< | ( | std::ostream & | o, |
| WPSGraphicShape::PathData const & | path | ||
| ) | [friend] |
a print operator
large angle ( A command)
Referenced by cmp(), WPSGraphicShape::getPath(), and operator<<().
the radius ( A command)
Referenced by cmp(), WPSGraphicShape::getPath(), and operator<<().
the rotate ( A command)
Referenced by cmp(), and operator<<().
sweep value ( A command)
Referenced by cmp(), WPSGraphicShape::getPath(), and operator<<().
the type: M, L, ...
Referenced by cmp(), operator<<(), and translate().
the main x value
Referenced by cmp(), WPSGraphicShape::getPath(), operator<<(), and translate().
x1 value
Referenced by cmp(), operator<<(), and translate().
x2 value
Referenced by cmp(), operator<<(), and translate().