#include <sequencecurvetrackview.h>
Public Member Functions | |
CurveSegmentClipboard (const rttr::type &segmentType, std::string trackID, std::string sequenceName) | |
void | changeTrackID (const std::string &newTrackID) |
const std::string & | getTrackID () const |
const std::string & | getSequenceName () const |
![]() | |
Clipboard (const rttr::type &trackType) | |
virtual | ~Clipboard ()=default |
void | addObject (const rtti::Object *object, const std::string &sequenceName, utility::ErrorState &errorState) |
void | addObject (const rtti::Object *object, utility::ErrorState &errorState) |
template<typename T > | |
std::vector< T * > | deserialize (std::vector< std::unique_ptr< rtti::Object >> &createdObjects, utility::ErrorState &errorState) |
template<typename T > | |
bool | isClipboard () |
template<typename T > | |
T * | getDerived () |
std::vector< std::string > | getObjectIDs () const |
bool | containsObject (const std::string &objectID, const std::string &sequenceName) const |
void | removeObject (const std::string &objectID) |
int | getObjectCount () const |
rttr::type | getTrackType () const |
bool | save (const std::string &filePath, utility::ErrorState &errorState) |
bool | load (const std::string &filePath, utility::ErrorState &errorState) |
Additional Inherited Members | |
![]() | |
std::map< std::string, std::string > | mSerializedObjects |
rttr::type | mTrackType |
std::string | mSequenceName |
CurveSegmentClipboard contains serialized curve segments
CurveSegmentClipboard | ( | const rttr::type & | segmentType, |
std::string | trackID, | ||
std::string | sequenceName | ||
) |
Constructor
segmentType | the segment type that needs to be serialized |
trackID | the track id of track that contains the segment |
sequenceName | the name of the current loaded sequence |
void changeTrackID | ( | const std::string & | newTrackID | ) |
Change track id
newTrackID | the new track id |
const std::string& getSequenceName | ( | ) | const |
returns sequence name that contains the segment
const std::string& getTrackID | ( | ) | const |
returns track id