41 #include <boost/function.hpp> 42 #include <boost/thread.hpp> 68 :
std::runtime_error(msg), error_code(code)
117 static const size_t DEFAULT_BUFFER_SIZE = 4;
119 Camera(
unsigned long guid,
size_t bufferSize = DEFAULT_BUFFER_SIZE);
120 Camera(
const char* ip_address,
size_t bufferSize = DEFAULT_BUFFER_SIZE);
125 void setFrameCallback(boost::function<
void (
tPvFrame*)> callback);
126 void setFrameRate(tPvFloat32 frame_rate);
128 void setKillCallback(boost::function<
void (
unsigned long)> callback);
137 tPvFrame* grab(
unsigned long timeout_ms = PVINFINITE);
141 void setWhiteBalance(
unsigned int blue,
unsigned int red,
144 void setRoi(
unsigned int x,
unsigned int y,
145 unsigned int width,
unsigned int height);
146 void setRoiToWholeFrame();
147 void setBinning(
unsigned int binning_x = 1,
unsigned int binning_y = 1);
150 bool hasAttribute(
const std::string &name);
153 void getAttributeEnum(
const std::string &name, std::string &value);
154 void getAttribute(
const std::string &name, tPvUint32 &value);
155 void getAttribute(
const std::string &name, tPvFloat32 &value);
156 void getAttribute(
const std::string &name, std::string &value);
158 void setAttributeEnum(
const std::string &name,
const std::string &value);
159 void setAttribute(
const std::string &name, tPvUint32 value);
160 void setAttribute(
const std::string &name, tPvFloat32 value);
161 void setAttribute(
const std::string &name,
const std::string &value);
163 void runCommand(
const std::string& name);
165 unsigned long guid();
167 unsigned long getMaxDataRate();
168 static const unsigned long GIGE_MAX_DATA_RATE = 115000000;
171 static const size_t USER_MEMORY_SIZE = 512;
172 void writeUserMemory(
const char* data,
size_t size);
173 void readUserMemory(
char* data,
size_t size);
193 static void frameDone(
tPvFrame* frame);
194 static void kill(
void* Context,
197 unsigned long UniqueId);
std::string getIPAddress(uint64_t guid)
FrameStartTriggerMode FSTmode_
uint64_t getGuid(size_t i)
std::vector< CameraInfo > listCameras()
std::string to_string(const T &t)
ProsilicaException(tPvErr code, const char *msg)
boost::function< void(tPvFrame *)> userCallback_
boost::function< void(unsigned long UniqueId)> killCallback_