Class PolygonDefaultVisualizer
Default visualizer for geometry_msgs/Polygon messages. Draws the polygon outline as a closed line strip.
Inheritance
PolygonDefaultVisualizer
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class PolygonDefaultVisualizer : DrawingVisualizer<PolygonMsg>, IVisualFactory, IPriority
Methods
CreateGUI(PolygonMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(PolygonMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| PolygonMsg | 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, PolygonMsg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, PolygonMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| PolygonMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(PolygonMsg, Drawing3d, Color, float)
Draws the polygon as a closed line strip connecting all vertices in sequence.
Declaration
public static void Draw<C>(PolygonMsg message, Drawing3d drawing, Color color, float thickness = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| PolygonMsg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| float | thickness | The line thickness in world units. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the vertex data. |