iRoCS Toolbox  1.1.0
Public Types | Public Slots | Signals | Public Member Functions | Protected Attributes
ViewWidget Class Referenceabstract

#include <ViewWidget.hh>

Inheritance diagram for ViewWidget:
Collaboration diagram for ViewWidget:

Public Types

enum  ViewType { OrthoView, OpenGlRenderingView }
 

Public Slots

virtual void redraw ()
 This function can be implemented by ViewWidget instances to send update requests to the actual low level views. More...
 
virtual void setPositionUm (const blitz::TinyVector< double, 3 > &positionUm)
 
virtual void setShowHelperLines (bool show)
 
virtual void setSnapToVoxelGrid (bool snap)
 

Signals

void positionChanged (const blitz::TinyVector< double, 3 > &positionUm)
 

Public Member Functions

 ViewWidget (MultiChannelModel *model, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~ViewWidget ()
 
virtual void addChannel (ChannelSpecs *channel)=0
 
MultiChannelModelmodel () const
 
blitz::TinyVector< double, 3 > positionUm () const
 
virtual void removeChannel (ChannelSpecs *channel)=0
 
bool showHelperLines () const
 
bool snapToVoxelGrid () const
 
virtual ViewWidget::ViewType viewType () const =0
 

Protected Attributes

MultiChannelModelp_model
 

Detailed Description

Definition at line 41 of file ViewWidget.hh.

Member Enumeration Documentation

◆ ViewType

Enumerator
OrthoView 
OpenGlRenderingView 

Definition at line 48 of file ViewWidget.hh.

Constructor & Destructor Documentation

◆ ViewWidget()

ViewWidget::ViewWidget ( MultiChannelModel model,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

◆ ~ViewWidget()

virtual ViewWidget::~ViewWidget ( )
virtual

Member Function Documentation

◆ viewType()

virtual ViewWidget::ViewType ViewWidget::viewType ( ) const
pure virtual

◆ addChannel()

virtual void ViewWidget::addChannel ( ChannelSpecs channel)
pure virtual

◆ removeChannel()

virtual void ViewWidget::removeChannel ( ChannelSpecs channel)
pure virtual

◆ snapToVoxelGrid()

bool ViewWidget::snapToVoxelGrid ( ) const

◆ showHelperLines()

bool ViewWidget::showHelperLines ( ) const

◆ positionUm()

blitz::TinyVector<double,3> ViewWidget::positionUm ( ) const

◆ model()

MultiChannelModel* ViewWidget::model ( ) const

◆ positionChanged

void ViewWidget::positionChanged ( const blitz::TinyVector< double, 3 > &  positionUm)
signal

◆ redraw

virtual void ViewWidget::redraw ( )
virtualslot

This function can be implemented by ViewWidget instances to send update requests to the actual low level views.

It is called whenever the model changes in a way that may require a view update. The default implementation just calls update().

◆ setSnapToVoxelGrid

virtual void ViewWidget::setSnapToVoxelGrid ( bool  snap)
virtualslot

◆ setShowHelperLines

virtual void ViewWidget::setShowHelperLines ( bool  show)
virtualslot

◆ setPositionUm

virtual void ViewWidget::setPositionUm ( const blitz::TinyVector< double, 3 > &  positionUm)
virtualslot

Field Documentation

◆ p_model

MultiChannelModel* ViewWidget::p_model
protected

Definition at line 85 of file ViewWidget.hh.


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