CustusX  15.3.4-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ThresholdPreview Class Reference

Use transfer function to preview a threshold in the selected volume. Used by widgets: segmentation and surface generation. More...

#include <cxThresholdPreview.h>

Inheritance diagram for cx::ThresholdPreview:

Public Member Functions

 ThresholdPreview ()
 
void setPreview (ImagePtr image, double lower)
 
void setPreview (ImagePtr image, const Eigen::Vector2d &threshold)
 
void removePreview ()
 

Detailed Description

Use transfer function to preview a threshold in the selected volume. Used by widgets: segmentation and surface generation.

Date
12. okt. 2011
Author
Ole Vegard Solberg, SINTEF

Definition at line 55 of file cxThresholdPreview.h.

Constructor & Destructor Documentation

cx::ThresholdPreview::ThresholdPreview ( )

-----------------------------------------------------—


Definition at line 49 of file cxThresholdPreview.cpp.

Member Function Documentation

void cx::ThresholdPreview::removePreview ( )

Definition at line 128 of file cxThresholdPreview.cpp.

void cx::ThresholdPreview::setPreview ( ImagePtr  image,
double  lower 
)

Definition at line 71 of file cxThresholdPreview.cpp.

void cx::ThresholdPreview::setPreview ( ImagePtr  image,
const Eigen::Vector2d &  threshold 
)

Apply the preview transfer function

A timer is added that will the remove the preview when the calling widget is no longer visible.

Parameters
imageThe image to modify the transfer function of
setValueThe threshold value to be used

Definition at line 87 of file cxThresholdPreview.cpp.


The documentation for this class was generated from the following files: