Skip to content

Class: Line

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

URI: microscopemetrics_schema:Line

classDiagram class Line click Line href "../Line" Shape <|-- Line click Shape href "../Shape" Line : c Line : description Line : fill_color Line --> "0..1" Color : fill_color click Color href "../Color" Line : name Line : stroke_color Line --> "0..1" Color : stroke_color click Color href "../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
Float
The x coordinate of the first point of the line direct
y1 1
Float
The y coordinate of the first point of the line direct
x2 1
Float
The x coordinate of the second point of the line direct
y2 1
Float
The y coordinate of the second point of the line 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 lines range Line

Identifier and Mapping Information

Schema Source

  • from schema: https://MontpellierRessourcesImagerie.github.io/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://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema
is_a: Shape
attributes:
  x1:
    name: x1
    description: The x coordinate of the first point of the line
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    domain_of:
    - Line
    range: float
    required: true
    multivalued: false
  y1:
    name: y1
    description: The y coordinate of the first point of the line
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    domain_of:
    - Line
    range: float
    required: true
    multivalued: false
  x2:
    name: x2
    description: The x coordinate of the second point of the line
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    domain_of:
    - Line
    range: float
    required: true
    multivalued: false
  y2:
    name: y2
    description: The y coordinate of the second point of the line
    from_schema: https://MontpellierRessourcesImagerie.github.io/microscopemetrics-schema/core
    rank: 1000
    domain_of:
    - Line
    range: float
    required: true
    multivalued: false

Induced

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