MWAWGraphicShape::PathData Struct Reference

a simple path component More...

#include <MWAWGraphicShape.hxx>

Public Member Functions

 PathData (char type, Vec2f const &x=Vec2f(), Vec2f const &x1=Vec2f(), Vec2f const &x2=Vec2f())
 constructor More...
 
void translate (Vec2f const &delta)
 translate all the coordinate by delta More...
 
void rotate (float angle, Vec2f const &delta)
 rotate all the coordinate by angle (origin rotation) then translate coordinate More...
 
bool get (WPXPropertyList &pList, Vec2f const &orig) const
 update the property list to correspond to a command More...
 
int cmp (PathData const &a) const
 comparison function More...
 

Public Attributes

char m_type
 the type: M, L, ... More...
 
Vec2f m_x
 the main x value More...
 
Vec2f m_x1
 x1 value More...
 
Vec2f m_x2
 x2 value More...
 
Vec2f m_r
 the radius ( A command) More...
 
float m_rotate
 the rotate ( A command) More...
 
bool m_largeAngle
 large angle ( A command) More...
 
bool m_sweep
 sweep value ( A command) More...
 

Friends

std::ostream & operator<< (std::ostream &o, PathData const &path)
 a print operator More...
 

Detailed Description

a simple path component

Constructor & Destructor Documentation

MWAWGraphicShape::PathData::PathData ( char  type,
Vec2f const &  x = Vec2f(),
Vec2f const &  x1 = Vec2f(),
Vec2f const &  x2 = Vec2f() 
)
inline

constructor

Member Function Documentation

int MWAWGraphicShape::PathData::cmp ( MWAWGraphicShape::PathData const &  a) const

comparison function

bool MWAWGraphicShape::PathData::get ( WPXPropertyList &  pList,
Vec2f const &  orig 
) const

update the property list to correspond to a command

void MWAWGraphicShape::PathData::rotate ( float  angle,
Vec2f const &  delta 
)

rotate all the coordinate by angle (origin rotation) then translate coordinate

void MWAWGraphicShape::PathData::translate ( Vec2f const &  delta)

translate all the coordinate by delta

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
MWAWGraphicShape::PathData const &  path 
)
friend

a print operator

Member Data Documentation

bool MWAWGraphicShape::PathData::m_largeAngle

large angle ( A command)

Referenced by cmp(), MWAWGraphicShape::getPath(), and operator<<().

Vec2f MWAWGraphicShape::PathData::m_r

the radius ( A command)

Referenced by cmp(), MWAWGraphicShape::getPath(), and operator<<().

float MWAWGraphicShape::PathData::m_rotate

the rotate ( A command)

Referenced by cmp(), and operator<<().

bool MWAWGraphicShape::PathData::m_sweep

sweep value ( A command)

Referenced by cmp(), MWAWGraphicShape::getPath(), and operator<<().

char MWAWGraphicShape::PathData::m_type

the type: M, L, ...

Referenced by cmp(), operator<<(), and translate().

Vec2f MWAWGraphicShape::PathData::m_x

the main x value

Referenced by cmp(), MWAWGraphicShape::getPath(), operator<<(), and translate().

Vec2f MWAWGraphicShape::PathData::m_x1

x1 value

Referenced by cmp(), operator<<(), and translate().

Vec2f MWAWGraphicShape::PathData::m_x2

x2 value

Referenced by cmp(), operator<<(), and translate().


The documentation for this struct was generated from the following files:

Generated on Tue Mar 10 2015 17:32:10 for libmwaw by doxygen 1.8.5