Instrument Neutral Distributed Interface INDI  2.0.2
Public Types | Protected Member Functions | Protected Attributes | List of all members
INDI::LightBoxInterface Class Reference

#include <indilightboxinterface.h>

Inheritance diagram for INDI::LightBoxInterface:
DeepSkyDadFP1 Excalibur FlipFlat GIOTTO LightPanelSimulator PegasusFlatMaster SnapCap WandererCover

Public Types

enum  { FLAT_LIGHT_ON , FLAT_LIGHT_OFF }
 

Protected Member Functions

 LightBoxInterface (DefaultDevice *device, bool isDimmable)
 
virtual ~LightBoxInterface ()
 
void initLightBoxProperties (const char *deviceName, const char *groupNam)
 Initilize light box properties. It is recommended to call this function within initProperties() of your primary device. More...
 
void isGetLightBoxProperties (const char *deviceName)
 isGetLightBoxProperties Get light box properties More...
 
bool processLightBoxSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Process light box switch properties. More...
 
bool processLightBoxNumber (const char *dev, const char *name, double values[], char *names[], int n)
 Process light box number properties. More...
 
bool processLightBoxText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Process light box text properties. More...
 
bool updateLightBoxProperties ()
 
bool saveLightBoxConfigItems (FILE *fp)
 
bool snoopLightBox (XMLEle *root)
 
virtual bool SetLightBoxBrightness (uint16_t value)
 setBrightness Set light level. Must be impelemented in the child class, if supported. More...
 
virtual bool EnableLightBox (bool enable)
 EnableLightBox Turn on/off on a light box. Must be impelemented in the child class. More...
 

Protected Attributes

ISwitchVectorProperty LightSP
 
ISwitch LightS [2]
 
INumberVectorProperty LightIntensityNP
 
INumber LightIntensityN [1]
 
ITextVectorProperty ActiveDeviceTP
 
IText ActiveDeviceT [1] {}
 
INumberVectorProperty FilterIntensityNP
 
INumberFilterIntensityN
 

Detailed Description

Definition at line 46 of file indilightboxinterface.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAT_LIGHT_ON 
FLAT_LIGHT_OFF 

Definition at line 49 of file indilightboxinterface.h.

Constructor & Destructor Documentation

◆ LightBoxInterface()

LightBoxInterface::LightBoxInterface ( DefaultDevice device,
bool  isDimmable 
)
protected

Definition at line 30 of file indilightboxinterface.cpp.

◆ ~LightBoxInterface()

LightBoxInterface::~LightBoxInterface ( )
protectedvirtual

Definition at line 38 of file indilightboxinterface.cpp.

Member Function Documentation

◆ EnableLightBox()

bool LightBoxInterface::EnableLightBox ( bool  enable)
protectedvirtual

EnableLightBox Turn on/off on a light box. Must be impelemented in the child class.

Parameters
enableIf true, turn on the light, otherwise turn off the light.
Returns
True if successful, false otherwise.

Reimplemented in WandererCover, SnapCap, PegasusFlatMaster, LightPanelSimulator, GIOTTO, FlipFlat, Excalibur, and DeepSkyDadFP1.

Definition at line 201 of file indilightboxinterface.cpp.

◆ initLightBoxProperties()

void LightBoxInterface::initLightBoxProperties ( const char *  deviceName,
const char *  groupNam 
)
protected

Initilize light box properties. It is recommended to call this function within initProperties() of your primary device.

Parameters
deviceNameName of the primary device
groupNameGroup or tab name to be used to define light box properties.

Definition at line 42 of file indilightboxinterface.cpp.

◆ isGetLightBoxProperties()

void LightBoxInterface::isGetLightBoxProperties ( const char *  deviceName)
protected

isGetLightBoxProperties Get light box properties

Parameters
deviceNameparent device name

Definition at line 68 of file indilightboxinterface.cpp.

◆ processLightBoxNumber()

bool LightBoxInterface::processLightBoxNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)
protected

Process light box number properties.

Definition at line 122 of file indilightboxinterface.cpp.

◆ processLightBoxSwitch()

bool LightBoxInterface::processLightBoxSwitch ( const char *  dev,
const char *  name,
ISState states,
char *  names[],
int  n 
)
protected

Process light box switch properties.

Definition at line 93 of file indilightboxinterface.cpp.

◆ processLightBoxText()

bool LightBoxInterface::processLightBoxText ( const char *  dev,
const char *  name,
char *  texts[],
char *  names[],
int  n 
)
protected

Process light box text properties.

Definition at line 169 of file indilightboxinterface.cpp.

◆ saveLightBoxConfigItems()

bool LightBoxInterface::saveLightBoxConfigItems ( FILE *  fp)
protected

Definition at line 342 of file indilightboxinterface.cpp.

◆ SetLightBoxBrightness()

bool LightBoxInterface::SetLightBoxBrightness ( uint16_t  value)
protectedvirtual

setBrightness Set light level. Must be impelemented in the child class, if supported.

Parameters
valuelevel of light box
Returns
True if successful, false otherwise.

Reimplemented in WandererCover, SnapCap, PegasusFlatMaster, LightPanelSimulator, GIOTTO, FlipFlat, Excalibur, and DeepSkyDadFP1.

Definition at line 208 of file indilightboxinterface.cpp.

◆ snoopLightBox()

bool LightBoxInterface::snoopLightBox ( XMLEle root)
protected

Definition at line 215 of file indilightboxinterface.cpp.

◆ updateLightBoxProperties()

bool LightBoxInterface::updateLightBoxProperties ( )
protected

Definition at line 77 of file indilightboxinterface.cpp.

Member Data Documentation

◆ ActiveDeviceT

IText INDI::LightBoxInterface::ActiveDeviceT[1] {}
protected

Definition at line 108 of file indilightboxinterface.h.

◆ ActiveDeviceTP

ITextVectorProperty INDI::LightBoxInterface::ActiveDeviceTP
protected

Definition at line 107 of file indilightboxinterface.h.

◆ FilterIntensityN

INumber* INDI::LightBoxInterface::FilterIntensityN
protected

Definition at line 111 of file indilightboxinterface.h.

◆ FilterIntensityNP

INumberVectorProperty INDI::LightBoxInterface::FilterIntensityNP
protected

Definition at line 110 of file indilightboxinterface.h.

◆ LightIntensityN

INumber INDI::LightBoxInterface::LightIntensityN[1]
protected

Definition at line 104 of file indilightboxinterface.h.

◆ LightIntensityNP

INumberVectorProperty INDI::LightBoxInterface::LightIntensityNP
protected

Definition at line 103 of file indilightboxinterface.h.

◆ LightS

ISwitch INDI::LightBoxInterface::LightS[2]
protected

Definition at line 100 of file indilightboxinterface.h.

◆ LightSP

ISwitchVectorProperty INDI::LightBoxInterface::LightSP
protected

Definition at line 99 of file indilightboxinterface.h.


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