GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Public Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
QGoVideoRecorder Class Reference

#include <Code/GUI/lib/Video/QGoVideoRecorder.h>

Inheritance diagram for QGoVideoRecorder:
Inheritance graph
[legend]
Collaboration diagram for QGoVideoRecorder:
Collaboration graph
[legend]

Public Slots

void SetRenderingWindow (vtkRenderWindow *)
 
void SetSpecificParametersFrameRate (int iValue)
 
void SetSpecificParametersQuality (int iValue)
 

Signals

void FrameRateChanged (int)
 
void GetSliceView ()
 
void QualityChanged (int)
 
void TSliceChanged (int)
 
void XSliceChanged (int)
 
void YSliceChanged (int)
 
void ZSliceChanged (int)
 

Public Member Functions

 QGoVideoRecorder (QWidget *parent=0)
 Constructor. More...
 
void SetCurrentT (const int &)
 Set current T value (useful for spin boxes) More...
 
void SetCurrentX (const int &)
 Set current X value (useful for spin boxes) More...
 
void SetCurrentY (const int &)
 Set current Y value (useful for spin boxes) More...
 
void SetCurrentZ (const int &)
 Set current Z value (useful for spin boxes) More...
 
void SetMovieRecorder (vtkRenderWindowMovieRecorder *)
 
void SetTMinAndMax (const int &, const int &)
 Set value T Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used. More...
 
void SetXMinAndMax (const int &, const int &)
 Set value X Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used. More...
 
void SetYMinAndMax (const int &, const int &)
 Set value Y Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used. More...
 
void SetZMinAndMax (const int &, const int &)
 Set value Z Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used. More...
 
 ~QGoVideoRecorder ()
 Destructor. More...
 
- Public Member Functions inherited from QGoDockWidget
 QGoDockWidget (QWidget *iParent=0)
 
QAction * toggleViewAction ()
 
virtual ~QGoDockWidget ()
 

Public Attributes

unsigned int m_FrameCounter
 
unsigned int m_FrameRate2
 
QTimer * m_InternalTimer
 
std::ofstream m_OutputVideoFile
 
bool m_RenderWindowSelected
 
int m_SliceFT
 
unsigned int m_TMaxForVideo
 
unsigned int m_TMinForVideo
 
QString m_VideoName2
 
unsigned int m_VideoQuality2
 
unsigned int m_WindowSelected
 
unsigned int m_XMaxForVideo
 
unsigned int m_XMinForVideo
 
unsigned int m_YMaxForVideo
 
unsigned int m_YMinForVideo
 
unsigned int m_ZMaxForVideo
 
unsigned int m_ZMinForVideo
 

Private Slots

void on_createFile_2_clicked ()
 Function called to choose name/path of output file. More...
 
void on_createFile_clicked ()
 Create the video from. More...
 
void on_endVideo_clicked ()
 Function called when we want to stop video while it is in pause. More...
 
void on_frameRate_2_valueChanged (int)
 Update value of frame rate. More...
 
void on_frameRate_valueChanged (int)
 Function called when FrameRate changes. More...
 
void on_pauseVideo_clicked ()
 Function called when we want to restart video while it is in pause. More...
 
void on_SliceFT_activated (int)
 Update content of spin box depending of selected slice (X,Y,Z) More...
 
void on_tSpinMax_2_valueChanged (int)
 Update ending slice for video (fixed time point) More...
 
void on_tSpinMin_2_valueChanged (int)
 Update starting slice for video (fixed time point) More...
 
void on_videoQuality_2_valueChanged (int)
 Update value of video quality. More...
 
void on_videoQuality_valueChanged (int)
 Function called when VideoQuality changes. More...
 
void onEndRecordClicked ()
 Function called when "End video" clicked in Record tab. More...
 
void onStartRecordClicked ()
 Function called when "Create video" clicked in Record tab. More...
 
void onStartVideoClicked ()
 Function called when "Create video" clicked in Create tab. More...
 
void timeout ()
 Function called with the timer to take snapshots. More...
 

Private Member Functions

void AcquireWithPause (int)
 Function to create the video with "pauses". More...
 
void emitChangeSliceSignal (const int &, const int &)
 
void UpdateQSpinBoxFT (int)
 Function to update spinbox extent according to selected slice. More...
 

Private Attributes

unsigned int m_CurrentT
 
unsigned int m_CurrentX
 
unsigned int m_CurrentY
 
unsigned int m_CurrentZ
 
unsigned int m_TMax
 
unsigned int m_TMin
 
vtkRenderWindowMovieRecorderm_VideoRecorder
 
unsigned int m_XMax
 
unsigned int m_XMin
 
unsigned int m_YMax
 
unsigned int m_YMin
 
unsigned int m_ZMax
 
unsigned int m_ZMin
 

Additional Inherited Members

- Protected Member Functions inherited from QGoDockWidget
void closeEvent (QCloseEvent *iEvent)
 
- Protected Attributes inherited from QGoDockWidget
QAction * m_ToggleAction
 

Detailed Description

Definition at line 62 of file QGoVideoRecorder.h.

Constructor & Destructor Documentation

QGoVideoRecorder::QGoVideoRecorder ( QWidget *  parent = 0)
explicit

Constructor.

Definition at line 54 of file QGoVideoRecorder.cxx.

QGoVideoRecorder::~QGoVideoRecorder ( )

Destructor.

Definition at line 131 of file QGoVideoRecorder.cxx.

Member Function Documentation

void QGoVideoRecorder::AcquireWithPause ( int  value)
private

Function to create the video with "pauses".

Definition at line 671 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::emitChangeSliceSignal ( const int &  iSlice,
const int &  iSlide 
)
private

Definition at line 760 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::FrameRateChanged ( int  )
signal
void QGoVideoRecorder::GetSliceView ( )
signal
void QGoVideoRecorder::on_createFile_2_clicked ( )
privateslot

Function called to choose name/path of output file.

Definition at line 447 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_createFile_clicked ( )
privateslot

Create the video from.

Definition at line 401 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_endVideo_clicked ( )
privateslot

Function called when we want to stop video while it is in pause.

Definition at line 747 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_frameRate_2_valueChanged ( int  value)
privateslot

Update value of frame rate.

Definition at line 465 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_frameRate_valueChanged ( int  value)
privateslot

Function called when FrameRate changes.

Definition at line 419 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_pauseVideo_clicked ( )
privateslot

Function called when we want to restart video while it is in pause.

Definition at line 738 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_SliceFT_activated ( int  value)
privateslot

Update content of spin box depending of selected slice (X,Y,Z)

Definition at line 314 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_tSpinMax_2_valueChanged ( int  value)
privateslot

Update ending slice for video (fixed time point)

Definition at line 362 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_tSpinMin_2_valueChanged ( int  value)
privateslot

Update starting slice for video (fixed time point)

Definition at line 323 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_videoQuality_2_valueChanged ( int  value)
privateslot

Update value of video quality.

Definition at line 479 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::on_videoQuality_valueChanged ( int  value)
privateslot

Function called when VideoQuality changes.

Definition at line 433 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::onEndRecordClicked ( )
privateslot

Function called when "End video" clicked in Record tab.

Definition at line 579 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::onStartRecordClicked ( )
privateslot

Function called when "Create video" clicked in Record tab.

Definition at line 541 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::onStartVideoClicked ( )
privateslot

Function called when "Create video" clicked in Create tab.

Definition at line 493 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::QualityChanged ( int  )
signal
void QGoVideoRecorder::SetCurrentT ( const int &  T)

Set current T value (useful for spin boxes)

Definition at line 234 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetCurrentX ( const int &  X)

Set current X value (useful for spin boxes)

Definition at line 207 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetCurrentY ( const int &  Y)

Set current Y value (useful for spin boxes)

Definition at line 216 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetCurrentZ ( const int &  Z)

Set current Z value (useful for spin boxes)

Definition at line 225 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetMovieRecorder ( vtkRenderWindowMovieRecorder Test)

Definition at line 662 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetRenderingWindow ( vtkRenderWindow *  iRenderingWindow)
slot
Todo:
Resize image with the first one if we want to change views during record

Definition at line 631 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetSpecificParametersFrameRate ( int  iValue)
slot

Definition at line 794 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetSpecificParametersQuality ( int  iValue)
slot

Definition at line 801 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetTMinAndMax ( const int &  TMin,
const int &  TMax 
)

Set value T Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used.

Definition at line 194 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetXMinAndMax ( const int &  XMin,
const int &  XMax 
)

Set value X Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used.

Definition at line 146 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetYMinAndMax ( const int &  YMin,
const int &  YMax 
)

Set value Y Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used.

Definition at line 168 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::SetZMinAndMax ( const int &  ZMin,
const int &  ZMax 
)

Set value Z Min and Max for a given image (useful for spin boxes) when image is loaded, to know boundaries of the spin box to be used.

Definition at line 181 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::timeout ( )
privateslot

Function called with the timer to take snapshots.

Definition at line 599 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::TSliceChanged ( int  )
signal
void QGoVideoRecorder::UpdateQSpinBoxFT ( int  value)
private

Function to update spinbox extent according to selected slice.

Definition at line 243 of file QGoVideoRecorder.cxx.

void QGoVideoRecorder::XSliceChanged ( int  )
signal
void QGoVideoRecorder::YSliceChanged ( int  )
signal
void QGoVideoRecorder::ZSliceChanged ( int  )
signal

Member Data Documentation

unsigned int QGoVideoRecorder::m_CurrentT
private

Definition at line 192 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_CurrentX
private

Definition at line 189 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_CurrentY
private

Definition at line 190 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_CurrentZ
private

Definition at line 191 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_FrameCounter

Definition at line 140 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_FrameRate2

Definition at line 124 of file QGoVideoRecorder.h.

QTimer* QGoVideoRecorder::m_InternalTimer

Definition at line 139 of file QGoVideoRecorder.h.

std::ofstream QGoVideoRecorder::m_OutputVideoFile

Definition at line 120 of file QGoVideoRecorder.h.

bool QGoVideoRecorder::m_RenderWindowSelected

Definition at line 142 of file QGoVideoRecorder.h.

int QGoVideoRecorder::m_SliceFT

Definition at line 126 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_TMax
private

Definition at line 187 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_TMaxForVideo

Definition at line 137 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_TMin
private

Definition at line 186 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_TMinForVideo

Definition at line 136 of file QGoVideoRecorder.h.

QString QGoVideoRecorder::m_VideoName2

Definition at line 122 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_VideoQuality2

Definition at line 125 of file QGoVideoRecorder.h.

vtkRenderWindowMovieRecorder* QGoVideoRecorder::m_VideoRecorder
private

Definition at line 177 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_WindowSelected

Definition at line 128 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_XMax
private

Definition at line 181 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_XMaxForVideo

Definition at line 131 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_XMin
private

Definition at line 180 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_XMinForVideo

Definition at line 130 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_YMax
private

Definition at line 183 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_YMaxForVideo

Definition at line 133 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_YMin
private

Definition at line 182 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_YMinForVideo

Definition at line 132 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_ZMax
private

Definition at line 185 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_ZMaxForVideo

Definition at line 135 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_ZMin
private

Definition at line 184 of file QGoVideoRecorder.h.

unsigned int QGoVideoRecorder::m_ZMinForVideo

Definition at line 134 of file QGoVideoRecorder.h.


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