MWAWGraphicShape::PathData Struct Reference

a simple path component More...

#include <MWAWGraphicShape.hxx>

List of all members.

Public Member Functions

 PathData (char type, MWAWVec2f const &x=MWAWVec2f(), MWAWVec2f const &x1=MWAWVec2f(), MWAWVec2f const &x2=MWAWVec2f())
 constructor
void translate (MWAWVec2f const &delta)
 translate all the coordinate by delta
void scale (MWAWVec2f const &factor)
 scale all the coordinate by a factor
void rotate (float angle, MWAWVec2f const &delta)
 rotate all the coordinate by angle (origin rotation) then translate coordinate
bool get (librevenge::RVNGPropertyList &pList, MWAWVec2f 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, ...
MWAWVec2f m_x
 the main x value
MWAWVec2f m_x1
 x1 value
MWAWVec2f m_x2
 x2 value
MWAWVec2f 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

Detailed Description

a simple path component


Constructor & Destructor Documentation

MWAWGraphicShape::PathData::PathData ( char  type,
MWAWVec2f const &  x = MWAWVec2f(),
MWAWVec2f const &  x1 = MWAWVec2f(),
MWAWVec2f const &  x2 = MWAWVec2f() 
) [inline]

constructor


Member Function Documentation

comparison function

bool MWAWGraphicShape::PathData::get ( librevenge::RVNGPropertyList &  pList,
MWAWVec2f const &  orig 
) const

update the property list to correspond to a command

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

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

void MWAWGraphicShape::PathData::scale ( MWAWVec2f const &  factor)

scale all the coordinate by a factor

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

large angle ( A command)

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

the rotate ( A command)

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

sweep value ( A command)

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

the type: M, L, ...

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


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