A class that can be used to display images in a window.
More...
#include <mvIMPACT_acquire_display.h>
|
| ImageDisplay & | GetImageDisplay (void) |
| | Returns a reference to the actual display object associated with this window.
|
| TPreProcessMessage | GetMessageHandler (void) const |
| | Returns the current message handler for this window.
|
| | ImageDisplayWindow (const std::string &title) |
| | Creates a new window that can be used to display image data and displays it.
|
| void | SetMessageHandler (TPreProcessMessage handler) |
| | Installs a callback to handle the window messages.
|
| void | SetRefreshTime (int time_ms) |
| | Defines the refresh time in ms.
|
| | ~ImageDisplayWindow () |
| | destroys the display window and frees resources.
|
A class that can be used to display images in a window.
Every instance of this class will create and display its own independent window. Internally it uses an instance of mvIMPACT::acquire::display::ImageDisplay to display image data. The internal display object can be accessed by calling mvIMPACT::acquire::display::ImageDisplayWindow::GetImageDisplay().
- Examples
- ContinuousCapture.cpp, ContinuousCaptureAllDevices.cpp, ContinuousCaptureAllFormats.cpp, ContinuousCaptureFFmpeg.cpp, ContinuousCaptureMultiPart.cpp, ContinuousCaptureOnlyProcessLatest.cpp, ContinuousCaptureToAVIFile.cpp, ContinuousCapture_BVS-3D-RV0.cpp, GenICamCallbackOnEvent.cpp, GenICamCommonSettingsUsage.cpp, GenICamInterfaceLayout.cpp, GenICamSmartFrameRecallUsage.cpp, SequenceCapture.cpp, SingleCapture.cpp, and SingleCaptureStorage.cpp.
◆ ImageDisplayWindow()
| ImageDisplayWindow |
( |
const std::string & | title | ) |
|
|
inlineexplicit |
Creates a new window that can be used to display image data and displays it.
This is an example of how to use the GetImageDisplay class. More details about this example.
- Parameters
-
| [in] | title | The title of the window (will be displayed in the windows title bar). |
◆ ~ImageDisplayWindow()
destroys the display window and frees resources.
◆ GetImageDisplay()
Returns a reference to the actual display object associated with this window.
◆ GetMessageHandler()
| TPreProcessMessage GetMessageHandler |
( |
void | | ) |
const |
|
inline |
◆ SetMessageHandler()
| void SetMessageHandler |
( |
TPreProcessMessage | handler | ) |
|
|
inline |
Installs a callback to handle the window messages.
- See also
- mvIMPACT::acquire::display::ImageDisplayWindow::GetMessageHandler()
- Parameters
-
| [in] | handler | Pointer to a function which is called by the windows procedure before the display update is done. If zero is passed here even the internal default handler will be disabled and WM_SIZE and WM_LBUTTONDBLCLK will no longer be handled internally. |
◆ SetRefreshTime()
| void SetRefreshTime |
( |
int | time_ms | ) |
|
|
inline |
Defines the refresh time in ms.
This function can be used to define a refresh period that - when elapsed - will automatically repaint the window.
- Parameters
-
| [in] | time_ms | The refresh period for the window in ms. Passing 0 will disable the automatic repaint behaviour. |