open_iA 2024.9
Loading...
Searching...
No Matches
iAFast3DMagicLensWidget Class Referencefinal

Base class for 3D content rendering, main functionality currently: More...

#include <iAFast3DMagicLensWidget.h>

Inheritance diagram for iAFast3DMagicLensWidget:
[legend]
Collaboration diagram for iAFast3DMagicLensWidget:
[legend]

Public Types

enum  ViewMode { CENTERED , OFFSET }
 

Signals

void editSettings ()
 
void leftButtonReleasedSignal ()
 
void mouseMoved ()
 
void rightButtonReleasedSignal ()
 
void touchScale (float relScale)
 
void touchStart ()
 

Public Member Functions

 iAFast3DMagicLensWidget (QWidget *parent=nullptr)
 
 ~iAFast3DMagicLensWidget ()
 
vtkRenderer * getLensRenderer ()
 
bool isMagicLensEnabled () const
 
void magicLensOff ()
 
void magicLensOn ()
 
void setContextMenuEnabled (bool enabled)
 
void setFrameWidth (int width)
 
void setLensBackground (QColor bgTop, QColor bgBottom)
 
void setLensSize (int sizeX, int sizeY)
 
void setViewMode (ViewMode mode)
 
- Public Member Functions inherited from iAQVTKWidget
 iAQVTKWidget (QWidget *parent=nullptr)
 Creates the widget; makes sure its inner vtk render window is set, and sets an appropriate surface format.
 
bool event (QEvent *evt) override
 
void updateAll ()
 

Detailed Description

Base class for 3D content rendering, main functionality currently:

  • The ability to show a 3D magic lens where the camera of the lens adapts to the camera of the "main" view.
  • Touch-based pinch-zoom
  • context menu for triggering showing settings and switching magic lens modes
    Todo
    refactor:

Member Enumeration Documentation

◆ ViewMode

Enumerator
CENTERED 
OFFSET 

Constructor & Destructor Documentation

◆ iAFast3DMagicLensWidget()

iAFast3DMagicLensWidget::iAFast3DMagicLensWidget ( QWidget * parent = nullptr)

◆ ~iAFast3DMagicLensWidget()

iAFast3DMagicLensWidget::~iAFast3DMagicLensWidget ( )

Member Function Documentation

◆ editSettings

void iAFast3DMagicLensWidget::editSettings ( )
signal

◆ getLensRenderer()

vtkRenderer * iAFast3DMagicLensWidget::getLensRenderer ( )

◆ isMagicLensEnabled()

bool iAFast3DMagicLensWidget::isMagicLensEnabled ( ) const

◆ leftButtonReleasedSignal

void iAFast3DMagicLensWidget::leftButtonReleasedSignal ( )
signal

◆ magicLensOff()

void iAFast3DMagicLensWidget::magicLensOff ( )

◆ magicLensOn()

void iAFast3DMagicLensWidget::magicLensOn ( )

◆ mouseMoved

void iAFast3DMagicLensWidget::mouseMoved ( )
signal

◆ rightButtonReleasedSignal

void iAFast3DMagicLensWidget::rightButtonReleasedSignal ( )
signal

◆ setContextMenuEnabled()

void iAFast3DMagicLensWidget::setContextMenuEnabled ( bool enabled)

◆ setFrameWidth()

void iAFast3DMagicLensWidget::setFrameWidth ( int width)

◆ setLensBackground()

void iAFast3DMagicLensWidget::setLensBackground ( QColor bgTop,
QColor bgBottom )

◆ setLensSize()

void iAFast3DMagicLensWidget::setLensSize ( int sizeX,
int sizeY )

◆ setViewMode()

void iAFast3DMagicLensWidget::setViewMode ( ViewMode mode)

◆ touchScale

void iAFast3DMagicLensWidget::touchScale ( float relScale)
signal

◆ touchStart

void iAFast3DMagicLensWidget::touchStart ( )
signal

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