DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEnvelope Class Reference

#include <envelope.h>

Collaboration diagram for CEnvelope:
[legend]

Classes

class  CEnvelopePointAccess

Public Types

enum class  EType { POSITION , COLOR , SOUND }

Public Member Functions

 CEnvelope (EType Type)
 CEnvelope (int NumChannels)
std::pair< float, float > GetValueRange (int ChannelMask)
void Eval (float Time, ColorRGBA &Result, size_t Channels)
void AddPoint (CFixedTime Time, std::array< int, CEnvPoint::MAX_CHANNELS > aValues)
float EndTime () const
int FindPointIndex (CFixedTime Time) const
int GetChannels () const
EType Type () const

Public Attributes

std::vector< CEnvPoint_runtimem_vPoints
char m_aName [32] = ""
bool m_Synchronized = true

Private Member Functions

void Resort ()

Private Attributes

EType m_Type
CEnvelopePointAccess m_PointsAccess

Member Enumeration Documentation

◆ EType

enum class CEnvelope::EType
strong
Enumerator
POSITION 
COLOR 
SOUND 

Constructor & Destructor Documentation

◆ CEnvelope() [1/2]

CEnvelope::CEnvelope ( EType Type)
explicit

◆ CEnvelope() [2/2]

CEnvelope::CEnvelope ( int NumChannels)
explicit

Member Function Documentation

◆ AddPoint()

void CEnvelope::AddPoint ( CFixedTime Time,
std::array< int, CEnvPoint::MAX_CHANNELS > aValues )

◆ EndTime()

float CEnvelope::EndTime ( ) const

◆ Eval()

void CEnvelope::Eval ( float Time,
ColorRGBA & Result,
size_t Channels )

◆ FindPointIndex()

int CEnvelope::FindPointIndex ( CFixedTime Time) const

◆ GetChannels()

int CEnvelope::GetChannels ( ) const

◆ GetValueRange()

std::pair< float, float > CEnvelope::GetValueRange ( int ChannelMask)

◆ Resort()

void CEnvelope::Resort ( )
private

◆ Type()

EType CEnvelope::Type ( ) const
inline

Member Data Documentation

◆ m_aName

char CEnvelope::m_aName[32] = ""

◆ m_PointsAccess

CEnvelopePointAccess CEnvelope::m_PointsAccess
private

◆ m_Synchronized

bool CEnvelope::m_Synchronized = true

◆ m_Type

EType CEnvelope::m_Type
private

◆ m_vPoints

std::vector<CEnvPoint_runtime> CEnvelope::m_vPoints

The documentation for this class was generated from the following files: