Aller au contenu

Message HrzProtocol.AnchorSymbolElement

Defined in hrz/protocol/vector/symbol_repr.proto.


position_offset: HrzProtocol.Vec3fProperty

In East-North-up coordinates.


position_offset_size_unit: HrzProtocol.SymbolSizeUnit

position_offset_relative_scaling: HrzProtocol.SymbolRelativeScaling

How to scale the position offset according to the distance to the camera. Only when the position offset is in pixels.


x_axis_alignment: HrzProtocol.SymbolAxisAlignment

y_axis_alignment: HrzProtocol.SymbolAxisAlignment

keep_upright: bool

If enabled, keeps the symbol readable when it’s upside down or backwards.


rotation: HrzProtocol.Vec3fProperty

The rotation is applied in the symbol’s space but with inverted Y: X points right, Y point to the top, Z points away from the symbol.


rotation_order: HrzProtocol.EulerRotationOrder

The order in which to apply the three components of the model’s rotation.


element_size_unit: HrzProtocol.SymbolSizeUnit

Selects the size unit of the anchor child element.


element_size_relative_scaling: HrzProtocol.SymbolRelativeScaling

How to scale the element size according to the distance to the camera. Only when the element size is in pixels.


element_alignment: HrzProtocol.Vec2fProperty

The alignment property lets the user define how the children should be positioned relative to the anchor. The alignment is specified relative to the size of the whole symbol. When reset_layout is set to true, this is equivalent to aligning relative to the child only. The default alignment makes the child center match the anchor position. An alignment of -1 or 1 perfectly aligns the child borders to the anchor.


reset_layout: bool

When set to true, this anchor acts a new root and completely ignores parent’s transforms and layout. It also does not transmit its layout to the parent.


reference_distance: float

The distance to the camera at which pixel unit is one logical pixel. When the camera moves closer or further away, the symbol pixel units are scaled, so that they appear to have a constant size in metres. That is to say, the symbol size (or offset) grows when the camera comes closer, and shrinks when it moves away.


min_relative_scale: float

The minimum scale that can be applied to the pixel units. This prevents the symbol size (or offset) from being too small.


max_relative_scale: float

The maximum scale that can be applied to the pixel units. This prevents the symbol size (or offset) from being too large.


can_overlap_other_symbols: bool

When set to true, this subtree is allowed to overlap other symbols.


hides_other_symbols: bool

When set to false, this subtree does not participate in hiding other symbols, and thus other symbols are allowed to overlap it.


is_optional: bool

When set to true, this subtree is allowed to not be displayed, independently from the rest of the symbol, if it overlaps other symbols, so that the rest of the symbol can still be displayed.


culling_priority: HrzProtocol.FloatProperty

The priority applied to the subtree during culling. Anchors cannot be hidden by symbols with a lower priority value, except if they belong to a representation of a higher z-index.


child: HrzProtocol.SymbolElement