SeaBreeze
LightSourceFeatureAdapter.h
Go to the documentation of this file.
1 /***************************************************/
33 #ifndef SEABREEZE_LIGHTSOURCEFEATUREADAPTER_H
34 #define SEABREEZE_LIGHTSOURCEFEATUREADAPTER_H
35 
38 
39 namespace seabreeze {
40  namespace api {
41 
43  : public FeatureAdapterTemplate<LightSourceFeatureInterface> {
44  public:
46  const FeatureFamily &f,
47  Protocol *p, Bus *b, unsigned short instanceIndex);
48  virtual ~LightSourceFeatureAdapter();
49 
50  int getLightSourceCount(int *errorCode);
51 
52  bool hasLightSourceEnable(int *errorCode, int lightSourceIndex);
53  bool isLightSourceEnabled(int *errorCode, int lightSourceIndex);
54  void setLightSourceEnable(int *errorCode, int lightSourceIndex,
55  bool enable);
56 
57  /* The intensity is normalized over the range [0, 1] where 0 is
58  * the minimum programmable intensity and 1 is the maximum
59  */
60  bool hasVariableIntensity(int *errorCode, int lightSourceIndex);
61  double getLightSourceIntensity(int *errorCode, int lightSourceIndex);
62  void setLightSourceIntensity(int *errorCode, int lightSourceIndex,
63  double intensity);
64  };
65 
66  }
67 }
68 
69 #endif
Definition: FeatureAdapterTemplate.h:47
Definition: Protocol.h:44
Definition: LightSourceFeatureInterface.h:40
Definition: FeatureFamily.h:39
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: LightSourceFeatureAdapter.h:42