Class QuaternionDefaultVisualizer
Default visualizer for geometry_msgs/Quaternion messages. Draws coordinate-axis vectors representing the orientation at a configurable position.
Inheritance
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class QuaternionDefaultVisualizer : DrawingVisualizer<QuaternionMsg>, IVisualFactory, IPriority
Methods
CreateGUI(QuaternionMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(QuaternionMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Returns
| Type | Description |
|---|---|
| Action | An action that draws the GUI. |
Overrides
Draw(Drawing3d, QuaternionMsg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, QuaternionMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| QuaternionMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(QuaternionMsg, Drawing3d, GameObject, float, bool)
Draws coordinate-axis vectors for the given orientation at the world position of drawAtPosition.
Declaration
public static void Draw<C>(QuaternionMsg message, Drawing3d drawing, GameObject drawAtPosition = null, float size = 0.1, bool drawUnityAxes = false) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionMsg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| GameObject | drawAtPosition | Optional |
| float | size | Number of elements along this dimension. |
| bool | drawUnityAxes | If |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |
Draw<C>(QuaternionMsg, Drawing3d, Vector3, float, bool)
Draws coordinate-axis vectors for the given orientation at the specified world position.
Declaration
public static void Draw<C>(QuaternionMsg message, Drawing3d drawing, Vector3 position, float size = 0.1, bool drawUnityAxes = false) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| QuaternionMsg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Vector3 | position | The world-space position at which to draw the axes. |
| float | size | Number of elements along this dimension. |
| bool | drawUnityAxes | If |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |