a basic pattern used in a WPSGraphicStyle: More...
#include <WPSGraphicStyle.h>
Public Member Functions | |
Pattern () | |
constructor | |
Pattern (Vec2i dim, librevenge::RVNGBinaryData const &picture, std::string const &mime, WPSColor const &avColor) | |
constructor from a binary data | |
Pattern (Pattern const &)=default | |
Pattern (Pattern &&)=default | |
virtual | ~Pattern () |
virtual destructor | |
bool | empty () const |
return true if we does not have a pattern | |
bool | getAverageColor (WPSColor &col) const |
return the average color | |
bool | getUniqueColor (WPSColor &col) const |
check if the pattern has only one color; if so returns true... | |
bool | getBinary (librevenge::RVNGBinaryData &data, std::string &type) const |
tries to convert the picture in a binary data ( ppm) | |
int | cmp (Pattern const &a) const |
compare two patterns | |
Pattern & | operator= (Pattern const &)=default |
operator= |
Public Attributes | |
Vec2i | m_dim |
the dimension width x height | |
WPSColor | m_colors [2] |
the two indexed colors | |
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], ... |
Protected Attributes | |
librevenge::RVNGBinaryData | m_picture |
a picture | |
std::string | m_pictureMime |
the picture type | |
WPSColor | m_pictureAverageColor |
the picture average color |
Friends | |
std::ostream & | operator<< (std::ostream &o, Pattern const &pat) |
a print operator |
a basic pattern used in a WPSGraphicStyle:
|
inline |
constructor
Referenced by cmp(), operator<<, operator=(), Pattern(), and Pattern().
|
inline |
constructor from a binary data
|
default |
|
default |
|
virtual |
virtual destructor
|
inline |
compare two patterns
|
inline |
return true if we does not have a pattern
Referenced by getAverageColor(), getBinary(), getUniqueColor(), and LotusStyleManagerInternal::ColorStyle::operator<<.
bool WPSGraphicStyle::Pattern::getAverageColor | ( | WPSColor & | col | ) | const |
bool WPSGraphicStyle::Pattern::getBinary | ( | librevenge::RVNGBinaryData & | data, |
std::string & | type ) const |
tries to convert the picture in a binary data ( ppm)
bool WPSGraphicStyle::Pattern::getUniqueColor | ( | WPSColor & | col | ) | const |
check if the pattern has only one color; if so returns true...
Referenced by LotusChart::readFramesStyle(), LotusChart::readSerie(), Quattro9Graph::readShapeRec(), WKSChart::Serie::setPrimaryPattern(), WKS4Chart::updateChart(), LotusStyleManager::updateSurfaceStyle(), and LotusStyleManager::updateSurfaceStyle().
|
friend |
a print operator
WPSColor WPSGraphicStyle::Pattern::m_colors[2] |
the two indexed colors
Referenced by cmp(), getAverageColor(), getBinary(), getUniqueColor(), operator<<, Pattern(), Pattern(), Quattro9Spreadsheet::readCellStyles(), QuattroDosChart::readChart(), LotusChart::readFramesStyle(), LotusStyleManager::readLineStyle(), LotusChart::readSerie(), QuattroGraph::readShapeHeader(), Quattro9Graph::readShapeRec(), LotusStyleManager::updateCellStyle(), WKS4Chart::updateChart(), LotusStyleManager::updateShadowStyle(), LotusStyleManager::updateSurfaceStyle(), and LotusStyleManager::updateSurfaceStyle().
std::vector<unsigned char> WPSGraphicStyle::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(), getAverageColor(), getBinary(), QuattroDosChartInternal::State::getPattern(), QuattroGraphInternal::State::getPattern(), WKS4ChartInternal::State::getPattern(), Quattro9GraphInternal::State::getPattern24(), Quattro9GraphInternal::State::getPattern32(), LotusStyleManagerInternal::State::getPattern48(), LotusStyleManagerInternal::State::getPattern64(), getUniqueColor(), operator<<, Pattern(), and Pattern().
Vec2i WPSGraphicStyle::Pattern::m_dim |
the dimension width x height
Referenced by cmp(), empty(), getBinary(), QuattroDosChartInternal::State::getPattern(), QuattroGraphInternal::State::getPattern(), WKS4ChartInternal::State::getPattern(), Quattro9GraphInternal::State::getPattern24(), Quattro9GraphInternal::State::getPattern32(), LotusStyleManagerInternal::State::getPattern48(), LotusStyleManagerInternal::State::getPattern64(), operator<<, Pattern(), and Pattern().
|
protected |
a picture
Referenced by cmp(), empty(), getAverageColor(), getBinary(), getUniqueColor(), operator<<, Pattern(), and Pattern().
|
protected |
the picture average color
Referenced by cmp(), getAverageColor(), operator<<, Pattern(), and Pattern().
|
protected |
the picture type
Referenced by cmp(), getBinary(), operator<<, Pattern(), and Pattern().