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

manages all the database components: table widget, trace settings editing widdet, QGoDBTraceManager... More...

#include <Code/GUI/lib/QGoPrintDatabase.h>

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

Public Types

typedef std::pair< int, QColor > IDWithColorData
 
typedef
QGoTraceSettingsWidget::ItemColorComboboxData 
ItemColorComboboxData
 
typedef
QGoDBBookmarkManager::NamesDescrContainerType 
NamesDescrContainerType
 
typedef
GoDBCollectionOfTraces::TWContainerType 
TWContainerType
 

Public Slots

void DeleteBookmarks ()
 
void ExportContours ()
 
void ExportMeshes ()
 
void SaveNewMeshForMeshToContours (int iNumberOfContours)
 
void UpdateSelectedTimePoint (int iTimePoint)
 

Signals

void DBVariablesSet ()
 
void NeedToGoToTheLocation (int XCoord, int YCoord, int ZCoord, int TCoord)
 signal emitted when a signal is emitted from a m_TraceManager for "go to the trace " from the context menu More...
 
void NeedToGoToTheRealLocation (double XCoord, double YCoord, double ZCoord, int TCoord)
 
void NewMeshToGenerate (std::list< unsigned int > ListContourIDs, int iNewMeshID)
 
void OpenBookmarksToUpdate ()
 
void PrintDBReady ()
 
void PrintMessage (QString iMessage, int iTimeOut=0)
 
void TraceToReEdit (unsigned int)
 

Public Member Functions

void AddBookmark (int iXCoord, int iYCoord, int iZCoord, int iTCoord)
 
void FillTableFromDatabase (const unsigned int &iTreshold)
 Create the QTableWidgetChild,get the columns names and the values stored in the database, display them in the QTableWidgetChild and fill the info for the contours and meshes. More...
 
std::vector< ContourMeshStructureGetContoursForAGivenTimepoint (unsigned int iTimePoint)
 Return a vector of all the contours for the given timepoint. More...
 
GoDBCoordinateRow GetCoordinateForBookmark (std::string iName)
 
NamesDescrContainerType GetListBookmarks ()
 
std::vector< ContourMeshStructureGetMeshesForAGivenTimepoint (unsigned int iTimePoint)
 Return a vector of all the meshes for the given timepoint. More...
 
int GetNumberOfElementForTraceAndTimePoint (std::string iTrace, int iTimePoint)
 
QGoTraceSettingsWidgetGetTraceSettingsWidget ()
 return the TraceSettingsDockWidget More...
 
QGoTraceSettingsWidgetGetTraceSettingsWidgetForToolBar ()
 
std::list< unsigned int > GetVisibleTimePoints ()
 
void ImportContours ()
 get the info from a textfile, save it into the database, update the container for visu and the TW More...
 
void ImportMeshes ()
 get the info from a textfile, save it into the database, update the container for visu and the TW More...
 
std::vector< int > ImportTracks ()
 get the info from a textfile, save it into the database, update the container for visu and the TW and recalculate the points for the tracks More...
 
void InitializeTheComboboxesNotTraceRelated ()
 Initialize or reinitialized the celltype,subcelltype and color list from the database into the traceSettingswidget. More...
 
std::string InWhichTableAreWe ()
 Return the Name of the tab currently used in the table widget, which correspond to the TraceName of the CollectionOfTraces: More...
 
bool IsDatabaseUsed ()
 return a bool to know if the user is using the database or not More...
 
bool NeedTraceSettingsToolBarVisible ()
 check if the tracesettingsWidget is visible, if not, return true. More...
 
void PrintCalculatedValuesForTrack (GoFigureTrackAttributes *iTrackAttributes, unsigned int iTrackID)
 display in the table widget the values from iTrackAttributes for iTrackID More...
 
void PrintVolumeAreaForMesh (GoFigureMeshAttributes *iMeshAttributes, unsigned int iMeshID)
 display in the table widget the volume and area from iMeshAttributes for iMeshID More...
 
 QGoPrintDatabase (QWidget *iParent=0)
 Constructor. More...
 
void SaveContoursFromVisuInDB (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iTCoord, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iContourNodes)
 save a new contour from the visu into the database, update the table widget and the CurrentElement of the visu container if reeditMode is set to false; if not, update the contour in the DB and in the TW, for both modes, update the mesh the contour is part of. More...
 
void SaveMeshFromVisuInDB (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, int iTCoord, vtkPolyData *iMeshNodes, GoFigureMeshAttributes *iMeshAttributes, int iTrackID=-1)
 save the mesh into the database for a mesh generated in the visualization, if the mesh is an updated mesh which already exists(for example a new contour is added to this mesh, the NewMesh has to be set to false More...
 
unsigned int SaveNewContourForMeshToContours (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iTraceNodes)
 save a new contour in the database, the TW and the container for the contours to sphere action More...
 
void SetContoursContainer (ContourContainer *iContoursContainer)
 set the pointer m_TraceInfoForVisu of the ContoursManager to iContoursContainer More...
 
void SetDatabaseVariables (const std::string &iNameDB, const std::string &iServer, const std::string &iUser, const std::string &iPassword, const unsigned int &iImgSessionID, const std::string &iImgSessionName)
 set all the values needed for the database More...
 
void SetLineagesContainers (LineageContainer *iContainer, TrackContainer *iTrackContainer)
 set the pointer m_LineageInfoForVisu of the LineagesManager to iContainer More...
 
void SetMeshesContainer (MeshContainer *iMeshesContainer)
 set the pointer m_TraceInfoForVisu of the MeshesManager to iMeshesContainer More...
 
void SetTraceNameForTableWidget (std::string iTraceName)
 update the traceSettingswidget for the trace with the corresponding list of collectionID and set the tablewidget for the trace table More...
 
void SetTracksContainer (TrackContainer *iContainer)
 set the pointer m_TrackInfoForVisu of the TracksManager to iTracksContainer More...
 
std::list< unsigned int > UpdateTableWidgetAndContainersForGivenTimePoint (const unsigned int &iNewTimePoint)
 Update the table widget and the visualization container contents based on the given time point and the previous visible time points. It erases actors and remove them from the visualization. It doesn't create actors after adding polydata to container. More...
 
virtual ~QGoPrintDatabase ()
 Destructor. More...
 
- Public Member Functions inherited from QGoDockWidget
 QGoDockWidget (QWidget *iParent=0)
 
QAction * toggleViewAction ()
 
virtual ~QGoDockWidget ()
 

Protected Slots

void AddCheckedContoursToSelectedMesh (std::list< unsigned int > iListCheckedContours)
 slot connected to the the signal CheckedTracesToAddToSelectedCollection emitted by m_ContoursManager, which call the AddCheckedTracesToCollection template More...
 
void AddCheckedMeshesToSelectedTrack (std::list< unsigned int > iListCheckedMeshes)
 slot connected to the the signal CheckedTracesToAddToSelectedCollection emitted by m_MeshesManager, which call the AddCheckedTracesToCollection template More...
 
void AddCheckedTracksToSelectedLineage (std::list< unsigned int > iListDaughters, unsigned int iLineageID, std::list< unsigned int > iListLineagesToDelete)
 call the AddCheckedTracesToCollection template and give the info to the lineages manager to create the division in the visu More...
 
void AddListMeshesToATrack (std::list< unsigned int > iListMeshes, unsigned int iTrackID)
 add the meshes to the iTrackID after checking that there are no meshes at the same timepoint in the same track, if so, won't change the trackid of these meshes More...
 
void AddListMeshesToATrack (std::map< unsigned int, std::list< unsigned int > > iListMeshesWithTracks)
 
void AddNewCellType ()
 call the m_CellTypeManager to add a new celltype (ask the user to enter name+description and save it in the database) and call the setListCelltype to update the list in the TraceManualEditingWidget More...
 
void AddNewColor ()
 call the m_ColorManager to add a new color (ask the user to choose the color +enter name+description and save it in the database) and call the SetColorComboBoxInfofromDB to update the list in the TraceManualEditingWidget More...
 
void AddNewSubCellType ()
 call the m_SubCellTypeManager to add a new subcelltype (ask the user to enter name+description and save it in the database) and call the setListSubCelltype to update the list in the TraceManualEditingWidget More...
 
void ChangeLineageColor ()
 slot connected to the TraceColorToChange() emitted by the m_MeshesManager More...
 
void ChangeMeshColor ()
 slot connected to the TraceColorToChange() emitted by the m_MeshesManager More...
 
void ChangeTrackColor ()
 slot connected to the TraceColorToChange() emitted by the m_MeshesManager More...
 
void CloseDBConnection ()
 
void CreateContextMenu (const QPoint &iPos)
 
void CreateNewLineageFromTracks (std::list< unsigned int > iListCheckedTracks, unsigned int iTrackIDRoot, std::list< unsigned int > iLineagesToDelete)
 slot connected to the signal NewLineageToCreateFromTracks() emitted by the m_TracksManager More...
 
void CreateNewMeshFromCheckedContours (std::list< unsigned int > iListCheckedContours)
 slot connected to the signal NewCollectionFromCheckedTraces() emitted by the m_ContoursManager, emit the signal NewMeshToGenerate for the visu after creating a new mesh and calling the AddCheckedTracesToCollection template method. More...
 
void CreateNewTrackFromListMeshes (std::list< unsigned int > iListMeshes)
 create a new track and call the AddCheckedTracesToCollection template method to add the meshes from the list to this new track More...
 
void CreateNewTrackFromListMeshes (std::list< std::list< unsigned int > > iListsCheckedMeshes)
 
void DeleteCellType ()
 call the m_CellTypeManager to delete celltypes (display all the celltypes for the user to select the ones he wants to delete and delete them from the database) and call the setListCelltype to update the list in the TraceManualEditingWidget More...
 
void DeleteCheckedContours ()
 slot connected to the signal TracesToDelete() emitted by the m_ContoursManager More...
 
void DeleteCheckedLineages ()
 slot connected to the signal TracesToDelete() emitted by the m_LineagesManager More...
 
void DeleteCheckedMeshes ()
 slot connected to the signal Traces TracesToDelete() emitted by the m_MeshesManager More...
 
void DeleteCheckedTracks ()
 slot connected to the signal TracesToDelete() emitted by the m_TracksManager More...
 
void DeleteColor ()
 call the m_ColorManager to delete colors (display all the colors for the user to select the ones he wants to delete and delete them from the database) and call the SetColorComboBoxInfofromDB to update the list in the TraceManualEditingWidget More...
 
void DeleteSubCellType ()
 call the m_SubCellTypeManager to delete subcelltypes (display all the subcelltypes for the user to select the ones he wants to delete and delete them from the database) and call the setListSubCelltype to update the list in the TraceManualEditingWidget More...
 
void PassDBConnectionToContoursManager ()
 open the connection to the database and pass it to the ContoursManager More...
 
void PassDBConnectionToLineagesManager ()
 open the connection to the database and pass it to the LineagesManager More...
 
void PassDBConnectionToMeshesManager ()
 open the connection to the database and pass it to the MeshesManager More...
 
void PassDBConnectionToTracksManager ()
 open the connection to the database and pass it to the TracksManager More...
 
void PassMeshesInfoForImportedTrack (unsigned int iTrackID)
 get the info needed for track from the meshcontainer, and update the points of the track container (for imported tracks) More...
 
void ReEditTrace (unsigned int iTraceID)
 emit a signal TraceToReedit and set m_ReeditMode to true More...
 
void SaveNewCollectionFromTraceWidgetInDBAndTW ()
 Add the new collection in the database,add a row in TW and update the colorcombobox. More...
 
void SetTSListCollectionID ()
 get a list of the IDs with their colors for the collection corresponding to the tracename, for the given timepoint if the collection is a mesh or for all timepoints for tracks and lineages, update the Trace Settings colorcombobox and select the corresponding ID in the combobox if the string is not empty More...
 
void ShowHideTraceSettingsFromContextMenu (bool isVisible)
 show/hide the Trace Settings widget depending on the checkstate of the action in the context menu of the dockwidget More...
 
void SplitMergeTracksWithWidget (std::list< unsigned int > iTrackIDs)
 slot called after signal TrackIDToBeModifiedWithWidget sent by tracksManager, display the checked tracks in a widget allowing the user to split and merge them and save the results in the database if the user clicks the OK button More...
 
void SplitTheTrack (unsigned int iTrackID, std::list< unsigned int > iListMeshIDs)
 split the checked track: a new track is created with the checked mesh and the meshes with timepoint sup and the checked track is updated. More...
 
void TheTraceHasChanged (int iIndex)
 slot connected to the combobox for the trace in the trace settings widget More...
 

Protected Member Functions

template<typename TTrace , typename TCollection >
void AddCheckedTracesToCollection (TTrace *iTraceManager, TCollection *iCollectionManager, unsigned int iCollectionID, std::list< unsigned int > iListCheckedTraces)
 change the collectionIDs to iCollectionID for the traces in iListCheckedTraces, and update the bounding boxes of the previous collection the traces were part of and of iCollectionID in the database, the TW and the container for visu More...
 
template<typename TTrace , typename TCollection >
void ChangeTraceColor (TTrace *iTraceManager, TCollection *iCollectionOfManager)
 update the color for the checked traces and the rows in the table widget for the collectionOf More...
 
void CreateConnectionsForTraceSettingsWidget (QGoTraceSettingsWidget *iTraceSettingsWidget)
 create all the connections between the QGoPrintDatabase and the QGoTraceSettingsWidget (TS) More...
 
template<typename TTrace , typename TCollection , typename TCollectionOf >
void DeleteCheckedTraces (TTrace *iTraceManager, TCollection *iCollectionManager, TCollectionOf *iCollectionOfManager, bool lineage=false)
 delete the checked traces from the database,TW,visu container, udpate the collectionof collectionID in database and TW and update the bounding box of the collection More...
 
template<typename TTrace , typename TCollection , typename TCollectionOf >
void DeleteListTraces (TTrace *iTraceManager, TCollection *iCollectionManager, TCollectionOf *iCollectionOfManager, std::list< unsigned int > iListTracesToDelete, bool lineage=false)
 delete the traces of iListTracesToDelete from the database,TW, visu container, udpate the collectionof collectionID in database and TW and update the bounding box of the collection More...
 
void GetContentAndDisplayAllTracesInfo (vtkMySQLDatabase *iDatabaseConnector)
 get the data from the database for contours, meshes and tracks, display them in the TableWidget and load the different containers for the visu with the info from the database More...
 
void GetContentAndDisplayAllTracesInfoFor3TPs (vtkMySQLDatabase *iDatabaseConnector)
 
std::list< ItemColorComboboxDataGetListCollectionIDFromDB (vtkMySQLDatabase *iDatabaseConnector, std::string &ioIDToSelect)
 get the collection id with their corresponding color from the database More...
 
void OpenDBConnection ()
 
void RemoveTracesFromListTimePoints (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTimePoints)
 
void SetConnectionsBetweenTheInstancesOfTraceSettings ()
 set the tracesettings widget to be in the mainwindow toolbar and the connection between the 2 instances of tracesettingswidget More...
 
void SetContoursManager ()
 create the m_ContoursManager and its SLOT/SIGNAL connection More...
 
void SetLineagesManager ()
 create the m_LineagesManager and its SLOT/SIGNAL connection More...
 
void SetMeshesManager ()
 create the m_MeshesManager and its SLOT/SIGNAL connection More...
 
template<typename T >
void SetTheColorForTheRow (T &ioRow, QColor iColor)
 get the RGB Alpha values from the iTraceRow and set a QColor with them More...
 
void SetTracesManager ()
 set all the traces manager More...
 
void SetTracksManager ()
 create the m_TracksManager and its SLOT/SIGNAL connection More...
 
void SetTSListCellTypes (std::string iCellTypeToSelect="")
 get the list of celltypes from the database, put them in the Trace Settings combobox and if the string is not empty, the combobox will have as selected item the string More...
 
void SetTSListCellTypesWithPreviousSelectedOne ()
 get the list of celltypes from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected More...
 
void SetTSListColors (std::string iColorToSelect="")
 get the data for the colorcombobox from the database, put them in the Trace Settings colorcombobox and if the string is not empty, the combobox will have as selected item the string More...
 
void SetTSListColorsWithPreviousSelectedOne ()
 get the list of colors from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected More...
 
void SetTSListSubCellTypes (std::string iSubCellTypeToSelect="")
 get the list of subcelltypes from the database, put them in the Trace Settings combobox and if the string is not empty, the combobox will have as selected item the string More...
 
void SetTSListSubCellTypesWithPreviousSelectedOne ()
 get the list of subcelltypes from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected More...
 
void SetUpUi ()
 
template<typename TTrace , typename TCollectionOf >
std::list< unsigned int > UpdateCollectionDataForTracesToBeDeleted (TTrace *iTraceManager, TCollectionOf *iCollectionOfManager, std::list< unsigned int > iListTracesToDelete)
 udpate the collectionof collectionID in database and TW More...
 
void UpdateSelectedCollectionForTableWidget (std::string iTableName)
 
- Protected Member Functions inherited from QGoDockWidget
void closeEvent (QCloseEvent *iEvent)
 

Protected Attributes

QGoDBBookmarkManagerm_BookmarkManager
 
QGoDBCellTypeManagerm_CellTypeManager
 
QGoDBColorManagerm_ColorManager
 
QGoDBContourManagerm_ContoursManager
 
vtkMySQLDatabase * m_DatabaseConnector
 
std::string m_DBName
 
unsigned int m_ImgSessionID
 
std::string m_ImgSessionName
 
bool m_IsDatabaseUsed
 
QGoDBLineageManagerm_LineagesManager
 
QGoDBMeshManagerm_MeshesManager
 
bool m_MeshGenerationMode
 
std::string m_Password
 
bool m_ReeditMode
 
int * m_SelectedTimePoint
 
std::string m_Server
 
QStackedWidget * m_StackedTables
 
QGoDBSubCellTypeManagerm_SubCellTypeManager
 
bool m_TraceSettingsVisible
 
QGoTraceSettingsWidgetm_TraceSettingsWidget
 
QGoTraceSettingsWidgetm_TraceSettingsWidgetForToolBar
 
QGoDBTrackManagerm_TracksManager
 
std::string m_User
 
- Protected Attributes inherited from QGoDockWidget
QAction * m_ToggleAction
 

Private Member Functions

 Q_DISABLE_COPY (QGoPrintDatabase)
 

Private Attributes

std::list< unsigned int > m_VisibleTimePoints
 

Detailed Description

manages all the database components: table widget, trace settings editing widdet, QGoDBTraceManager...

Definition at line 76 of file QGoPrintDatabase.h.

Member Typedef Documentation

typedef std::pair< int, QColor > QGoPrintDatabase::IDWithColorData

Definition at line 90 of file QGoPrintDatabase.h.

Definition at line 89 of file QGoPrintDatabase.h.

Definition at line 88 of file QGoPrintDatabase.h.

Definition at line 87 of file QGoPrintDatabase.h.

Constructor & Destructor Documentation

QGoPrintDatabase::QGoPrintDatabase ( QWidget *  iParent = 0)
explicit

Constructor.

Definition at line 75 of file QGoPrintDatabase.cxx.

QGoPrintDatabase::~QGoPrintDatabase ( )
virtual

Destructor.

Definition at line 111 of file QGoPrintDatabase.cxx.

Member Function Documentation

void QGoPrintDatabase::AddBookmark ( int  iXCoord,
int  iYCoord,
int  iZCoord,
int  iTCoord 
)

Definition at line 565 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddCheckedContoursToSelectedMesh ( std::list< unsigned int >  iListCheckedContours)
protectedslot

slot connected to the the signal CheckedTracesToAddToSelectedCollection emitted by m_ContoursManager, which call the AddCheckedTracesToCollection template

Parameters
[in]iListCheckedContourslist of the checked contours to be part of the selected meshID

Definition at line 1865 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddCheckedMeshesToSelectedTrack ( std::list< unsigned int >  iListCheckedMeshes)
protectedslot

slot connected to the the signal CheckedTracesToAddToSelectedCollection emitted by m_MeshesManager, which call the AddCheckedTracesToCollection template

Parameters
[in]iListCheckedMesheslist of the checked meshes to be part of the selected trackID

Definition at line 1957 of file QGoPrintDatabase.cxx.

template<typename TTrace , typename TCollection >
void QGoPrintDatabase::AddCheckedTracesToCollection ( TTrace *  iTraceManager,
TCollection *  iCollectionManager,
unsigned int  iCollectionID,
std::list< unsigned int >  iListCheckedTraces 
)
inlineprotected

change the collectionIDs to iCollectionID for the traces in iListCheckedTraces, and update the bounding boxes of the previous collection the traces were part of and of iCollectionID in the database, the TW and the container for visu

Parameters
[in]iTraceManagerthe manager for the trace expl: mesh_manager
[in]iCollectionManagerthe manager for the collection expl: track
[in]iCollectionIDthe ID of the collection the checked traces will be part of
[in]iListCheckedTracesList of the tracesIDs checked in the TW
Template Parameters
TTracechildren of QGoDBTraceManager
TCollectionchildren of QGoDBTraceManager

Definition at line 627 of file QGoPrintDatabase.h.

void QGoPrintDatabase::AddCheckedTracksToSelectedLineage ( std::list< unsigned int >  iListDaughters,
unsigned int  iLineageID,
std::list< unsigned int >  iListLineagesToDelete 
)
protectedslot

call the AddCheckedTracesToCollection template and give the info to the lineages manager to create the division in the visu

Parameters
[in]iLineageID
[in]iListDaughtersID of the tracks to be updated with lineageID
[in]iListLineagesToDeletelist of lineageID that need to be deleted as they don't have any tracks belonging to them anymore

Definition at line 2007 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddListMeshesToATrack ( std::list< unsigned int >  iListMeshes,
unsigned int  iTrackID 
)
protectedslot

add the meshes to the iTrackID after checking that there are no meshes at the same timepoint in the same track, if so, won't change the trackid of these meshes

Parameters
[in]iListMesheslist of the meshes to be part of the itrackID
[in]iTrackIDnew track to be assigned to these meshes

Definition at line 1879 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddListMeshesToATrack ( std::map< unsigned int, std::list< unsigned int > >  iListMeshesWithTracks)
protectedslot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1942 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddNewCellType ( )
protectedslot

call the m_CellTypeManager to add a new celltype (ask the user to enter name+description and save it in the database) and call the setListCelltype to update the list in the TraceManualEditingWidget

Definition at line 1085 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddNewColor ( )
protectedslot

call the m_ColorManager to add a new color (ask the user to choose the color +enter name+description and save it in the database) and call the SetColorComboBoxInfofromDB to update the list in the TraceManualEditingWidget

Definition at line 1125 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::AddNewSubCellType ( )
protectedslot

call the m_SubCellTypeManager to add a new subcelltype (ask the user to enter name+description and save it in the database) and call the setListSubCelltype to update the list in the TraceManualEditingWidget

Definition at line 1105 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ChangeLineageColor ( )
protectedslot

slot connected to the TraceColorToChange() emitted by the m_MeshesManager

Definition at line 1338 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ChangeMeshColor ( )
protectedslot

slot connected to the TraceColorToChange() emitted by the m_MeshesManager

Definition at line 1320 of file QGoPrintDatabase.cxx.

template<typename TTrace , typename TCollection >
void QGoPrintDatabase::ChangeTraceColor ( TTrace *  iTraceManager,
TCollection *  iCollectionOfManager 
)
inlineprotected

update the color for the checked traces and the rows in the table widget for the collectionOf

Parameters
[in]iTraceManagermanager for the trace (expl: mesh)
[in]iCollectionOfManagermanager for the collectionOf (expl:contour)
Template Parameters
TTracechildren of QGoDBTraceManager
TCollectionchildren of QGoDBTraceManager

Definition at line 509 of file QGoPrintDatabase.h.

void QGoPrintDatabase::ChangeTrackColor ( )
protectedslot

slot connected to the TraceColorToChange() emitted by the m_MeshesManager

Definition at line 1329 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CloseDBConnection ( )
protectedslot

Definition at line 208 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateConnectionsForTraceSettingsWidget ( QGoTraceSettingsWidget iTraceSettingsWidget)
protected

create all the connections between the QGoPrintDatabase and the QGoTraceSettingsWidget (TS)

Definition at line 917 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateContextMenu ( const QPoint &  iPos)
protectedslot

Definition at line 1258 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateNewLineageFromTracks ( std::list< unsigned int >  iListCheckedTracks,
unsigned int  iTrackIDRoot,
std::list< unsigned int >  iLineagesToDelete 
)
protectedslot

slot connected to the signal NewLineageToCreateFromTracks() emitted by the m_TracksManager

Parameters
[in]iListTrackslist of the tracksIDs to be part of the new lineage
[in]iTrackIDRootID of the track to be the root of the new lineage to be created
[in]iLineagesToDelete

Definition at line 1848 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateNewMeshFromCheckedContours ( std::list< unsigned int >  iListCheckedContours)
protectedslot

slot connected to the signal NewCollectionFromCheckedTraces() emitted by the m_ContoursManager, emit the signal NewMeshToGenerate for the visu after creating a new mesh and calling the AddCheckedTracesToCollection template method.

Parameters
[in]iListCheckedContourslist of the meshIDs of the checked meshes in the TW

Definition at line 1828 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateNewTrackFromListMeshes ( std::list< unsigned int >  iListMeshes)
protectedslot

create a new track and call the AddCheckedTracesToCollection template method to add the meshes from the list to this new track

Parameters
[in]iListMesheslist of the meshIDs to belong to the new track

Definition at line 1718 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::CreateNewTrackFromListMeshes ( std::list< std::list< unsigned int > >  iListsCheckedMeshes)
protectedslot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1813 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DBVariablesSet ( )
signal
void QGoPrintDatabase::DeleteBookmarks ( )
slot

Definition at line 609 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DeleteCellType ( )
protectedslot

call the m_CellTypeManager to delete celltypes (display all the celltypes for the user to select the ones he wants to delete and delete them from the database) and call the setListCelltype to update the list in the TraceManualEditingWidget

Definition at line 1145 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DeleteCheckedContours ( )
protectedslot

slot connected to the signal TracesToDelete() emitted by the m_ContoursManager

Definition at line 1277 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DeleteCheckedLineages ( )
protectedslot

slot connected to the signal TracesToDelete() emitted by the m_LineagesManager

Definition at line 1311 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DeleteCheckedMeshes ( )
protectedslot

slot connected to the signal Traces TracesToDelete() emitted by the m_MeshesManager

Definition at line 1286 of file QGoPrintDatabase.cxx.

template<typename TTrace , typename TCollection , typename TCollectionOf >
void QGoPrintDatabase::DeleteCheckedTraces ( TTrace *  iTraceManager,
TCollection *  iCollectionManager,
TCollectionOf *  iCollectionOfManager,
bool  lineage = false 
)
inlineprotected

delete the checked traces from the database,TW,visu container, udpate the collectionof collectionID in database and TW and update the bounding box of the collection

todo once lineage container is set up, the bool track needs to be removed

Parameters
[in]iTraceManagerthe manager for the trace expl: mesh_manager
[in]iCollectionManagerthe manager for the collection expl: track
[in]iCollectionOfManagerthe manager for the collectioof expl: contour
[in]trackif the trace is track, track is set to true
Template Parameters
TTracechildren of QGoDBTraceManager
TCollectionchildren of QGoDBTraceManager

Definition at line 536 of file QGoPrintDatabase.h.

void QGoPrintDatabase::DeleteCheckedTracks ( )
protectedslot

slot connected to the signal TracesToDelete() emitted by the m_TracksManager

Definition at line 1302 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::DeleteColor ( )
protectedslot

call the m_ColorManager to delete colors (display all the colors for the user to select the ones he wants to delete and delete them from the database) and call the SetColorComboBoxInfofromDB to update the list in the TraceManualEditingWidget

Definition at line 1163 of file QGoPrintDatabase.cxx.

template<typename TTrace , typename TCollection , typename TCollectionOf >
void QGoPrintDatabase::DeleteListTraces ( TTrace *  iTraceManager,
TCollection *  iCollectionManager,
TCollectionOf *  iCollectionOfManager,
std::list< unsigned int >  iListTracesToDelete,
bool  lineage = false 
)
inlineprotected

delete the traces of iListTracesToDelete from the database,TW, visu container, udpate the collectionof collectionID in database and TW and update the bounding box of the collection

Parameters
[in]iTraceManagerthe manager for the trace expl: mesh_manager
[in]iCollectionManagerthe manager for the collection expl: track
[in]iCollectionOfManagerthe manager for the collectioof expl: contour
[in]iListTracesToDeletelist of the traceIDs to be deleted
[in]trackif the trace is track, track is set to true
Template Parameters
TTracechildren of QGoDBTraceManager
TCollectionchildren of QGoDBTraceManager

Definition at line 570 of file QGoPrintDatabase.h.

void QGoPrintDatabase::DeleteSubCellType ( )
protectedslot

call the m_SubCellTypeManager to delete subcelltypes (display all the subcelltypes for the user to select the ones he wants to delete and delete them from the database) and call the setListSubCelltype to update the list in the TraceManualEditingWidget

Definition at line 1181 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ExportContours ( )
slot

Definition at line 689 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ExportMeshes ( )
slot

Definition at line 712 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::FillTableFromDatabase ( const unsigned int &  iTreshold)

Create the QTableWidgetChild,get the columns names and the values stored in the database, display them in the QTableWidgetChild and fill the info for the contours and meshes.

Definition at line 219 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::GetContentAndDisplayAllTracesInfo ( vtkMySQLDatabase *  iDatabaseConnector)
protected

get the data from the database for contours, meshes and tracks, display them in the TableWidget and load the different containers for the visu with the info from the database

Definition at line 1198 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::GetContentAndDisplayAllTracesInfoFor3TPs ( vtkMySQLDatabase *  iDatabaseConnector)
protected

Definition at line 1216 of file QGoPrintDatabase.cxx.

std::vector< ContourMeshStructure > QGoPrintDatabase::GetContoursForAGivenTimepoint ( unsigned int  iTimePoint)

Return a vector of all the contours for the given timepoint.

GoDBCoordinateRow QGoPrintDatabase::GetCoordinateForBookmark ( std::string  iName)

Definition at line 596 of file QGoPrintDatabase.cxx.

QGoPrintDatabase::NamesDescrContainerType QGoPrintDatabase::GetListBookmarks ( )

Definition at line 584 of file QGoPrintDatabase.cxx.

std::list< QGoPrintDatabase::ItemColorComboboxData > QGoPrintDatabase::GetListCollectionIDFromDB ( vtkMySQLDatabase *  iDatabaseConnector,
std::string &  ioIDToSelect 
)
protected

get the collection id with their corresponding color from the database

Parameters
[in]iDatabaseConnectorconnection to the database
[in]ioIDToSelectID to be selected in the combobox

Definition at line 511 of file QGoPrintDatabase.cxx.

std::vector< ContourMeshStructure > QGoPrintDatabase::GetMeshesForAGivenTimepoint ( unsigned int  iTimePoint)

Return a vector of all the meshes for the given timepoint.

int QGoPrintDatabase::GetNumberOfElementForTraceAndTimePoint ( std::string  iTrace,
int  iTimePoint 
)

Definition at line 2157 of file QGoPrintDatabase.cxx.

QGoTraceSettingsWidget * QGoPrintDatabase::GetTraceSettingsWidget ( )

return the TraceSettingsDockWidget

Definition at line 856 of file QGoPrintDatabase.cxx.

QGoTraceSettingsWidget * QGoPrintDatabase::GetTraceSettingsWidgetForToolBar ( )

Definition at line 864 of file QGoPrintDatabase.cxx.

std::list< unsigned int > QGoPrintDatabase::GetVisibleTimePoints ( )

Definition at line 2148 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ImportContours ( )

get the info from a textfile, save it into the database, update the container for visu and the TW

Definition at line 736 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ImportMeshes ( )

get the info from a textfile, save it into the database, update the container for visu and the TW

Definition at line 779 of file QGoPrintDatabase.cxx.

std::vector< int > QGoPrintDatabase::ImportTracks ( )

get the info from a textfile, save it into the database, update the container for visu and the TW and recalculate the points for the tracks

Returns
all the new trackIDs

Definition at line 819 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::InitializeTheComboboxesNotTraceRelated ( )

Initialize or reinitialized the celltype,subcelltype and color list from the database into the traceSettingswidget.

Definition at line 971 of file QGoPrintDatabase.cxx.

std::string QGoPrintDatabase::InWhichTableAreWe ( )

Return the Name of the tab currently used in the table widget, which correspond to the TraceName of the CollectionOfTraces:

Definition at line 261 of file QGoPrintDatabase.cxx.

bool QGoPrintDatabase::IsDatabaseUsed ( )

return a bool to know if the user is using the database or not

Definition at line 502 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::NeedToGoToTheLocation ( int  XCoord,
int  YCoord,
int  ZCoord,
int  TCoord 
)
signal

signal emitted when a signal is emitted from a m_TraceManager for "go to the trace " from the context menu

void QGoPrintDatabase::NeedToGoToTheRealLocation ( double  XCoord,
double  YCoord,
double  ZCoord,
int  TCoord 
)
signal
bool QGoPrintDatabase::NeedTraceSettingsToolBarVisible ( )

check if the tracesettingsWidget is visible, if not, return true.

Definition at line 2039 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::NewMeshToGenerate ( std::list< unsigned int >  ListContourIDs,
int  iNewMeshID 
)
signal
void QGoPrintDatabase::OpenBookmarksToUpdate ( )
signal
void QGoPrintDatabase::OpenDBConnection ( )
protected

Definition at line 196 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PassDBConnectionToContoursManager ( )
protectedslot

open the connection to the database and pass it to the ContoursManager

Definition at line 1627 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PassDBConnectionToLineagesManager ( )
protectedslot

open the connection to the database and pass it to the LineagesManager

Definition at line 1654 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PassDBConnectionToMeshesManager ( )
protectedslot

open the connection to the database and pass it to the MeshesManager

Definition at line 1636 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PassDBConnectionToTracksManager ( )
protectedslot

open the connection to the database and pass it to the TracksManager

Definition at line 1645 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PassMeshesInfoForImportedTrack ( unsigned int  iTrackID)
protectedslot

get the info needed for track from the meshcontainer, and update the points of the track container (for imported tracks)

Parameters
[in]iTrackIDtrack ID for which the points will be recalculated

Definition at line 1672 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PrintCalculatedValuesForTrack ( GoFigureTrackAttributes iTrackAttributes,
unsigned int  iTrackID 
)

display in the table widget the values from iTrackAttributes for iTrackID

Parameters
[in]iTrackAttributescontains the values to be displayed
[in]iTrackIDID of the track

Definition at line 1357 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::PrintDBReady ( )
signal
void QGoPrintDatabase::PrintMessage ( QString  iMessage,
int  iTimeOut = 0 
)
signal
void QGoPrintDatabase::PrintVolumeAreaForMesh ( GoFigureMeshAttributes iMeshAttributes,
unsigned int  iMeshID 
)

display in the table widget the volume and area from iMeshAttributes for iMeshID

Parameters
[in]iMeshAttributescontains the values to be displayed
[in]iMeshIDID of the mesh

Definition at line 1347 of file QGoPrintDatabase.cxx.

QGoPrintDatabase::Q_DISABLE_COPY ( QGoPrintDatabase  )
private
void QGoPrintDatabase::ReEditTrace ( unsigned int  iTraceID)
protectedslot

emit a signal TraceToReedit and set m_ReeditMode to true

Parameters
[in]iTraceIDID of the trace to reedit

Definition at line 1663 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::RemoveTracesFromListTimePoints ( vtkMySQLDatabase *  iDatabaseConnector,
std::list< unsigned int >  iListTimePoints 
)
protected

Definition at line 1246 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SaveContoursFromVisuInDB ( unsigned int  iXCoordMin,
unsigned int  iYCoordMin,
unsigned int  iZCoordMin,
unsigned int  iTCoord,
unsigned int  iXCoordMax,
unsigned int  iYCoordMax,
unsigned int  iZCoordMax,
vtkPolyData *  iContourNodes 
)

save a new contour from the visu into the database, update the table widget and the CurrentElement of the visu container if reeditMode is set to false; if not, update the contour in the DB and in the TW, for both modes, update the mesh the contour is part of.

Definition at line 270 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SaveMeshFromVisuInDB ( unsigned int  iXCoordMin,
unsigned int  iYCoordMin,
unsigned int  iZCoordMin,
unsigned int  iXCoordMax,
unsigned int  iYCoordMax,
unsigned int  iZCoordMax,
int  iTCoord,
vtkPolyData *  iMeshNodes,
GoFigureMeshAttributes iMeshAttributes,
int  iTrackID = -1 
)

save the mesh into the database for a mesh generated in the visualization, if the mesh is an updated mesh which already exists(for example a new contour is added to this mesh, the NewMesh has to be set to false

Parameters
[in]iTrackIDTrack ID we want the mesh to belong to. if -1, we get the track ID from the trace editing widget.
Todo:
print a different message if several meshes are created at the same timepoint

Definition at line 317 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SaveNewCollectionFromTraceWidgetInDBAndTW ( )
protectedslot

Add the new collection in the database,add a row in TW and update the colorcombobox.

Definition at line 530 of file QGoPrintDatabase.cxx.

unsigned int QGoPrintDatabase::SaveNewContourForMeshToContours ( unsigned int  iXCoordMin,
unsigned int  iYCoordMin,
unsigned int  iZCoordMin,
unsigned int  iXCoordMax,
unsigned int  iYCoordMax,
unsigned int  iZCoordMax,
vtkPolyData *  iTraceNodes 
)

save a new contour in the database, the TW and the container for the contours to sphere action

Parameters
[in]iXCoordMinxcoord of the minimum for the boundingbox
[in]iYCoordMinycoord of the minimum for the boundingbox
[in]iZCoordMinzcoord of the minimum for the boundingbox
[in]iXCoordMaxxcoord of the maximum for the boundingbox
[in]iYCoordMaxycoord of the maximum for the boundingbox
[in]iZCoordMaxzcoord of the maximum for the boundingbox
[in]iTraceNodesnodes to be saved as points in the database
Returns
unsigned int ID of the new created contour

Definition at line 480 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SaveNewMeshForMeshToContours ( int  iNumberOfContours)
slot

Definition at line 442 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetConnectionsBetweenTheInstancesOfTraceSettings ( )
protected

set the tracesettings widget to be in the mainwindow toolbar and the connection between the 2 instances of tracesettingswidget

Definition at line 871 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetContoursContainer ( ContourContainer iContoursContainer)

set the pointer m_TraceInfoForVisu of the ContoursManager to iContoursContainer

Parameters
[in]iContoursContainerpointer for the container of contours for the visu

Definition at line 1376 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetContoursManager ( )
protected

create the m_ContoursManager and its SLOT/SIGNAL connection

Definition at line 1428 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetDatabaseVariables ( const std::string &  iNameDB,
const std::string &  iServer,
const std::string &  iUser,
const std::string &  iPassword,
const unsigned int &  iImgSessionID,
const std::string &  iImgSessionName 
)

set all the values needed for the database

Definition at line 171 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetLineagesContainers ( LineageContainer iContainer,
TrackContainer iTrackContainer 
)

set the pointer m_LineageInfoForVisu of the LineagesManager to iContainer

Parameters
[in]iContainerpointer for the container of lineages for the visu [in] iTrackContainer pointer for the container of tracks

Definition at line 1407 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetLineagesManager ( )
protected

create the m_LineagesManager and its SLOT/SIGNAL connection

Definition at line 1597 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetMeshesContainer ( MeshContainer iMeshesContainer)

set the pointer m_TraceInfoForVisu of the MeshesManager to iMeshesContainer

Parameters
[in]iMeshesContainerpointer for the container of meshes for the visu

Definition at line 1385 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetMeshesManager ( )
protected

create the m_MeshesManager and its SLOT/SIGNAL connection

Definition at line 1471 of file QGoPrintDatabase.cxx.

template<typename T >
void QGoPrintDatabase::SetTheColorForTheRow ( T &  ioRow,
QColor  iColor 
)
inlineprotected

get the RGB Alpha values from the iTraceRow and set a QColor with them

Template Parameters
Tany children of GoDBTraceRow
Parameters
[in]iTraceRowthe trace from which the QColor is created
[in]iDatabaseConnectorconnection to the database
Returns
QColor with the values corresponding to the color values of the iTraceRow set the color of the traceRow according to the iColor
Parameters
[in,out]ioRowtraceRow with the color to be set up
[in]iColorcolor for the traceRow
Template Parameters
Tchildren of GoDBTraceRow

Definition at line 492 of file QGoPrintDatabase.h.

void QGoPrintDatabase::SetTraceNameForTableWidget ( std::string  iTraceName)

update the traceSettingswidget for the trace with the corresponding list of collectionID and set the tablewidget for the trace table

Parameters
[in]iTraceNamename of the corresponding trace

Definition at line 958 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTracesManager ( )
protected

set all the traces manager

Definition at line 1417 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTracksContainer ( TrackContainer iContainer)

set the pointer m_TrackInfoForVisu of the TracksManager to iTracksContainer

Parameters
[in]iContainerpointer for the container of tracks for the visu

Definition at line 1394 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTracksManager ( )
protected

create the m_TracksManager and its SLOT/SIGNAL connection

Definition at line 1525 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListCellTypes ( std::string  iCellTypeToSelect = "")
protected

get the list of celltypes from the database, put them in the Trace Settings combobox and if the string is not empty, the combobox will have as selected item the string

Parameters
[in]iCellTypeToSelectname of the celltype to be selected

Definition at line 1029 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListCellTypesWithPreviousSelectedOne ( )
protected

get the list of celltypes from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected

Definition at line 1044 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListCollectionID ( )
protectedslot

get a list of the IDs with their colors for the collection corresponding to the tracename, for the given timepoint if the collection is a mesh or for all timepoints for tracks and lineages, update the Trace Settings colorcombobox and select the corresponding ID in the combobox if the string is not empty

Definition at line 1011 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListColors ( std::string  iColorToSelect = "")
protected

get the data for the colorcombobox from the database, put them in the Trace Settings colorcombobox and if the string is not empty, the combobox will have as selected item the string

Parameters
[in]iColorToSelectname of the color to be selected in the combobox

Definition at line 981 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListColorsWithPreviousSelectedOne ( )
protected

get the list of colors from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected

Definition at line 998 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListSubCellTypes ( std::string  iSubCellTypeToSelect = "")
protected

get the list of subcelltypes from the database, put them in the Trace Settings combobox and if the string is not empty, the combobox will have as selected item the string

Parameters
[in]iSubCellTypeToSelectname of the subcelltype to be selected

Definition at line 1057 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetTSListSubCellTypesWithPreviousSelectedOne ( )
protected

get the list of subcelltypes from the database, put them in the Trace Settings combobox and the combobox will have as selected item the one previously selected

Definition at line 1072 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SetUpUi ( )
protected

Definition at line 143 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::ShowHideTraceSettingsFromContextMenu ( bool  isVisible)
protectedslot

show/hide the Trace Settings widget depending on the checkstate of the action in the context menu of the dockwidget

Definition at line 2031 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SplitMergeTracksWithWidget ( std::list< unsigned int >  iTrackIDs)
protectedslot

slot called after signal TrackIDToBeModifiedWithWidget sent by tracksManager, display the checked tracks in a widget allowing the user to split and merge them and save the results in the database if the user clicks the OK button

Parameters
[in]iTrackIDschecked tracks

Definition at line 1968 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::SplitTheTrack ( unsigned int  iTrackID,
std::list< unsigned int >  iListMeshIDs 
)
protectedslot

split the checked track: a new track is created with the checked mesh and the meshes with timepoint sup and the checked track is updated.

Parameters
[in]iTrackIDID for the checked track
[in]iListMeshIDsmeshes belonging to the iTrackID before the split

Definition at line 1701 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::TheTraceHasChanged ( int  iIndex)
protectedslot

slot connected to the combobox for the trace in the trace settings widget

Definition at line 643 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::TraceToReEdit ( unsigned  int)
signal
template<typename TTrace , typename TCollectionOf >
std::list<unsigned int> QGoPrintDatabase::UpdateCollectionDataForTracesToBeDeleted ( TTrace *  iTraceManager,
TCollectionOf *  iCollectionOfManager,
std::list< unsigned int >  iListTracesToDelete 
)
inlineprotected

udpate the collectionof collectionID in database and TW

Parameters
[in]iTraceManagerthe manager for the trace expl: mesh_manager
[in]iCollectionOfManagerthe manager for the collectioof expl: contour
[in]iListTracesToDeletelist of the traceIDs to be deleted
Template Parameters
TTracechildren of QGoDBTraceManager
TCollectionOfchildren of QGoDBTraceManager

Definition at line 596 of file QGoPrintDatabase.h.

void QGoPrintDatabase::UpdateSelectedCollectionForTableWidget ( std::string  iTableName)
protected

Definition at line 674 of file QGoPrintDatabase.cxx.

void QGoPrintDatabase::UpdateSelectedTimePoint ( int  iTimePoint)
slot

Definition at line 619 of file QGoPrintDatabase.cxx.

std::list< unsigned int > QGoPrintDatabase::UpdateTableWidgetAndContainersForGivenTimePoint ( const unsigned int &  iNewTimePoint)

Update the table widget and the visualization container contents based on the given time point and the previous visible time points. It erases actors and remove them from the visualization. It doesn't create actors after adding polydata to container.

Todo:
check if we can do it properly remove elements from a list while iterating on it doesn't sound safe that's why we use listCommonT To be checked

Definition at line 2056 of file QGoPrintDatabase.cxx.

Member Data Documentation

QGoDBBookmarkManager* QGoPrintDatabase::m_BookmarkManager
protected

Definition at line 323 of file QGoPrintDatabase.h.

QGoDBCellTypeManager* QGoPrintDatabase::m_CellTypeManager
protected

Definition at line 326 of file QGoPrintDatabase.h.

QGoDBColorManager* QGoPrintDatabase::m_ColorManager
protected

Definition at line 328 of file QGoPrintDatabase.h.

QGoDBContourManager* QGoPrintDatabase::m_ContoursManager
protected

Definition at line 332 of file QGoPrintDatabase.h.

vtkMySQLDatabase* QGoPrintDatabase::m_DatabaseConnector
protected

Definition at line 339 of file QGoPrintDatabase.h.

std::string QGoPrintDatabase::m_DBName
protected

Definition at line 343 of file QGoPrintDatabase.h.

unsigned int QGoPrintDatabase::m_ImgSessionID
protected

Definition at line 344 of file QGoPrintDatabase.h.

std::string QGoPrintDatabase::m_ImgSessionName
protected

Definition at line 345 of file QGoPrintDatabase.h.

bool QGoPrintDatabase::m_IsDatabaseUsed
protected

Definition at line 346 of file QGoPrintDatabase.h.

QGoDBLineageManager* QGoPrintDatabase::m_LineagesManager
protected

Definition at line 335 of file QGoPrintDatabase.h.

QGoDBMeshManager* QGoPrintDatabase::m_MeshesManager
protected

Definition at line 333 of file QGoPrintDatabase.h.

bool QGoPrintDatabase::m_MeshGenerationMode
protected

Definition at line 349 of file QGoPrintDatabase.h.

std::string QGoPrintDatabase::m_Password
protected

Definition at line 342 of file QGoPrintDatabase.h.

bool QGoPrintDatabase::m_ReeditMode
protected

Definition at line 348 of file QGoPrintDatabase.h.

int* QGoPrintDatabase::m_SelectedTimePoint
protected

Definition at line 322 of file QGoPrintDatabase.h.

std::string QGoPrintDatabase::m_Server
protected

Definition at line 340 of file QGoPrintDatabase.h.

QStackedWidget* QGoPrintDatabase::m_StackedTables
protected

Definition at line 336 of file QGoPrintDatabase.h.

QGoDBSubCellTypeManager* QGoPrintDatabase::m_SubCellTypeManager
protected

Definition at line 327 of file QGoPrintDatabase.h.

bool QGoPrintDatabase::m_TraceSettingsVisible
protected

Definition at line 350 of file QGoPrintDatabase.h.

QGoTraceSettingsWidget* QGoPrintDatabase::m_TraceSettingsWidget
protected

Definition at line 329 of file QGoPrintDatabase.h.

QGoTraceSettingsWidget* QGoPrintDatabase::m_TraceSettingsWidgetForToolBar
protected

Definition at line 330 of file QGoPrintDatabase.h.

QGoDBTrackManager* QGoPrintDatabase::m_TracksManager
protected

Definition at line 334 of file QGoPrintDatabase.h.

std::string QGoPrintDatabase::m_User
protected

Definition at line 341 of file QGoPrintDatabase.h.

std::list<unsigned int> QGoPrintDatabase::m_VisibleTimePoints
private

Definition at line 902 of file QGoPrintDatabase.h.


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