Slicer 5.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkImageMapToWindowLevelAddon Class Reference

Subclass of vtkImageMapToWindowLevelColors that adds the option to compress values within the window logarithmically. More...

#include <Libs/MRML/Core/vtkImageMapToWindowLevelAddon.h>

Inheritance diagram for vtkImageMapToWindowLevelAddon:
Collaboration diagram for vtkImageMapToWindowLevelAddon:

Public Types

typedef vtkImageMapToWindowLevelColors Superclass
 
enum  WindowMappingMode { Linear = 0 , Logarithmic , InverseLogarithmic }
 Window Scalar Mapping Modes. More...
 

Public Member Functions

virtual const char * GetClassName ()
 
WindowMappingMode GetMappingMode () const
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetMappingMode (vtkImageMapToWindowLevelAddon::WindowMappingMode mappingMode)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
template<typename T>
static double mapScalarToWindow (T inputValue, double rangeMin, double rangeMax, WindowMappingMode mappingMode) noexcept
 
static vtkImageMapToWindowLevelAddonNew ()
 
static vtkImageMapToWindowLevelAddonSafeDownCast (vtkObject *o)
 

Protected Member Functions

int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) override
 
 vtkImageMapToWindowLevelAddon ()
 
 ~vtkImageMapToWindowLevelAddon () override
 

Protected Attributes

WindowMappingMode MappingMode
 

Friends

template<class T>
void vtkImageMapToWindowLevelAddonExecute (vtkImageMapToWindowLevelAddon *, vtkImageData *, T *, vtkImageData *, unsigned char *, int[6], int)
 

Detailed Description

Subclass of vtkImageMapToWindowLevelColors that adds the option to compress values within the window logarithmically.

This class is a subclass of vtkImageMapToWindowLevelColors that adds optional logarithmic window compression.

In the long term, this class may be removed and the functionality added to vtkImageMapToWindowLevelColors, if it is found to be useful.

Definition at line 39 of file vtkImageMapToWindowLevelAddon.h.

Member Typedef Documentation

◆ Superclass

typedef vtkImageMapToWindowLevelColors vtkImageMapToWindowLevelAddon::Superclass

Definition at line 42 of file vtkImageMapToWindowLevelAddon.h.

Member Enumeration Documentation

◆ WindowMappingMode

Window Scalar Mapping Modes.

Enumerator
Linear 
Logarithmic 
InverseLogarithmic 

Definition at line 47 of file vtkImageMapToWindowLevelAddon.h.

Constructor & Destructor Documentation

◆ vtkImageMapToWindowLevelAddon()

vtkImageMapToWindowLevelAddon::vtkImageMapToWindowLevelAddon ( )
protected

◆ ~vtkImageMapToWindowLevelAddon()

vtkImageMapToWindowLevelAddon::~vtkImageMapToWindowLevelAddon ( )
overrideprotected

Member Function Documentation

◆ GetClassName()

virtual const char * vtkImageMapToWindowLevelAddon::GetClassName ( )
virtual

◆ GetMappingMode()

WindowMappingMode vtkImageMapToWindowLevelAddon::GetMappingMode ( ) const

Method for mapping/compressing scalar values to the window range

See also
mappingMode, SetMappingMode

◆ IsA()

virtual int vtkImageMapToWindowLevelAddon::IsA ( const char * type)
virtual

◆ IsTypeOf()

static int vtkImageMapToWindowLevelAddon::IsTypeOf ( const char * type)
static

◆ mapScalarToWindow()

template<typename T>
static double vtkImageMapToWindowLevelAddon::mapScalarToWindow ( T inputValue,
double rangeMin,
double rangeMax,
WindowMappingMode mappingMode )
inlinestaticnoexcept

Maps inputValue within [rangeMin, rangeMax] to [0, 1]. A negative window (rangeMin > rangeMax) inverts the output direction.

Definition at line 65 of file vtkImageMapToWindowLevelAddon.h.

◆ New()

static vtkImageMapToWindowLevelAddon * vtkImageMapToWindowLevelAddon::New ( )
static

◆ PrintSelf()

void vtkImageMapToWindowLevelAddon::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ RequestData()

int vtkImageMapToWindowLevelAddon::RequestData ( vtkInformation * request,
vtkInformationVector ** inputVector,
vtkInformationVector * outputVector )
overrideprotected

◆ RequestInformation()

int vtkImageMapToWindowLevelAddon::RequestInformation ( vtkInformation * ,
vtkInformationVector ** ,
vtkInformationVector *  )
overrideprotected

◆ SafeDownCast()

static vtkImageMapToWindowLevelAddon * vtkImageMapToWindowLevelAddon::SafeDownCast ( vtkObject * o)
static

◆ SetMappingMode()

void vtkImageMapToWindowLevelAddon::SetMappingMode ( vtkImageMapToWindowLevelAddon::WindowMappingMode mappingMode)

Set the method for mapping/compressing scalar values to the window range

See also
GetMappingMode

◆ ThreadedRequestData()

void vtkImageMapToWindowLevelAddon::ThreadedRequestData ( vtkInformation * request,
vtkInformationVector ** inputVector,
vtkInformationVector * outputVector,
vtkImageData *** inData,
vtkImageData ** outData,
int outExt[6],
int id )
overrideprotected

Friends And Related Symbol Documentation

◆ vtkImageMapToWindowLevelAddonExecute

template<class T>
void vtkImageMapToWindowLevelAddonExecute ( vtkImageMapToWindowLevelAddon * ,
vtkImageData * ,
T * ,
vtkImageData * ,
unsigned char * ,
int [6],
int  )
friend

Member Data Documentation

◆ MappingMode

WindowMappingMode vtkImageMapToWindowLevelAddon::MappingMode
protected

Definition at line 95 of file vtkImageMapToWindowLevelAddon.h.


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