FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
ClariusStreamer.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #include <thread>
5 
6 struct _ClariusProcessedImageInfo;
7 struct _ClariusPosInfo;
8 
9 
10 namespace fast {
11 
12 class FAST_EXPORT ClariusStreamer : public Streamer {
14  public:
15  void setConnectionAddress(std::string ipAddress);
16  void setConnectionPort(int port);
17  void stop();
18  ~ClariusStreamer();
19  uint getNrOfFrames();
20  void newImageFn(const void* newImage, const _ClariusProcessedImageInfo* nfo, int npos, const _ClariusPosInfo* pos);
21  void toggleFreeze();
22  void increaseDepth();
23  void decreaseDepth();
27  void setDepth(float depth);
31  void setGain(float gain);
32  void loadAttributes() override;
33  private:
35  void execute();
36  void generateStream() override {};
37 
38  bool mStreamIsStarted;
39  bool mFirstFrameIsInserted;
40  bool mStop;
41  bool mGrayscale;
42  std::string mIPAddress = "192.168.1.1";
43  int mPort = 5828;
44  uint mNrOfFrames;
45 
46  std::mutex mFirstFrameMutex;
47  std::condition_variable mFirstFrameCondition;
48 };
49 
50 }
fast::Streamer
Definition: Streamer.hpp:19
Streamer.hpp
fast
Definition: AffineTransformation.hpp:7
FAST_OBJECT
#define FAST_OBJECT(className)
Definition: Object.hpp:9
fast::ClariusStreamer
Definition: ClariusStreamer.hpp:12
uint
unsigned int uint
Definition: DataTypes.hpp:16