DDraceNetwork Docs
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 (int Time, int v0, int v1=0, int v2=0, int v3=0)
 
float EndTime () const
 
int GetChannels () const
 
EType Type () const
 

Public Attributes

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

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 ( int  Time,
int  v0,
int  v1 = 0,
int  v2 = 0,
int  v3 = 0 
)

◆ EndTime()

float CEnvelope::EndTime ( ) const

◆ Eval()

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

◆ 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 = false

◆ 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: