Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Expansions.Serenity.RoboticControllerWindowAxis Class Reference

An axis row inside the Robotic Controller More...

Inheritance diagram for Expansions.Serenity.RoboticControllerWindowAxis:
Expansions.Serenity.RoboticControllerWindowBaseRow

Public Member Functions

void AlignCurveEnds ()
 Align the curve endpoint value and tangent with the start one to help smooth looping behaviour More...
 
void ClampAllPointValues ()
 Clamp all points values More...
 
void ClampPointValues ()
 Clamp the selected points values More...
 
void HidePoints ()
 Hide the points in the curvepanel More...
 
override void InsertPoint (float timeValue)
 Insert a new point at the passed time More...
 
void InvertCurve ()
 Invert the timeValue curve between the min and max axis More...
 
void PresetFlat ()
 Set the axis to be a flat line at the mid-point More...
 
void PresetRevSaw (float cycles, float phase)
 Set the axis to be a reverse sawtooth wave More...
 
void PresetSaw (float cycles, float phase)
 Set the axis to be a sawtooth wave More...
 
void PresetSine (float cycles, float phase)
 Set the axis to be a sine wave More...
 
void PresetSquare (float cycles, float phase)
 Set the axis to be a square wave More...
 
void PresetTriangle (float cycles, float phase)
 Set the axis to be a triangle wave More...
 
override void ReverseCurve ()
 Reverse the direction of the curve More...
 
override void SelectAllPoints ()
 Select all points in the curve More...
 
override void SelectPointAtTime (float timeValue)
 Select a curvepoint at the passed time More...
 
void Setup (RoboticControllerWindow window, ControlledAxis axis)
 Set the initial values More...
 
void ShowPoints ()
 Show the points in the curvepanel More...
 
void UpdatePreset (float cycles, float phase)
 Set the axis to be a reverse sawtooth wave More...
 
- Public Member Functions inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
bool AnyTextFieldHasFocus ()
 
void Collapse ()
 Collpase this row More...
 
void Expand ()
 Expand this row More...
 
void OnPointerEnter (PointerEventData eventData)
 IPointerExitHandler More...
 
void OnPointerExit (PointerEventData eventData)
 IPointerEnterHandler More...
 
void ToggleExpansion ()
 Toggle this rows expansion/collapse More...
 

Static Public Member Functions

static RoboticControllerWindowAxis Spawn (RoboticControllerWindow window, ControlledAxis axis, Transform parent)
 

Public Attributes

RectTransform axisLimits
 Small axis limits inset component More...
 
- Public Attributes inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
Button editNickButton
 Button for entering edit mode More...
 
TMPro.TMP_InputField partNickNameInput
 Input field for editing the name More...
 
TextMeshProUGUI titleTextField
 Axis FIeld title for description More...
 
TextMeshProUGUI titleTextPart
 Part Title for identification More...
 

Protected Member Functions

override void OnPointDragging (List< CurvePanelPoint > points)
 Callback from panel so we can tell the window whats going on More...
 
override void OnPointSelectionChanged (CurvePanel panel, List< CurvePanelPoint > points)
 Callback from panel so we can tell the window whats going on More...
 
override void OnRowCollapsed ()
 Collpase this axis row More...
 
override void OnRowDestroy ()
 Called by this class during Monobehaviour OnDestroy More...
 
override void OnRowExpanded ()
 Expand this axis row More...
 
override void OnRowStart ()
 Called by this class during Monobehaviour Start More...
 
override void UpdateUILayout (bool recreateLine=false)
 Called when the UI Layout is updated to handle specific child class code More...
 
- Protected Member Functions inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
void AssignBaseReferenceVars (RoboticControllerWindow window, ModuleRoboticController controller, ControlledBase controlledItem)
 

Properties

ControlledAxis Axis [get, set]
 Ref var to the Axis this represents More...
 
- Properties inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
ModuleRoboticController Controller [get, set]
 Ref var to the controller More...
 
bool Expanded [get]
 Is this axis expanded More...
 
bool IsAction [get]
 Is this row for managing an action sequence More...
 
bool IsAxis [get]
 Is this row for managing an axisfield curve More...
 
rowTypes rowType [get, set]
 This rows type More...
 
RoboticControllerWindow Window [get, set]
 Ref var to the Window More...
 

Additional Inherited Members

- Public Types inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
enum  rowTypes { rowTypes.Action, rowTypes.Axis, rowTypes.None }
 The types that a row in the controller window can be More...
 
- Protected Attributes inherited from Expansions.Serenity.RoboticControllerWindowBaseRow
ControlledAction controlledAction
 
ControlledAxis controlledAxis
 
ControlledBase controlledItem
 
UIHoverText editNickTextHover
 
bool expanded = false
 
PointerClickHandler headerClickHandler
 
RectTransform headerTransform
 
float heightCollapsed
 
float heightExpanded
 
List< GameObject > hideWhenCollapsed
 
LayoutElement layout
 Layout element for managing size More...
 
Button removeRowButton
 
UIHoverText removeRowTextHover
 

Detailed Description

An axis row inside the Robotic Controller

Member Function Documentation

void Expansions.Serenity.RoboticControllerWindowAxis.AlignCurveEnds ( )
inline

Align the curve endpoint value and tangent with the start one to help smooth looping behaviour

void Expansions.Serenity.RoboticControllerWindowAxis.ClampAllPointValues ( )
inline

Clamp all points values

void Expansions.Serenity.RoboticControllerWindowAxis.ClampPointValues ( )
inline

Clamp the selected points values

void Expansions.Serenity.RoboticControllerWindowAxis.HidePoints ( )
inline

Hide the points in the curvepanel

override void Expansions.Serenity.RoboticControllerWindowAxis.InsertPoint ( float  timeValue)
inlinevirtual

Insert a new point at the passed time

Parameters
timeValuetime of the point in Sequence from of reference

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

void Expansions.Serenity.RoboticControllerWindowAxis.InvertCurve ( )
inline

Invert the timeValue curve between the min and max axis

override void Expansions.Serenity.RoboticControllerWindowAxis.OnPointDragging ( List< CurvePanelPoint points)
inlineprotectedvirtual

Callback from panel so we can tell the window whats going on

Parameters
pPoint being dragged

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.OnPointSelectionChanged ( CurvePanel  panel,
List< CurvePanelPoint points 
)
inlineprotectedvirtual

Callback from panel so we can tell the window whats going on

Parameters
pSelected Point - or null if all deselected

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.OnRowCollapsed ( )
inlineprotectedvirtual

Collpase this axis row

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.OnRowDestroy ( )
inlineprotectedvirtual

Called by this class during Monobehaviour OnDestroy

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.OnRowExpanded ( )
inlineprotectedvirtual

Expand this axis row

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.OnRowStart ( )
inlineprotectedvirtual

Called by this class during Monobehaviour Start

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

void Expansions.Serenity.RoboticControllerWindowAxis.PresetFlat ( )
inline

Set the axis to be a flat line at the mid-point

void Expansions.Serenity.RoboticControllerWindowAxis.PresetRevSaw ( float  cycles,
float  phase 
)
inline

Set the axis to be a reverse sawtooth wave

void Expansions.Serenity.RoboticControllerWindowAxis.PresetSaw ( float  cycles,
float  phase 
)
inline

Set the axis to be a sawtooth wave

void Expansions.Serenity.RoboticControllerWindowAxis.PresetSine ( float  cycles,
float  phase 
)
inline

Set the axis to be a sine wave

void Expansions.Serenity.RoboticControllerWindowAxis.PresetSquare ( float  cycles,
float  phase 
)
inline

Set the axis to be a square wave

void Expansions.Serenity.RoboticControllerWindowAxis.PresetTriangle ( float  cycles,
float  phase 
)
inline

Set the axis to be a triangle wave

override void Expansions.Serenity.RoboticControllerWindowAxis.ReverseCurve ( )
inlinevirtual

Reverse the direction of the curve

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.SelectAllPoints ( )
inlinevirtual

Select all points in the curve

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

override void Expansions.Serenity.RoboticControllerWindowAxis.SelectPointAtTime ( float  timeValue)
inlinevirtual

Select a curvepoint at the passed time

Parameters
timeValuetime of the point in Sequence frome of reference

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

void Expansions.Serenity.RoboticControllerWindowAxis.Setup ( RoboticControllerWindow  window,
ControlledAxis  axis 
)
inline

Set the initial values

void Expansions.Serenity.RoboticControllerWindowAxis.ShowPoints ( )
inline

Show the points in the curvepanel

static RoboticControllerWindowAxis Expansions.Serenity.RoboticControllerWindowAxis.Spawn ( RoboticControllerWindow  window,
ControlledAxis  axis,
Transform  parent 
)
inlinestatic
void Expansions.Serenity.RoboticControllerWindowAxis.UpdatePreset ( float  cycles,
float  phase 
)
inline

Set the axis to be a reverse sawtooth wave

override void Expansions.Serenity.RoboticControllerWindowAxis.UpdateUILayout ( bool  recreateLine = false)
inlineprotectedvirtual

Called when the UI Layout is updated to handle specific child class code

Implements Expansions.Serenity.RoboticControllerWindowBaseRow.

Member Data Documentation

RectTransform Expansions.Serenity.RoboticControllerWindowAxis.axisLimits

Small axis limits inset component

Property Documentation

ControlledAxis Expansions.Serenity.RoboticControllerWindowAxis.Axis
getset

Ref var to the Axis this represents


The documentation for this class was generated from the following file: