| 1 |
/*************************************************************************** |
| 2 |
* Copyright (c) 2016 Werner Mayer <wmayer[at]users.sourceforge.net> * |
| 3 |
* * |
| 4 |
* This file is part of the FreeCAD CAx development system. * |
| 5 |
* * |
| 6 |
* This library is free software; you can redistribute it and/or * |
| 7 |
* modify it under the terms of the GNU Library General Public * |
| 8 |
* License as published by the Free Software Foundation; either * |
| 9 |
* version 2 of the License, or (at your option) any later version. * |
| 10 |
* * |
| 11 |
* This library is distributed in the hope that it will be useful, * |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 |
* GNU Library General Public License for more details. * |
| 15 |
* * |
| 16 |
* You should have received a copy of the GNU Library General Public * |
| 17 |
* License along with this library; see the file COPYING.LIB. If not, * |
| 18 |
* write to the Free Software Foundation, Inc., 59 Temple Place, * |
| 19 |
* Suite 330, Boston, MA 02111-1307, USA * |
| 20 |
* * |
| 21 |
***************************************************************************/ |
| 22 |
|
| 23 |
|
| 24 |
#include <Inventor/nodes/SoMarkerSet.h> |
| 25 |
#include <vector> |
| 26 |
|
| 27 |
|
| 28 |
#include "MarkerBitmaps.h" |
| 29 |
|
| 30 |
using namespace Gui::Inventor; |
| 31 |
|
| 32 |
/* |
| 33 |
from PySide import QtCore |
| 34 |
from PySide import QtGui |
| 35 |
|
| 36 |
def makeIcon(s): |
| 37 |
p=QtGui.QPixmap(s,s) |
| 38 |
painter=QtGui.QPainter(p) |
| 39 |
painter.setBrush(QtCore.Qt.SolidPattern) |
| 40 |
painter.drawEllipse(1,1,s-2,s-2) |
| 41 |
painter.end() |
| 42 |
|
| 43 |
buffer=QtCore.QBuffer() |
| 44 |
buffer.open(buffer.WriteOnly) |
| 45 |
p.save(buffer,"XPM") |
| 46 |
buffer.close() |
| 47 |
|
| 48 |
ary=buffer.buffer() |
| 49 |
lines=ary.split(",") |
| 50 |
ba=QtCore.QByteArray() |
| 51 |
for i in lines[3:]: |
| 52 |
ba = ba.append(i) |
| 53 |
|
| 54 |
ba=ba.replace("#","x") |
| 55 |
ba=ba.replace("."," ") |
| 56 |
print (ba.data()) |
| 57 |
*/ |
| 58 |
|
| 59 |
// DIAMOND_FILLED_11_11 |
| 60 |
const int DIAMOND_FILLED11_WIDTH = 11; |
| 61 |
const int DIAMOND_FILLED11_HEIGHT = 11; |
| 62 |
const char diamondFilled11_marker[DIAMOND_FILLED11_WIDTH * DIAMOND_FILLED11_HEIGHT + 1] = { |
| 63 |
" " |
| 64 |
" xx " |
| 65 |
" xxxx " |
| 66 |
" xxxxxx " |
| 67 |
" xxxxxxxx " |
| 68 |
" xxxxxxxxxx" |
| 69 |
" xxxxxxxxxx" |
| 70 |
" xxxxxxxx " |
| 71 |
" xxxxxx " |
| 72 |
" xxxx " |
| 73 |
" xx " |
| 74 |
}; |
| 75 |
|
| 76 |
|
| 77 |
// DIAMOND_FILLED_13_13 |
| 78 |
const int DIAMOND_FILLED13_WIDTH = 13; |
| 79 |
const int DIAMOND_FILLED13_HEIGHT = 13; |
| 80 |
const char diamondFilled13_marker[DIAMOND_FILLED13_WIDTH * DIAMOND_FILLED13_HEIGHT + 1] = { |
| 81 |
" " |
| 82 |
" xx " |
| 83 |
" xxxx " |
| 84 |
" xxxxxx " |
| 85 |
" xxxxxxxx " |
| 86 |
" xxxxxxxxxx " |
| 87 |
" xxxxxxxxxxxx" |
| 88 |
" xxxxxxxxxxxx" |
| 89 |
" xxxxxxxxxx " |
| 90 |
" xxxxxxxx " |
| 91 |
" xxxxxx " |
| 92 |
" xxxx " |
| 93 |
" xx " |
| 94 |
}; |
| 95 |
|
| 96 |
|
| 97 |
// DIAMOND_FILLED_15_15 |
| 98 |
const int DIAMOND_FILLED15_WIDTH = 15; |
| 99 |
const int DIAMOND_FILLED15_HEIGHT = 15; |
| 100 |
const char diamondFilled15_marker[DIAMOND_FILLED15_WIDTH * DIAMOND_FILLED15_HEIGHT + 1] = { |
| 101 |
" " |
| 102 |
" xx " |
| 103 |
" xxxx " |
| 104 |
" xxxxxx " |
| 105 |
" xxxxxxxx " |
| 106 |
" xxxxxxxxxx " |
| 107 |
" xxxxxxxxxxxx " |
| 108 |
" xxxxxxxxxxxxxx" |
| 109 |
" xxxxxxxxxxxxxx" |
| 110 |
" xxxxxxxxxxxx " |
| 111 |
" xxxxxxxxxx " |
| 112 |
" xxxxxxxx " |
| 113 |
" xxxxxx " |
| 114 |
" xxxx " |
| 115 |
" xx " |
| 116 |
}; |
| 117 |
|
| 118 |
|
| 119 |
// DIAMOND_FILLED_20_20 |
| 120 |
const int DIAMOND_FILLED20_WIDTH = 20; |
| 121 |
const int DIAMOND_FILLED20_HEIGHT = 20; |
| 122 |
const char diamondFilled20_marker[DIAMOND_FILLED20_WIDTH * DIAMOND_FILLED20_HEIGHT + 1] = { |
| 123 |
" " |
| 124 |
" x " |
| 125 |
" xxx " |
| 126 |
" xxxxx " |
| 127 |
" xxxxxxx " |
| 128 |
" xxxxxxxxx " |
| 129 |
" xxxxxxxxxxx " |
| 130 |
" xxxxxxxxxxxxx " |
| 131 |
" xxxxxxxxxxxxxxx " |
| 132 |
" xxxxxxxxxxxxxxxxx " |
| 133 |
" xxxxxxxxxxxxxxxxxxx" |
| 134 |
" xxxxxxxxxxxxxxxxx " |
| 135 |
" xxxxxxxxxxxxxxx " |
| 136 |
" xxxxxxxxxxxxx " |
| 137 |
" xxxxxxxxxxx " |
| 138 |
" xxxxxxxxx " |
| 139 |
" xxxxxxx " |
| 140 |
" xxxxx " |
| 141 |
" xxx " |
| 142 |
" x " |
| 143 |
}; |
| 144 |
|
| 145 |
// DIAMOND_FILLED_25_25 |
| 146 |
const int DIAMOND_FILLED25_WIDTH = 25; |
| 147 |
const int DIAMOND_FILLED25_HEIGHT = 25; |
| 148 |
const char diamondFilled25_marker[DIAMOND_FILLED25_WIDTH * DIAMOND_FILLED25_HEIGHT + 1] = { |
| 149 |
" " |
| 150 |
" xx " |
| 151 |
" xxxx " |
| 152 |
" xxxxxx " |
| 153 |
" xxxxxxxx " |
| 154 |
" xxxxxxxxxx " |
| 155 |
" xxxxxxxxxxxx " |
| 156 |
" xxxxxxxxxxxxxx " |
| 157 |
" xxxxxxxxxxxxxxxx " |
| 158 |
" xxxxxxxxxxxxxxxxxx " |
| 159 |
" xxxxxxxxxxxxxxxxxxxx " |
| 160 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 161 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 162 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 163 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 164 |
" xxxxxxxxxxxxxxxxxxxx " |
| 165 |
" xxxxxxxxxxxxxxxxxx " |
| 166 |
" xxxxxxxxxxxxxxxx " |
| 167 |
" xxxxxxxxxxxxxx " |
| 168 |
" xxxxxxxxxxxx " |
| 169 |
" xxxxxxxxxx " |
| 170 |
" xxxxxxxx " |
| 171 |
" xxxxxx " |
| 172 |
" xxxx " |
| 173 |
" xx " |
| 174 |
}; |
| 175 |
|
| 176 |
|
| 177 |
// DIAMOND_FILLED_30_30 |
| 178 |
const int DIAMOND_FILLED30_WIDTH = 30; |
| 179 |
const int DIAMOND_FILLED30_HEIGHT = 30; |
| 180 |
const char diamondFilled30_marker[DIAMOND_FILLED30_WIDTH * DIAMOND_FILLED30_HEIGHT + 1] = { |
| 181 |
" " |
| 182 |
" xxx " |
| 183 |
" xxxxx " |
| 184 |
" xxxxxxx " |
| 185 |
" xxxxxxxxx " |
| 186 |
" xxxxxxxxxxx " |
| 187 |
" xxxxxxxxxxxxx " |
| 188 |
" xxxxxxxxxxxxxxx " |
| 189 |
" xxxxxxxxxxxxxxxxx " |
| 190 |
" xxxxxxxxxxxxxxxxxxx " |
| 191 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 192 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 193 |
" xxxxxxxxxxxxxxxxxxxxxxxxx " |
| 194 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 195 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 196 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 197 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 198 |
" xxxxxxxxxxxxxxxxxxxxxxxxx " |
| 199 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 200 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 201 |
" xxxxxxxxxxxxxxxxxxx " |
| 202 |
" xxxxxxxxxxxxxxxxx " |
| 203 |
" xxxxxxxxxxxxxxx " |
| 204 |
" xxxxxxxxxxxxx " |
| 205 |
" xxxxxxxxxxx " |
| 206 |
" xxxxxxxxx " |
| 207 |
" xxxxxxx " |
| 208 |
" xxxxx " |
| 209 |
" xxx " |
| 210 |
" " |
| 211 |
}; |
| 212 |
|
| 213 |
|
| 214 |
// CROSS_11_11 |
| 215 |
const int CROSS11_WIDTH = 11; |
| 216 |
const int CROSS11_HEIGHT = 11; |
| 217 |
const char cross11_marker[CROSS11_WIDTH * CROSS11_HEIGHT + 1] = {" " |
| 218 |
" xx xx" |
| 219 |
" xx xx " |
| 220 |
" xx xx " |
| 221 |
" xxxx " |
| 222 |
" xx " |
| 223 |
" xx " |
| 224 |
" xxxx " |
| 225 |
" xx xx " |
| 226 |
" xx xx " |
| 227 |
" xx xx"}; |
| 228 |
|
| 229 |
|
| 230 |
// CROSS_13_13 |
| 231 |
const int CROSS13_WIDTH = 13; |
| 232 |
const int CROSS13_HEIGHT = 13; |
| 233 |
const char cross13_marker[CROSS13_WIDTH * CROSS13_HEIGHT + 1] = {" " |
| 234 |
" xx xx" |
| 235 |
" xx xx " |
| 236 |
" xx xx " |
| 237 |
" xx xx " |
| 238 |
" xxxx " |
| 239 |
" xx " |
| 240 |
" xx " |
| 241 |
" xxxx " |
| 242 |
" xx xx " |
| 243 |
" xx xx " |
| 244 |
" xx xx " |
| 245 |
" xx xx"}; |
| 246 |
|
| 247 |
|
| 248 |
// CROSS_15_15 |
| 249 |
const int CROSS15_WIDTH = 15; |
| 250 |
const int CROSS15_HEIGHT = 15; |
| 251 |
const char cross15_marker[CROSS15_WIDTH * CROSS15_HEIGHT + 1] = {" " |
| 252 |
" xx xx" |
| 253 |
" xx xx " |
| 254 |
" xx xx " |
| 255 |
" xx xx " |
| 256 |
" xx xx " |
| 257 |
" xxxx " |
| 258 |
" xx " |
| 259 |
" xx " |
| 260 |
" xxxx " |
| 261 |
" xx xx " |
| 262 |
" xx xx " |
| 263 |
" xx xx " |
| 264 |
" xx xx " |
| 265 |
" xx xx"}; |
| 266 |
|
| 267 |
// CROSS_20_20 |
| 268 |
const int CROSS20_WIDTH = 20; |
| 269 |
const int CROSS20_HEIGHT = 20; |
| 270 |
const char cross20_marker[CROSS20_WIDTH * CROSS20_HEIGHT + 1] = {" " |
| 271 |
" xx xx" |
| 272 |
" xx xx " |
| 273 |
" xx xx " |
| 274 |
" xx xx " |
| 275 |
" xx xx " |
| 276 |
" xx xx " |
| 277 |
" xx xx " |
| 278 |
" xx xx " |
| 279 |
" xxx " |
| 280 |
" x " |
| 281 |
" xxx " |
| 282 |
" xx xx " |
| 283 |
" xx xx " |
| 284 |
" xx xx " |
| 285 |
" xx xx " |
| 286 |
" xx xx " |
| 287 |
" xx xx " |
| 288 |
" xx xx " |
| 289 |
" xx xx"}; |
| 290 |
|
| 291 |
|
| 292 |
// CROSS_25_25 |
| 293 |
const int CROSS25_WIDTH = 25; |
| 294 |
const int CROSS25_HEIGHT = 25; |
| 295 |
const char cross25_marker[CROSS25_WIDTH * CROSS25_HEIGHT + 1] = {" " |
| 296 |
" xx xx" |
| 297 |
" xx xx " |
| 298 |
" xx xx " |
| 299 |
" xx xx " |
| 300 |
" xx xx " |
| 301 |
" xx xx " |
| 302 |
" xx xx " |
| 303 |
" xx xx " |
| 304 |
" xx xx " |
| 305 |
" xx xx " |
| 306 |
" xxxx " |
| 307 |
" xx " |
| 308 |
" xx " |
| 309 |
" xxxx " |
| 310 |
" xx xx " |
| 311 |
" xx xx " |
| 312 |
" xx xx " |
| 313 |
" xx xx " |
| 314 |
" xx xx " |
| 315 |
" xx xx " |
| 316 |
" xx xx " |
| 317 |
" xx xx " |
| 318 |
" xx xx " |
| 319 |
" xx xx"}; |
| 320 |
|
| 321 |
|
| 322 |
// CROSS_30_30 |
| 323 |
const int CROSS30_WIDTH = 30; |
| 324 |
const int CROSS30_HEIGHT = 30; |
| 325 |
const char cross30_marker[CROSS30_WIDTH * CROSS30_HEIGHT + 1] = {" " |
| 326 |
" xxx xxx" |
| 327 |
" xxx xxx " |
| 328 |
" xxx xxx " |
| 329 |
" xxx xxx " |
| 330 |
" xxx xxx " |
| 331 |
" xxx xxx " |
| 332 |
" xxx xxx " |
| 333 |
" xxx xxx " |
| 334 |
" xxx xxx " |
| 335 |
" xxx xxx " |
| 336 |
" xxx xxx " |
| 337 |
" xxx xxx " |
| 338 |
" xxxxx " |
| 339 |
" xxx " |
| 340 |
" xxx " |
| 341 |
" xxx " |
| 342 |
" xxxxx " |
| 343 |
" xxx xxx " |
| 344 |
" xxx xxx " |
| 345 |
" xxx xxx " |
| 346 |
" xxx xxx " |
| 347 |
" xxx xxx " |
| 348 |
" xxx xxx " |
| 349 |
" xxx xxx " |
| 350 |
" xxx xxx " |
| 351 |
" xxx xxx " |
| 352 |
" xxx xxx " |
| 353 |
" xxx xxx " |
| 354 |
" xxx xxx"}; |
| 355 |
|
| 356 |
|
| 357 |
// PLUS_11_11 |
| 358 |
const int PLUS11_WIDTH = 11; |
| 359 |
const int PLUS11_HEIGHT = 11; |
| 360 |
const char plus11_marker[PLUS11_WIDTH * PLUS11_HEIGHT + 1] = {" " |
| 361 |
" xx " |
| 362 |
" xx " |
| 363 |
" xx " |
| 364 |
" xx " |
| 365 |
" xxxxxxxxxx" |
| 366 |
" xxxxxxxxxx" |
| 367 |
" xx " |
| 368 |
" xx " |
| 369 |
" xx " |
| 370 |
" xx "}; |
| 371 |
|
| 372 |
|
| 373 |
// PLUS_13_13 |
| 374 |
const int PLUS13_WIDTH = 13; |
| 375 |
const int PLUS13_HEIGHT = 13; |
| 376 |
const char plus13_marker[PLUS13_WIDTH * PLUS13_HEIGHT + 1] = {" " |
| 377 |
" xx " |
| 378 |
" xx " |
| 379 |
" xx " |
| 380 |
" xx " |
| 381 |
" xx " |
| 382 |
" xxxxxxxxxxxx" |
| 383 |
" xxxxxxxxxxxx" |
| 384 |
" xx " |
| 385 |
" xx " |
| 386 |
" xx " |
| 387 |
" xx " |
| 388 |
" xx "}; |
| 389 |
|
| 390 |
|
| 391 |
// PLUS_15_15 |
| 392 |
const int PLUS15_WIDTH = 15; |
| 393 |
const int PLUS15_HEIGHT = 15; |
| 394 |
const char plus15_marker[PLUS15_WIDTH * PLUS15_HEIGHT + 1] = {" " |
| 395 |
" xx " |
| 396 |
" xx " |
| 397 |
" xx " |
| 398 |
" xx " |
| 399 |
" xx " |
| 400 |
" xx " |
| 401 |
" xxxxxxxxxxxxxx" |
| 402 |
" xxxxxxxxxxxxxx" |
| 403 |
" xx " |
| 404 |
" xx " |
| 405 |
" xx " |
| 406 |
" xx " |
| 407 |
" xx " |
| 408 |
" xx "}; |
| 409 |
|
| 410 |
|
| 411 |
// PLUS_20_20 |
| 412 |
const int PLUS20_WIDTH = 20; |
| 413 |
const int PLUS20_HEIGHT = 20; |
| 414 |
const char plus20_marker[PLUS20_WIDTH * PLUS20_HEIGHT + 1] = {" " |
| 415 |
" xx " |
| 416 |
" xx " |
| 417 |
" xx " |
| 418 |
" xx " |
| 419 |
" xx " |
| 420 |
" xx " |
| 421 |
" xx " |
| 422 |
" xx " |
| 423 |
" xxxxxxxxxxxxxxxxxxx" |
| 424 |
" xxxxxxxxxxxxxxxxxxx" |
| 425 |
" xx " |
| 426 |
" xx " |
| 427 |
" xx " |
| 428 |
" xx " |
| 429 |
" xx " |
| 430 |
" xx " |
| 431 |
" xx " |
| 432 |
" xx " |
| 433 |
" xx "}; |
| 434 |
|
| 435 |
// PLUS_25_25 |
| 436 |
const int PLUS25_WIDTH = 25; |
| 437 |
const int PLUS25_HEIGHT = 25; |
| 438 |
const char plus25_marker[PLUS25_WIDTH * PLUS25_HEIGHT + 1] = {" " |
| 439 |
" xxx " |
| 440 |
" xxx " |
| 441 |
" xxx " |
| 442 |
" xxx " |
| 443 |
" xxx " |
| 444 |
" xxx " |
| 445 |
" xxx " |
| 446 |
" xxx " |
| 447 |
" xxx " |
| 448 |
" xxx " |
| 449 |
" xxx " |
| 450 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 451 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 452 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 453 |
" xxx " |
| 454 |
" xxx " |
| 455 |
" xxx " |
| 456 |
" xxx " |
| 457 |
" xxx " |
| 458 |
" xxx " |
| 459 |
" xxx " |
| 460 |
" xxx " |
| 461 |
" xxx " |
| 462 |
" xxx "}; |
| 463 |
|
| 464 |
// PLUS_30_30 |
| 465 |
const int PLUS30_WIDTH = 30; |
| 466 |
const int PLUS30_HEIGHT = 30; |
| 467 |
const char plus30_marker[PLUS30_WIDTH * PLUS30_HEIGHT + 1] = {" " |
| 468 |
" xxx " |
| 469 |
" xxx " |
| 470 |
" xxx " |
| 471 |
" xxx " |
| 472 |
" xxx " |
| 473 |
" xxx " |
| 474 |
" xxx " |
| 475 |
" xxx " |
| 476 |
" xxx " |
| 477 |
" xxx " |
| 478 |
" xxx " |
| 479 |
" xxx " |
| 480 |
" xxx " |
| 481 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 482 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 483 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 484 |
" xxx " |
| 485 |
" xxx " |
| 486 |
" xxx " |
| 487 |
" xxx " |
| 488 |
" xxx " |
| 489 |
" xxx " |
| 490 |
" xxx " |
| 491 |
" xxx " |
| 492 |
" xxx " |
| 493 |
" xxx " |
| 494 |
" xxx " |
| 495 |
" xxx " |
| 496 |
" xxx "}; |
| 497 |
|
| 498 |
// SQUARE_LINE_11_11 |
| 499 |
const int SQUARE_LINE11_WIDTH = 11; |
| 500 |
const int SQUARE_LINE11_HEIGHT = 11; |
| 501 |
const char squareLine11_marker[SQUARE_LINE11_WIDTH * SQUARE_LINE11_HEIGHT + 1] = {" " |
| 502 |
" xxxxxxxxxx" |
| 503 |
" xxxxxxxxxx" |
| 504 |
" xx xx" |
| 505 |
" xx xx" |
| 506 |
" xx xx" |
| 507 |
" xx xx" |
| 508 |
" xx xx" |
| 509 |
" xx xx" |
| 510 |
" xxxxxxxxxx" |
| 511 |
" xxxxxxxxxx"}; |
| 512 |
|
| 513 |
|
| 514 |
// SQUARE_LINE_13_13 |
| 515 |
const int SQUARE_LINE13_WIDTH = 13; |
| 516 |
const int SQUARE_LINE13_HEIGHT = 13; |
| 517 |
const char squareLine13_marker[SQUARE_LINE13_WIDTH * SQUARE_LINE13_HEIGHT + 1] = {" " |
| 518 |
" xxxxxxxxxxxx" |
| 519 |
" xxxxxxxxxxxx" |
| 520 |
" xx xx" |
| 521 |
" xx xx" |
| 522 |
" xx xx" |
| 523 |
" xx xx" |
| 524 |
" xx xx" |
| 525 |
" xx xx" |
| 526 |
" xx xx" |
| 527 |
" xx xx" |
| 528 |
" xxxxxxxxxxxx" |
| 529 |
" xxxxxxxxxxxx"}; |
| 530 |
|
| 531 |
|
| 532 |
// SQUARE_LINE_15_15 |
| 533 |
const int SQUARE_LINE15_WIDTH = 15; |
| 534 |
const int SQUARE_LINE15_HEIGHT = 15; |
| 535 |
const char squareLine15_marker[SQUARE_LINE15_WIDTH * SQUARE_LINE15_HEIGHT + 1] = {" " |
| 536 |
" xxxxxxxxxxxxxx" |
| 537 |
" xxxxxxxxxxxxxx" |
| 538 |
" xx xx" |
| 539 |
" xx xx" |
| 540 |
" xx xx" |
| 541 |
" xx xx" |
| 542 |
" xx xx" |
| 543 |
" xx xx" |
| 544 |
" xx xx" |
| 545 |
" xx xx" |
| 546 |
" xx xx" |
| 547 |
" xx xx" |
| 548 |
" xxxxxxxxxxxxxx" |
| 549 |
" xxxxxxxxxxxxxx"}; |
| 550 |
|
| 551 |
// SQUARE_LINE_20_20 |
| 552 |
const int SQUARE_LINE20_WIDTH = 20; |
| 553 |
const int SQUARE_LINE20_HEIGHT = 20; |
| 554 |
const char squareLine20_marker[SQUARE_LINE20_WIDTH * SQUARE_LINE20_HEIGHT + 1] = { |
| 555 |
" " |
| 556 |
" xxxxxxxxxxxxxxxxxxx" |
| 557 |
" xxxxxxxxxxxxxxxxxxx" |
| 558 |
" xx xx" |
| 559 |
" xx xx" |
| 560 |
" xx xx" |
| 561 |
" xx xx" |
| 562 |
" xx xx" |
| 563 |
" xx xx" |
| 564 |
" xx xx" |
| 565 |
" xx xx" |
| 566 |
" xx xx" |
| 567 |
" xx xx" |
| 568 |
" xx xx" |
| 569 |
" xx xx" |
| 570 |
" xx xx" |
| 571 |
" xx xx" |
| 572 |
" xx xx" |
| 573 |
" xxxxxxxxxxxxxxxxxxx" |
| 574 |
" xxxxxxxxxxxxxxxxxxx" |
| 575 |
}; |
| 576 |
|
| 577 |
// SQUARE_LINE_25_25 |
| 578 |
const int SQUARE_LINE25_WIDTH = 25; |
| 579 |
const int SQUARE_LINE25_HEIGHT = 25; |
| 580 |
const char squareLine25_marker[SQUARE_LINE25_WIDTH * SQUARE_LINE25_HEIGHT + 1] = { |
| 581 |
" " |
| 582 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 583 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 584 |
" xx xx" |
| 585 |
" xx xx" |
| 586 |
" xx xx" |
| 587 |
" xx xx" |
| 588 |
" xx xx" |
| 589 |
" xx xx" |
| 590 |
" xx xx" |
| 591 |
" xx xx" |
| 592 |
" xx xx" |
| 593 |
" xx xx" |
| 594 |
" xx xx" |
| 595 |
" xx xx" |
| 596 |
" xx xx" |
| 597 |
" xx xx" |
| 598 |
" xx xx" |
| 599 |
" xx xx" |
| 600 |
" xx xx" |
| 601 |
" xx xx" |
| 602 |
" xx xx" |
| 603 |
" xx xx" |
| 604 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 605 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 606 |
}; |
| 607 |
|
| 608 |
// SQUARE_LINE_30_30 |
| 609 |
const int SQUARE_LINE30_WIDTH = 30; |
| 610 |
const int SQUARE_LINE30_HEIGHT = 30; |
| 611 |
const char squareLine30_marker[SQUARE_LINE30_WIDTH * SQUARE_LINE30_HEIGHT + 1] = { |
| 612 |
" " |
| 613 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 614 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 615 |
" xx xx" |
| 616 |
" xx xx" |
| 617 |
" xx xx" |
| 618 |
" xx xx" |
| 619 |
" xx xx" |
| 620 |
" xx xx" |
| 621 |
" xx xx" |
| 622 |
" xx xx" |
| 623 |
" xx xx" |
| 624 |
" xx xx" |
| 625 |
" xx xx" |
| 626 |
" xx xx" |
| 627 |
" xx xx" |
| 628 |
" xx xx" |
| 629 |
" xx xx" |
| 630 |
" xx xx" |
| 631 |
" xx xx" |
| 632 |
" xx xx" |
| 633 |
" xx xx" |
| 634 |
" xx xx" |
| 635 |
" xx xx" |
| 636 |
" xx xx" |
| 637 |
" xx xx" |
| 638 |
" xx xx" |
| 639 |
" xx xx" |
| 640 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 641 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 642 |
}; |
| 643 |
|
| 644 |
|
| 645 |
// SQUARE_FILLED_11_11 |
| 646 |
const int SQUARE_FILLED11_WIDTH = 11; |
| 647 |
const int SQUARE_FILLED11_HEIGHT = 11; |
| 648 |
const char squareFilled11_marker[SQUARE_FILLED11_WIDTH * SQUARE_FILLED11_HEIGHT + 1] = { |
| 649 |
" " |
| 650 |
" xxxxxxxxxx" |
| 651 |
" xxxxxxxxxx" |
| 652 |
" xxxxxxxxxx" |
| 653 |
" xxxxxxxxxx" |
| 654 |
" xxxxxxxxxx" |
| 655 |
" xxxxxxxxxx" |
| 656 |
" xxxxxxxxxx" |
| 657 |
" xxxxxxxxxx" |
| 658 |
" xxxxxxxxxx" |
| 659 |
" xxxxxxxxxx" |
| 660 |
}; |
| 661 |
|
| 662 |
|
| 663 |
// SQUARE_FILLED_13_13 |
| 664 |
const int SQUARE_FILLED13_WIDTH = 13; |
| 665 |
const int SQUARE_FILLED13_HEIGHT = 13; |
| 666 |
const char squareFilled13_marker[SQUARE_FILLED13_WIDTH * SQUARE_FILLED13_HEIGHT + 1] = { |
| 667 |
" " |
| 668 |
" xxxxxxxxxxxx" |
| 669 |
" xxxxxxxxxxxx" |
| 670 |
" xxxxxxxxxxxx" |
| 671 |
" xxxxxxxxxxxx" |
| 672 |
" xxxxxxxxxxxx" |
| 673 |
" xxxxxxxxxxxx" |
| 674 |
" xxxxxxxxxxxx" |
| 675 |
" xxxxxxxxxxxx" |
| 676 |
" xxxxxxxxxxxx" |
| 677 |
" xxxxxxxxxxxx" |
| 678 |
" xxxxxxxxxxxx" |
| 679 |
" xxxxxxxxxxxx" |
| 680 |
}; |
| 681 |
|
| 682 |
|
| 683 |
// SQUARE_FILLED_15_15 |
| 684 |
const int SQUARE_FILLED15_WIDTH = 15; |
| 685 |
const int SQUARE_FILLED15_HEIGHT = 15; |
| 686 |
const char squareFilled15_marker[SQUARE_FILLED15_WIDTH * SQUARE_FILLED15_HEIGHT + 1] = { |
| 687 |
" " |
| 688 |
" xxxxxxxxxxxxxx" |
| 689 |
" xxxxxxxxxxxxxx" |
| 690 |
" xxxxxxxxxxxxxx" |
| 691 |
" xxxxxxxxxxxxxx" |
| 692 |
" xxxxxxxxxxxxxx" |
| 693 |
" xxxxxxxxxxxxxx" |
| 694 |
" xxxxxxxxxxxxxx" |
| 695 |
" xxxxxxxxxxxxxx" |
| 696 |
" xxxxxxxxxxxxxx" |
| 697 |
" xxxxxxxxxxxxxx" |
| 698 |
" xxxxxxxxxxxxxx" |
| 699 |
" xxxxxxxxxxxxxx" |
| 700 |
" xxxxxxxxxxxxxx" |
| 701 |
" xxxxxxxxxxxxxx" |
| 702 |
}; |
| 703 |
|
| 704 |
// SQUARE_FILLED_20_20 |
| 705 |
const int SQUARE_FILLED20_WIDTH = 20; |
| 706 |
const int SQUARE_FILLED20_HEIGHT = 20; |
| 707 |
const char squareFilled20_marker[SQUARE_FILLED20_WIDTH * SQUARE_FILLED20_HEIGHT + 1] = { |
| 708 |
" " |
| 709 |
" xxxxxxxxxxxxxxxxxxx" |
| 710 |
" xxxxxxxxxxxxxxxxxxx" |
| 711 |
" xxxxxxxxxxxxxxxxxxx" |
| 712 |
" xxxxxxxxxxxxxxxxxxx" |
| 713 |
" xxxxxxxxxxxxxxxxxxx" |
| 714 |
" xxxxxxxxxxxxxxxxxxx" |
| 715 |
" xxxxxxxxxxxxxxxxxxx" |
| 716 |
" xxxxxxxxxxxxxxxxxxx" |
| 717 |
" xxxxxxxxxxxxxxxxxxx" |
| 718 |
" xxxxxxxxxxxxxxxxxxx" |
| 719 |
" xxxxxxxxxxxxxxxxxxx" |
| 720 |
" xxxxxxxxxxxxxxxxxxx" |
| 721 |
" xxxxxxxxxxxxxxxxxxx" |
| 722 |
" xxxxxxxxxxxxxxxxxxx" |
| 723 |
" xxxxxxxxxxxxxxxxxxx" |
| 724 |
" xxxxxxxxxxxxxxxxxxx" |
| 725 |
" xxxxxxxxxxxxxxxxxxx" |
| 726 |
" xxxxxxxxxxxxxxxxxxx" |
| 727 |
" xxxxxxxxxxxxxxxxxxx" |
| 728 |
}; |
| 729 |
|
| 730 |
|
| 731 |
// SQUARE_FILLED_25_25 |
| 732 |
const int SQUARE_FILLED25_WIDTH = 25; |
| 733 |
const int SQUARE_FILLED25_HEIGHT = 25; |
| 734 |
const char squareFilled25_marker[SQUARE_FILLED25_WIDTH * SQUARE_FILLED25_HEIGHT + 1] = { |
| 735 |
" " |
| 736 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 737 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 738 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 739 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 740 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 741 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 742 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 743 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 744 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 745 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 746 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 747 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 748 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 749 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 750 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 751 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 752 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 753 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 754 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 755 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 756 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 757 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 758 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 759 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 760 |
}; |
| 761 |
|
| 762 |
|
| 763 |
// SQUARE_FILLED_30_30 |
| 764 |
const int SQUARE_FILLED30_WIDTH = 30; |
| 765 |
const int SQUARE_FILLED30_HEIGHT = 30; |
| 766 |
const char squareFilled30_marker[SQUARE_FILLED30_WIDTH * SQUARE_FILLED30_HEIGHT + 1] = { |
| 767 |
" " |
| 768 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 769 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 770 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 771 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 772 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 773 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 774 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 775 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 776 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 777 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 778 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 779 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 780 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 781 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 782 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 783 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 784 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 785 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 786 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 787 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 788 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 789 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 790 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 791 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 792 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 793 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 794 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 795 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 796 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 797 |
}; |
| 798 |
|
| 799 |
|
| 800 |
// CIRCLE_LINE_11_11 |
| 801 |
const int CIRCLE_LINE11_WIDTH = 11; |
| 802 |
const int CIRCLE_LINE11_HEIGHT = 11; |
| 803 |
const char circleLine11_marker[CIRCLE_LINE11_WIDTH * CIRCLE_LINE11_HEIGHT + 1] = {" " |
| 804 |
" xxxxxx " |
| 805 |
" xxxxxxxx " |
| 806 |
" xxx xxx" |
| 807 |
" xx xx" |
| 808 |
" xx xx" |
| 809 |
" xx xx" |
| 810 |
" xx xx" |
| 811 |
" xxx xxx" |
| 812 |
" xxxxxxxx " |
| 813 |
" xxxxxx "}; |
| 814 |
|
| 815 |
|
| 816 |
// CIRCLE_LINE_13_13 |
| 817 |
const int CIRCLE_LINE13_WIDTH = 13; |
| 818 |
const int CIRCLE_LINE13_HEIGHT = 13; |
| 819 |
const char circleLine13_marker[CIRCLE_LINE13_WIDTH * CIRCLE_LINE13_HEIGHT + 1] = {" " |
| 820 |
" xxxxxx " |
| 821 |
" xxxxxxxx " |
| 822 |
" xx xx " |
| 823 |
" xx xx" |
| 824 |
" xx xx" |
| 825 |
" xx xx" |
| 826 |
" xx xx" |
| 827 |
" xx xx" |
| 828 |
" xx xx" |
| 829 |
" xx xx " |
| 830 |
" xxxxxxxx " |
| 831 |
" xxxxxx "}; |
| 832 |
|
| 833 |
|
| 834 |
// CIRCLE_LINE_15_15 |
| 835 |
const int CIRCLE_LINE15_WIDTH = 15; |
| 836 |
const int CIRCLE_LINE15_HEIGHT = 15; |
| 837 |
const char circleLine15_marker[CIRCLE_LINE15_WIDTH * CIRCLE_LINE15_HEIGHT + 1] = {" " |
| 838 |
" xxxxxx " |
| 839 |
" xxxxxxxxxx " |
| 840 |
" xxx xxx " |
| 841 |
" xx xx " |
| 842 |
" xx xx" |
| 843 |
" xx xx" |
| 844 |
" xx xx" |
| 845 |
" xx xx" |
| 846 |
" xx xx" |
| 847 |
" xx xx" |
| 848 |
" xx xx " |
| 849 |
" xxx xxx " |
| 850 |
" xxxxxxxxxx " |
| 851 |
" xxxxxx "}; |
| 852 |
|
| 853 |
// CIRCLE_LINE_20_20 |
| 854 |
const int CIRCLE_LINE20_WIDTH = 20; |
| 855 |
const int CIRCLE_LINE20_HEIGHT = 20; |
| 856 |
const char circleLine20_marker[CIRCLE_LINE20_WIDTH * CIRCLE_LINE20_HEIGHT + 1] = { |
| 857 |
" " |
| 858 |
" xxxxx " |
| 859 |
" xxxxxxxxx " |
| 860 |
" xx xx " |
| 861 |
" xx xx " |
| 862 |
" xx xx " |
| 863 |
" xx xx " |
| 864 |
" xx xx " |
| 865 |
" xx xx " |
| 866 |
" xx xx" |
| 867 |
" xx xx" |
| 868 |
" xx xx" |
| 869 |
" xx xx " |
| 870 |
" xx xx " |
| 871 |
" xx xx " |
| 872 |
" xx xx " |
| 873 |
" xx xx " |
| 874 |
" xx xx " |
| 875 |
" xxxxxxxxx " |
| 876 |
" xxxxx " |
| 877 |
}; |
| 878 |
|
| 879 |
|
| 880 |
// CIRCLE_LINE_25_25 |
| 881 |
const int CIRCLE_LINE25_WIDTH = 25; |
| 882 |
const int CIRCLE_LINE25_HEIGHT = 25; |
| 883 |
const char circleLine25_marker[CIRCLE_LINE25_WIDTH * CIRCLE_LINE25_HEIGHT + 1] = { |
| 884 |
" " |
| 885 |
" xxxxxxx " |
| 886 |
" xxxxxxxxxxx " |
| 887 |
" xxx xxx " |
| 888 |
" xx xx " |
| 889 |
" xx xx " |
| 890 |
" xx xx " |
| 891 |
" xx xx " |
| 892 |
" xx xx " |
| 893 |
" xx xx " |
| 894 |
" xx xx " |
| 895 |
"xx xx" |
| 896 |
"xx xx" |
| 897 |
"xx xx" |
| 898 |
"xx xx" |
| 899 |
" xx xx " |
| 900 |
" xx xx " |
| 901 |
" xx xx " |
| 902 |
" xx xx " |
| 903 |
" xx xx " |
| 904 |
" xx xx " |
| 905 |
" xx xx " |
| 906 |
" xxx xxx " |
| 907 |
" xxxxxxxxxxx " |
| 908 |
" xxxxxxx " |
| 909 |
}; |
| 910 |
|
| 911 |
|
| 912 |
// CIRCLE_LINE_30_30 |
| 913 |
const int CIRCLE_LINE30_WIDTH = 30; |
| 914 |
const int CIRCLE_LINE30_HEIGHT = 30; |
| 915 |
const char circleLine30_marker[CIRCLE_LINE30_WIDTH * CIRCLE_LINE30_HEIGHT + 1] = { |
| 916 |
" " |
| 917 |
" xxxxxx " |
| 918 |
" xxxxxxxxxxxx " |
| 919 |
" xxx xxx " |
| 920 |
" xx xx " |
| 921 |
" xx xx " |
| 922 |
" xx xx " |
| 923 |
" xx xx " |
| 924 |
" xx xx " |
| 925 |
" xx xx " |
| 926 |
" xx xx " |
| 927 |
" xx xx " |
| 928 |
" xx xx " |
| 929 |
"xx xx" |
| 930 |
"xx xx" |
| 931 |
"xx xx" |
| 932 |
"xx xx" |
| 933 |
"xx xx" |
| 934 |
" xx xx " |
| 935 |
" xx xx " |
| 936 |
" xx xx " |
| 937 |
" xx xx " |
| 938 |
" xx xx " |
| 939 |
" xx xx " |
| 940 |
" xx xx " |
| 941 |
" xx xx " |
| 942 |
" xx xx " |
| 943 |
" xxx xxx " |
| 944 |
" xxxxxxxxxxxx " |
| 945 |
" xxxxxx " |
| 946 |
}; |
| 947 |
|
| 948 |
|
| 949 |
// CIRCLE_FILLED_11_11 |
| 950 |
const int CIRCLE_FILLED11_WIDTH = 11; |
| 951 |
const int CIRCLE_FILLED11_HEIGHT = 11; |
| 952 |
const char circleFilled11_marker[CIRCLE_FILLED11_WIDTH * CIRCLE_FILLED11_HEIGHT + 1] = { |
| 953 |
" " |
| 954 |
" xxxxxx " |
| 955 |
" xxxxxxxx " |
| 956 |
" xxxxxxxxxx" |
| 957 |
" xxxxxxxxxx" |
| 958 |
" xxxxxxxxxx" |
| 959 |
" xxxxxxxxxx" |
| 960 |
" xxxxxxxxxx" |
| 961 |
" xxxxxxxxxx" |
| 962 |
" xxxxxxxx " |
| 963 |
" xxxxxx " |
| 964 |
}; |
| 965 |
|
| 966 |
|
| 967 |
// CIRCLE_FILLED_13_13 |
| 968 |
const int CIRCLE_FILLED13_WIDTH = 13; |
| 969 |
const int CIRCLE_FILLED13_HEIGHT = 13; |
| 970 |
const char circleFilled13_marker[CIRCLE_FILLED13_WIDTH * CIRCLE_FILLED13_HEIGHT + 1] = { |
| 971 |
" " |
| 972 |
" xxxxxx " |
| 973 |
" xxxxxxxx " |
| 974 |
" xxxxxxxxxx " |
| 975 |
" xxxxxxxxxxxx" |
| 976 |
" xxxxxxxxxxxx" |
| 977 |
" xxxxxxxxxxxx" |
| 978 |
" xxxxxxxxxxxx" |
| 979 |
" xxxxxxxxxxxx" |
| 980 |
" xxxxxxxxxxxx" |
| 981 |
" xxxxxxxxxx " |
| 982 |
" xxxxxxxx " |
| 983 |
" xxxxxx " |
| 984 |
}; |
| 985 |
|
| 986 |
|
| 987 |
// CIRCLE_FILLED_15_15 |
| 988 |
const int CIRCLE_FILLED15_WIDTH = 15; |
| 989 |
const int CIRCLE_FILLED15_HEIGHT = 15; |
| 990 |
const char circleFilled15_marker[CIRCLE_FILLED15_WIDTH * CIRCLE_FILLED15_HEIGHT + 1] = { |
| 991 |
" " |
| 992 |
" xxxxxx " |
| 993 |
" xxxxxxxxxx " |
| 994 |
" xxxxxxxxxxxx " |
| 995 |
" xxxxxxxxxxxx " |
| 996 |
" xxxxxxxxxxxxxx" |
| 997 |
" xxxxxxxxxxxxxx" |
| 998 |
" xxxxxxxxxxxxxx" |
| 999 |
" xxxxxxxxxxxxxx" |
| 1000 |
" xxxxxxxxxxxxxx" |
| 1001 |
" xxxxxxxxxxxxxx" |
| 1002 |
" xxxxxxxxxxxx " |
| 1003 |
" xxxxxxxxxxxx " |
| 1004 |
" xxxxxxxxxx " |
| 1005 |
" xxxxxx " |
| 1006 |
}; |
| 1007 |
|
| 1008 |
|
| 1009 |
// CIRCLE_FILLED_20_20 |
| 1010 |
const int CIRCLE_FILLED20_WIDTH = 20; |
| 1011 |
const int CIRCLE_FILLED20_HEIGHT = 20; |
| 1012 |
const char circleFilled20_marker[CIRCLE_FILLED20_WIDTH * CIRCLE_FILLED20_HEIGHT + 1] = { |
| 1013 |
" " |
| 1014 |
" xxxxx " |
| 1015 |
" xxxxxxxxx " |
| 1016 |
" xxxxxxxxxxx " |
| 1017 |
" xxxxxxxxxxxxx " |
| 1018 |
" xxxxxxxxxxxxxxx " |
| 1019 |
" xxxxxxxxxxxxxxxxx " |
| 1020 |
" xxxxxxxxxxxxxxxxx " |
| 1021 |
" xxxxxxxxxxxxxxxxx " |
| 1022 |
" xxxxxxxxxxxxxxxxxxx" |
| 1023 |
" xxxxxxxxxxxxxxxxxxx" |
| 1024 |
" xxxxxxxxxxxxxxxxxxx" |
| 1025 |
" xxxxxxxxxxxxxxxxx " |
| 1026 |
" xxxxxxxxxxxxxxxxx " |
| 1027 |
" xxxxxxxxxxxxxxxxx " |
| 1028 |
" xxxxxxxxxxxxxxx " |
| 1029 |
" xxxxxxxxxxxxx " |
| 1030 |
" xxxxxxxxxxx " |
| 1031 |
" xxxxxxxxx " |
| 1032 |
" xxxxx " |
| 1033 |
}; |
| 1034 |
|
| 1035 |
|
| 1036 |
// CIRCLE_FILLED_25_25 |
| 1037 |
const int CIRCLE_FILLED25_WIDTH = 25; |
| 1038 |
const int CIRCLE_FILLED25_HEIGHT = 25; |
| 1039 |
const char circleFilled25_marker[CIRCLE_FILLED25_WIDTH * CIRCLE_FILLED25_HEIGHT + 1] = { |
| 1040 |
" " |
| 1041 |
" xxxxxxx " |
| 1042 |
" xxxxxxxxxxx " |
| 1043 |
" xxxxxxxxxxxxxxx " |
| 1044 |
" xxxxxxxxxxxxxxxxx " |
| 1045 |
" xxxxxxxxxxxxxxxxxxx " |
| 1046 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1047 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1048 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1049 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1050 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1051 |
"xxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1052 |
"xxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1053 |
"xxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1054 |
"xxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1055 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1056 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1057 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1058 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1059 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1060 |
" xxxxxxxxxxxxxxxxxxx " |
| 1061 |
" xxxxxxxxxxxxxxxxx " |
| 1062 |
" xxxxxxxxxxxxxxx " |
| 1063 |
" xxxxxxxxxxx " |
| 1064 |
" xxxxxxx " |
| 1065 |
}; |
| 1066 |
|
| 1067 |
|
| 1068 |
// CIRCLE_FILLED_30_30 |
| 1069 |
const int CIRCLE_FILLED30_WIDTH = 30; |
| 1070 |
const int CIRCLE_FILLED30_HEIGHT = 30; |
| 1071 |
const char circleFilled30_marker[CIRCLE_FILLED30_WIDTH * CIRCLE_FILLED30_HEIGHT + 1] = { |
| 1072 |
" " |
| 1073 |
" xxxxxx " |
| 1074 |
" xxxxxxxxxxxx " |
| 1075 |
" xxxxxxxxxxxxxxxx " |
| 1076 |
" xxxxxxxxxxxxxxxxxx " |
| 1077 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1078 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1079 |
" xxxxxxxxxxxxxxxxxxxxxxxx " |
| 1080 |
" xxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1081 |
" xxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1082 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1083 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1084 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1085 |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1086 |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1087 |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1088 |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1089 |
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1090 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1091 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1092 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1093 |
" xxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1094 |
" xxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1095 |
" xxxxxxxxxxxxxxxxxxxxxxxx " |
| 1096 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1097 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1098 |
" xxxxxxxxxxxxxxxxxx " |
| 1099 |
" xxxxxxxxxxxxxxxx " |
| 1100 |
" xxxxxxxxxxxx " |
| 1101 |
" xxxxxx " |
| 1102 |
}; |
| 1103 |
|
| 1104 |
// HOURGLASS_FILLED_11_11 |
| 1105 |
const int HOURGLASS_FILLED11_WIDTH = 11; |
| 1106 |
const int HOURGLASS_FILLED11_HEIGHT = 11; |
| 1107 |
const char hourglassFilled11_marker[HOURGLASS_FILLED11_WIDTH * HOURGLASS_FILLED11_HEIGHT + 1] = { |
| 1108 |
" " |
| 1109 |
" xxxxxxxxxx" |
| 1110 |
" xxxxxxxx " |
| 1111 |
" xxxxxx " |
| 1112 |
" xxxx " |
| 1113 |
" xx " |
| 1114 |
" xx " |
| 1115 |
" xxxx " |
| 1116 |
" xxxxxx " |
| 1117 |
" xxxxxxxx " |
| 1118 |
" xxxxxxxxxx" |
| 1119 |
}; |
| 1120 |
|
| 1121 |
|
| 1122 |
// HOURGLASS_FILLED_13_13 |
| 1123 |
const int HOURGLASS_FILLED13_WIDTH = 13; |
| 1124 |
const int HOURGLASS_FILLED13_HEIGHT = 13; |
| 1125 |
const char hourglassFilled13_marker[HOURGLASS_FILLED13_WIDTH * HOURGLASS_FILLED13_HEIGHT + 1] = { |
| 1126 |
" " |
| 1127 |
" xxxxxxxxxxxx" |
| 1128 |
" xxxxxxxxxx " |
| 1129 |
" xxxxxxxx " |
| 1130 |
" xxxxxx " |
| 1131 |
" xxxx " |
| 1132 |
" xx " |
| 1133 |
" xx " |
| 1134 |
" xxxx " |
| 1135 |
" xxxxxx " |
| 1136 |
" xxxxxxxx " |
| 1137 |
" xxxxxxxxxx " |
| 1138 |
" xxxxxxxxxxxx" |
| 1139 |
}; |
| 1140 |
|
| 1141 |
|
| 1142 |
// HOURGLASS_FILLED_15_15 |
| 1143 |
const int HOURGLASS_FILLED15_WIDTH = 15; |
| 1144 |
const int HOURGLASS_FILLED15_HEIGHT = 15; |
| 1145 |
const char hourglassFilled15_marker[HOURGLASS_FILLED15_WIDTH * HOURGLASS_FILLED15_HEIGHT + 1] = { |
| 1146 |
" " |
| 1147 |
" xxxxxxxxxxxxxx" |
| 1148 |
" xxxxxxxxxxxx " |
| 1149 |
" xxxxxxxxxx " |
| 1150 |
" xxxxxxxx " |
| 1151 |
" xxxxxx " |
| 1152 |
" xxxx " |
| 1153 |
" xx " |
| 1154 |
" xx " |
| 1155 |
" xxxx " |
| 1156 |
" xxxxxx " |
| 1157 |
" xxxxxxxx " |
| 1158 |
" xxxxxxxxxx " |
| 1159 |
" xxxxxxxxxxxx " |
| 1160 |
" xxxxxxxxxxxxxx" |
| 1161 |
}; |
| 1162 |
|
| 1163 |
// HOURGLASS_FILLED_20_20 |
| 1164 |
const int HOURGLASS_FILLED20_WIDTH = 20; |
| 1165 |
const int HOURGLASS_FILLED20_HEIGHT = 20; |
| 1166 |
const char hourglassFilled20_marker[HOURGLASS_FILLED20_WIDTH * HOURGLASS_FILLED20_HEIGHT + 1] = { |
| 1167 |
" " |
| 1168 |
" xxxxxxxxxxxxxxxxxxx" |
| 1169 |
" xxxxxxxxxxxxxxxxx " |
| 1170 |
" xxxxxxxxxxxxxxx " |
| 1171 |
" xxxxxxxxxxxxx " |
| 1172 |
" xxxxxxxxxxx " |
| 1173 |
" xxxxxxxxx " |
| 1174 |
" xxxxxxx " |
| 1175 |
" xxxxx " |
| 1176 |
" xxx " |
| 1177 |
" x " |
| 1178 |
" xxx " |
| 1179 |
" xxxxx " |
| 1180 |
" xxxxxxx " |
| 1181 |
" xxxxxxxxx " |
| 1182 |
" xxxxxxxxxxx " |
| 1183 |
" xxxxxxxxxxxxx " |
| 1184 |
" xxxxxxxxxxxxxxx " |
| 1185 |
" xxxxxxxxxxxxxxxxx " |
| 1186 |
" xxxxxxxxxxxxxxxxxxx" |
| 1187 |
}; |
| 1188 |
|
| 1189 |
|
| 1190 |
// HOURGLASS_FILLED_25_25 |
| 1191 |
const int HOURGLASS_FILLED25_WIDTH = 25; |
| 1192 |
const int HOURGLASS_FILLED25_HEIGHT = 25; |
| 1193 |
const char hourglassFilled25_marker[HOURGLASS_FILLED25_WIDTH * HOURGLASS_FILLED25_HEIGHT + 1] = { |
| 1194 |
" " |
| 1195 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 1196 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1197 |
" xxxxxxxxxxxxxxxxxxxx " |
| 1198 |
" xxxxxxxxxxxxxxxxxx " |
| 1199 |
" xxxxxxxxxxxxxxxx " |
| 1200 |
" xxxxxxxxxxxxxx " |
| 1201 |
" xxxxxxxxxxxx " |
| 1202 |
" xxxxxxxxxx " |
| 1203 |
" xxxxxxxx " |
| 1204 |
" xxxxxx " |
| 1205 |
" xxxx " |
| 1206 |
" xx " |
| 1207 |
" xx " |
| 1208 |
" xxxx " |
| 1209 |
" xxxxxx " |
| 1210 |
" xxxxxxxx " |
| 1211 |
" xxxxxxxxxx " |
| 1212 |
" xxxxxxxxxxxx " |
| 1213 |
" xxxxxxxxxxxxxx " |
| 1214 |
" xxxxxxxxxxxxxxxx " |
| 1215 |
" xxxxxxxxxxxxxxxxxx " |
| 1216 |
" xxxxxxxxxxxxxxxxxxxx " |
| 1217 |
" xxxxxxxxxxxxxxxxxxxxxx " |
| 1218 |
" xxxxxxxxxxxxxxxxxxxxxxxx" |
| 1219 |
}; |
| 1220 |
|
| 1221 |
|
| 1222 |
// HOURGLASS_FILLED_30_30 |
| 1223 |
const int HOURGLASS_FILLED30_WIDTH = 30; |
| 1224 |
const int HOURGLASS_FILLED30_HEIGHT = 30; |
| 1225 |
const char hourglassFilled30_marker[HOURGLASS_FILLED30_WIDTH * HOURGLASS_FILLED30_HEIGHT + 1] = { |
| 1226 |
" " |
| 1227 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1228 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1229 |
" xxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1230 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1231 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1232 |
" xxxxxxxxxxxxxxxxxxx " |
| 1233 |
" xxxxxxxxxxxxxxxxx " |
| 1234 |
" xxxxxxxxxxxxxxx " |
| 1235 |
" xxxxxxxxxxxxx " |
| 1236 |
" xxxxxxxxxxx " |
| 1237 |
" xxxxxxxxx " |
| 1238 |
" xxxxxxx " |
| 1239 |
" xxxxx " |
| 1240 |
" xxx " |
| 1241 |
" xxx " |
| 1242 |
" xxx " |
| 1243 |
" xxxxx " |
| 1244 |
" xxxxxxx " |
| 1245 |
" xxxxxxxxx " |
| 1246 |
" xxxxxxxxxxx " |
| 1247 |
" xxxxxxxxxxxxx " |
| 1248 |
" xxxxxxxxxxxxxxx " |
| 1249 |
" xxxxxxxxxxxxxxxxx " |
| 1250 |
" xxxxxxxxxxxxxxxxxxx " |
| 1251 |
" xxxxxxxxxxxxxxxxxxxxx " |
| 1252 |
" xxxxxxxxxxxxxxxxxxxxxxx " |
| 1253 |
" xxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1254 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxx " |
| 1255 |
" xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
| 1256 |
}; |
| 1257 |
|
| 1258 |
|
| 1259 |
std::map<MarkerBitmaps::Marker, int> MarkerBitmaps::markerIndex; |
| 1260 |
|
| 1261 |
void MarkerBitmaps::initClass() |
| 1262 |
{ |
| 1263 |
createBitmap("DIAMOND_FILLED", 11, 11, 11, diamondFilled11_marker); |
| 1264 |
createBitmap("DIAMOND_FILLED", 13, 13, 13, diamondFilled13_marker); |
| 1265 |
createBitmap("DIAMOND_FILLED", 15, 15, 15, diamondFilled15_marker); |
| 1266 |
createBitmap("DIAMOND_FILLED", 20, 20, 20, diamondFilled20_marker); |
| 1267 |
createBitmap("DIAMOND_FILLED", 25, 25, 25, diamondFilled25_marker); |
| 1268 |
createBitmap("DIAMOND_FILLED", 30, 30, 30, diamondFilled30_marker); |
| 1269 |
|
| 1270 |
// the built-in bitmaps of Coin |
| 1271 |
markerIndex[std::make_pair("DIAMOND_FILLED", 9)] = SoMarkerSet::DIAMOND_FILLED_9_9; |
| 1272 |
markerIndex[std::make_pair("DIAMOND_FILLED", 7)] = SoMarkerSet::DIAMOND_FILLED_7_7; |
| 1273 |
markerIndex[std::make_pair("DIAMOND_FILLED", 5)] = SoMarkerSet::DIAMOND_FILLED_5_5; |
| 1274 |
|
| 1275 |
createBitmap("CROSS", 11, 11, 11, cross11_marker); |
| 1276 |
createBitmap("CROSS", 13, 13, 13, cross13_marker); |
| 1277 |
createBitmap("CROSS", 15, 15, 15, cross15_marker); |
| 1278 |
createBitmap("CROSS", 20, 20, 20, cross20_marker); |
| 1279 |
createBitmap("CROSS", 25, 25, 25, cross25_marker); |
| 1280 |
createBitmap("CROSS", 30, 30, 30, cross30_marker); |
| 1281 |
|
| 1282 |
// the built-in bitmaps of Coin |
| 1283 |
markerIndex[std::make_pair("CROSS", 9)] = SoMarkerSet::CROSS_9_9; |
| 1284 |
markerIndex[std::make_pair("CROSS", 7)] = SoMarkerSet::CROSS_7_7; |
| 1285 |
markerIndex[std::make_pair("CROSS", 5)] = SoMarkerSet::CROSS_5_5; |
| 1286 |
|
| 1287 |
createBitmap("PLUS", 11, 11, 11, plus11_marker); |
| 1288 |
createBitmap("PLUS", 13, 13, 13, plus13_marker); |
| 1289 |
createBitmap("PLUS", 15, 15, 15, plus15_marker); |
| 1290 |
createBitmap("PLUS", 20, 20, 20, plus20_marker); |
| 1291 |
createBitmap("PLUS", 25, 25, 25, plus25_marker); |
| 1292 |
createBitmap("PLUS", 30, 30, 30, plus30_marker); |
| 1293 |
|
| 1294 |
// the built-in bitmaps of Coin |
| 1295 |
markerIndex[std::make_pair("PLUS", 9)] = SoMarkerSet::PLUS_9_9; |
| 1296 |
markerIndex[std::make_pair("PLUS", 7)] = SoMarkerSet::PLUS_7_7; |
| 1297 |
markerIndex[std::make_pair("PLUS", 5)] = SoMarkerSet::PLUS_5_5; |
| 1298 |
|
| 1299 |
createBitmap("SQUARE_LINE", 11, 11, 11, squareLine11_marker); |
| 1300 |
createBitmap("SQUARE_LINE", 13, 13, 13, squareLine13_marker); |
| 1301 |
createBitmap("SQUARE_LINE", 15, 15, 15, squareLine15_marker); |
| 1302 |
createBitmap("SQUARE_LINE", 20, 20, 20, squareLine20_marker); |
| 1303 |
createBitmap("SQUARE_LINE", 25, 25, 25, squareLine25_marker); |
| 1304 |
createBitmap("SQUARE_LINE", 30, 30, 30, squareLine30_marker); |
| 1305 |
|
| 1306 |
// the built-in bitmaps of Coin |
| 1307 |
markerIndex[std::make_pair("SQUARE_LINE", 9)] = SoMarkerSet::SQUARE_LINE_9_9; |
| 1308 |
markerIndex[std::make_pair("SQUARE_LINE", 7)] = SoMarkerSet::SQUARE_LINE_7_7; |
| 1309 |
markerIndex[std::make_pair("SQUARE_LINE", 5)] = SoMarkerSet::SQUARE_LINE_5_5; |
| 1310 |
|
| 1311 |
createBitmap("SQUARE_FILLED", 11, 11, 11, squareFilled11_marker); |
| 1312 |
createBitmap("SQUARE_FILLED", 13, 13, 13, squareFilled13_marker); |
| 1313 |
createBitmap("SQUARE_FILLED", 15, 15, 15, squareFilled15_marker); |
| 1314 |
createBitmap("SQUARE_FILLED", 20, 20, 20, squareFilled20_marker); |
| 1315 |
createBitmap("SQUARE_FILLED", 25, 25, 25, squareFilled25_marker); |
| 1316 |
createBitmap("SQUARE_FILLED", 30, 30, 30, squareFilled30_marker); |
| 1317 |
|
| 1318 |
// the built-in bitmaps of Coin |
| 1319 |
markerIndex[std::make_pair("SQUARE_FILLED", 9)] = SoMarkerSet::SQUARE_FILLED_9_9; |
| 1320 |
markerIndex[std::make_pair("SQUARE_FILLED", 7)] = SoMarkerSet::SQUARE_FILLED_7_7; |
| 1321 |
markerIndex[std::make_pair("SQUARE_FILLED", 5)] = SoMarkerSet::SQUARE_FILLED_5_5; |
| 1322 |
|
| 1323 |
createBitmap("CIRCLE_LINE", 11, 11, 11, circleLine11_marker); |
| 1324 |
createBitmap("CIRCLE_LINE", 13, 13, 13, circleLine13_marker); |
| 1325 |
createBitmap("CIRCLE_LINE", 15, 15, 15, circleLine15_marker); |
| 1326 |
createBitmap("CIRCLE_LINE", 20, 20, 20, circleLine20_marker); |
| 1327 |
createBitmap("CIRCLE_LINE", 25, 25, 25, circleLine25_marker); |
| 1328 |
createBitmap("CIRCLE_LINE", 30, 30, 30, circleLine30_marker); |
| 1329 |
|
| 1330 |
// the built-in bitmaps of Coin |
| 1331 |
markerIndex[std::make_pair("CIRCLE_LINE", 9)] = SoMarkerSet::CIRCLE_LINE_9_9; |
| 1332 |
markerIndex[std::make_pair("CIRCLE_LINE", 7)] = SoMarkerSet::CIRCLE_LINE_7_7; |
| 1333 |
markerIndex[std::make_pair("CIRCLE_LINE", 5)] = SoMarkerSet::CIRCLE_LINE_5_5; |
| 1334 |
|
| 1335 |
createBitmap("CIRCLE_FILLED", 11, 11, 11, circleFilled11_marker); |
| 1336 |
createBitmap("CIRCLE_FILLED", 13, 13, 13, circleFilled13_marker); |
| 1337 |
createBitmap("CIRCLE_FILLED", 15, 15, 15, circleFilled15_marker); |
| 1338 |
createBitmap("CIRCLE_FILLED", 20, 20, 20, circleFilled20_marker); |
| 1339 |
createBitmap("CIRCLE_FILLED", 25, 25, 25, circleFilled25_marker); |
| 1340 |
createBitmap("CIRCLE_FILLED", 30, 30, 30, circleFilled30_marker); |
| 1341 |
|
| 1342 |
// the built-in bitmaps of Coin |
| 1343 |
markerIndex[std::make_pair("CIRCLE_FILLED", 9)] = SoMarkerSet::CIRCLE_FILLED_9_9; |
| 1344 |
markerIndex[std::make_pair("CIRCLE_FILLED", 7)] = SoMarkerSet::CIRCLE_FILLED_7_7; |
| 1345 |
markerIndex[std::make_pair("CIRCLE_FILLED", 5)] = SoMarkerSet::CIRCLE_FILLED_5_5; |
| 1346 |
|
| 1347 |
createBitmap("HOURGLASS_FILLED", 11, 11, 11, hourglassFilled11_marker); |
| 1348 |
createBitmap("HOURGLASS_FILLED", 13, 13, 13, hourglassFilled13_marker); |
| 1349 |
createBitmap("HOURGLASS_FILLED", 15, 15, 15, hourglassFilled15_marker); |
| 1350 |
createBitmap("HOURGLASS_FILLED", 20, 20, 20, hourglassFilled20_marker); |
| 1351 |
createBitmap("HOURGLASS_FILLED", 25, 25, 25, hourglassFilled25_marker); |
| 1352 |
createBitmap("HOURGLASS_FILLED", 30, 30, 30, hourglassFilled30_marker); |
| 1353 |
|
| 1354 |
// the built-in bitmaps of Coin |
| 1355 |
markerIndex[std::make_pair("HOURGLASS_FILLED", 9)] = SoMarkerSet::HOURGLASS_FILLED_9_9; |
| 1356 |
markerIndex[std::make_pair("HOURGLASS_FILLED", 7)] = SoMarkerSet::HOURGLASS_FILLED_7_7; |
| 1357 |
markerIndex[std::make_pair("HOURGLASS_FILLED", 5)] = SoMarkerSet::HOURGLASS_FILLED_5_5; |
| 1358 |
} |
| 1359 |
|
| 1360 |
void MarkerBitmaps::createBitmap(const std::string& name, int px, int width, int height, const char* marker) |
| 1361 |
{ |
| 1362 |
int byteidx = 0; |
| 1363 |
const int byteWidth = (width + 7) / 2; |
| 1364 |
int size = byteWidth * height; |
| 1365 |
std::vector<unsigned char> bitmapbytes(size); |
| 1366 |
|
| 1367 |
for (int h = 0; h < height; h++) { |
| 1368 |
unsigned char bits = 0; |
| 1369 |
for (int w = 0; w < width; w++) { |
| 1370 |
if (marker[(h * width) + w] != ' ') { |
| 1371 |
bits |= (0x80 >> (w % 8)); |
| 1372 |
} |
| 1373 |
if ((((w + 1) % 8) == 0) || (w == width - 1)) { |
| 1374 |
bitmapbytes[byteidx++] = bits; |
| 1375 |
bits = 0; |
| 1376 |
} |
| 1377 |
} |
| 1378 |
} |
| 1379 |
|
| 1380 |
int MY_BITMAP_IDX = SoMarkerSet::getNumDefinedMarkers(); // add at end |
| 1381 |
SoMarkerSet::addMarker(MY_BITMAP_IDX, SbVec2s(width, height), &(bitmapbytes[0]), FALSE, TRUE); |
| 1382 |
|
| 1383 |
markerIndex[std::make_pair(name, px)] = MY_BITMAP_IDX; |
| 1384 |
} |
| 1385 |
|
| 1386 |
int MarkerBitmaps::getMarkerIndex(const std::string& name, int px) |
| 1387 |
{ |
| 1388 |
std::map<Marker, int>::iterator it = markerIndex.find(std::make_pair(name, px)); |
| 1389 |
if (it != markerIndex.end()) { |
| 1390 |
return it->second; |
| 1391 |
} |
| 1392 |
|
| 1393 |
return static_cast<int>(SoMarkerSet::CIRCLE_FILLED_7_7); |
| 1394 |
} |
| 1395 |
|
| 1396 |
std::list<int> MarkerBitmaps::getSupportedSizes(const std::string& name) |
| 1397 |
{ |
| 1398 |
std::list<int> sizes; |
| 1399 |
for (const auto& it : markerIndex) { |
| 1400 |
if (it.first.first == name) { |
| 1401 |
sizes.push_back(it.first.second); |
| 1402 |
} |
| 1403 |
} |
| 1404 |
return sizes; |
| 1405 |
} |