Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Variables
qgssymbologyutils.cpp File Reference
#include "qgssymbologyutils.h"
#include "qgslogger.h"
#include <QPixmap>
Include dependency graph for qgssymbologyutils.cpp:

Go to the source code of this file.

Variables

static const char * solidLineData []
static const char * dashLineData []
static const char * dotLineData []
static const char * dashDotLineData []
static const char * dashDotDotLineData []
static const char * noPenLineData []
static const char * solidData []
static const char * fdiagData []
static const char * dense4Data []
static const char * horizontalData []
static const char * dense5Data []
static const char * diagCrossData []
static const char * dense1Data []
static const char * dense6Data []
static const char * verticalData []
static const char * dense7Data []
static const char * crossData []
static const char * dense2Data []
static const char * bdiagData []
static const char * dense3Data []
static const char * nobrush []
static const char * texturePatternData []

Variable Documentation

const char* bdiagData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".#.......#.......#.......#.......#.......#.......#",
"#.......#.......#.......#.......#.......#.......#.",
".......#.......#.......#.......#.......#.......#..",
"......#.......#.......#.......#.......#.......#...",
".....#.......#.......#.......#.......#.......#....",
"....#.......#.......#.......#.......#.......#.....",
"...#.......#.......#.......#.......#.......#......",
"..#.......#.......#.......#.......#.......#.......",
".#.......#.......#.......#.......#.......#.......#",
"#.......#.......#.......#.......#.......#.......#.",
".......#.......#.......#.......#.......#.......#..",
"......#.......#.......#.......#.......#.......#...",
".....#.......#.......#.......#.......#.......#....",
"....#.......#.......#.......#.......#.......#.....",
"...#.......#.......#.......#.......#.......#......",
"..#.......#.......#.......#.......#.......#.......",
".#.......#.......#.......#.......#.......#.......#",
"#.......#.......#.......#.......#.......#.......#.",
".......#.......#.......#.......#.......#.......#..",
"......#.......#.......#.......#.......#.......#..."
}

Definition at line 555 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* crossData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
"##################################################",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
"##################################################",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
"##################################################",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#.."
}

Definition at line 501 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dashDotDotLineData[]
static
const char* dashDotLineData[]
static
const char* dashLineData[]
static
const char* dense1Data[]
static
Initial value:
{
"50 20 2 1",
". c #3155c5",
"# c #ffffff",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"..................................................",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"..................................................",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"..................................................",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"..................................................",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
".................................................."
}

Definition at line 393 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense2Data[]
static
Initial value:
{
"50 20 2 1",
". c #3155c5",
"# c #ffffff",
"..................................................",
"...#...#...#...#...#...#...#...#...#...#...#...#..",
"..................................................",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..................................................",
"...#...#...#...#...#...#...#...#...#...#...#...#..",
"..................................................",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..................................................",
"...#...#...#...#...#...#...#...#...#...#...#...#..",
"..................................................",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..................................................",
"...#...#...#...#...#...#...#...#...#...#...#...#..",
"..................................................",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..................................................",
"...#...#...#...#...#...#...#...#...#...#...#...#..",
"..................................................",
".#...#...#...#...#...#...#...#...#...#...#...#...#"
}

Definition at line 528 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense3Data[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##"
}

Definition at line 582 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense4Data[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#."
}

Definition at line 285 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense5Data[]
static
Initial value:
{
"50 20 2 1",
". c #3155c5",
"# c #ffffff",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###.",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"###.###.###.###.###.###.###.###.###.###.###.###.##",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"#.###.###.###.###.###.###.###.###.###.###.###.###."
}

Definition at line 339 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense6Data[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
"..................................................",
"#...#...#...#...#...#...#...#...#...#...#...#...#.",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"#...#...#...#...#...#...#...#...#...#...#...#...#.",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"#...#...#...#...#...#...#...#...#...#...#...#...#.",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"#...#...#...#...#...#...#...#...#...#...#...#...#.",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#...",
"..................................................",
"#...#...#...#...#...#...#...#...#...#...#...#...#.",
"..................................................",
"..#...#...#...#...#...#...#...#...#...#...#...#..."
}

Definition at line 420 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dense7Data[]
static
Initial value:
{
"50 20 2 1",
". c #3155c5",
"# c #ffffff",
"##################################################",
"##################################################",
".###.###.###.###.###.###.###.###.###.###.###.###.#",
"##################################################",
"##################################################",
"##################################################",
".###.###.###.###.###.###.###.###.###.###.###.###.#",
"##################################################",
"##################################################",
"##################################################",
".###.###.###.###.###.###.###.###.###.###.###.###.#",
"##################################################",
"##################################################",
"##################################################",
".###.###.###.###.###.###.###.###.###.###.###.###.#",
"##################################################",
"##################################################",
"##################################################",
".###.###.###.###.###.###.###.###.###.###.###.###.#",
"##################################################"
}

Definition at line 474 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* diagCrossData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
"...#.......#.......#.......#.......#.......#......",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"#.....#.#.....#.#.....#.#.....#.#.....#.#.....#.#.",
".......#.......#.......#.......#.......#.......#..",
"#.....#.#.....#.#.....#.#.....#.#.....#.#.....#.#.",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
"...#.......#.......#.......#.......#.......#......",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"#.....#.#.....#.#.....#.#.....#.#.....#.#.....#.#.",
".......#.......#.......#.......#.......#.......#..",
"#.....#.#.....#.#.....#.#.....#.#.....#.#.....#.#.",
".#...#...#...#...#...#...#...#...#...#...#...#...#",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
"...#.......#.......#.......#.......#.......#......",
"..#.#.....#.#.....#.#.....#.#.....#.#.....#.#.....",
".#...#...#...#...#...#...#...#...#...#...#...#...#"
}

Definition at line 366 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* dotLineData[]
static
const char* fdiagData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".......#.......#.......#.......#.......#.......#..",
"#.......#.......#.......#.......#.......#.......#.",
".#.......#.......#.......#.......#.......#.......#",
"..#.......#.......#.......#.......#.......#.......",
"...#.......#.......#.......#.......#.......#......",
"....#.......#.......#.......#.......#.......#.....",
".....#.......#.......#.......#.......#.......#....",
"......#.......#.......#.......#.......#.......#...",
".......#.......#.......#.......#.......#.......#..",
"#.......#.......#.......#.......#.......#.......#.",
".#.......#.......#.......#.......#.......#.......#",
"..#.......#.......#.......#.......#.......#.......",
"...#.......#.......#.......#.......#.......#......",
"....#.......#.......#.......#.......#.......#.....",
".....#.......#.......#.......#.......#.......#....",
"......#.......#.......#.......#.......#.......#...",
".......#.......#.......#.......#.......#.......#..",
"#.......#.......#.......#.......#.......#.......#.",
".#.......#.......#.......#.......#.......#.......#",
"..#.......#.......#.......#.......#.......#......."
}

Definition at line 258 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* horizontalData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
"..................................................",
"..................................................",
"##################################################",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"##################################################",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"##################################################",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
".................................................."
}

Definition at line 312 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* nobrush[]
static
Initial value:
{
"50 20 2 1",
"# c None",
". c #3155c5",
".................................................."
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".################################################.",
".................................................."
}

Definition at line 609 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* noPenLineData[]
static
const char* solidData[]
static
Initial value:
{
"50 20 1 1",
". c #3155c5",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
"..................................................",
".................................................."
}

Definition at line 232 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* solidLineData[]
static
const char* texturePatternData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
"..................................................",
"..................#########.......................",
"...............##############.....................",
"..............####........#####...................",
"...........................####...................",
"...........................####...................",
"...........................####...................",
"...........................####...................",
"..........................####....................",
"..........................####....................",
"........................####......................",
"......................####........................",
"....................####..........................",
"...................####...........................",
"...................####...........................",
"..................................................",
"...................####...........................",
"...................####...........................",
"...................####...........................",
".................................................."
}

Definition at line 637 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().

const char* verticalData[]
static
Initial value:
{
"50 20 2 1",
"# c #3155c5",
". c #ffffff",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#..",
".....#.....#.....#.....#.....#.....#.....#.....#.."
}

Definition at line 447 of file qgssymbologyutils.cpp.

Referenced by QgsSymbologyUtils::brushStyle2Pixmap(), QgsSymbologyUtils::char2PatternPixmap(), and QgsSymbologyUtils::qString2PatternPixmap().