CanvasGraphInternal::Shape Struct Reference

Internal: the shape of a CanvasGraph. More...

## Public Member Functions
| Shape ()
| constructor
std::string | getTypeName () const
| returns the type name
int | getSpecialId () const
| try to return the special type

## Public Attributes
int | m_type
| the shape type
MWAWBox2f | m_box
| the bounding box
int | m_rotation
| the transformed child rotation
MWAWVec2f | m_penSize
| the pen size
int | m_mode
| the copy mode (8: copy, 9: xor)
int | m_patterns [2]
| the line, surface pattern
int | m_dash
| the line dash
std::vector< float > | m_dashWidth
| the dash array: a sequence of (fullsize, emptysize) v3.5
int | m_hatchGradChild
| the hatch or gradient child
int | m_values [2]
| the values
MWAWColor | m_colors [2]
| the color
std::vector< MWAWVec2f > | m_points
| the points: line, ...
int | m_child
| the main child (all)
int | m_origChild
| the child before the transformation
std::vector< int > | m_childs
| the childs (group 99)
int | m_align
| the text alignment: 0:left, 1:center, ...
int | m_bitmapType
| the bitmap type
MWAWGraphicStyle::Arrow | m_arrow
| the line/arc arrow
std::string | m_specialType
| the special type
MWAWEntry | m_entry
| the data zone
bool | m_sent
| a flag to know if the shape is already send

## Friends
std::ostream & | operator<< (std::ostream &o, Shape const &s)
| operator<<

## Detailed Description

Internal: the shape of a CanvasGraph.

## Constructor & Destructor Documentation

## ◆ Shape()

CanvasGraphInternal::Shape::Shape | ( |  | ) |
| inline

constructor

Referenced by operator<<.

## Member Function Documentation

## ◆ getSpecialId()

int CanvasGraphInternal::Shape::getSpecialId | ( |  | ) | const
| inline

try to return the special type

Referenced by CanvasGraph::readShapeData(), CanvasGraph::send(), and CanvasGraph::sendSpecial().

## ◆ getTypeName()

std::string CanvasGraphInternal::Shape::getTypeName | ( |  | ) | const
| inline

returns the type name

Referenced by operator<<, CanvasGraph::readShapeData(), CanvasGraph::sendDimension(), and CanvasGraph::sendMultiLines().

## Friends And Related Symbol Documentation

## ◆ operator<<

std::ostream & operator<< | ( | std::ostream & | o,
|  | Shape const & | s )
| friend

operator<<

## Member Data Documentation

## ◆ m_align

int CanvasGraphInternal::Shape::m_align

the text alignment: 0:left, 1:center, ...

Referenced by operator<<, CanvasGraph::readShape(), CanvasGraph::sendText(), and Shape().

## ◆ m_arrow

MWAWGraphicStyle::Arrow CanvasGraphInternal::Shape::m_arrow

the line/arc arrow

Referenced by CanvasGraph::readShapeData(), Shape(), and CanvasGraph::update().

## ◆ m_bitmapType

int CanvasGraphInternal::Shape::m_bitmapType

the bitmap type

Referenced by CanvasGraph::getBitmap(), CanvasGraph::getBitmapBW(), operator<<, CanvasGraph::readShape(), and Shape().

## ◆ m_box

MWAWBox2f CanvasGraphInternal::Shape::m_box

the bounding box

Referenced by CanvasGraph::getBitmap(), CanvasGraph::getBitmapBW(), operator<<, CanvasGraph::readShape(), CanvasGraph::send(), CanvasGraph::sendDimension(), CanvasGraph::sendMultiLines(), CanvasGraph::sendSpecial(), and Shape().

## ◆ m_child

int CanvasGraphInternal::Shape::m_child

the main child (all)

Referenced by operator<<, CanvasGraph::readShape(), CanvasGraph::send(), and Shape().

## ◆ m_childs

std::vector<int> CanvasGraphInternal::Shape::m_childs

the childs (group 99)

Referenced by CanvasGraph::readShapeData(), CanvasGraph::send(), CanvasGraph::sendSpecial(), and Shape().

## ◆ m_colors

MWAWColor CanvasGraphInternal::Shape::m_colors[2]

the color

Referenced by CanvasGraph::getBitmapBW(), operator<<, CanvasGraph::readShape(), Shape(), and CanvasGraph::update().

## ◆ m_dash

int CanvasGraphInternal::Shape::m_dash

the line dash

Referenced by operator<<, CanvasGraph::readShape(), Shape(), and CanvasGraph::update().

## ◆ m_dashWidth

std::vector<float> CanvasGraphInternal::Shape::m_dashWidth

the dash array: a sequence of (fullsize, emptysize) v3.5

Referenced by operator<<, CanvasGraph::readShapeData(), Shape(), and CanvasGraph::update().

## ◆ m_entry

MWAWEntry CanvasGraphInternal::Shape::m_entry

the data zone

Referenced by CanvasGraph::getBitmap(), CanvasGraph::getBitmapBW(), CanvasGraph::getPicture(), operator<<, CanvasGraph::readShape(), CanvasGraph::readShapeData(), CanvasGraph::send(), CanvasGraph::sendDimension(), CanvasGraph::sendMultiLines(), CanvasGraph::sendSpecial(), CanvasGraph::sendText(), and Shape().

## ◆ m_hatchGradChild

int CanvasGraphInternal::Shape::m_hatchGradChild

the hatch or gradient child

Referenced by operator<<, CanvasGraph::readShape(), CanvasGraph::send(), and Shape().

## ◆ m_mode

int CanvasGraphInternal::Shape::m_mode

the copy mode (8: copy, 9: xor)

Referenced by operator<<, CanvasGraph::readShape(), and Shape().

## ◆ m_origChild

int CanvasGraphInternal::Shape::m_origChild

the child before the transformation

Referenced by operator<<, CanvasGraph::readShape(), CanvasGraph::send(), and Shape().

## ◆ m_patterns

int CanvasGraphInternal::Shape::m_patterns[2]

the line, surface pattern

Referenced by operator<<, CanvasGraph::readShape(), Shape(), and CanvasGraph::update().

## ◆ m_penSize

MWAWVec2f CanvasGraphInternal::Shape::m_penSize

the pen size

Referenced by operator<<, CanvasGraph::readShape(), Shape(), and CanvasGraph::update().

## ◆ m_points

std::vector<MWAWVec2f> CanvasGraphInternal::Shape::m_points

the points: line, ...

Referenced by operator<<, CanvasGraph::readShapeData(), CanvasGraph::send(), CanvasGraph::sendSpecial(), and Shape().

## ◆ m_rotation

int CanvasGraphInternal::Shape::m_rotation

the transformed child rotation

Referenced by operator<<, CanvasGraph::readShape(), CanvasGraph::send(), and Shape().

## ◆ m_sent

bool CanvasGraphInternal::Shape::m_sent
| mutable

a flag to know if the shape is already send

Referenced by CanvasGraph::send(), and Shape().

## ◆ m_specialType

std::string CanvasGraphInternal::Shape::m_specialType

the special type

Referenced by getSpecialId(), getTypeName(), CanvasGraph::readShape(), and Shape().

## ◆ m_type

int CanvasGraphInternal::Shape::m_type

the shape type

Referenced by getTypeName(), operator<<, CanvasGraph::readShape(), CanvasGraph::readShapeData(), CanvasGraph::send(), CanvasGraph::sendText(), Shape(), and CanvasGraph::update().

## ◆ m_values

int CanvasGraphInternal::Shape::m_values[2]

the values

Referenced by CanvasGraph::getBitmap(), operator<<, CanvasGraph::readShape(), CanvasGraph::send(), CanvasGraph::sendSpecial(), Shape(), and CanvasGraph::update().

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

- CanvasGraph.cxx