0.2.0 #71
@ -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).
|
||||
|
||||
|
||||
|
16
docs/inheritance
Normal file
16
docs/inheritance
Normal file
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user