forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IntelRealSense#6679 from dorodnic/calib_ui
UI Enhancements
- Loading branch information
Showing
19 changed files
with
3,431 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
|
||
#include <librealsense2/rs.hpp> | ||
#include "ux-window.h" | ||
|
||
namespace librealsense | ||
{ | ||
struct float3x3; | ||
} | ||
|
||
namespace rs2 | ||
{ | ||
class calibration_model | ||
{ | ||
public: | ||
calibration_model(rs2::device dev); | ||
|
||
bool supports(); | ||
|
||
void update(ux_window& window, std::string& error_message); | ||
|
||
void open() { to_open = true; } | ||
|
||
private: | ||
void draw_float4x4(std::string name, librealsense::float3x3& feild, const librealsense::float3x3& original, bool& changed); | ||
void draw_float(std::string name, float& x, const float& orig, bool& changed); | ||
|
||
rs2::device dev; | ||
bool to_open = false; | ||
bool _accept = false; | ||
|
||
std::vector<uint8_t> _calibration; | ||
std::vector<uint8_t> _original; | ||
|
||
int selected_resolution = 0; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.