Class: Rectangle
A rectangle as defined by x, y coordinates and width, height
URI: microscopemetrics_schema:Rectangle
classDiagram
class Rectangle
Shape <|-- Rectangle
Rectangle : c
Rectangle : fill_color
Rectangle --|> Color : fill_color
Rectangle : h
Rectangle : label
Rectangle : stroke_color
Rectangle --|> Color : stroke_color
Rectangle : stroke_width
Rectangle : t
Rectangle : w
Rectangle : x
Rectangle : y
Rectangle : z
Inheritance
- Shape
- Rectangle
Slots
Name | Cardinality and Range | Description | Inheritance |
---|---|---|---|
x | 1..1 Float |
The x coordinate of the top left corner of the rectangle | direct |
y | 1..1 Float |
The y coordinate of the top left corner of the rectangle | direct |
w | 1..1 Float |
The width of the rectangle | direct |
h | 1..1 Float |
The height of the rectangle | direct |
label | 0..1 String |
The label of the shape | Shape |
z | 0..1 Float |
The z coordinate of the shape | Shape |
c | 0..1 Integer |
The c coordinate of the shape | Shape |
t | 0..1 Integer |
The t coordinate of the shape | 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 |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/MontpellierRessourcesImagerie/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://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
x:
name: x
description: The x coordinate of the top left corner of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
multivalued: false
range: float
required: true
y:
name: y
description: The y coordinate of the top left corner of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
multivalued: false
range: float
required: true
w:
name: w
description: The width of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
rank: 1000
multivalued: false
range: float
required: true
h:
name: h
description: The height of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
rank: 1000
multivalued: false
range: float
required: true
Induced
name: Rectangle
description: A rectangle as defined by x, y coordinates and width, height
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
x:
name: x
description: The x coordinate of the top left corner of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
multivalued: false
alias: x
owner: Rectangle
domain_of:
- ImageMask
- Image2D
- Image5D
- Point
- Rectangle
- Ellipse
- Vertex
- Mask
range: float
required: true
y:
name: y
description: The y coordinate of the top left corner of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
multivalued: false
alias: y
owner: Rectangle
domain_of:
- ImageMask
- Image2D
- Image5D
- Point
- Rectangle
- Ellipse
- Vertex
- Mask
range: float
required: true
w:
name: w
description: The width of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
rank: 1000
multivalued: false
alias: w
owner: Rectangle
domain_of:
- Rectangle
range: float
required: true
h:
name: h
description: The height of the rectangle
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
rank: 1000
multivalued: false
alias: h
owner: Rectangle
domain_of:
- Rectangle
range: float
required: true
label:
name: label
description: The label of the shape
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
alias: label
owner: Rectangle
domain_of:
- Roi
- Shape
range: string
required: false
z:
name: z
description: The z coordinate of the shape
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
alias: z
owner: Rectangle
domain_of:
- Image5D
- Shape
range: float
required: false
c:
name: c
description: The c coordinate of the shape
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
alias: c
owner: Rectangle
domain_of:
- Image5D
- Shape
range: integer
required: false
t:
name: t
description: The t coordinate of the shape
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
alias: t
owner: Rectangle
domain_of:
- Image5D
- Shape
range: integer
required: false
fill_color:
name: fill_color
description: The fill color of the shape
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
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://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
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://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
rank: 1000
ifabsent: int(1)
alias: stroke_width
owner: Rectangle
domain_of:
- Shape
range: integer
required: false