更新 Source/FLESHEditor/Public/MatrixInputWidget.h
This commit is contained in:
@@ -20,11 +20,17 @@ public:
|
||||
SLATE_BEGIN_ARGS(SMatrixInputWidget)
|
||||
: _Matrix(FMatrix::Identity)
|
||||
, _OnMatrixChanged()
|
||||
, _Rows(4)
|
||||
, _Columns(4)
|
||||
{}
|
||||
/** The initial matrix value */
|
||||
SLATE_ARGUMENT(FMatrix, Matrix)
|
||||
/** Called when the matrix value changes */
|
||||
SLATE_EVENT(FOnMatrixChanged, OnMatrixChanged)
|
||||
/** Number of rows in the matrix */
|
||||
SLATE_ARGUMENT(int32, Rows)
|
||||
/** Number of columns in the matrix */
|
||||
SLATE_ARGUMENT(int32, Columns)
|
||||
SLATE_END_ARGS()
|
||||
|
||||
/** Constructs this widget */
|
||||
@@ -49,16 +55,22 @@ public:
|
||||
void SetFromTransform(const FTransform& Transform);
|
||||
|
||||
private:
|
||||
/** The current matrix value */
|
||||
/** Current matrix value */
|
||||
FMatrix Matrix;
|
||||
|
||||
/** Called when the matrix value changes */
|
||||
FOnMatrixChanged OnMatrixChanged;
|
||||
|
||||
/** The grid panel containing the matrix elements */
|
||||
/** Number of rows in the matrix */
|
||||
int32 Rows;
|
||||
|
||||
/** Number of columns in the matrix */
|
||||
int32 Columns;
|
||||
|
||||
/** Grid panel for the matrix elements */
|
||||
TSharedPtr<SGridPanel> GridPanel;
|
||||
|
||||
/** Array of numeric entry boxes for matrix elements */
|
||||
/** Numeric entry boxes for the matrix elements */
|
||||
TArray<TSharedPtr<SNumericEntryBox<float>>> NumericEntryBoxes;
|
||||
|
||||
/** Creates a numeric entry box for a matrix element */
|
||||
|
Reference in New Issue
Block a user