docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License

    • Unity.Geospatial.HighPrecision
      • DoubleBounds
      • DoublePlane
      • HPMath
      • HPNode
      • HPNode.ScaleTypes
      • HPRoot
      • HPTransform
      • LocalCoordinateSystem
      • MathExtension
      • MatrixExtension
      • SerializableDoubleBounds
    • Unity.Geospatial.HighPrecision.Editor
      • CoordinateSystemInspector
      • CoordinateSystemInspector.ScaleTypes
      • DefaultCoordinateSystemInspector
      • EditorGUILayoutWrapper
      • HPNodeInspector
      • HPRootInspector
      • HPTransformInspector
      • TransformEditorOverride

    Class CoordinateSystemInspector

    Base class to tells an Editor class how to display the values of a custom LocalCoordinateSystem.

    Inheritance
    Object
    CoordinateSystemInspector
    DefaultCoordinateSystemInspector
    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 target.

    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 target.

    quaternion rotation

    Returns the orientation value of the target.

    float3 scale

    Returns the scaling value of the target.

    Exceptions
    Type Condition
    InvalidOperationException

    If the target will be disposed.

    NotSupportedException

    If the target is not supported by this class. Custom HPNode implementations are not supported.

    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. This will set the scaling to a uniform value of 1.

    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 target position to this value.

    quaternion rotation

    Change the target orientation to this value.

    Exceptions
    Type Condition
    InvalidOperationException

    If the target will be disposed.

    NotSupportedException

    If the target is not supported by this class. Custom HPNode implementations are not supported.

    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 target position to this value.

    quaternion rotation

    Change the target orientation to this value.

    float3 scale

    Change the target size to this value.

    Exceptions
    Type Condition
    InvalidOperationException

    If the target will be disposed.

    NotSupportedException

    If the target is not supported by this class. Custom HPNode implementations are not supported.

    Back to top Generated by DocFX