Skip to content

Class: Line

A line as defined by x1, y1, x2, y2 coordinates

URI: microscopemetrics_schema:Line

classDiagram class Line Shape <|-- Line Line : c Line : fill_color Line --|> Color : fill_color Line : label Line : stroke_color Line --|> Color : stroke_color Line : stroke_width Line : t Line : x1 Line : x2 Line : y1 Line : y2 Line : z

Inheritance

Slots

Name Cardinality and Range Description Inheritance
x1 1..1
Float
The x coordinate of the first point of the line direct
y1 1..1
Float
The y coordinate of the first point of the line direct
x2 1..1
Float
The x coordinate of the second point of the line direct
y2 1..1
Float
The y coordinate of the second point of the line 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:Line
native microscopemetrics_schema:Line

LinkML Source

Direct

name: Line
description: A line as defined by x1, y1, x2, y2 coordinates
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
  x1:
    name: x1
    description: The x coordinate of the first point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    range: float
    required: true
  y1:
    name: y1
    description: The y coordinate of the first point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    range: float
    required: true
  x2:
    name: x2
    description: The x coordinate of the second point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    range: float
    required: true
  y2:
    name: y2
    description: The y coordinate of the second point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    range: float
    required: true

Induced

name: Line
description: A line as defined by x1, y1, x2, y2 coordinates
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
  x1:
    name: x1
    description: The x coordinate of the first point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    alias: x1
    owner: Line
    domain_of:
    - Line
    range: float
    required: true
  y1:
    name: y1
    description: The y coordinate of the first point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    alias: y1
    owner: Line
    domain_of:
    - Line
    range: float
    required: true
  x2:
    name: x2
    description: The x coordinate of the second point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    alias: x2
    owner: Line
    domain_of:
    - Line
    range: float
    required: true
  y2:
    name: y2
    description: The y coordinate of the second point of the line
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    alias: y2
    owner: Line
    domain_of:
    - Line
    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: Line
    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: Line
    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: Line
    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: Line
    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: Line
    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: Line
    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: Line
    domain_of:
    - Shape
    range: integer
    required: false