KDE
Create a Hiking Path Symbol Renderer. Step 3: Basic Shapes
Welcome to Marble, a virtual globe and world atlas that runs on Linux, Windows, MacOS and Android. Find your way and explore the world! :-)
This task is about extending the tool from "Step 2: Colors" to support the basic foreground shapes dot, bowl, circle, bar, stripe, cross, x, slash, triangle, diamond, rectangle, pointer, fork, turned_T, L, lower, corner. Adding support for background shapes and the more complicated foreground shapes / images will be done in step 4.
- It would be possible to draw all shapes manually, but since support for image based shapes is needed anyway, it probably makes sense to load each symbol from an image, possibly an .svg file
- Create a file bar.svg in inkscape that has a blue bar symbol
- Replace the manual bar painting in the code with loading bar.svg and paint it on top
- Find a way to adjust the color of the image. Ideally this can be done automatically in the code. See https://stackoverflow.com/questions/15123544/change-the-color-of-an-svg-in-qt for some potential ways.
- Add support (i.e. .svg files) for the basic shapes dot, bowl, circle, bar, stripe, cross, x, slash, triangle, diamond, rectangle, pointer, fork, turned_T, L, lower, corner
Test your application using different colors and symbols.
Got a question or a problem you cannot solve on your own? Please contact your mentors:
- Using live chat via the #marble IRC channel in Freenode
- By mail using nienhueser@kde.org and rahn@kde.org
Task tags
Students who completed this task
Sergey Popov