Class Vector3DefaultVisualizer
Default visualizer for geometry_msgs/Vector3 messages. Draws a point at the vector position with an optional label.
Inheritance
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class Vector3DefaultVisualizer : DrawingVisualizer<Vector3Msg>, IVisualFactory, IPriority
Methods
CreateGUI(Vector3Msg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(Vector3Msg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Msg | 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, Vector3Msg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, Vector3Msg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| Vector3Msg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(Vector3Msg, Drawing3d, Color, float)
Draws a point at the vector position without a label.
Declaration
public static void Draw<C>(Vector3Msg message, Drawing3d drawing, Color color, float size = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Msg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| float | size | Number of elements along this dimension. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |
Draw<C>(Vector3Msg, Drawing3d, Color, string, float)
Draws a point at the vector position and a label above it.
Declaration
public static void Draw<C>(Vector3Msg message, Drawing3d drawing, Color color, string label, float size = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Msg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| string | label | Short display label. |
| float | size | Number of elements along this dimension. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |
Draw<C>(Vector3Msg, Drawing3d, GameObject, Color, string, float)
Draws a point at the vector position transformed into the local space of origin, with an optional label.
Declaration
public static void Draw<C>(Vector3Msg message, Drawing3d drawing, GameObject origin, Color color, string label, float size = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3Msg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| GameObject | origin | Optional GameObject whose local-to-world transform is applied before drawing; if |
| Color | color | RGBA color. |
| string | label | Short display label. |
| float | size | Number of elements along this dimension. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |