a basic pattern used in a MWAWGraphicStyle: More...
#include <MWAWGraphicStyle.hxx>
Public Member Functions | |
Pattern () | |
constructor More... | |
Pattern (MWAWVec2i dim, MWAWEmbeddedObject const &picture, MWAWColor const &avColor) | |
constructor from a binary data More... | |
Pattern (Pattern const &)=default | |
Pattern & | operator= (Pattern const &)=default |
Pattern & | operator= (Pattern &&)=default |
virtual | ~Pattern () |
virtual destructor More... | |
bool | empty () const |
return true if we does not have a pattern More... | |
bool | getAverageColor (MWAWColor &col) const |
return the average color More... | |
bool | getUniqueColor (MWAWColor &col) const |
check if the pattern has only one color; if so returns true... More... | |
bool | getBinary (MWAWEmbeddedObject &picture) const |
tries to convert the picture in a binary data ( ppm) More... | |
int | cmp (Pattern const &a) const |
compare two patterns More... | |
Public Attributes | |
MWAWVec2i | m_dim |
the dimension width x height More... | |
MWAWColor | m_colors [2] |
the two indexed colors More... | |
std::vector< unsigned char > | m_data |
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1], ... More... | |
Protected Attributes | |
MWAWEmbeddedObject | m_picture |
a picture More... | |
MWAWColor | m_pictureAverageColor |
the picture average color More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Pattern const &pat) |
a print operator More... | |
a basic pattern used in a MWAWGraphicStyle:
|
inline |
|
inline |
constructor from a binary data
|
default |
|
virtual |
virtual destructor
Reimplemented in HanMacWrdJGraphInternal::Pattern, HanMacWrdKGraphInternal::Pattern, RagTimeParserInternal::Pattern, and ClarisWksStyleManagerInternal::Pattern.
|
inline |
compare two patterns
Referenced by MWAWGraphicStyle::cmp().
|
inline |
return true if we does not have a pattern
Referenced by MWAWGraphicStyle::hasPattern(), FreeHandParserInternal::State::updateFillStyle(), FreeHandParserInternal::State::updateLineStyle(), and ApplePictParserInternal::State::updateStyle().
bool MWAWGraphicStyle::Pattern::getAverageColor | ( | MWAWColor & | col | ) | const |
return the average color
Referenced by WingzGraph::readColor(), RagTimeParser::readDataZoneHeader(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), PowerPoint3Parser::readFramesList(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDrawParser::readObject(), ReadySetGoParser::readShapeV3(), GreatWksGraph::readStyle(), GreatWksSSParser::readStyles(), CanvasGraph::sendMultiLines(), DrawTableParser::sendShape(), CanvasGraph::update(), MacDraft5StyleManager::updateLineStyle(), ApplePictParserInternal::State::updateStyle(), and ClarisWksStyleManager::updateWallPaper().
bool MWAWGraphicStyle::Pattern::getBinary | ( | MWAWEmbeddedObject & | picture | ) | const |
tries to convert the picture in a binary data ( ppm)
Referenced by MWAWGraphicStyle::addTo().
bool MWAWGraphicStyle::Pattern::getUniqueColor | ( | MWAWColor & | col | ) | const |
check if the pattern has only one color; if so returns true...
Referenced by MWAWGraphicStyle::addTo(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), PowerPoint3Parser::readFramesList(), WingzGraph::readGraphic(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDrawParser::readObject(), MacDrawProParser::readObject(), ReadySetGoParser::readShapeV3(), PowerPoint7Graph::readStyle(), MacDraftParser::send(), and ApplePictParserInternal::State::updateStyle().
|
friend |
a print operator
MWAWColor MWAWGraphicStyle::Pattern::m_colors[2] |
the two indexed colors
Referenced by cmp(), ClarisWksStyleManagerInternal::Gradient::Gradient(), MacDrawProStyleManagerInternal::State::initBWPatterns(), ClarisDrawStyleManagerInternal::State::initBWPatterns(), DrawTableParserInternal::State::initPatterns(), WingzGraphInternal::State::initPatterns(), MacDrawParserInternal::State::initPatterns(), MacDraftParserInternal::State::initPatterns(), MacDraft5StyleManagerInternal::State::initPatterns(), ClarisWksStyleManagerInternal::Pattern::Pattern(), RagTimeParserInternal::Pattern::Pattern(), MarinerWrtGraphInternal::Pattern::Pattern(), Pattern(), HanMacWrdKGraphInternal::Pattern::Pattern(), ApplePictParser::readBWPattern(), MacDrawProStyleManager::readBWPatterns(), ApplePictParser::readColorPattern(), MacDrawProStyleManager::readColorPatterns(), RagTime5Graph::readColorPatternZone(), FreeHandParser::readFillStyle(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), PowerPoint1Parser::readFramesList(), PowerPoint3Parser::readFramesList(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), FreeHandParser::readLineStyle(), MacDraftParser::readPattern(), WingzGraph::readPattern(), ClarisDrawStyleManager::readPatternList(), MacDrawProStyleManager::readPatternMap(), MacDraft5StyleManager::readPatterns(), MsWksGraph::readPictHeader(), ReadySetGoParser::readShapeV3(), PowerPoint7Graph::readStyle(), GreatWksGraph::readStyle(), GreatWksSSParser::readStyles(), CanvasGraph::sendMultiLines(), MarinerWrtGraph::sendRule(), DrawTableParser::sendShape(), ClarisWksStyleManagerInternal::Gradient::update(), CanvasGraph::update(), FreeHandParserInternal::State::updateFillStyle(), and FreeHandParserInternal::State::updateLineStyle().
std::vector<unsigned char> MWAWGraphicStyle::Pattern::m_data |
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1], ...
Referenced by cmp(), empty(), PowerPoint1ParserInternal::State::getPattern(), PowerPoint7GraphInternal::State::getPattern(), PowerPoint3ParserInternal::State::getPattern(), MacDrawProStyleManagerInternal::State::initBWPatterns(), ClarisDrawStyleManagerInternal::State::initBWPatterns(), DrawTableParserInternal::State::initPatterns(), WingzGraphInternal::State::initPatterns(), MacDrawParserInternal::State::initPatterns(), MacDraftParserInternal::State::initPatterns(), MacDraft5StyleManagerInternal::State::initPatterns(), ClarisWksStyleManagerInternal::Pattern::Pattern(), RagTimeParserInternal::Pattern::Pattern(), MarinerWrtGraphInternal::Pattern::Pattern(), HanMacWrdKGraphInternal::Pattern::Pattern(), ApplePictParser::readBWPattern(), MacDrawProStyleManager::readBWPatterns(), ApplePictParser::readColorPattern(), MacDrawProStyleManager::readColorPatterns(), RagTime5Graph::readColorPatternZone(), FreeHandParser::readFillStyle(), FreeHandParser::readLineStyle(), MacDraftParser::readPattern(), ClarisDrawStyleManager::readPatternList(), MacDrawProStyleManager::readPatternMap(), MacDraft5StyleManager::readPatterns(), GreatWksGraph::readPatterns(), BeagleWksDRParser::readPatterns(), GreatWksGraph::readStyle(), and GreatWksSSParser::readStyles().
MWAWVec2i MWAWGraphicStyle::Pattern::m_dim |
the dimension width x height
Referenced by MWAWGraphicStyle::addTo(), cmp(), empty(), PowerPoint1ParserInternal::State::getPattern(), PowerPoint7GraphInternal::State::getPattern(), PowerPoint3ParserInternal::State::getPattern(), MacDrawProStyleManagerInternal::State::initBWPatterns(), ClarisDrawStyleManagerInternal::State::initBWPatterns(), DrawTableParserInternal::State::initPatterns(), WingzGraphInternal::State::initPatterns(), MacDrawParserInternal::State::initPatterns(), MacDraftParserInternal::State::initPatterns(), MacDraft5StyleManagerInternal::State::initPatterns(), ClarisWksStyleManagerInternal::Pattern::Pattern(), RagTimeParserInternal::Pattern::Pattern(), MarinerWrtGraphInternal::Pattern::Pattern(), HanMacWrdKGraphInternal::Pattern::Pattern(), ApplePictParser::readBWPattern(), MacDrawProStyleManager::readBWPatterns(), ApplePictParser::readColorPattern(), MacDrawProStyleManager::readColorPatterns(), RagTime5Graph::readColorPatternZone(), FreeHandParser::readFillStyle(), FreeHandParser::readLineStyle(), MacDraftParser::readPattern(), ClarisDrawStyleManager::readPatternList(), MacDrawProStyleManager::readPatternMap(), MacDraft5StyleManager::readPatterns(), GreatWksGraph::readPatterns(), BeagleWksDRParser::readPatterns(), SuperPaintParser::readShape(), GreatWksGraph::readStyle(), and GreatWksSSParser::readStyles().
|
protected |
|
protected |
the picture average color
Referenced by cmp().