MWAWPictRectangle Class Reference

a class to define a rectangle (or a rectangle with round corner) More...

#include <MWAWPictBasic.hxx>

Inheritance diagram for MWAWPictRectangle:
MWAWPictBasic MWAWPict

Public Member Functions

 MWAWPictRectangle (Box2f box)
 constructor
virtual ~MWAWPictRectangle ()
 virtual destructor
void setRoundCornerWidth (int w)
 sets the corner width
void setRoundCornerWidth (int xw, int yw)
 sets the corner width
virtual bool getODGBinary (WPXBinaryData &res) const
 returns a ODG (encoded)
- Public Member Functions inherited from MWAWPictBasic
virtual ~MWAWPictBasic ()
 virtual destructor
virtual Type getType () const
 returns the picture type
void setLineWidth (float w)
 sets the line width (by default 1.0)
void setLineColor (MWAWColor const &col)
 sets the line color.
void setSurfaceColor (MWAWColor const &col, bool hasColor=true)
 sets the surface color.
bool hasSurfaceColor () const
virtual bool getBinary (WPXBinaryData &data, std::string &s) const
 returns the final representation in encoded odg (if possible)
- Public Member Functions inherited from MWAWPict
virtual ~MWAWPict ()
 virtual destructor
Box2f getBdBox () const
 returns the bdbox of the picture
void setBdBox (Box2f const &box)
 sets the bdbox of the picture

Protected Member Functions

virtual SubType getSubType () const
 returns the class type
virtual void getGraphicStyleProperty (WPXPropertyList &list) const
 returns the graphics style
virtual int cmp (MWAWPict const &a) const
 comparison function
- Protected Member Functions inherited from MWAWPictBasic
void getStyle1DProperty (WPXPropertyList &list) const
 returns the basic style property for 1D form (line, ...)
void getStyle2DProperty (WPXPropertyList &list) const
 returns the basic style property for 2D form (line, ...)
void startODG (MWAWPropertyHandlerEncoder &doc) const
 adds the odg header knowing the minPt and the maxPt
void endODG (MWAWPropertyHandlerEncoder &doc) const
 adds the odg footer
void extendBDBox (float val, int id)
 a function to extend the bdbox
 MWAWPictBasic ()
 protected constructor must not be called directly
 MWAWPictBasic (MWAWPictBasic const &p)
 protected constructor must not be called directly
MWAWPictBasicoperator= (MWAWPictBasic const &p)
 protected= must not be called directly
- Protected Member Functions inherited from MWAWPict
void extendBDBox (float val)
 udaptes the bdbox, by extended it by (val-previousVal)
 MWAWPict ()
 protected constructor must not be called directly
 MWAWPict (MWAWPict const &p)
 protected constructor must not be called directly
MWAWPictoperator= (MWAWPict const &p)
 protected operator= must not be called directly

Protected Attributes

int m_cornerWidth [2]
 an int used to define round corner
Box2f m_rectBox
 corner point

Additional Inherited Members

- Public Types inherited from MWAWPictBasic
enum  SubType {
  Line, Rectangle, Polygon, Circle,
  Arc, Path
}
 the picture subtype ( line, rectangle, polygon, circle, arc) More...
- Static Protected Member Functions inherited from MWAWPict
static Box2f getBdBox (int numPt, Vec2f const *pt)
 computes the minimum and maximum of a list of point

Detailed Description

a class to define a rectangle (or a rectangle with round corner)

Constructor & Destructor Documentation

MWAWPictRectangle::MWAWPictRectangle ( Box2f  box)
inline

constructor

virtual MWAWPictRectangle::~MWAWPictRectangle ( )
inlinevirtual

virtual destructor

Member Function Documentation

virtual int MWAWPictRectangle::cmp ( MWAWPict const &  a) const
inlineprotectedvirtual

comparison function

Reimplemented from MWAWPictBasic.

void MWAWPictRectangle::getGraphicStyleProperty ( WPXPropertyList &  list) const
protectedvirtual

returns the graphics style

Implements MWAWPictBasic.

bool MWAWPictRectangle::getODGBinary ( WPXBinaryData &  res) const
virtual

returns a ODG (encoded)

Reimplemented from MWAWPictBasic.

virtual SubType MWAWPictRectangle::getSubType ( ) const
inlineprotectedvirtual

returns the class type

Implements MWAWPictBasic.

void MWAWPictRectangle::setRoundCornerWidth ( int  w)
inline
void MWAWPictRectangle::setRoundCornerWidth ( int  xw,
int  yw 
)
inline

sets the corner width

Member Data Documentation

int MWAWPictRectangle::m_cornerWidth[2]
protected

an int used to define round corner

Referenced by cmp(), getODGBinary(), MWAWPictRectangle(), and setRoundCornerWidth().

Box2f MWAWPictRectangle::m_rectBox
protected

corner point

Referenced by getODGBinary().


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

Generated on Wed May 22 2013 18:12:46 for libmwaw by doxygen 1.8.1.2