NetOceanDirect  1.31.0
OceanDirect .NET API
LightSource.h
1 #pragma once
2 #include "ManagedObject.h"
3 
4 namespace NetOceanDirect {
5 
6  public ref class LightSource : public ManagedObject<LightSourceAPI>
7  {
8  LightSource();
9  public:
10  virtual ~LightSource() {};
11  static LightSource^ getInstance();
12 
24  int getCount(long deviceID, int% errorCode);
39  bool hasEnable(long deviceID, int% errorCode, int lightSourceIndex);
54  bool isEnabled(long deviceID, int% errorCode, int lightSourceIndex);
66  void setEnable(long deviceID, int% errorCode, int lightSourceIndex, bool enable);
80  bool hasVariableIntensity(long deviceID, int% errorCode, int lightSourceIndex);
94  double getIntensity(long deviceID, int% errorCode, int lightSourceIndex);
119  void setIntensity(long deviceID, int% errorCode, int lightSourceIndex, double intensity);
128  int setLampEnable(long deviceID, int% errorCode, bool state);
129 
130  private:
131  static LightSource^ lsource;
132 
133  };
134 }
Definition: LightSource.h:7
double getIntensity(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:52
void setIntensity(long deviceID, int% errorCode, int lightSourceIndex, double intensity)
Definition: LightSource.cpp:60
void setEnable(long deviceID, int% errorCode, int lightSourceIndex, bool enable)
Definition: LightSource.cpp:39
bool hasVariableIntensity(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:45
bool hasEnable(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:25
bool isEnabled(long deviceID, int% errorCode, int lightSourceIndex)
Definition: LightSource.cpp:32
int getCount(long deviceID, int% errorCode)
Definition: LightSource.cpp:18
int setLampEnable(long deviceID, int% errorCode, bool state)
Definition: LightSource.cpp:66
Definition: ManagedObject.h:8