From 25e46a6c4730125d2cdf0a3902d6657e587bab9f Mon Sep 17 00:00:00 2001 From: kiruma524 Date: Wed, 11 Aug 2021 17:55:15 +0300 Subject: [PATCH] Really Raw version of hierarchy documentation. --- docs/hierarchy.md | 16 ------ docs/inheritance | 16 ++++++ docs/uml/Vision.puml | 120 ++++++++++++++++++++++++++++++++----------- 3 files changed, 106 insertions(+), 46 deletions(-) create mode 100644 docs/inheritance diff --git a/docs/hierarchy.md b/docs/hierarchy.md index eee02697..dbb2c6c1 100644 --- a/docs/hierarchy.md +++ b/docs/hierarchy.md @@ -14,19 +14,3 @@ It gets properties of element with `name` identification. * function `setProperty(name: Name, item: MetaItem?, notify: Boolean = true)` Sets the `item` property to the element with the `name` identification. `notify` is a value which toggles the necessity of the change notification. Default is true. - -### About properties -**Properties have to be set in particular order:** - -* styles -* prototypes -* parent -* parent's styles -* defaults - - -## Inheritance - -Inheritance is a very useful ability of `children` elements to get the same property in default as his parent does have (to 'inherit' it). - - diff --git a/docs/inheritance b/docs/inheritance new file mode 100644 index 00000000..37a4557c --- /dev/null +++ b/docs/inheritance @@ -0,0 +1,16 @@ +## Inheritance + +Inheritance is a very useful ability of `children` elements to get the same property in default as his parent does have (to 'inherit' it). + +### Main properties' inheritance: +* styles +* parents +* parent's styles +* defaults + +### Reference properties' inheritance: +* styles +* prototypes +* parents +* parent's styles +* defaults diff --git a/docs/uml/Vision.puml b/docs/uml/Vision.puml index d7fd7103..bf8caa88 100644 --- a/docs/uml/Vision.puml +++ b/docs/uml/Vision.puml @@ -1,46 +1,106 @@ @startuml 'https://plantuml.com/class-diagram +interface Vision -interface Vision{ - val parent: Vision? - fun getProperty(name): MetaItem? - fun setProperty(name, value) +interface Solid +Vision <-- Solid -} +class VisionGroup +Vision <-- VisionGroup -class VisionBase{ - basic vision - implementation -} -Vision <|-- VisionBase +class VisionBase +Vision <-- VisionBase -interface VisionGroup{ - A group of Visions -} -Vision <|-- VisionGroup -interface Solid{ - The base for 3D geometry -} - -Vision <|-- Solid +class SolidLabel +Solid <--- SolidLabel +SolidBase <-- SolidLabel class SolidGroup +Solid <--- SolidGroup +VisionGroupBase <-- SolidGroup -Solid <|-- SolidGroup -VisionGroup <|-- SolidGroup +class SolidBase +Solid <--- SolidBase +VisionBase <-- SolidBase -class Composite -Solid <|-- Composite -VisionGroup <|-- Composite -class Box -Solid <|-- Box - -class Tube -Solid <|-- Tube +class SphereLayer +SolidBase <-- SphereLayer +GeometrySolid <-- SphereLayer class Sphere -Solid <|-- Sphere +SolidBase <-- Sphere +GeometrySolid <-- Sphere +class Box +SolidBase <-- Box +Hexagon <-- Box + +class GenericHexagon +SolidBase <-- GenericHexagon +Hexagon <-- GenericHexagon + +class Extruded +SolidBase <-- Extruded +GeometrySolid <-- Extruded + + +class PolyLine +Solid <--- PolyLine +SolidBase <-- PolyLine + +interface GeometrySolid +Solid <--- GeometrySolid + + +interface Hexagon +GeometrySolid <-- Hexagon + +class ConeSegment +GeometrySolid <-- ConeSegment + +class ConeSurface +GeometrySolid <-- ConeSurface + + +class Convex +Solid <--- Convex +SolidBase <-- Convex + +class Composite +Solid <--- Composite +SolidBase <-- Composite + + +interface SolidReference +VisionGroup <---- SolidReference + +interface MutableVisionGroup +VisionGroup <---- MutableVisionGroup + +class SolidReferenceGroup +VisionGroup <-- SolidReferenceGroup +Solid <-- SolidReferenceGroup +VisionBase <-- SolidReferenceGroup +SolidReference <-- SolidReferenceGroup + +class ReferenceChild +VisionGroup <-- ReferenceChild +Solid <-- ReferenceChild +SolidReference <-- ReferenceChild + + +class VisionGroupBase +VisionBase <-- VisionGroupBase +MutableVisionGroup <-- VisionGroupBase + + + +class RootVisionGroup +VisionGroupBase <-- RootVisionGroup + + +class VisionOfPlotly +VisionBase <-- VisionOfPlotly @enduml \ No newline at end of file