wiki:GaugesPointer

Pointer

Role

  • Rotate a SVG item around a point using start, stop position
  • Translate a SVG item between two positions

Items

  • background : background of the light
  • main : Represent the pointer (object that will be displayed and will move ). It MUST BE at vertical position on SVG file.
    • request : Value requested to LoPlug? for this object
    • movement : can be "Rotate" or "Linear"
    • linked_on: you can link this pointer with another one (index of linked must be less than aur ex: pointer2_main has field linked_on="pointer1_main" but not on pointer3)
    • loop : if True the pointer will restart at start when value more than end one
  • start : Represent the start position
    • value : Minimum value
  • end : Represent the stop position
    • value : Maximum value
  • origin : Represent the origin position of the pointer
  • inside : Placed near the start object, it gives the rotation direction

You can use segments to describe more complex moves (no linear). Create object segx with x starting at 1 to define your segments. Segments has fields:

  • value represents the value at this point

Note : no need to define a seg object at end, it will automatically created.