Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SVTK_SignalHandler Class Reference

Main purpose of the class is to provide a way to customize SVTK_ViewWindow. More...

#include <SVTK_View.h>

Inheritance diagram for SVTK_SignalHandler:
Inheritance graph

Public Slots

void onSelectionChanged ()
 

Signals

void MouseMove (QMouseEvent *)
 
void MouseButtonPressed (QMouseEvent *)
 
void MouseButtonReleased (QMouseEvent *)
 
void MouseDoubleClicked (QMouseEvent *)
 
void ButtonPressed (const QMouseEvent *event)
 
void ButtonReleased (const QMouseEvent *event)
 
void WheelMoved (QWheelEvent *)
 
void KeyPressed (QKeyEvent *)
 
void KeyReleased (QKeyEvent *)
 
void contextMenuRequested (QContextMenuEvent *e)
 
void selectionChanged ()
 

Public Member Functions

 SVTK_SignalHandler (SVTK_ViewWindow *theMainWindow)
 
virtual ~SVTK_SignalHandler ()
 
SVTK_ViewWindowGetMainWindow ()
 Get reference to its SVTK_ViewWindow. More...
 
void Repaint (bool theUpdateTrihedron=true)
 Redirect the request to SVTK_ViewWindow::Repaint (just for flexibility) More...
 
SVTK_RendererGetRenderer ()
 Redirect the request to SVTK_ViewWindow::GetRenderer (just for flexibility) More...
 
vtkRenderer * getRenderer ()
 Redirect the request to SVTK_ViewWindow::getRenderer (just for flexibility) More...
 

Protected Attributes

SVTK_ViewWindowmyMainWindow
 

Detailed Description

This class is initialized by SVTK_ViewWindow and just pass Qt signals from corresponding SVTK_RenderWindowInteractor of the SVTK_ViewWindow. Its main purpose is to provide a simple and flexible way to customize the SVTK_ViewWindow. So, in your own viewer it is possible to derive new SVTK_ViewWindow and use existing functionality without any modifications.

Constructor & Destructor Documentation

SVTK_SignalHandler::SVTK_SignalHandler ( SVTK_ViewWindow theMainWindow)

Constructor

References SVTK_ViewWindow::GetInteractor().

SVTK_SignalHandler::~SVTK_SignalHandler ( )
virtual

Destructor

Member Function Documentation

void SVTK_SignalHandler::ButtonPressed ( const QMouseEvent *  event)
signal
void SVTK_SignalHandler::ButtonReleased ( const QMouseEvent *  event)
signal
void SVTK_SignalHandler::contextMenuRequested ( QContextMenuEvent *  e)
signal
SVTK_ViewWindow * SVTK_SignalHandler::GetMainWindow ( )
Returns
corresponding svtk main window
SVTK_Renderer * SVTK_SignalHandler::GetRenderer ( )
vtkRenderer * SVTK_SignalHandler::getRenderer ( )
void SVTK_SignalHandler::KeyPressed ( QKeyEvent *  )
signal
void SVTK_SignalHandler::KeyReleased ( QKeyEvent *  )
signal
void SVTK_SignalHandler::MouseButtonPressed ( QMouseEvent *  )
signal
void SVTK_SignalHandler::MouseButtonReleased ( QMouseEvent *  )
signal
void SVTK_SignalHandler::MouseDoubleClicked ( QMouseEvent *  )
signal
void SVTK_SignalHandler::MouseMove ( QMouseEvent *  )
signal
void SVTK_SignalHandler::onSelectionChanged ( )
slot

SLOT: called on selection change

References VTK::ActorCollectionCopy::GetActors().

void SVTK_SignalHandler::Repaint ( bool  theUpdateTrihedron = true)
void SVTK_SignalHandler::selectionChanged ( )
signal
void SVTK_SignalHandler::WheelMoved ( QWheelEvent *  )
signal

Member Data Documentation

SVTK_ViewWindow* SVTK_SignalHandler::myMainWindow
protected

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