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

#include <Code/GUI/lib/Wizard/QGoCreateImgSessionPage.h>

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

Public Member Functions

void cleanupPage ()
 
std::string GetMegaCaptureHeaderFilename ()
 
GoFigureFileInfoHelperMultiIndexContainer GetMultiIndexFileContainer ()
 
void initializePage ()
 
 QGoCreateImgSessionPage (QWidget *parent=0)
 
bool validatePage ()
 
 ~QGoCreateImgSessionPage ()
 

Public Attributes

vtkMySQLDatabase * m_DatabaseConnector
 

Protected Slots

void AddMicroscopes ()
 
void SelectImages ()
 
void UpdateListMicroscopes ()
 

Private Types

typedef
GoFigureFileInfoHelperMultiIndexContainer::iterator 
MultiIndexContainerIteratorType
 

Private Member Functions

void CreateChannels (vtkMySQLDatabase *DatabaseConnector, int ImagingSessionID)
 create the channels and their corresponding colors in the database, from the data gotten from the headerfile More...
 
GoDBImageRow CreateImage (vtkMySQLDatabase *DatabaseConnector, MultiIndexContainerIteratorType It, int ImagingSessionID)
 return a GoDBImageRow filled with all the data corresponding More...
 
int CreateImageCoordMin (vtkMySQLDatabase *DatabaseConnector, MultiIndexContainerIteratorType It)
 create the coordinate CoordMin in the DB, check and update if its values are less than the other CoordMin created for the images belonging to the same imaging session and return the CoordID of the coordinate just created More...
 
int CreateImgSession (vtkMySQLDatabase *DatabaseConnector)
 create a new imaging session into the DB with the information filled by the user and collected from the filenames, and return the ImagingSessionID just created or -1 if the img session already exists More...
 
void CreateImgSessionCoord (vtkMySQLDatabase *DatabaseConnector, int ImagingSessionID)
 create into the DB the coordinates corresponding to the CoordID Min and Max for the Imaging Session and update the CoordIDMax and Min for the imaging session in the DB with the newly created coordinates More...
 
int FindChannelIDForImage (vtkMySQLDatabase *DatabaseConnector, int ImagingSessionID, int ChannelNumber)
 return the ChannelID from the DB corresponding to the imaging session and to the channel number given by the image filename More...
 
QStringList GetListMicroscopes ()
 get the list of the existing microscopes registered in the DB More...
 
void ImportImages (vtkMySQLDatabase *DatabaseConnector)
 create the imaging session, all the channels into the DB, then the images selected by the user and at the end, update the CoordIDMax and Min of the imaging session into the DB More...
 
bool ImportInfoFromMegacapture (QString newfilename)
 fill m_importFileInfoList from the filenames of the images and m_HeaderFileInfo from the header file More...
 
void OpenDBConnection ()
 
bool SaveInfoInDatabase ()
 

Private Attributes

QPushButton * AddMicroscopeButton
 
QPushButton * BrowseButton
 
QComboBox * ChoiceMicroscope
 
QFileInfo * FirstImage
 
QTextEditChildlineDescription
 
QTextEdit * lineFilename
 
QLineEdit * lineImgSessionID
 
QLineEdit * lineImgSessionName
 
QLineEdit * lineNewImgSessionName
 
unsigned int m_CCoordMax
 
unsigned int m_CCoordMin
 
MegaCaptureHeaderReader m_HeaderFileInfo
 
GoDBCoordinateRow m_ImgSessionCoordMax
 
GoDBCoordinateRow m_ImgSessionCoordMin
 
itk::MegaCaptureImport::Pointer m_importFileInfoList
 
unsigned int m_PCoordMax
 
unsigned int m_PCoordMin
 
unsigned int m_RCoordMax
 
unsigned int m_RCoordMin
 
unsigned int m_TCoordMax
 
unsigned int m_TCoordMin
 
unsigned int m_XTileCoordMax
 
unsigned int m_XTileCoordMin
 
unsigned int m_YTileCoordMax
 
unsigned int m_YTileCoordMin
 
unsigned int m_ZCoordMax
 
unsigned int m_ZCoordMin
 
unsigned int m_ZTileCoordMax
 
unsigned int m_ZTileCoordMin
 
QString newfilename
 
QLabel * textChoiceMicroscope
 
QLabel * textDescription
 
QLabel * textNewImgSessionName
 

Detailed Description

Definition at line 59 of file QGoCreateImgSessionPage.h.

Member Typedef Documentation

typedef GoFigureFileInfoHelperMultiIndexContainer::iterator QGoCreateImgSessionPage::MultiIndexContainerIteratorType
private

Definition at line 94 of file QGoCreateImgSessionPage.h.

Constructor & Destructor Documentation

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

Definition at line 53 of file QGoCreateImgSessionPage.cxx.

QGoCreateImgSessionPage::~QGoCreateImgSessionPage ( )

Definition at line 106 of file QGoCreateImgSessionPage.cxx.

Member Function Documentation

void QGoCreateImgSessionPage::AddMicroscopes ( )
protectedslot

Definition at line 680 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::cleanupPage ( )

Definition at line 263 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::CreateChannels ( vtkMySQLDatabase *  DatabaseConnector,
int  ImagingSessionID 
)
private

create the channels and their corresponding colors in the database, from the data gotten from the headerfile

Todo:
Lydie: take the channel names from the header file

Definition at line 401 of file QGoCreateImgSessionPage.cxx.

GoDBImageRow QGoCreateImgSessionPage::CreateImage ( vtkMySQLDatabase *  DatabaseConnector,
MultiIndexContainerIteratorType  It,
int  ImagingSessionID 
)
private

return a GoDBImageRow filled with all the data corresponding

Definition at line 513 of file QGoCreateImgSessionPage.cxx.

int QGoCreateImgSessionPage::CreateImageCoordMin ( vtkMySQLDatabase *  DatabaseConnector,
MultiIndexContainerIteratorType  It 
)
private

create the coordinate CoordMin in the DB, check and update if its values are less than the other CoordMin created for the images belonging to the same imaging session and return the CoordID of the coordinate just created

Definition at line 453 of file QGoCreateImgSessionPage.cxx.

int QGoCreateImgSessionPage::CreateImgSession ( vtkMySQLDatabase *  DatabaseConnector)
private

create a new imaging session into the DB with the information filled by the user and collected from the filenames, and return the ImagingSessionID just created or -1 if the img session already exists

Definition at line 161 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::CreateImgSessionCoord ( vtkMySQLDatabase *  DatabaseConnector,
int  ImagingSessionID 
)
private

create into the DB the coordinates corresponding to the CoordID Min and Max for the Imaging Session and update the CoordIDMax and Min for the imaging session in the DB with the newly created coordinates

Definition at line 541 of file QGoCreateImgSessionPage.cxx.

int QGoCreateImgSessionPage::FindChannelIDForImage ( vtkMySQLDatabase *  DatabaseConnector,
int  ImagingSessionID,
int  ChannelNumber 
)
private

return the ChannelID from the DB corresponding to the imaging session and to the channel number given by the image filename

Definition at line 498 of file QGoCreateImgSessionPage.cxx.

QStringList QGoCreateImgSessionPage::GetListMicroscopes ( )
private

get the list of the existing microscopes registered in the DB

Definition at line 140 of file QGoCreateImgSessionPage.cxx.

std::string QGoCreateImgSessionPage::GetMegaCaptureHeaderFilename ( )

Definition at line 672 of file QGoCreateImgSessionPage.cxx.

GoFigureFileInfoHelperMultiIndexContainer QGoCreateImgSessionPage::GetMultiIndexFileContainer ( )

Definition at line 656 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::ImportImages ( vtkMySQLDatabase *  DatabaseConnector)
private

create the imaging session, all the channels into the DB, then the images selected by the user and at the end, update the CoordIDMax and Min of the imaging session into the DB

Definition at line 271 of file QGoCreateImgSessionPage.cxx.

bool QGoCreateImgSessionPage::ImportInfoFromMegacapture ( QString  newfilename)
private

fill m_importFileInfoList from the filenames of the images and m_HeaderFileInfo from the header file

Definition at line 354 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::initializePage ( )

Definition at line 114 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::OpenDBConnection ( )
private

Definition at line 597 of file QGoCreateImgSessionPage.cxx.

bool QGoCreateImgSessionPage::SaveInfoInDatabase ( )
private

Definition at line 610 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::SelectImages ( )
protectedslot

Definition at line 128 of file QGoCreateImgSessionPage.cxx.

void QGoCreateImgSessionPage::UpdateListMicroscopes ( )
protectedslot

Definition at line 696 of file QGoCreateImgSessionPage.cxx.

bool QGoCreateImgSessionPage::validatePage ( )

Definition at line 208 of file QGoCreateImgSessionPage.cxx.

Member Data Documentation

QPushButton* QGoCreateImgSessionPage::AddMicroscopeButton
private

Definition at line 135 of file QGoCreateImgSessionPage.h.

QPushButton* QGoCreateImgSessionPage::BrowseButton
private

Definition at line 136 of file QGoCreateImgSessionPage.h.

QComboBox* QGoCreateImgSessionPage::ChoiceMicroscope
private

Definition at line 134 of file QGoCreateImgSessionPage.h.

QFileInfo* QGoCreateImgSessionPage::FirstImage
private

Definition at line 139 of file QGoCreateImgSessionPage.h.

QTextEditChild* QGoCreateImgSessionPage::lineDescription
private

Definition at line 132 of file QGoCreateImgSessionPage.h.

QTextEdit* QGoCreateImgSessionPage::lineFilename
private

Definition at line 137 of file QGoCreateImgSessionPage.h.

QLineEdit* QGoCreateImgSessionPage::lineImgSessionID
private

Definition at line 140 of file QGoCreateImgSessionPage.h.

QLineEdit* QGoCreateImgSessionPage::lineImgSessionName
private

Definition at line 141 of file QGoCreateImgSessionPage.h.

QLineEdit* QGoCreateImgSessionPage::lineNewImgSessionName
private

Definition at line 130 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_CCoordMax
private

Definition at line 163 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_CCoordMin
private

Definition at line 162 of file QGoCreateImgSessionPage.h.

vtkMySQLDatabase* QGoCreateImgSessionPage::m_DatabaseConnector

Definition at line 72 of file QGoCreateImgSessionPage.h.

MegaCaptureHeaderReader QGoCreateImgSessionPage::m_HeaderFileInfo
private

Definition at line 145 of file QGoCreateImgSessionPage.h.

GoDBCoordinateRow QGoCreateImgSessionPage::m_ImgSessionCoordMax
private

Definition at line 143 of file QGoCreateImgSessionPage.h.

GoDBCoordinateRow QGoCreateImgSessionPage::m_ImgSessionCoordMin
private

Definition at line 144 of file QGoCreateImgSessionPage.h.

itk::MegaCaptureImport::Pointer QGoCreateImgSessionPage::m_importFileInfoList
private

Definition at line 146 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_PCoordMax
private

Definition at line 157 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_PCoordMin
private

Definition at line 156 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_RCoordMax
private

Definition at line 160 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_RCoordMin
private

Definition at line 159 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_TCoordMax
private

Definition at line 178 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_TCoordMin
private

Definition at line 177 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_XTileCoordMax
private

Definition at line 166 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_XTileCoordMin
private

Definition at line 165 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_YTileCoordMax
private

Definition at line 169 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_YTileCoordMin
private

Definition at line 168 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_ZCoordMax
private

Definition at line 175 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_ZCoordMin
private

Definition at line 174 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_ZTileCoordMax
private

Definition at line 172 of file QGoCreateImgSessionPage.h.

unsigned int QGoCreateImgSessionPage::m_ZTileCoordMin
private

Definition at line 171 of file QGoCreateImgSessionPage.h.

QString QGoCreateImgSessionPage::newfilename
private

Definition at line 138 of file QGoCreateImgSessionPage.h.

QLabel* QGoCreateImgSessionPage::textChoiceMicroscope
private

Definition at line 133 of file QGoCreateImgSessionPage.h.

QLabel* QGoCreateImgSessionPage::textDescription
private

Definition at line 131 of file QGoCreateImgSessionPage.h.

QLabel* QGoCreateImgSessionPage::textNewImgSessionName
private

Definition at line 129 of file QGoCreateImgSessionPage.h.


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