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

syntax = "proto3";

import "foxglove/Color.proto";
import "foxglove/Pose.proto";

package foxglove;

// A primitive representing a text label
message TextPrimitive {
  // Position of the center of the text box and orientation of the text. Identity orientation means the text is oriented in the xy-plane and flows from -x to +x.
  foxglove.Pose pose = 1;

  // Whether the text should respect `pose.orientation` (false) or always face the camera (true)
  bool billboard = 2;

  // Font size (height of one line of text)
  double font_size = 3;

  // Indicates whether `font_size` is a fixed size in screen pixels (true), or specified in world coordinates and scales with distance from the camera (false)
  bool scale_invariant = 4;

  // Color of the text
  foxglove.Color color = 5;

  // Text
  string text = 6;
}
