![]() |
Kerbal Space Program
1.12.4
|
A panel that has a line drawn in it from an Float Curve More...
Classes | |
| class | CurvePanelPointChangeInfo |
| Class to store data about point changes for callbacks More... | |
Public Member Functions | |
| void | ClearSelectedPoints () |
| Clear all point selections in this curve More... | |
| void | DeletePoint (CurvePanelPoint p) |
| Delete this point More... | |
| void | DeletePoint (int pointIndex) |
| Delete this point More... | |
| void | DeleteSelectedPoints () |
| Delete all the selected points More... | |
| void | DrawAll (bool newline=true) |
| Draw all the panel bits More... | |
| void | DrawLine (bool newline=true) |
| Draw the line More... | |
| void | DrawPoints (bool newline=true) |
| Build the curvePoints from the floatcurve, create the GOs and set their visbility More... | |
| void | HideLimits () |
| Hide the min/max limit overlays More... | |
| void | HideMaxLimit () |
| Hide the max limit overlay More... | |
| void | HideMinLimit () |
| Hide the min limit overlay More... | |
| void | HidePoints () |
| Hide the points that define the line More... | |
| void | InsertPoint (int linePointIndex) |
| Insert a point in the floatcurve at the screen line point More... | |
| void | InsertPoint (float timeValue) |
| Insert a point in the floatcurve at the timevalue More... | |
| void | OnPointerClick (PointerEventData eventData) |
| void | RemoveLimitClamping () |
| void | SelectAllPoints () |
| Select all the points in this curve More... | |
| void | SelectPoint (CurvePanelPoint p, bool hideDelete=false) |
| Select the passed CurvePanelPoint More... | |
| void | SelectPoint (int pointIndex, bool hideDelete=false) |
| Select the passed CurvePanelPoint More... | |
| void | SelectPoint (float time, bool hideDelete=false) |
| Select any point at the passed in time More... | |
| void | SetEditable (bool editable) |
| Change state of panel to be editable or not More... | |
| void | SetLimitClamping () |
| void | SetLimits (Vector2 axisMinMax) |
| void | SetLimits (Vector2 axisMinMan, Vector2 limitsMinMax) |
| void | Setup (FloatCurve curve, string objectName) |
| void | Setup (FloatCurve curve, string objectName, float axisMin, float axisMax) |
| void | ShowLimits () |
| Show the min/max limit overlays More... | |
| void | ShowMaxLimit () |
| Show the max limit overlay More... | |
| void | ShowMinLimit () |
| Show the min limit overlay More... | |
| void | ShowPoints () |
| Show the points that define the line More... | |
Public Attributes | |
| float | clampSpace = 0.01f |
| bool | draggingPoint = false |
| int | insertionDetectTolerance = 5 |
| Distance from the line to detect double-click More... | |
| int | intersegmentCount = 20 |
| How many interpolated points to help smooth the line More... | |
| Color | lineColor = Color.blue |
| Line Color More... | |
| Callback | OnPanelLeftClick |
| Callback whenever the panel is clicked More... | |
| Callback < CurvePanelPointChangeInfo > | OnPointAdded |
| Callback whenever a Point is added - passes an object with point details More... | |
| Callback< int > | OnPointDeleted |
| Callback whenever a Point is being deleted - passes the index of teh point More... | |
| Callback< List< CurvePanelPoint > > | OnPointDragging |
| Callback whenever a Point is being dragged, passes the current selected points list More... | |
| Callback < CurvePanelPointChangeInfo > | OnPointMoved |
| Callback whenever a Point is being moved - passes an object with point details More... | |
| Callback< CurvePanel, List < CurvePanelPoint > > | OnPointSelectionChanged |
| Callback whenever selected points is changed, passes the current selected points list More... | |
Properties | |
| bool | ClampValuesWithLimits [get, set] |
| Should we clamp the y value inside the limits as well as the axis minmax More... | |
| FloatCurve | curve [get, set] |
| The floatcurve that is being drawn and managed More... | |
| bool | Editable [get, set] |
| Is the panel in edit or readonly mode More... | |
| bool | MaxLimitVisible [get, set] |
| Should the limit be shown if its inside the axis limits More... | |
| bool | MinLimitVisible [get, set] |
| Should the limit be shown if its inside the axis limits More... | |
| bool | PointsVisible [get, set] |
| Is the panel in edit or readonly mode More... | |
| List< int > | SelectedPointIndexes [get, set] |
| The indexes of the selected points More... | |
| List< CurvePanelPoint > | SelectedPoints [get, set] |
| The points selected in the panel. More... | |
| int | SelectedPointsCount [get] |
| float | YAxisMax [get, set] |
| Y-Axis Max value More... | |
| float | YAxisMaxLimit [get, set] |
| Y-Axis Max limit value More... | |
| float | YAxisMin [get, set] |
| Y-Axis Min value More... | |
| float | YAxisMinLimit [get, set] |
| Y-Axis Min limit value More... | |
A panel that has a line drawn in it from an Float Curve
|
inline |
Clear all point selections in this curve
|
inline |
Delete this point
| p | CurvePanel point to delete |
|
inline |
Delete this point
| pointIndex | Index of CurvePanel point to delete |
|
inline |
Delete all the selected points
|
inline |
Draw all the panel bits
| newline | Recreate the line if true |
|
inline |
Draw the line
| newline | Are we recreting it - false if just editing point positions |
|
inline |
Build the curvePoints from the floatcurve, create the GOs and set their visbility
|
inline |
Hide the min/max limit overlays
|
inline |
Hide the max limit overlay
|
inline |
Hide the min limit overlay
|
inline |
Hide the points that define the line
|
inline |
Insert a point in the floatcurve at the screen line point
| linePointIndex | index of the nearest line point |
|
inline |
Insert a point in the floatcurve at the timevalue
| timeValue | timeValue along the curve |
|
inline |
|
inline |
|
inline |
Select all the points in this curve
|
inline |
Select the passed CurvePanelPoint
| p | the point to select |
| hideDelete | Should we show the point delete action |
|
inline |
Select the passed CurvePanelPoint
| pointIndex | Index of the curve key |
| hideDelete | Should we show the point delete action |
|
inline |
Select any point at the passed in time
| time | Time of the curve key |
| hideDelete | Should we show the point delete action |
|
inline |
Change state of panel to be editable or not
| editable | Desired state |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Show the min/max limit overlays
|
inline |
Show the max limit overlay
|
inline |
Show the min limit overlay
|
inline |
Show the points that define the line
| float Expansions.Serenity.CurvePanel.clampSpace = 0.01f |
| bool Expansions.Serenity.CurvePanel.draggingPoint = false |
| int Expansions.Serenity.CurvePanel.insertionDetectTolerance = 5 |
Distance from the line to detect double-click
| int Expansions.Serenity.CurvePanel.intersegmentCount = 20 |
How many interpolated points to help smooth the line
| Color Expansions.Serenity.CurvePanel.lineColor = Color.blue |
Line Color
| Callback Expansions.Serenity.CurvePanel.OnPanelLeftClick |
Callback whenever the panel is clicked
| Callback<CurvePanelPointChangeInfo> Expansions.Serenity.CurvePanel.OnPointAdded |
Callback whenever a Point is added - passes an object with point details
| Callback<int> Expansions.Serenity.CurvePanel.OnPointDeleted |
Callback whenever a Point is being deleted - passes the index of teh point
| Callback<List<CurvePanelPoint> > Expansions.Serenity.CurvePanel.OnPointDragging |
Callback whenever a Point is being dragged, passes the current selected points list
| Callback<CurvePanelPointChangeInfo> Expansions.Serenity.CurvePanel.OnPointMoved |
Callback whenever a Point is being moved - passes an object with point details
| Callback<CurvePanel, List<CurvePanelPoint> > Expansions.Serenity.CurvePanel.OnPointSelectionChanged |
Callback whenever selected points is changed, passes the current selected points list
|
getset |
Should we clamp the y value inside the limits as well as the axis minmax
|
getset |
The floatcurve that is being drawn and managed
|
getset |
Is the panel in edit or readonly mode
|
getset |
Should the limit be shown if its inside the axis limits
|
getset |
Should the limit be shown if its inside the axis limits
|
getset |
Is the panel in edit or readonly mode
|
getset |
The indexes of the selected points
|
getset |
The points selected in the panel.
|
get |
|
getset |
Y-Axis Max value
|
getset |
Y-Axis Max limit value
For visible limit displays, and clamping if limit clamping enabled
|
getset |
Y-Axis Min value
|
getset |
Y-Axis Min limit value
For visible limit displays, and clamping if limit clamping enabled
1.8.7