colorchannel.h
Go to the documentation of this file.
#pragma once
#include "options.h"
#include <abstractout.h>
#include <item.h>
class colorChannel : public abstractOut {
public:
colorChannel(Item * _item):abstractOut(_item) {
iaddr = item->getArg(); //Once retrieve and store base address
if (iaddr<0) iaddr=-iaddr;
numArgs = item->getArgCount(); // and how many addresses is configured
};
int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) override;
int getDefaultStorageType()override;
virtual int PixelCtrl(itemCmd cmd, char* subItem=NULL, bool show=true ) =0;
short getChannelAddr(short n =0);
// int isActive() override;
protected:
short iaddr;
short numArgs;
};
itemCmd
Definition: itemCmd.h:153
Item::getArg
int getArg(short n=0)
Definition: item.cpp:329
colorChannel::getChannelAddr
short getChannelAddr(short n=0)
Definition: colorchannel.cpp:12
colorChannel::numArgs
short numArgs
Definition: colorchannel.h:24
options.h
abstractOut
Definition: abstractout.h:8
colorChannel::Ctrl
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true) override
Definition: colorchannel.cpp:47
colorChannel
Definition: colorchannel.h:9
colorChannel::iaddr
short iaddr
Definition: colorchannel.h:23
Item
Definition: item.h:104
abstractout.h
colorChannel::getDefaultStorageType
int getDefaultStorageType() override
Definition: colorchannel.cpp:20
colorChannel::colorChannel
colorChannel(Item *_item)
Definition: colorchannel.h:12
abstractOut::item
Item * item
Definition: abstractout.h:18
colorChannel::PixelCtrl
virtual int PixelCtrl(itemCmd cmd, char *subItem=NULL, bool show=true)=0
Item::getArgCount
short getArgCount()
Definition: item.cpp:361
item.h