Skip to content

Class: Rectangle

A rectangle as defined by x, y coordinates and width, height

URI: microscopemetrics_schema:Rectangle

classDiagram class Rectangle click Rectangle href "../Rectangle" Shape <|-- Rectangle click Shape href "../Shape" Rectangle : c Rectangle : description Rectangle : fill_color Rectangle --> "0..1" Color : fill_color click Color href "../Color" Rectangle : h Rectangle : name Rectangle : stroke_color Rectangle --> "0..1" Color : stroke_color click Color href "../Color" Rectangle : stroke_width Rectangle : t Rectangle : w Rectangle : x Rectangle : y Rectangle : z

Inheritance

Slots

Name Cardinality and Range Description Inheritance
x 1
Float
The x coordinate direct
y 1
Float
The y coordinate direct
w 1
Float
The width direct
h 1
Float
The height direct
z 0..1
Float
The z coordinate Shape
c 0..1
Integer
The c coordinate Shape
t 0..1
Integer
The t coordinate Shape
fill_color 0..1
Color
The fill color of the shape Shape
stroke_color 0..1
Color
The stroke color of the shape Shape
stroke_width 0..1
Integer
The stroke width of the shape Shape
name 0..1
String
The human readable name of an entity NamedObject
description 0..1
String
A human readable description of an entity NamedObject

Usages

used by used in type used
Roi rectangles range Rectangle

Identifier and Mapping Information

Schema Source

  • from schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema

Mappings

Mapping Type Mapped Value
self microscopemetrics_schema:Rectangle
native microscopemetrics_schema:Rectangle

LinkML Source

Direct

name: Rectangle
description: A rectangle as defined by x, y coordinates and width, height
from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
is_a: Shape
slots:
- x
- y
- w
- h

Induced

name: Rectangle
description: A rectangle as defined by x, y coordinates and width, height
from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
is_a: Shape
attributes:
  x:
    name: x
    description: The x coordinate
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: x
    owner: Rectangle
    domain_of:
    - Point
    - Rectangle
    - Ellipse
    - Vertex
    - Mask
    range: float
    required: true
  y:
    name: y
    description: The y coordinate
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: y
    owner: Rectangle
    domain_of:
    - Point
    - Rectangle
    - Ellipse
    - Vertex
    - Mask
    range: float
    required: true
  w:
    name: w
    description: The width
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: w
    owner: Rectangle
    domain_of:
    - Rectangle
    - Ellipse
    range: float
    required: true
  h:
    name: h
    description: The height
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: h
    owner: Rectangle
    domain_of:
    - Rectangle
    - Ellipse
    range: float
    required: true
  z:
    name: z
    description: The z coordinate
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: z
    owner: Rectangle
    domain_of:
    - Shape
    range: float
    required: false
  c:
    name: c
    description: The c coordinate
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: c
    owner: Rectangle
    domain_of:
    - Shape
    range: integer
    required: false
  t:
    name: t
    description: The t coordinate
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
    rank: 1000
    alias: t
    owner: Rectangle
    domain_of:
    - Shape
    range: integer
    required: false
  fill_color:
    name: fill_color
    description: The fill color of the shape
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    alias: fill_color
    owner: Rectangle
    domain_of:
    - Shape
    range: Color
    required: false
  stroke_color:
    name: stroke_color
    description: The stroke color of the shape
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    alias: stroke_color
    owner: Rectangle
    domain_of:
    - Shape
    range: Color
    required: false
  stroke_width:
    name: stroke_width
    description: The stroke width of the shape
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    ifabsent: int(1)
    alias: stroke_width
    owner: Rectangle
    domain_of:
    - Shape
    range: integer
    required: false
  name:
    name: name
    description: The human readable name of an entity
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    alias: name
    owner: Rectangle
    domain_of:
    - NamedObject
    range: string
    required: false
    multivalued: false
  description:
    name: description
    description: A human readable description of an entity
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    alias: description
    owner: Rectangle
    domain_of:
    - NamedObject
    range: string
    required: false
    multivalued: false