Skip to content

Class: Polygon

A polygon as defined by a series of vertexes and a boolean to indicate if closed or not

URI: microscopemetrics_schema:Polygon

classDiagram class Polygon Shape <|-- Polygon Polygon : c Polygon : fill_color Polygon --|> Color : fill_color Polygon : is_open Polygon : label Polygon : stroke_color Polygon --|> Color : stroke_color Polygon : stroke_width Polygon : t Polygon : vertexes Polygon --|> Vertex : vertexes Polygon : z

Inheritance

Slots

Name Cardinality and Range Description Inheritance
vertexes 1..*
Vertex
A list of vertexes defining the polygon direct
is_open 1..1
Boolean
Is the polygon open 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:Polygon
native microscopemetrics_schema:Polygon

LinkML Source

Direct

name: Polygon
description: A polygon as defined by a series of vertexes and a boolean to indicate
  if closed or not
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
  vertexes:
    name: vertexes
    description: A list of vertexes defining the polygon
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: true
    range: Vertex
    required: true
    inlined: true
    inlined_as_list: true
  is_open:
    name: is_open
    description: Is the polygon open. By default, it is closed (false)
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    ifabsent: 'False'
    range: boolean
    required: true

Induced

name: Polygon
description: A polygon as defined by a series of vertexes and a boolean to indicate
  if closed or not
from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema
is_a: Shape
attributes:
  vertexes:
    name: vertexes
    description: A list of vertexes defining the polygon
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: true
    alias: vertexes
    owner: Polygon
    domain_of:
    - Polygon
    range: Vertex
    required: true
    inlined: true
    inlined_as_list: true
  is_open:
    name: is_open
    description: Is the polygon open. By default, it is closed (false)
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    rank: 1000
    multivalued: false
    ifabsent: 'False'
    alias: is_open
    owner: Polygon
    domain_of:
    - Polygon
    range: boolean
    required: true
  label:
    name: label
    description: The label of the shape
    from_schema: https://w3id.org/MontpellierRessourcesImagerie/microscopemetrics-schema/core_schema
    alias: label
    owner: Polygon
    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: Polygon
    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: Polygon
    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: Polygon
    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: Polygon
    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: Polygon
    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: Polygon
    domain_of:
    - Shape
    range: integer
    required: false