open_iA 2025.6
Loading...
Searching...
No Matches
iAMagicLens Class Reference

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

#include <iAMagicLens.h>

Public Types

enum  ViewMode { CENTERED , OFFSET }
 

Public Member Functions

 iAMagicLens (QColor const &bgColor)
 
void addInput (vtkImageReslice *reslicer, vtkScalarsToColors *cTF, QString const &name)
 
qreal frameWidth () const
 
bool isEnabled ()
 
double opacity () const
 
void render ()
 
void setBackgroundColor (QColor const &bgColor)
 
void setEnabled (bool isEnabled)
 shows or hides the magic lens
 
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 2D 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 ( QColor const & bgColor)

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 ( )

◆ setBackgroundColor()

void iAMagicLens::setBackgroundColor ( QColor const & bgColor)

◆ 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: