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

#include <sequencetrackcurve.h>

Public Member Functions

virtual bool init (utility::ErrorState &errorState) override
 
- Public Member Functions inherited from SequenceTrack
virtual ~SequenceTrack ()=default
 
virtual float getMinimumTrackHeight () const
 
virtual float getExtendedTrackHeight () const
 
virtual float getUsableTrackHeight () const
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

mMaximum = T(1)
 Property: 'Maximum' maximum value of track. More...
 
mMinimum = T(0)
 Property: 'Minimum' minimum value of track. More...
 
- Public Attributes inherited from SequenceTrack
std::string mName
 Property : 'Name' Assigned name to this track. More...
 
std::string mAssignedOutputID
 Property: 'Assigned Output ID' Assigned output to this track id. More...
 
std::vector< ResourcePtr< SequenceTrackSegment > > mSegments
 Property: 'Segments' Vector holding track segments. More...
 
float mTrackHeight = 200.0f
 Property: 'TrackHeight' holds track height as shown in gui. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

template<typename T>
class nap::SequenceTrackCurve< T >

Represents a track that holds a collection of segments, where T is the data represented by the track. There are currently four supported SequenceTrackCurve types ( float, vec2, vec3, vec4 )

Inheritance diagram for SequenceTrackCurve< T >:
[legend]
Collaboration diagram for SequenceTrackCurve< T >:
[legend]

Member Function Documentation

◆ init()

bool init ( utility::ErrorState errorState)
overridevirtual

initializes the curve segment and validates its data.

Parameters
errorStatecontains any errors
Returns
returns true on successful initialization

Reimplemented from Object.

Member Data Documentation

◆ mMaximum

T mMaximum = T(1)

Property: 'Maximum' maximum value of track.

◆ mMinimum

T mMinimum = T(0)

Property: 'Minimum' minimum value of track.