Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
StageProfi Class Reference

#include <stageprofi.h>

Inheritance diagram for StageProfi:
Inheritance graph
[legend]

Public Member Functions

bool init ()
 
void setColor (color::rgba color)
 
void setColorMulti (std::vector< color::rgba > &colors)
 
 StageProfi (SerialIO *serialIO, unsigned int leds, int led_offset)
 
virtual ~StageProfi ()
 
- Public Member Functions inherited from IColorO
int getNumLeds ()
 
 IColorO ()
 
void setMask (int mask)
 
void setNumLeds (size_t num_leds)
 
boost::signals2::signal< void(color::rgba color)> * signalColorSet ()
 
boost::signals2::signal< void(std::vector< color::rgba > colors) > * signalColorsSet ()
 
virtual ~IColorO ()
 

Private Member Functions

bool recover ()
 
bool sendDMX (uint16_t start, const char *buf, unsigned int length)
 

Private Attributes

int _led_offset
 
SerialIO_serialIO
 
std::stringstream _ssOut
 

Static Private Attributes

static const unsigned int HEADER_SIZE = 4
 
static const unsigned int MAX_CHANNELS = 255
 

Additional Inherited Members

- Protected Attributes inherited from IColorO
bool _initialized
 
int _invertMask
 
int _num_leds
 
boost::signals2::signal< void(color::rgba color)> m_sigColorSet
 
boost::signals2::signal< void(std::vector< color::rgba > colors) > m_sigColorsSet
 

Detailed Description

Definition at line 27 of file stageprofi.h.

Constructor & Destructor Documentation

StageProfi::StageProfi ( SerialIO serialIO,
unsigned int  leds,
int  led_offset 
)

Definition at line 24 of file stageprofi.cpp.

StageProfi::~StageProfi ( )
virtual

Definition at line 31 of file stageprofi.cpp.

Member Function Documentation

bool StageProfi::init ( )
virtual

Implements IColorO.

Definition at line 35 of file stageprofi.cpp.

bool StageProfi::recover ( )
private

Definition at line 166 of file stageprofi.cpp.

bool StageProfi::sendDMX ( uint16_t  start,
const char *  buf,
unsigned int  length 
)
private

Definition at line 142 of file stageprofi.cpp.

void StageProfi::setColor ( color::rgba  color)
virtual

Implements IColorO.

Definition at line 55 of file stageprofi.cpp.

void StageProfi::setColorMulti ( std::vector< color::rgba > &  colors)
virtual

Implements IColorO.

Definition at line 94 of file stageprofi.cpp.

Member Data Documentation

int StageProfi::_led_offset
private

Definition at line 41 of file stageprofi.h.

SerialIO* StageProfi::_serialIO
private

Definition at line 39 of file stageprofi.h.

std::stringstream StageProfi::_ssOut
private

Definition at line 40 of file stageprofi.h.

const unsigned int StageProfi::HEADER_SIZE = 4
staticprivate

Definition at line 42 of file stageprofi.h.

const unsigned int StageProfi::MAX_CHANNELS = 255
staticprivate

Definition at line 43 of file stageprofi.h.


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


cob_light
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:40