Provides basic inline viewing capatibilities for debugging purposes.
More...
|
typedef int | reme_viewer_t |
| Handle referencing a viewer object. More...
|
|
reme_error_t | reme_viewer_create_image (reme_context_t c, const char *title, reme_viewer_t *v) |
| Create viewer for viewing multiple images. More...
|
|
reme_error_t | reme_viewer_create_surface (reme_context_t c, reme_surface_t s, const char *title, reme_viewer_t *v) |
| Create viewer for specific surface. More...
|
|
reme_error_t | reme_viewer_create_volume (reme_context_t c, reme_volume_t vol, reme_sensor_t s, const char *title, reme_viewer_t *v) |
| Create viewer for specific volume. More...
|
|
reme_error_t | reme_viewer_destroy (reme_context_t c, reme_viewer_t *v) |
| Destroy a previously created viewer object. More...
|
|
reme_error_t | reme_viewer_add_image (reme_context_t c, reme_viewer_t v, reme_image_t i) |
| Add image to be displayed. More...
|
|
reme_error_t | reme_viewer_update (reme_context_t c, reme_viewer_t v) |
| Update viewer content. More...
|
|
reme_error_t | reme_viewer_is_closed (reme_context_t c, reme_viewer_t v, bool *closed) |
| Test if the viewer is closed. More...
|
|
reme_error_t | reme_viewer_wait (reme_context_t c, reme_viewer_t v) |
| Update viewer content until the user closes the viewer. More...
|
|
Provides basic inline viewing capatibilities for debugging purposes.
This module provides basic inline viewing capatibilities for debugging purposes. You should not rely on this functionality in production code. It is meant for debugging and rapid prototype purposes. Viewing will lower the performance of the system. See the example below for basic usage
printf("Starting reconstruction. Close the viewer window to stop.\n");
bool viewer_done = false;
}
}
◆ reme_viewer_t
Handle referencing a viewer object.
Basic viewing of sensor and reconstruction outputs is provided through this SDK as an debugging functionality. You should not rely on its presence, as it might get dropped in later versions of this SDK.
◆ reme_viewer_create_image()
Create viewer for viewing multiple images.
- Parameters
-
c | A valid context object |
title | Window title |
v | A pointer to the resulting viewer object |
- Return values
-
- Examples:
- example_reconstructmesdk_bust.cpp, example_reconstructmesdk_calibration.cpp, example_reconstructmesdk_color_tracking.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_image.cpp, example_reconstructmesdk_marker.cpp, example_reconstructmesdk_one_minute.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, example_reconstructmesdk_recorder.cpp, example_reconstructmesdk_remote_reconstruction.cpp, example_reconstructmesdk_scan_tilt.cpp, example_reconstructmesdk_sensor.cpp, example_reconstructmesdk_sensor_external.cpp, example_reconstructmesdk_sensor_multi_independent.cpp, example_reconstructmesdk_sensor_printing.cpp, example_reconstructmesdk_sensor_threaded.cpp, example_reconstructmesdk_surface.cpp, and example_reconstructmesdk_volume.cpp.
◆ reme_viewer_create_surface()
◆ reme_viewer_create_volume()
Create viewer for specific volume.
Directly renders the volume content and allows camera manipulation similar to reme_viewer_create_surface. If colorization is supported, the content is rendered using the recorded colors. Otherwise, the content is rendered using normalmap shading.
On average this viewer requires less memory to render than reme_viewer_create_surface, plus is can be updated in real-time. This allows real-time visualization of volume changes. By using manipulating the camera position the entire volume can be inspected in real-time.
The initial camera position is chosen so that the entire volume (not only its content, but its bounds) is in view. The resolution and the view frustum is defined by the intrinsic parameters delivered by the provided sensor.
- Parameters
-
c | A valid context object |
vol | A valid volume object |
s | A valid sensor object |
title | Window title |
v | A pointer to the resulting viewer object |
- Return values
-
- Examples:
- example_reconstructmesdk_color_tracking.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_csg.cpp, and example_reconstructmesdk_sensor_external.cpp.
◆ reme_viewer_destroy()
Destroy a previously created viewer object.
- Parameters
-
c | A pointer to a valid context object |
v | A mutable pointer to a valid viewer handle to destroy |
- Return values
-
◆ reme_viewer_add_image()
Add image to be displayed.
- Parameters
-
c | A valid context object |
v | A valid viewer object |
i | A valid image object |
- Return values
-
- Examples:
- example_reconstructmesdk_bust.cpp, example_reconstructmesdk_calibration.cpp, example_reconstructmesdk_color_tracking.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_image.cpp, example_reconstructmesdk_marker.cpp, example_reconstructmesdk_one_minute.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, example_reconstructmesdk_recorder.cpp, example_reconstructmesdk_remote_reconstruction.cpp, example_reconstructmesdk_scan_tilt.cpp, example_reconstructmesdk_sensor.cpp, example_reconstructmesdk_sensor_external.cpp, example_reconstructmesdk_sensor_multi_independent.cpp, example_reconstructmesdk_sensor_printing.cpp, example_reconstructmesdk_sensor_threaded.cpp, example_reconstructmesdk_surface.cpp, and example_reconstructmesdk_volume.cpp.
◆ reme_viewer_update()
Update viewer content.
Updates the content of the given viewer for a single frame.
- Parameters
-
c | A valid context object |
v | A valid viewer object |
- Return values
-
- Examples:
- example_reconstructmesdk_bust.cpp, example_reconstructmesdk_calibration.cpp, example_reconstructmesdk_color_tracking.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_image.cpp, example_reconstructmesdk_marker.cpp, example_reconstructmesdk_one_minute.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, example_reconstructmesdk_recorder.cpp, example_reconstructmesdk_remote_reconstruction.cpp, example_reconstructmesdk_scan_tilt.cpp, example_reconstructmesdk_sensor.cpp, example_reconstructmesdk_sensor_external.cpp, example_reconstructmesdk_sensor_multi_independent.cpp, example_reconstructmesdk_sensor_printing.cpp, example_reconstructmesdk_sensor_threaded.cpp, example_reconstructmesdk_surface.cpp, and example_reconstructmesdk_volume.cpp.
◆ reme_viewer_is_closed()
◆ reme_viewer_wait()
Update viewer content until the user closes the viewer.
Blocks the calling thread until the user closes the viewer.
- Parameters
-
c | A valid context object |
v | A valid viewer object |
- Return values
-
- Examples:
- example_reconstructmesdk_bust.cpp, example_reconstructmesdk_color_tracking.cpp, example_reconstructmesdk_colorize.cpp, example_reconstructmesdk_csg.cpp, example_reconstructmesdk_marker.cpp, example_reconstructmesdk_one_minute.cpp, example_reconstructmesdk_point_and_shoot_with_colors.cpp, example_reconstructmesdk_remote_reconstruction.cpp, example_reconstructmesdk_sensor.cpp, example_reconstructmesdk_sensor_external.cpp, example_reconstructmesdk_sensor_multi_independent.cpp, and example_reconstructmesdk_surface.cpp.