open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Public Member Functions | Static Public Attributes | List of all members
iAMagicLens Class Reference

Provides magic lens functionality for a given vtk render window, which can have up to eight lenses into other datasets. More...

#include <iAMagicLens.h>

Collaboration diagram for iAMagicLens:

Public Types

enum  ViewMode { CENTERED, OFFSET }
 

Public Member Functions

void addInput (vtkImageReslice *reslicer, vtkScalarsToColors *cTF, QString const &name)
 
qreal frameWidth () const
 
 iAMagicLens ()
 
bool isEnabled ()
 
double opacity () const
 
void render ()
 
void setEnabled (bool isEnabled)
 shows or hides the magic lens More...
 
void setFrameWidth (qreal frameWidth)
 
void setInterpolate (bool on)
 
void setLensCount (int count)
 
void setOpacity (double opacity)
 
void setRenderWindow (vtkGenericOpenGLRenderWindow *renderWindow)
 
void setSize (int newSize)
 
void setSrcWindowEnabled (bool enabled)
 
void setViewMode (ViewMode mode)
 
int size () const
 
void updateColors ()
 
void updatePosition (vtkCamera *cam, double const lensPos[3], int const mousePos[2])
 
ViewMode viewMode () const
 

Static Public Attributes

static const double DefaultFrameWidth = 5
 
static const int OffsetModeXOffset = 10
 

Detailed Description

Provides magic lens functionality for a given vtk render window, which can have up to eight lenses into other datasets.

Member Enumeration Documentation

◆ ViewMode

Enumerator
CENTERED 
OFFSET 

Constructor & Destructor Documentation

◆ iAMagicLens()

iAMagicLens::iAMagicLens ( )

Member Function Documentation

◆ addInput()

void iAMagicLens::addInput ( vtkImageReslice *  reslicer,
vtkScalarsToColors *  cTF,
QString const &  name 
)

◆ frameWidth()

qreal iAMagicLens::frameWidth ( ) const

◆ isEnabled()

bool iAMagicLens::isEnabled ( )

◆ opacity()

double iAMagicLens::opacity ( ) const

◆ render()

void iAMagicLens::render ( )

◆ setEnabled()

void iAMagicLens::setEnabled ( bool  isEnabled)

shows or hides the magic lens

◆ setFrameWidth()

void iAMagicLens::setFrameWidth ( qreal  frameWidth)

◆ setInterpolate()

void iAMagicLens::setInterpolate ( bool  on)

◆ setLensCount()

void iAMagicLens::setLensCount ( int  count)

◆ setOpacity()

void iAMagicLens::setOpacity ( double  opacity)

◆ setRenderWindow()

void iAMagicLens::setRenderWindow ( vtkGenericOpenGLRenderWindow *  renderWindow)

◆ setSize()

void iAMagicLens::setSize ( int  newSize)

◆ setSrcWindowEnabled()

void iAMagicLens::setSrcWindowEnabled ( bool  enabled)

◆ setViewMode()

void iAMagicLens::setViewMode ( ViewMode  mode)

◆ size()

int iAMagicLens::size ( ) const

◆ updateColors()

void iAMagicLens::updateColors ( )

◆ updatePosition()

void iAMagicLens::updatePosition ( vtkCamera *  cam,
double const  lensPos[3],
int const  mousePos[2] 
)

◆ viewMode()

iAMagicLens::ViewMode iAMagicLens::viewMode ( ) const

Member Data Documentation

◆ DefaultFrameWidth

const double iAMagicLens::DefaultFrameWidth = 5
static

◆ OffsetModeXOffset

const int iAMagicLens::OffsetModeXOffset = 10
static

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