35 #include <QtOpenGL/QGLWidget> 70 friend class OSDGLButton;
73 class OutputBufferCapturer;
97 virtual void initializeGL();
100 virtual void resizeGL(
int w,
int h);
103 virtual void paintGL();
106 virtual void paintEvent(QPaintEvent *e);
111 virtual void setVisible(
bool visible);
114 void setFitMode(fitmode fm);
117 void setRangeMode(rangemode rm);
120 void setBCI(
int brightness,
int contrast,
int intensity);
127 utils::Size getImageSize(
bool fromGUIThread =
false);
130 utils::Rect getImageRect(
bool fromGUIThread =
false);
133 fitmode getFitMode();
136 rangemode getRangeMode();
139 std::vector<std::string> getImageInfo();
161 void registerCallback(
const GUI::Callback &cb,
const std::string &eventList =
"drag,press");
164 void removeCallbacks();
171 virtual bool event(QEvent *event);
177 void setMenuEnabled(
bool enabled);
180 void setImageInfoIndicatorEnabled(
bool enabled);
183 void setShowNoImageWarnings(
bool showWarnings);
193 void setFullScreenMode(
bool on,
int screen=-1);
213 void addSpecialToggleButton(
const std::string &
id,
216 bool initiallyToggled = 0,
218 const std::string &toolTipText=
"");
222 void addSpecialButton(
const std::string &
id,
225 const std::string &toolTipText=
"");
230 void setInfoText(
const std::string &
text);
233 void removeSpecialButton(
const std::string &
id);
238 void setAutoRenderOnSetImage(
bool on);
253 void specialButtonClicked(
const std::string &
id);
256 void specialButtonToggled(
const std::string &
id,
bool down);
271 void startRecording(
const std::string &outputDevice,
272 const std::string &outputInfo,
273 bool framebuffer=
true,
int frameskip=0,
274 bool setParamsOnlyButDoNotStartRecording=
false);
281 const std::string &handle=
"default");
284 void unregisterRecordingCallback(
const std::string &handle=
"default");
289 void showInfoDialog();
296 virtual void mousePressEvent(QMouseEvent *e);
297 virtual void mouseReleaseEvent(QMouseEvent *e);
298 virtual void mouseMoveEvent(QMouseEvent *e);
299 virtual void enterEvent(QEvent *e);
300 virtual void leaveEvent(QEvent *e);
301 virtual void resizeEvent(QResizeEvent *e);
302 virtual void wheelEvent(QWheelEvent *e);
303 virtual void hideEvent(QHideEvent *e);
305 virtual void keyPressEvent(QKeyEvent *event);
309 void setMenuEmbedded(
bool embedded);
311 void bciModeChanged(
int modeIdx);
312 void brightnessChanged(
int val);
313 void contrastChanged(
int val);
314 void intensityChanged(
int val);
316 void scaleModeChanged(
int modeIdx);
317 void currentChannelChanged(
int modeIdx);
319 void captureCurrentImage();
320 void captureCurrentFrameBuffer();
322 void recordButtonToggled(
bool checked);
323 void pauseButtonToggled(
bool checked);
324 void stopButtonClicked();
325 void skipFramesChanged(
int frameSkip);
326 void menuTabChanged(
int index);
327 void histoPanelParamChanged();
329 void setEmbeddedZoomModeEnabled(
bool enabled);
331 void setLinInterpolationEnabled(
bool enabled);
333 void setShowPixelGridEnabled(
bool enabled);
335 void setRangeModeNormalOrScaled(
bool enabled);
337 void showBackgroundColorDialog();
338 void showGridColorDialog();
339 void setGridAlpha(
int alpha);
340 void setBackgroundBlack();
341 void setBackgroundWhite();
342 void setBackgroundGray();
352 std::string getImageCaptureFileName();
355 void updateInfoTab();
358 void rebufferImageInternal();
undocument this line if you encounter any issues!
Definition: Any.h:37
MouseEventType
list of supported mouse event types
Definition: MouseEvent.h:48
ICLQt_API void text(ImgQ &image, int x, int y, const string &text)
renders a text into an image (only available with Qt-Support)
General Implementation for binary functions.
Definition: Function.h:47
Size class of the ICL.
Definition: Size.h:61
Definition: ImageStatistics.h:42
MouseEvent Handler.
Definition: MouseHandler.h:92
#define ICLQt_API
Definition: CompatMacros.h:178
Provided by interface MouseGrabber.
Definition: MouseEvent.h:86
pure virtual Paint engine interface
Definition: PaintEngine.h:49
Rectangle class of the ICL used e.g. for the Images ROI-rect.
Definition: Rect.h:95
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131