Class CoordinateSystemInspector
Base class to tells an Editor class how to display the values of a custom LocalCoordinateSystem.
Namespace: Unity.Geospatial.HighPrecision.Editor
Assembly: solution.dll
Syntax
public abstract class CoordinateSystemInspector
Properties
Name
Unique name to display allowing to differentiate the related LocalCoordinateSystem from others.
Declaration
public abstract string Name { get; }
Property Value
Type | Description |
---|---|
String |
Methods
GetScaleType(HPNode)
Get the CoordinateSystemInspector.ScaleTypes of the given target
.
Declaration
protected CoordinateSystemInspector.ScaleTypes GetScaleType(HPNode target)
Parameters
Type | Name | Description |
---|---|---|
HPNode | target | Get the CoordinateSystemInspector.ScaleTypes values for this node. |
Returns
Type | Description |
---|---|
CoordinateSystemInspector.ScaleTypes | The CoordinateSystemInspector.ScaleTypes for the given |
GetTRS(HPNode, out double3, out quaternion, out float3)
Get the actual translation, rotation and scale values of the target
.
Declaration
protected void GetTRS(HPNode target, out double3 translation, out quaternion rotation, out float3 scale)
Parameters
Type | Name | Description |
---|---|---|
HPNode | target | Get the transform values for this node. |
double3 | translation | Returns the position value of the |
quaternion | rotation | Returns the orientation value of the |
float3 | scale | Returns the scaling value of the |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the |
NotSupportedException | If the |
OnInspectorGUI(HPNode)
Custom IMGUI based GUI for the inspector for a given HPNode.
Declaration
public abstract void OnInspectorGUI(HPNode target)
Parameters
Type | Name | Description |
---|---|---|
HPNode | target | Target to draw the inspector for. |
SetTRS(HPNode, double3, quaternion)
Change the position and the orientation of the target
.
Declaration
protected void SetTRS(HPNode target, double3 translation, quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
HPNode | target | Set the transform values to this node. |
double3 | translation | Change the |
quaternion | rotation | Change the |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the |
NotSupportedException | If the |
SetTRS(HPNode, double3, quaternion, float3)
Change the position, orientation and the scaling of the target
.
Declaration
protected void SetTRS(HPNode target, double3 translation, quaternion rotation, float3 scale)
Parameters
Type | Name | Description |
---|---|---|
HPNode | target | Set the transform values to this node. |
double3 | translation | Change the |
quaternion | rotation | Change the |
float3 | scale | Change the |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the |
NotSupportedException | If the |