SelectableImageViewer Class Reference

A clickable, i.e. selectable, visionx::ImageViewerArea. More...

#include <VisionX/libraries/SelectableImageViewer/SelectableImageViewer.h>

+ Inheritance diagram for SelectableImageViewer:

Signals

void selected ()
 Signals that a pixel was selected in the image viewer. More...
 
void selected (int imageIndex, float x, float y)
 Signals that a pixel was selected in the image viewer. More...
 

Public Member Functions

void mousePressEvent (QMouseEvent *ev) override
 
 SelectableImageViewer (QWidget *parent=0)
 
- Public Member Functions inherited from ImageViewerArea
IceUtil::Time getDisplayDelay () const
 
Vec2d getScaledImageDimensions ()
 
IceUtil::Time getTimeDisplayed () const
 
 ImageViewerArea (QWidget *parent=0)
 
void setImages (int numberImages, CByteImage **images, IceUtil::Time imageTimestamp, IceUtil::Time receiveTimestamp)
 
 ~ImageViewerArea () override
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Additional Inherited Members

- Protected Slots inherited from ImageViewerArea
void updateImage (long timeReceived)
 
- Protected Member Functions inherited from ImageViewerArea
int getNumberImages ()
 
void paintEvent (QPaintEvent *pPaintEvent) override
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

A clickable, i.e. selectable, visionx::ImageViewerArea.

The SelectableImageViewer is a visionx::ImageViewerArea which can be clicked on to make a selection in the displayed image

Definition at line 44 of file SelectableImageViewer.h.

Constructor & Destructor Documentation

◆ SelectableImageViewer()

SelectableImageViewer ( QWidget *  parent = 0)
explicit

Definition at line 28 of file SelectableImageViewer.cpp.

Member Function Documentation

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent *  ev)
override

Definition at line 33 of file SelectableImageViewer.cpp.

+ Here is the call graph for this function:

◆ selected [1/2]

void selected ( )
signal

Signals that a pixel was selected in the image viewer.

+ Here is the caller graph for this function:

◆ selected [2/2]

void selected ( int  imageIndex,
float  x,
float  y 
)
signal

Signals that a pixel was selected in the image viewer.

Parameters
imageIndexthe index of the selected image, in [0 .. numImages-1]
xthe relative x coordinate, in [0 .. 1)
ythe relative y coordinate, in [0 .. 1)

The documentation for this class was generated from the following files: