Skip to content

Studio/Utils/StudioUtils.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::StudioUtils
Utilities for Studio.

Source code

```cpp

pragma once

include

class QWidget;

include

include

include

include

class vtkImageData; class vtkRenderer; class QComboBox;

namespace shapeworks {

class Session;

class StudioUtils { public: static bool ask_multiple_domains_as_single(QWidget* parent, std::shared_ptr project);

static QStringList to_string_list(std::vector vector);

static QImage vtk_image_to_qimage(vtkSmartPointer image_data);

static vtkSmartPointer reverse_poly_data(vtkSmartPointer poly_data);

static QString get_platform_string();

static void add_viewport_border(vtkRenderer renderer, double color, double line_width = 6.0);

static bool write_mesh(vtkSmartPointer poly_data, QString filename);

static void brightness_contrast_to_window_width_level(double brightness, double contrast, double min_intensity, double max_intensity, double& window_width, double& window_level);

static void window_width_level_to_brightness_contrast(double window_width, double window_level, double min_intensity, double max_intensity, double& brightness, double& contrast);

static void update_domain_combobox(QComboBox* combobox, QSharedPointer session, const std::vector& filters = {}); };

} // namespace shapeworks ```


Updated on 2026-03-31 at 16:02:11 +0000