FKeyBarCurveModel

Class that provides functionality to represents keys as continuous ranges.

Unreal Engine C++ API Reference > Editor > CurveEditor

Inheritance Hierarchy

References

   
Module CurveEditor
Header /Engine/Source/Editor/CurveEditor/Public/KeyBarCurveModel.h
Include #include "KeyBarCurveModel.h"

Syntax

class FKeyBarCurveModel : public [FCurveModel](API\Editor\CurveEditor\FCurveModel)  

Remarks

Class that provides functionality to represents keys as continuous ranges.

Constructors

Type Name Description
  FKeyBarCurveModel ()  

Destructors

Type Name Description
  ~FKeyBarCurveModel ()  

Functions

Type Name Description
void BuildContextMenu ( const FCurveEditor& CurveEditor, FMenuBuilder& MenuBuilder, TOptional< FCurvePointHandle > Clic... ) New Virtuals for Key Bar Curve Model
TArray< FKey... FindRanges () Find all of the ranges in this model. This should return an increasing set of ranges.

Overridden from FCurveModel

Type Name Description
void AddKeys ( TArrayView< const FKeyPosition > In..., TArrayView< const FKeyAttributes > ..., TArrayView< TOptional< FKeyHandle >... ) Add keys to this curve
void DrawCurve ( const FCurveEditor& CurveEditor, const FCurveEditorScreenSpace& Scr..., TArray< TTuple< double, double >>&... ) Draw the curve for the specified curve editor by populating an array with points on the curve between which lines should be drawn
bool Evaluate ( double InTime, double& OutValue ) Evaluate this curve at the specified time
const void &... GetCurve () Access the raw pointer of the curve data
void GetKeyDrawInfo ( ECurvePointType PointType, const FKeyHandle InKeyHandle, FKeyDrawInfo& OutDrawInfo ) Populate the specified draw info structure with data describing how to draw the specified point type
void GetKeyPositions ( TArrayView< const FKeyHandle > InKe..., TArrayView< FKeyPosition > OutKeyPo... ) Retrieve all key positions that pertain to the specified input key handles
void GetKeys ( const FCurveEditor& CurveEditor, double MinTime, double MaxTime, double MinValue, double MaxValue, TArray< FKeyHandle >& OutKeyHandle... ) Retrieve all keys that lie in the specified time and value range
void GetNeighboringKeys ( const FKeyHandle InKeyHandle, TOptional< FKeyHandle >& OutPrevio..., TOptional< FKeyHandle >& OutNextKe... ) Get neighboring keys given the key handle
int32 GetNumKeys () Get the number of keys
void GetTimeRange ( double& MinTime, double& MaxTime ) Get range of input time.
void GetValueRange ( double& MinValue, double& MaxValue ) Get range of output values.
void Modify () Explicitly modify the curve data. Called before any change is made to the curve.
void RemoveKeys ( TArrayView< const FKeyHandle > InKe... ) Remove all the keys with the specified key handles from this curve
void SetKeyPositions ( TArrayView< const FKeyHandle > InKe..., TArrayView< const FKeyPosition > In..., const EPropertyChangeType::Type Cha... ) Assign key positions for the specified key handles

Classes

Type Name Description
Public struct FBarRange Bar Ranges for the Keys

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library