// Generated by https://github.com/foxglove/schemas

syntax = "proto3";

import "foxglove/Color.proto";
import "foxglove/Point2.proto";
import "google/protobuf/timestamp.proto";

package foxglove;

// An array of points on a 2D image
message PointsAnnotation {
  // Type of points annotation
  enum Type {
    UNKNOWN = 0;

    POINTS = 1;

    LINE_LOOP = 2;

    LINE_STRIP = 3;

    LINE_LIST = 4;
  }
  // Timestamp of annotation
  google.protobuf.Timestamp timestamp = 1;

  // Type of points annotation to draw
  Type type = 2;

  // Points in 2D image coordinates
  repeated foxglove.Point2 points = 3;

  // Outline color
  foxglove.Color outline_color = 4;

  // Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.
  repeated foxglove.Color outline_colors = 5;

  // Fill color
  foxglove.Color fill_color = 6;

  // Stroke thickness
  double thickness = 7;
}
