Class Point32DefaultVisualizer
Default visualizer for geometry_msgs/Point32 messages. Draws a point at the position with an optional label.
Inheritance
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class Point32DefaultVisualizer : DrawingVisualizer<Point32Msg>, IVisualFactory, IPriority
Methods
CreateGUI(Point32Msg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(Point32Msg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Point32Msg | 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, Point32Msg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, Point32Msg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| Point32Msg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(Point32Msg, Drawing3d, Color, float)
Draws a point at the message position without a label.
Declaration
public static void Draw<C>(Point32Msg message, Drawing3d drawing, Color color, float size = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Point32Msg | 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>(Point32Msg, Drawing3d, Color, string, float)
Draws a point at the message position and a label above it.
Declaration
public static void Draw<C>(Point32Msg message, Drawing3d drawing, Color color, string label, float size = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Point32Msg | 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. |