visionforge/docs/hierarchy.md
2021-08-20 16:12:04 +03:00

1.3 KiB

Hierarchy

Vision

  • function getPropertyValue(name: Name, inherit: Boolean = false, includeStyles: Boolean = true, includeDefaults: Boolean = true) - get property value with given layer flags.

  • function setProperty(name: Name, item: Any?) - a convenient method to set property node or value. If item is null, then node is removed, not a value Sets the item property to the element with the name identification.

VisionBase

Basic vision implementation

VisionGroup

A group of Visions.

MutableVisionGroup

Mutable version of VisionGroup.

low structure changes of this group. Unconsumed changes are discarded.

Solid

Interface for 3-dimensional Vision.

SolidGroup

  • function getPrototype(name: Name) - get a prototype redirecting the request to the parent if prototype is not found. If prototype is a ref, then it is unfolded automatically.

  • function prototypes(builder: VisionContainerBuilder<Solid>.() -> Unit) - create or edit prototype node as a group.

SolidReferenceGroup

A reference Solid to reuse a template object.

RootVisionGroup

Non-serializable root group used to propagate manager to its children.

  • function Vision.root(manager: VisionManager) - designate this [VisionGroup] as a root group and assign a [VisionManager] as its parent.