Shape class

These subclasses defines the zoomlevel-dependent properties of the shapes. It will be created by the renderinstructions and used to define how to draw a shape. Since we want to create shapes in isolates we are not allowed to use any ui-dependent classes here hence the ShapePaint classes which will created by RenderInfo later.

Implemented types

Constructors

Shape.base({required int level})
Shape.scale(Shape base, int zoomLevel)

Properties

boundary ↔ MapRectangle?
The boundary of this object in pixels relative to the center of the corresponding node or way. This is a cache and will be calculated by asking.
getter/setter pair
category String?
getter/setter pair
display ↔ Display
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level int
getter/setter pair
priority int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shapePaint ↔ ShapePaint<Shape>?
A cache for paint objects. Note that not every painter can be reused. Painters which depends on the given way/node cannot be cached.
getter/setter pair

Methods

calculateBoundary() → MapRectangle
The boundary of this object in pixels relative to the center of the corresponding node or way
compareTo(Shape other) int
Compares elements according to their priority.
override
getShapeType() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderNode(RenderContext renderContext, NodeProperties nodeProperties) → void
@param renderCallback a reference to the receiver of all render callbacks. @param renderContext @param poi
renderWay(RenderContext renderContext, WayProperties wayProperties) → void
@param renderCallback a reference to the receiver of all render callbacks. @param renderContext @param poi
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited