shapeworks::StudioUtils
Utilities for Studio.
#include <StudioUtils.h>
Public Functions
Name | |
---|---|
bool | ask_multiple_domains_as_single(QWidget * parent, std::shared_ptr< Project > project) |
QStringList | to_string_list(std::vector< std::string > vector) convert a vector of std::string to QStringList |
QImage | vtk_image_to_qimage(vtkSmartPointer< vtkImageData > image_data) convert vtkImageData to QImage |
vtkSmartPointer< vtkPolyData > | reverse_poly_data(vtkSmartPointer< vtkPolyData > poly_data) reverse a poly data |
QString | get_platform_string() return platform string |
void | add_viewport_border(vtkRenderer * renderer, double * color, double line_width =6.0) add a color border to a viewport |
bool | write_mesh(vtkSmartPointer< vtkPolyData > poly_data, QString filename) write a mesh to file |
void | brightness_contrast_to_window_width_level(double brightness, double contrast, double min_intensity, double max_intensity, double & window_width, double & window_level) convert brightness and contrast to window width and level |
void | window_width_level_to_brightness_contrast(double window_width, double window_level, double min_intensity, double max_intensity, double & brightness, double & contrast) convert window width and level to brightness and contrast |
Public Functions Documentation
function ask_multiple_domains_as_single
static bool ask_multiple_domains_as_single(
QWidget * parent,
std::shared_ptr< Project > project
)
function to_string_list
static QStringList to_string_list(
std::vector< std::string > vector
)
convert a vector of std::string to QStringList
function vtk_image_to_qimage
static QImage vtk_image_to_qimage(
vtkSmartPointer< vtkImageData > image_data
)
convert vtkImageData to QImage
function reverse_poly_data
static vtkSmartPointer< vtkPolyData > reverse_poly_data(
vtkSmartPointer< vtkPolyData > poly_data
)
reverse a poly data
function get_platform_string
static QString get_platform_string()
return platform string
function add_viewport_border
static void add_viewport_border(
vtkRenderer * renderer,
double * color,
double line_width =6.0
)
add a color border to a viewport
function write_mesh
static bool write_mesh(
vtkSmartPointer< vtkPolyData > poly_data,
QString filename
)
write a mesh to file
function brightness_contrast_to_window_width_level
static void brightness_contrast_to_window_width_level(
double brightness,
double contrast,
double min_intensity,
double max_intensity,
double & window_width,
double & window_level
)
convert brightness and contrast to window width and level
function window_width_level_to_brightness_contrast
static void window_width_level_to_brightness_contrast(
double window_width,
double window_level,
double min_intensity,
double max_intensity,
double & brightness,
double & contrast
)
convert window width and level to brightness and contrast
Updated on 2024-03-17 at 12:58:44 -0600