ShapeNode

class ShapeNode(shape: Shape) : CompositionNode

a CompositionNode that holds a single Shape

Constructors

ShapeNode
Link copied to clipboard
common
fun ShapeNode(shape: Shape)

Functions

conflate
Link copied to clipboard
common
fun conflate(): ShapeNode

apply transforms of all ancestor nodes and return a new detached org.openrndr.shape.ShapeNode with conflated transform

copy
Link copied to clipboard
common
fun copy(id: String? = this.id, parent: CompositionNode? = null, style: Style = this.style, attributes: MutableMap<String, String?> = this.attributes, shape: Shape = this.shape): ShapeNode
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
flatten
Link copied to clipboard
common
fun flatten(): ShapeNode

apply transforms of all ancestor nodes and return a new detached shape node with identity transform and transformed Shape

hashCode
Link copied to clipboard
common
open override fun hashCode(): Int

Properties

attributes
Link copied to clipboard
common
var attributes: MutableMap<String, String?>

Custom attributes to be applied to the Node in addition to the Style attributes.

bounds
Link copied to clipboard
common
open override val bounds: Rectangle

a Rectangle that describes the bounding box of the contents

effectiveDisplay
Link copied to clipboard
common
val effectiveDisplay: Boolean
effectiveFill
Link copied to clipboard
common
val effectiveFill: ColorRGBa?
effectiveFillOpacity
Link copied to clipboard
common
val effectiveFillOpacity: Double
effectiveLineCap
Link copied to clipboard
common
val effectiveLineCap: LineCap
effectiveLineJoin
Link copied to clipboard
common
val effectiveLineJoin: LineJoin
effectiveMiterLimit
Link copied to clipboard
common
val effectiveMiterLimit: Double
effectiveOpacity
Link copied to clipboard
common
val effectiveOpacity: Double
effectiveShadeStyle
Link copied to clipboard
common
val effectiveShadeStyle: ShadeStyle
effectiveShape
Link copied to clipboard
common
val effectiveShape: Shape

the local Shape with the effectiveTransform applied to it

effectiveStroke
Link copied to clipboard
common
val effectiveStroke: ColorRGBa?
effectiveStrokeOpacity
Link copied to clipboard
common
val effectiveStrokeOpacity: Double
effectiveStrokeWeight
Link copied to clipboard
common
val effectiveStrokeWeight: Double
effectiveStyle
Link copied to clipboard
common
val effectiveStyle: Style

This CompositionNode's computed style. Where every style attribute is obtained by overwriting the Style in the following order:

effectiveTransform
Link copied to clipboard
common
val effectiveTransform: Matrix44

Calculates the absolute transformation of the current node.

effectiveVisibility
Link copied to clipboard
common
val effectiveVisibility: Boolean
fill
Link copied to clipboard
common
var fill: ColorRGBa?
fillOpacity
Link copied to clipboard
common
var fillOpacity: Double
id
Link copied to clipboard
common
var id: String? = null
lineCap
Link copied to clipboard
common
var lineCap: LineCap
lineJoin
Link copied to clipboard
common
var lineJoin: LineJoin
miterLimit
Link copied to clipboard
common
var miterLimit: Double
opacity
Link copied to clipboard
common
var opacity: Double
parent
Link copied to clipboard
common
var parent: CompositionNode? = null
shadeStyle
Link copied to clipboard
common
var shadeStyle: ShadeStyle
shape
Link copied to clipboard
common
var shape: Shape
stroke
Link copied to clipboard
common
var stroke: ColorRGBa?
strokeOpacity
Link copied to clipboard
common
var strokeOpacity: Double
strokeWeight
Link copied to clipboard
common
var strokeWeight: Double
style
Link copied to clipboard
common
var style: Style

This CompositionNode's own style.

transform
Link copied to clipboard
common
var transform: Matrix44
userData
Link copied to clipboard
common
val userData: MutableMap<String, Any>

a map that stores user data