|
| | LineSymbol () noexcept |
| | Constructs an empty line symbol. More...
|
| |
| | ~LineSymbol () override |
| |
| bool | validate () const override |
| |
| void | createRenderables (const Object *object, const VirtualCoordVector &coords, ObjectRenderables &output, Symbol::RenderableOptions options) const override |
| | Creates renderables for a generic object. More...
|
| |
| void | createRenderables (const PathObject *object, const PathPartVector &path_parts, ObjectRenderables &output, Symbol::RenderableOptions options) const override |
| | Creates renderables for a path object. More...
|
| |
| void | createSinglePathRenderables (const VirtualPath &path, bool path_closed, ObjectRenderables &output) const |
| | Creates the renderables for a single path (i.e. More...
|
| |
| void | colorDeletedEvent (const MapColor *color) override |
| | Called when a color is removed from the map. More...
|
| |
| bool | containsColor (const MapColor *color) const override |
| | Returns if the given color is used by this symbol. More...
|
| |
| const MapColor * | guessDominantColor () const override |
| | Returns the dominant color of this symbol. More...
|
| |
| void | replaceColors (const MapColorMap &color_map) override |
| | Replaces colors used by this symbol. More...
|
| |
| void | scale (double factor) override |
| | Scales the symbol. More...
|
| |
| void | ensurePointSymbols (const QString &start_name, const QString &mid_name, const QString &end_name, const QString &dash_name) |
| | Creates empty point symbols with the given names for undefined subsymbols. More...
|
| |
| void | cleanupPointSymbols () |
| | Deletes unused point symbols and sets them to nullptr again. More...
|
| |
| qreal | dimensionForIcon () const override |
| | Returns the dimension which shall considered when scaling the icon. More...
|
| |
| qreal | calculateLargestLineExtent () const override |
| | Returns the largest extent (half width) of the components of this line. More...
|
| |
| int | getLineWidth () const |
| |
| void | setLineWidth (double width) |
| |
| const MapColor * | getColor () const |
| |
| void | setColor (const MapColor *color) |
| |
| int | getMinimumLength () const |
| |
| void | setMinimumLength (int length) |
| |
| CapStyle | getCapStyle () const |
| |
| void | setCapStyle (CapStyle style) |
| |
| JoinStyle | getJoinStyle () const |
| |
| void | setJoinStyle (JoinStyle style) |
| |
| int | startOffset () const |
| |
| void | setStartOffset (int value) |
| |
| int | endOffset () const |
| |
| void | setEndOffset (int value) |
| |
| bool | isDashed () const |
| |
| void | setDashed (bool value) |
| |
| PointSymbol * | getStartSymbol () const |
| |
| void | setStartSymbol (PointSymbol *symbol) |
| |
| PointSymbol * | getMidSymbol () const |
| |
| void | setMidSymbol (PointSymbol *symbol) |
| |
| PointSymbol * | getEndSymbol () const |
| |
| void | setEndSymbol (PointSymbol *symbol) |
| |
| PointSymbol * | getDashSymbol () const |
| |
| void | setDashSymbol (PointSymbol *symbol) |
| |
| int | getMidSymbolsPerSpot () const |
| |
| void | setMidSymbolsPerSpot (int value) |
| |
| int | getMidSymbolDistance () const |
| |
| void | setMidSymbolDistance (int value) |
| |
| MidSymbolPlacement | getMidSymbolPlacement () const |
| |
| void | setMidSymbolPlacement (MidSymbolPlacement placement) |
| |
| bool | getSuppressDashSymbolAtLineEnds () const |
| |
| void | setSuppressDashSymbolAtLineEnds (bool value) |
| |
| bool | getScaleDashSymbol () const |
| |
| void | setScaleDashSymbol (bool value) |
| |
| int | getSegmentLength () const |
| |
| void | setSegmentLength (int value) |
| |
| int | getEndLength () const |
| |
| void | setEndLength (int value) |
| |
| bool | getShowAtLeastOneSymbol () const |
| |
| void | setShowAtLeastOneSymbol (bool value) |
| |
| int | getMinimumMidSymbolCount () const |
| |
| void | setMinimumMidSymbolCount (int value) |
| |
| int | getMinimumMidSymbolCountWhenClosed () const |
| |
| void | setMinimumMidSymbolCountWhenClosed (int value) |
| |
| int | getDashLength () const |
| |
| void | setDashLength (int value) |
| |
| int | getBreakLength () const |
| |
| void | setBreakLength (int value) |
| |
| int | getDashesInGroup () const |
| |
| void | setDashesInGroup (int value) |
| |
| int | getInGroupBreakLength () const |
| |
| void | setInGroupBreakLength (int value) |
| |
| bool | getHalfOuterDashes () const |
| |
| void | setHalfOuterDashes (bool value) |
| |
| bool | hasBorder () const |
| |
| void | setHasBorder (bool value) |
| |
| bool | areBordersDifferent () const |
| |
| LineSymbolBorder & | getBorder () |
| |
| const LineSymbolBorder & | getBorder () const |
| |
| LineSymbolBorder & | getRightBorder () |
| |
| const LineSymbolBorder & | getRightBorder () const |
| |
| SymbolPropertiesWidget * | createPropertiesWidget (SymbolSettingDialog *dialog) override |
| | Creates a properties widget for the symbol. More...
|
| |
| | Symbol (Type type) noexcept |
| |
| virtual | ~Symbol () |
| |
| Symbol & | operator= (const Symbol &)=delete |
| |
| Symbol & | operator= (Symbol &&)=delete |
| |
| bool | equals (const Symbol *other, Qt::CaseSensitivity case_sensitivity=Qt::CaseSensitive) const |
| | Checks for equality to the other symbol. More...
|
| |
| bool | stateEquals (const Symbol *other) const |
| | Checks protected/hidden state for equality to the other symbol. More...
|
| |
| Type | getType () const |
| | Returns the type of the symbol. More...
|
| |
| const PointSymbol * | asPoint () const |
| | Case to PointSymbol with type checking. More...
|
| |
| PointSymbol * | asPoint () |
| | Case to PointSymbol with type checking. More...
|
| |
| const LineSymbol * | asLine () const |
| | Case to LineSymbol with type checking. More...
|
| |
| LineSymbol * | asLine () |
| | Case to LineSymbol with type checking. More...
|
| |
| const AreaSymbol * | asArea () const |
| | Case to AreaSymbol with type checking. More...
|
| |
| AreaSymbol * | asArea () |
| | Case to AreaSymbol with type checking. More...
|
| |
| const TextSymbol * | asText () const |
| | Case to TextSymbol with type checking. More...
|
| |
| TextSymbol * | asText () |
| | Case to TextSymbol with type checking. More...
|
| |
| const CombinedSymbol * | asCombined () const |
| | Case to CombinedSymbol with type checking. More...
|
| |
| CombinedSymbol * | asCombined () |
| | Case to CombinedSymbol with type checking. More...
|
| |
| virtual TypeCombination | getContainedTypes () const |
| | Returns the combined bitmask of all symbol types this symbol contains. More...
|
| |
| bool | isTypeCompatibleTo (const Object *object) const |
| | Checks if the symbol can be applied to the given object. More...
|
| |
| bool | numberEquals (const Symbol *other) const |
| | Returns if the symbol numbers are exactly equal. More...
|
| |
| bool | numberEqualsRelaxed (const Symbol *other) const |
| | Returns if the symbol numbers are equal, ignoring trailing zeros. More...
|
| |
| void | save (QXmlStreamWriter &xml, const Map &map) const |
| | Saves the symbol in xml format. More...
|
| |
| virtual bool | loadingFinishedEvent (Map *map) |
| | Called when loading the map is finished. More...
|
| |
| virtual void | createBaselineRenderables (const PathObject *object, const PathPartVector &path_parts, ObjectRenderables &output, const MapColor *color) const |
| | Creates baseline renderables for a path object. More...
|
| |
| virtual bool | symbolChangedEvent (const Symbol *old_symbol, const Symbol *new_symbol) |
| | Called when a symbol was changed, replaced, or removed. More...
|
| |
| virtual bool | containsSymbol (const Symbol *symbol) const |
| | Returns true if the given symbol is referenced by this symbol. More...
|
| |
| QImage | getCustomIcon () const |
| | Returns the custom symbol icon. More...
|
| |
| void | setCustomIcon (const QImage &image) |
| | Sets a custom symbol icon. More...
|
| |
| QImage | getIcon (const Map *map) const |
| | Returns the symbol's icon. More...
|
| |
| QImage | createIcon (const Map &map, int side_length, bool antialiasing=true, qreal zoom=0) const |
| | Creates a symbol icon with the given side length (pixels). More...
|
| |
| void | resetIcon () |
| | Clear the symbol's cached icon. More...
|
| |
| const QString & | getName () const |
| | Returns the symbol name. More...
|
| |
| QString | getPlainTextName () const |
| | Returns the symbol name with all HTML markup stripped. More...
|
| |
| void | setName (const QString &new_name) |
| | Sets the symbol name. More...
|
| |
| QString | getNumberAsString () const |
| | Returns the symbol number as string. More...
|
| |
| int | getNumberComponent (int i) const |
| | Returns the i-th component of the symbol number as int. More...
|
| |
| void | setNumberComponent (int i, int new_number) |
| | Sets the i-th component of the symbol number. More...
|
| |
| const QString & | getDescription () const |
| | Returns the symbol description. More...
|
| |
| void | setDescription (const QString &new_description) |
| | Sets the symbol description. More...
|
| |
| bool | isHelperSymbol () const |
| | Returns if this is a helper symbol (which is not printed in the final map). More...
|
| |
| void | setIsHelperSymbol (bool value) |
| | Sets if this is a helper symbol, see isHelperSymbol(). More...
|
| |
| bool | isHidden () const |
| | Returns if this symbol is hidden. More...
|
| |
| void | setHidden (bool value) |
| | Sets the hidden state of this symbol. More...
|
| |
| bool | isProtected () const |
| | Returns if this symbol is protected. More...
|
| |
| void | setProtected (bool value) |
| | Sets the protected state of this symbol. More...
|
| |
| bool | isRotatable () const |
| | Returns if objects with this symbol can be rotated in arbitrary directions. More...
|
| |
|
| | LineSymbol (const LineSymbol &proto) |
| |
| LineSymbol * | duplicate () const override |
| |
| void | saveImpl (QXmlStreamWriter &xml, const Map &map) const override |
| | Must be overridden to save type-specific symbol properties. More...
|
| |
| bool | loadImpl (QXmlStreamReader &xml, const Map &map, SymbolDictionary &symbol_dict, int version) override |
| | Must be overridden to load type-specific symbol properties. More...
|
| |
| PointSymbol * | loadPointSymbol (QXmlStreamReader &xml, const Map &map, SymbolDictionary &symbol_dict, int version) |
| |
| bool | equalsImpl (const Symbol *other, Qt::CaseSensitivity case_sensitivity) const override |
| | Must be overridden to compare specific attributes. More...
|
| |
| void | createBorderLines (const VirtualPath &path, const SplitPathCoord &start, const SplitPathCoord &end, ObjectRenderables &output) const |
| | Creates the border lines' renderables for a single path (i.e. More...
|
| |
| void | shiftCoordinates (const VirtualPath &path, double main_shift, MapCoordVector &out_flags, MapCoordVectorF &out_coords) const |
| |
| void | processContinuousLine (const VirtualPath &path, const SplitPathCoord &start, const SplitPathCoord &end, bool set_mid_symbols, MapCoordVector &processed_flags, MapCoordVectorF &processed_coords, ObjectRenderables &output) const |
| | Creates flags and coords for a continuous line segment, and adds pointed line caps and mid symbol renderables to the output. More...
|
| |
| void | createPointedLineCap (const VirtualPath &path, const SplitPathCoord &start, const SplitPathCoord &end, bool is_end, ObjectRenderables &output) const |
| |
| void | processDashedLine (const VirtualPath &path, const SplitPathCoord &start, const SplitPathCoord &end, bool path_closed, MapCoordVector &out_flags, MapCoordVectorF &out_coords, ObjectRenderables &output) const |
| | Creates flags and coords for a single dashed path (i.e. More...
|
| |
| SplitPathCoord | createDashGroups (const VirtualPath &path, bool path_closed, const SplitPathCoord &line_start, const SplitPathCoord &start, const SplitPathCoord &end, bool is_part_start, bool is_part_end, MapCoordVector &out_flags, MapCoordVectorF &out_coords, ObjectRenderables &output) const |
| | Creates flags and coords for a single dashed path section, and adds pointed line caps and mid symbol renderables to the output. More...
|
| |
| void | createDashSymbolRenderables (const VirtualPath &path, bool path_closed, ObjectRenderables &output) const |
| |
| void | createMidSymbolRenderables (const VirtualPath &path, const SplitPathCoord &start, const SplitPathCoord &end, bool path_closed, ObjectRenderables &output) const |
| | Adds just the mid symbol renderables for a single solid path (i.e. More...
|
| |
| void | createStartEndSymbolRenderables (const PathPartVector &path_parts, ObjectRenderables &output) const |
| | Adds just the start and end symbol renderables to the output. More...
|
| |
| void | replaceSymbol (PointSymbol *&old_symbol, PointSymbol *replace_with, const QString &name) |
| |
| | Symbol (const Symbol &proto) |
| |
| void | setRotatable (bool value) |
| | Sets the rotatability state of the symbol. More...
|
| |
Symbol for PathObjects which displays a line along the path.