Package-level declarations

The blade leaves, one class per CGA element — FlatPointNode, LineNode, RoundPointNode, DipoleNode, CircleNode — under the sealed PrimitiveNode family marker: a when over it is exhaustive without an else, so a new blade leaf is a compile error at every dispatch site.

Types

Link copied to clipboard
open class CircleNode(circle: Circle, var style: ShapeStyle = ShapeStyle.CIRCLE, var tags: Set<String> = emptySet()) : Circle, PrimitiveNode

A scene-graph leaf that is a Circle: the circle's geometry carrying the concrete style it renders with, plus optional tags.

Link copied to clipboard
open class DipoleNode(dipole: Dipole, var style: ShapeStyle = ShapeStyle.DIPOLE, var tags: Set<String> = emptySet()) : Dipole, PrimitiveNode

A scene-graph leaf that is a Dipole: the dipole's geometry carrying the concrete style it renders with, plus optional tags.

Link copied to clipboard
open class FlatPointNode(point: FlatPoint, var style: ShapeStyle = ShapeStyle.POINT, var tags: Set<String> = emptySet()) : FlatPoint, PrimitiveNode

A scene-graph leaf that is a FlatPoint: the point's geometry carrying the concrete style it renders with, plus optional tags.

Link copied to clipboard
open class LineNode(line: Line, var style: ShapeStyle = ShapeStyle.LINE, var tags: Set<String> = emptySet()) : Line, PrimitiveNode

A scene-graph leaf that is a Line: the line's geometry carrying the concrete style it renders with, plus optional tags.

Link copied to clipboard
sealed interface PrimitiveNode : ShapeNode

Marker for a leaf decorating a CGA element.

Link copied to clipboard
open class RoundPointNode(point: RoundPoint, var style: ShapeStyle = ShapeStyle.POINT, var tags: Set<String> = emptySet()) : RoundPoint, PrimitiveNode

A scene-graph leaf that is a RoundPoint: the point's geometry carrying the concrete style it renders with, plus optional tags.