NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::VideoConnectionWidget Class Reference

GUI for setting up a connection to a video stream. More...

#include <cxVideoConnectionWidget.h>

Inheritance diagram for cx::VideoConnectionWidget:
cx::BaseWidget cx::OptimizedUpdateWidget

Public Member Functions

 VideoConnectionWidget (VisServicesPtr services, QWidget *parent)
 
virtual ~VideoConnectionWidget ()
 
- Public Member Functions inherited from cx::BaseWidget
 BaseWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~BaseWidget ()
 
QWidget * createMethodWidget (QWidget *inputWidget, QWidget *outputWidget, QString methodname, bool inputChecked=false, bool outputVisible=true)
 Create a specialized widget for filters, with input/ouput, enable and options. More...
 
QGroupBox * createGroupbox (QWidget *widget, QString boxname)
 Create a group box with a given name. More...
 
QGroupBox * wrapInGroupBox (QWidget *base, QString name)
 
CXFramewrapInFrame (QWidget *base)
 
QAction * createAction2 (QObject *parent, QIcon iconName, QString text, QString tip, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
template<class T >
QAction * createAction (QObject *parent, QIcon iconName, QString text, QString tip, T slot, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
- Public Member Functions inherited from cx::OptimizedUpdateWidget
 OptimizedUpdateWidget (QWidget *parent=NULL)
 
virtual ~OptimizedUpdateWidget ()
 
void forcePrePaint ()
 

Protected Slots

void toggleConnectServer ()
 
void serverStatusChangedSlot ()
 
void importStreamImageSlot ()
 
void selectGuiForConnectionMethodSlot ()
 
void onServiceAdded (StreamerService *service)
 
void onServiceRemoved (StreamerService *service)
 

Protected Member Functions

StringPropertyActiveVideoSourcePtr initializeActiveVideoSourceSelector ()
 
QFrame * wrapStackedWidgetInAFrame ()
 
QPushButton * initializeConnectButton ()
 
QPushButton * initializeImportStreamImageButton ()
 
QWidget * wrapVerticalStretch (QWidget *input)
 
Transform3D calculate_rMd_ForAProbeImage (ToolPtr probe)
 
QString generateFilename (VideoSourcePtr videoSource)
 
void saveAndImportSnapshot (vtkImageDataPtr input, QString filename, Transform3D rMd)
 
- Protected Member Functions inherited from cx::BaseWidget
virtual void showEvent (QShowEvent *event)
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void prePaintEvent ()
 
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QPushButton * mConnectButton
 
QPushButton * mImportStreamImageButton
 
QVBoxLayout * mToptopLayout
 
QStackedWidget * mStackedWidget
 
StringPropertyPtr mConnectionSelector
 
StringPropertyActiveVideoSourcePtr mActiveVideoSourceSelector
 
XmlOptionFile mOptions
 
DetailedLabeledComboBoxWidgetmConnectionSelectionWidget
 
QFrame * mStackedWidgetFrame
 
VisServicesPtr mServices
 

Additional Inherited Members

- Public Slots inherited from cx::BaseWidget
void adjustSizeSlot ()
 
- Public Slots inherited from cx::OptimizedUpdateWidget
virtual void setModified ()
 
- Static Public Member Functions inherited from cx::BaseWidget
static QFrame * createHorizontalLine ()
 Creates a horizontal line which can be inserted into widgets. More...
 

Detailed Description

GUI for setting up a connection to a video stream.

Date
2010.10.27
Author
Christian Askeland, SINTEF
Janne Beate Bakeng, SINTEF

Definition at line 77 of file cxVideoConnectionWidget.h.

Constructor & Destructor Documentation

cx::VideoConnectionWidget::VideoConnectionWidget ( VisServicesPtr  services,
QWidget *  parent 
)

Definition at line 67 of file cxVideoConnectionWidget.cpp.

cx::VideoConnectionWidget::~VideoConnectionWidget ( )
virtual

Definition at line 103 of file cxVideoConnectionWidget.cpp.

Member Function Documentation

Transform3D cx::VideoConnectionWidget::calculate_rMd_ForAProbeImage ( ToolPtr  probe)
protected

Definition at line 308 of file cxVideoConnectionWidget.cpp.

QString cx::VideoConnectionWidget::generateFilename ( VideoSourcePtr  videoSource)
protected

Definition at line 319 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::importStreamImageSlot ( )
protectedslot

Definition at line 266 of file cxVideoConnectionWidget.cpp.

StringPropertyActiveVideoSourcePtr cx::VideoConnectionWidget::initializeActiveVideoSourceSelector ( )
protected

Definition at line 185 of file cxVideoConnectionWidget.cpp.

QPushButton * cx::VideoConnectionWidget::initializeConnectButton ( )
protected

Definition at line 237 of file cxVideoConnectionWidget.cpp.

QPushButton * cx::VideoConnectionWidget::initializeImportStreamImageButton ( )
protected

Definition at line 245 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::onServiceAdded ( StreamerService service)
protectedslot

Definition at line 121 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::onServiceRemoved ( StreamerService service)
protectedslot

Definition at line 147 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::saveAndImportSnapshot ( vtkImageDataPtr  input,
QString  filename,
Transform3D  rMd 
)
protected

Definition at line 334 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::selectGuiForConnectionMethodSlot ( )
protectedslot

Definition at line 214 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::serverStatusChangedSlot ( )
protectedslot

Definition at line 255 of file cxVideoConnectionWidget.cpp.

void cx::VideoConnectionWidget::toggleConnectServer ( )
protectedslot

Definition at line 229 of file cxVideoConnectionWidget.cpp.

QFrame * cx::VideoConnectionWidget::wrapStackedWidgetInAFrame ( )
protected

Definition at line 190 of file cxVideoConnectionWidget.cpp.

QWidget * cx::VideoConnectionWidget::wrapVerticalStretch ( QWidget *  input)
protected

Definition at line 202 of file cxVideoConnectionWidget.cpp.

Member Data Documentation

StringPropertyActiveVideoSourcePtr cx::VideoConnectionWidget::mActiveVideoSourceSelector
protected

Definition at line 108 of file cxVideoConnectionWidget.h.

QPushButton* cx::VideoConnectionWidget::mConnectButton
protected

Definition at line 103 of file cxVideoConnectionWidget.h.

DetailedLabeledComboBoxWidget* cx::VideoConnectionWidget::mConnectionSelectionWidget
protected

Definition at line 110 of file cxVideoConnectionWidget.h.

StringPropertyPtr cx::VideoConnectionWidget::mConnectionSelector
protected

Definition at line 107 of file cxVideoConnectionWidget.h.

QPushButton* cx::VideoConnectionWidget::mImportStreamImageButton
protected

Definition at line 104 of file cxVideoConnectionWidget.h.

XmlOptionFile cx::VideoConnectionWidget::mOptions
protected

Definition at line 109 of file cxVideoConnectionWidget.h.

VisServicesPtr cx::VideoConnectionWidget::mServices
protected

Definition at line 113 of file cxVideoConnectionWidget.h.

QStackedWidget* cx::VideoConnectionWidget::mStackedWidget
protected

Definition at line 106 of file cxVideoConnectionWidget.h.

QFrame* cx::VideoConnectionWidget::mStackedWidgetFrame
protected

Definition at line 111 of file cxVideoConnectionWidget.h.

QVBoxLayout* cx::VideoConnectionWidget::mToptopLayout
protected

Definition at line 105 of file cxVideoConnectionWidget.h.


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