Zivid  1.0.1+3607.8a7510c4
Zivid API
CloudVisualizer.h
Go to the documentation of this file.
1 /*[
2  * This file is part of the Zivid 3D Camera API
3  *
4  * Copyright 2015-2018 (C) Zivid Labs. All rights reserved.
5  * Contact info@zividlabs.com or see http://www.zividlabs.com
6  *
7  * This code is proprietary and confidential.
8  * Unauthorized copying of this file, via any medium is strictly prohibited.
9 ]*/
10 
11 #pragma once
12 
19 #include "PointCloud.h"
20 #include "DeviceCloud.h"
21 #include "ComputeDevice.h"
22 #include "APIExport.h"
23 #include "Frame.h"
24 #include <memory>
25 #include <string>
26 
27 class QCoreApplication;
28 
29 namespace Zivid
30 {
31  class DX11PointCloudWidget;
32  class DX11MainWindow;
33 
36  {
37  public:
39  ZIVID_VIS3D CloudVisualizer();
41  ZIVID_VIS3D ~CloudVisualizer();
42  ZIVID_VIS3D CloudVisualizer(const CloudVisualizer &) = delete;
43  ZIVID_VIS3D CloudVisualizer(CloudVisualizer &&) = delete;
44  ZIVID_VIS3D CloudVisualizer &operator=(const CloudVisualizer &) = delete;
45  ZIVID_VIS3D CloudVisualizer &operator=(CloudVisualizer &&) = delete;
46 
48  ZIVID_VIS3D void show();
49 
51  ZIVID_VIS3D void hide();
52 
57  ZIVID_VIS3D int run();
58 
60  ZIVID_VIS3D void resize(int h, int w);
61 
63  ZIVID_VIS3D void resetToFit();
64 
66  ZIVID_VIS3D void showFullScreen();
67 
69  ZIVID_VIS3D void showMaximized();
70 
72  ZIVID_VIS3D void setWindowTitle(std::string title);
73 
80  ZIVID_VIS3D ComputeDevice computeDevice();
81 
83  ZIVID_VIS3D void show(const DeviceCloud& dCloud);
84 
86  ZIVID_VIS3D void show(const PointCloud& cloud);
87 
89  ZIVID_VIS3D void show(const Frame& frame);
90 
92  ZIVID_VIS3D void enableColors(bool enable);
93 
95  ZIVID_VIS3D bool colorsEnabled() const;
96 
98  ZIVID_VIS3D void enableMeshing(bool enable);
99 
101  ZIVID_VIS3D bool isMeshingEnabled() const;
102 
103  private:
104  DX11MainWindow* m_window;
105  QCoreApplication* m_app;
106  DX11PointCloudWidget* m_widget;
107  };
108 }
ZIVID_VIS3D CloudVisualizer()
Constructor.
ZIVID_VIS3D void setWindowTitle(std::string title)
Set the window title.
ZIVID_VIS3D void enableColors(bool enable)
Enable or disable coloring of the points with their accompanying RGB colors.
Include file with data type definitions for an organized point cloud.
Point cloud on the Compute device
ZIVID_VIS3D void show()
Show the visualization window.
A point cloud with x,y,z, contrast and color data laid out on a 2D grid.
Definition: PointCloud.h:28
Definition: Application.h:19
ZIVID_VIS3D void enableMeshing(bool enable)
Enable or disable meshing.
Definitions for export of DLL interfaces
ZIVID_VIS3D void resetToFit()
Reset the camera so that the contents will fit in the window.
A frame captured by a Zivid camera
Definition: Frame.h:36
Point cloud on the Compute device.
Definition: DeviceCloud.h:31
A frame captured by a Zivid camera
ZIVID_VIS3D void showFullScreen()
Show the window in full screen mode.
ZIVID_VIS3D ~CloudVisualizer()
Destructor.
ZIVID_VIS3D int run()
Run the event loop.
ZIVID_VIS3D void showMaximized()
Show the window in maximized mode.
ZIVID_VIS3D void resize(int h, int w)
Resize the window to specified height and width.
ZIVID_VIS3D bool isMeshingEnabled() const
Whether meshing is enabled.
An instance of the point cloud visualizer.
Definition: CloudVisualizer.h:35
ZIVID_VIS3D bool colorsEnabled() const
Whether coloring of the points with their accompanying RGB colors is enabled.
A Compute device on which to allocate a device point cloud
A Compute device on which to allocate a device point cloud.
Definition: ComputeDevice.h:28
ZIVID_VIS3D void hide()
Hide the visualization window.
ZIVID_VIS3D ComputeDevice computeDevice()
Get the compute device associated with this view.