This example requires Qt5 >= 5.9 setup for building.
11#include <cvb/ui/image_view.hpp>
12#include <cvb/async/single_stream_handler.hpp>
13#include <cvb/async/async.hpp>
14#include <cvb/image.hpp>
15#include <cvb/driver/stream.hpp>
16#include <cvb/device_factory.hpp>
22int main(
int argc,
char* argv[])
29 auto path = Cvb::InstallPath();
30 path += CVB_LIT(
"drivers/CVMock.vin");
35 path =
Cvb::String(inputPath.begin(), inputPath.end());
39 path = Cvb::ExpandPath(path);
54 auto stream = device->Stream();
static std::unique_ptr< SingleStreamHandler > Create(const Driver::StreamPtr &stream)
Create a stream handler object.
Definition: decl_single_stream_handler.hpp:46
Handler guard object to safely run and finish a stream handler.
Definition: decl_multi_stream_handler.hpp:290
static std::shared_ptr< T > Open(const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin)
Opens a device with the given provider with its default board and port (if applicable).
Definition: decl_device_factory.hpp:50
View to display an image.
Definition: decl_image_view.hpp:75
void SetUploadMode(Cvb::UI::UploadMode uploadMode)
Set the current upload mode.
Definition: decl_image_view.hpp:354
void Refresh(Cvb::UI::RefreshMode refreshMode)
Refresh the view using a specified mode.
Definition: detail_image_view.hpp:68
void SetRenderEngine(Cvb::UI::RenderEngine renderEngine)
Set the current render engine.
Definition: detail_image_view.hpp:238
std::string String
String for wide characters or unicode characters.
Definition: string.hpp:45