NAP
Public Member Functions | Public Attributes | List of all members
CurvePointActionPopup< T > Class Template Reference

#include <sequencecurvetrackview_guiactions.h>

Public Member Functions

 CurvePointActionPopup (const std::string &trackID, std::string segmentID, int controlPointIndex, int curveIndex, float value, float time, T minimum, T maximum)
 
- Public Member Functions inherited from TrackAction
 TrackAction (std::string trackID)
 
- Public Member Functions inherited from Action
virtual ~Action ()=default
 
template<typename T >
bool isAction ()
 
template<typename T >
T * getDerived ()
 

Public Attributes

bool mOpened = false
 
std::string mSegmentID
 
int mControlPointIndex
 
int mCurveIndex
 
float mValue
 
mMinimum
 
mMaximum
 
float mTime
 
- Public Attributes inherited from TrackAction
std::string mTrackID
 

Description

template<typename T>
class nap::sequenceguiactions::CurvePointActionPopup< T >

TrackAction that tells the GUI we're inside an insert curve point action popup for a curved segment

Template Parameters
Tthe type of curve segment
Inheritance diagram for CurvePointActionPopup< T >:
[legend]
Collaboration diagram for CurvePointActionPopup< T >:
[legend]

Constructor & Destructor Documentation

◆ CurvePointActionPopup()

CurvePointActionPopup ( const std::string &  trackID,
std::string  segmentID,
int  controlPointIndex,
int  curveIndex,
float  value,
float  time,
minimum,
maximum 
)

Constructor

Parameters
trackIDtrack id of the track holding the segment being edited
segmentIDthe segment being edited
controlPointIndexthe control point index
curveIndexthe curve index
valuethe new value of the curve point
timethe new time of the curve point, time is in percentage normalized between 0 and 1. F.E. 0.5 is half of segment duration
minimumminimum value of the curve point
maximummaximum value of the curve point

Member Data Documentation

◆ mControlPointIndex

int mControlPointIndex

◆ mCurveIndex

int mCurveIndex

◆ mMaximum

T mMaximum

◆ mMinimum

T mMinimum

◆ mOpened

bool mOpened = false

◆ mSegmentID

std::string mSegmentID

◆ mTime

float mTime

◆ mValue

float mValue