This class manages the database queries, the table widget and the data from the database in the Container for visu for the meshes ,.
More...
Public Member Functions |
| void | AddInfoInTWAndVisuContainerForMeshesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs) |
| void | CleanTWAndContainerForGivenTimePoint (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iTimePoints) |
| unsigned int | CreateNewMeshWithNoContourNoPoints (vtkMySQLDatabase *iDatabaseConnector) |
| virtual void | DeleteCheckedTraces (vtkMySQLDatabase *iDatabaseConnector) |
| | delete the checked traces from the database, the TW and the container for visu
|
| void | DisplayInfoAndLoadVisuContainerForAllMeshes (vtkMySQLDatabase *iDatabaseConnector) |
| | get all the data from the database to load all the meshes for the imagingsession into the table widget and the container for the visu
|
| void | DisplayInfoAndLoadVisuContainerForAllMeshesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs) |
| virtual void | DisplayInfoForExistingTrace (vtkMySQLDatabase *iDatabaseConnector, int iTraceID) |
| | Virtual pure method: get the data needed from the database for the existing trace with iTraceID and update the corresponding row in the m_Table.
|
| void | DisplayInfoForExistingTraceForMesh (vtkMySQLDatabase *iDatabaseConnector, int iTraceID, GoFigureMeshAttributes *iMeshAttributes) |
| void | DisplayInfoForLastCreatedMesh (vtkMySQLDatabase *iDatabaseConnector, GoFigureMeshAttributes *iMeshAttributes) |
| virtual void | DisplayInfoForLastCreatedTrace (vtkMySQLDatabase *iDatabaseConnector) |
| | Virtual pure method: get the data needed from the database for the last created trace and display them in a new inserted row of the m_Table.
|
| void | DisplayOnlyVolumeAreaForExistingMesh (GoFigureMeshAttributes *iMeshAttributes, unsigned iMeshID) |
| | display in the TW the volume and area extracted from iMeshAttributes called when loading all meshes from database when opening an imagingsession
|
virtual std::list
< NameWithColorData > | GetAllTraceIDsWithColor (vtkMySQLDatabase *iDatabaseConnector, std::string &ioIDToSelect) |
| | return the distinct traces with their color for the imagingsession, for all timepoints if the timepoint is set to the default one or for the corresponding timepoint if not
|
| virtual std::list< unsigned int > | GetListHighlightedIDs () |
std::list< std::pair< unsigned
int, double > > | GetListVolumes () |
| | Get volume of checked mesh IDs.
|
std::list< std::pair< unsigned
int, double > > | GetListVolumes (const std::list< unsigned int > &iMeshIDs) |
| | Get volume of given mesh IDs.
|
| MeshContainer * | GetMeshesInfoFromDBAndCreateContainerForVisu (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListCollectionIDs) |
| | get the info needed from the database for the meshes who belongs to the collectionIDs contained in iListCollectionIDs and create a new container for visu for these meshes
|
| double | GetVolume (unsigned int iMeshID) |
| | Get volume of given mesh ID.
|
| void | ModifyTrackIDInVisuContainer (unsigned int iTrackID, const std::list< unsigned int > &iToTrack, const std::list< unsigned int > &iToNull) |
| | QGoDBMeshManager (int iImgSessionID, QWidget *iparent) |
| void | RemoveTracesFromTWAndContainerForVisuForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs) |
| void | SaveGeneratedMeshFromVisu (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, GoFigureMeshAttributes *iMeshAttributes) |
| unsigned int | SaveNewMeshFromVisu (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, int iTShift, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, GoFigureMeshAttributes *iMeshAttributes) |
| unsigned int | SaveNewMeshFromVisu (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, int iTShift, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, GoFigureMeshAttributes *iMeshAttributes, unsigned int iTrackID) |
| unsigned int | SaveNewMeshWithNoTrackFromVisu (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, int iTShift, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, GoFigureMeshAttributes *iMeshAttributes) |
| void | SetMeshesInfoContainerForVisu (MeshContainer *iContainerForVisu) |
| | set the m_MeshContainerInfoForVisu to the iContainerForVisu
|
| void | SetSelectedCellType (std::string *iCellType) |
| | set the m_SelectedCelltype to iCelltype
|
| void | SetSelectedSubCellType (std::string *iSubCellType) |
| | set the m_SelectedSubCelltype to iSubCelltype
|
| void | UpdateBoundingBoxes (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTracesIDs) |
| | update the bounding boxes for the meshes with no points
|
| std::list< unsigned int > | UpdateTheTracesColor (vtkMySQLDatabase *iDatabaseConnector) |
| | virtual pure method in QGoDBTraceManager
|
| virtual void | UpdateTWAndContainerForImportedTraces (const std::vector< int > &iVectorImportedTraces, vtkMySQLDatabase *iDatabaseConnector) |
| | get the data needed from the database for the imported traces,display them in new inserted rows of the m_Table and update the container for the visu.
|
| | ~QGoDBMeshManager () |
| void | CheckShowRows () |
| | if m_IsShowOnlyCurrentTimePointOn is true, call the method to show only the rows for the current timepoint, useful when the timepoint changes
|
| void | DisplayInfoForExistingTraces (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTraces) |
| | get the data from the database corresponding to the iListTraces and display them in the Table Widget
|
| std::list< unsigned int > | GetLastCreatedTracesIDs (vtkMySQLDatabase *iDatabaseConnector, int iNumberOfTracesIDs) |
| | get the last saved traces in the database
|
| std::list< unsigned int > | GetListCollectionIDs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTracesIDs) |
| | return the list of collection IDs distinct and different from zero corresponding to the tracesIDs
|
| std::list< unsigned int > | GetListTracesIDsBelongingToCollectionIDs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListCollectionIDs) |
| | get the list of tracesIDs belonging to the collection listed in iListCollectionIDs
|
| std::list< unsigned int > | GetListTracesIDsFromThisCollectionOf (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTraces) |
| | get the collectionOf IDs for the TracesIDs found in iListTraces
|
| QGoTableWidget * | GetTableWidget () |
| | get the m_Table
|
| | QGoDBTraceManager (QObject *iParent=NULL) |
| void | SetCurrentTimePoint (int *iTimePoint) |
| | set the pointer to the current timepoint
|
| void | SetDatabaseConnection (vtkMySQLDatabase *iDatabaseConnector) |
| | set the m_DatabaseConnection to iDatabaseConnector
|
| void | SetSelectedCollection (NameWithColorData *iCollectionData) |
| | set the pointer to the selected collection data
|
| void | SetSelectedColor (NameWithColorData *iColorData) |
| | set the pointer to the current selected color
|
| virtual void | UpdateBoundingBoxes (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTracesIDs, bool UpdateTW=true) |
| | update in the database the bounding boxes corresponding to the TracesIDs and update the corresponding rows in the TW if the bool is set to true.
|
| void | UpdateCollectionID (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTracesIDs, int iCollectionID) |
| | update the collectionID of the tracesIDs in the list with the iCollectionID in the database and the TW
|
| void | UpdateLastSelectedOneAsCollection () |
| void | UpdateTWAndContainerForDeletedTraces (const std::list< unsigned int > &iTraceIDs) |
| | delete the corresponding traces in the table widget and in the container for visu
|
| virtual | ~QGoDBTraceManager () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| | QObject (QObject *parent) |
| | QObject (QObject *parent, const char *name) |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
| virtual | ~QObject () |
Protected Member Functions |
| virtual void | AddActionsContextMenu (QMenu *iMenu) |
| void | AddInfoForMeshesInTWForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs) |
| virtual void | DisplayInfoForAllTraces (vtkMySQLDatabase *iDatabaseConnector) |
| | Virtual pure method: get the data needed from the database and display them in the m_Table for all traces corresponding to the imagingsession.
|
| virtual void | DisplayInfoForTracesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs) |
std::pair< unsigned int,
unsigned int > | GetInfoForTheOnlyOneCheckedMeshOfTheTrack (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTrackID) |
| | check that there is one and only one mesh checked belonging to the track and return its ID and its timepoint
|
| virtual void | GetTracesInfoFromDBAndModifyContainerForVisu (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iVectIDs=std::list< unsigned int >()) |
| | get the info needed from the database to update the container for visu
|
| void | PrintValuesForMeshWithNoPoints (unsigned int iTraceID) |
| virtual void | SetCollectionsTraceNames () |
| | virtual pure method: set the std::string class members
|
| void | SetMeshBoundingBoxAndPoints (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, GoDBMeshRow &iMesh, GoFigureMeshAttributes *iMeshAttributes, int iShift=0) |
| virtual void | AddActionForAddingCheckedTracesToCollection () |
| void | AddGeneralActionsContextMenu (QMenu *iMenu) |
| void | AddSpecificActionsForContourMesh (QMenu *iMenu) |
| bool | CheckThatThereAreTracesToDelete (const std::list< unsigned int > &iListTracesIDToDelete) |
| template<typename T > |
| unsigned int | CreateNewTraceInDBFromVisu (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iTCoord, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iTraceNodes, NameWithColorData iColor, vtkMySQLDatabase *iDatabaseConnector, T &iTrace, unsigned int iCollectionID, unsigned int iTCoordMax=0) |
| | create the trace row with the related data provided by the visu, iTCoordMax is equal to 0 as for contour and mesh, it is the same as TCoord
|
| template<typename T > |
| void | DeleteTracesTemplate (vtkMySQLDatabase *iDatabaseConnector, T *iContainerForVisu, std::list< unsigned int > iListTracesToDelete=std::list< unsigned int >(), bool DeleteHighlightedTraces=true) |
| | delete the traces from the database, the TW and the container for visu
|
| template<typename T > |
| void | DisplayInfoAndLoadVisuContainerWithAllTraces (T *iTWContainer, vtkMySQLDatabase *iDatabaseConnector) |
| | get all the data from the database to load all the traces for the imagingsession into the table widget and the container for the visu
|
| template<typename C > |
| void | DisplayInfoAndLoadVisuContainerWithAllTracesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, C *iContainerForVisu, const std::list< unsigned int > &iListTPs) |
| template<typename T > |
| void | DisplayInfoForAllTracesTemplate (T *iTWContainer, vtkMySQLDatabase *iDatabaseConnector, Qt::CheckState iState, int iIndexShowColumn=0) |
| | fill the TWContainer with all the data needed from the database and display them into the m_Table
|
| template<typename T > |
| void | DisplayInfoForExistingTraceTemplate (T *iTWContainer, vtkMySQLDatabase *iDatabaseConnector, int iTraceID) |
| | fill the TWContainer with the data needed from the database for the trace with the iTraceID and update the corresponding row into the m_Table
|
| template<typename T > |
| void | DisplayInfoForLastCreatedTraceTemplate (T *iTWContainer, vtkMySQLDatabase *iDatabaseConnector) |
| | fill the TWContainer with the data needed from the database for the last created trace and insert a new row into the m_Table to display them
|
| template<typename T > |
| void | DisplayInfoForTracesForSpecificTPsTemplate (T *iTWContainer, vtkMySQLDatabase *iDatabaseConnector, Qt::CheckState iState, const std::list< unsigned int > &iListTPs, int iIndexShowColumn=0) |
| GoDBCoordinateRow | GetCoordinateFromInt (int iXCoord, int iYCoord, int iZCoord, int iTCoord) |
| | create a GoDBCoordinateRow and set its fields X,Y,Z,Tcoord
|
| int | GetLastCreatedTraceID (vtkMySQLDatabase *iDatabaseConnector) |
| | get the ID for the last created trace in the database
|
| std::string | GetTheNameIDFromName (std::string iName) |
| | transform the iName into iNameID
|
| template<typename C , typename S > |
| void | GetTracesInfoFromDBAndModifyContainerForVisu (vtkMySQLDatabase *iDatabaseConnector, std::vector< int > iVectIDs, C *iContainerForVisu) |
| template<typename T > |
| void | GetTracesInfoFromDBAndModifyContainerForVisuTemplate (T *iContainerForVisu, vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTraceIDs) |
| | get the info needed from the database to fill the container for visu
|
| double * | GetVectorFromQColor (QColor iColor) |
| | return a double rgba[4] from a QColor
|
| template<typename C > |
| void | RemoveTracesFromTWAndContainerForVisuForSpecificTPsTemplate (vtkMySQLDatabase *iDatabaseConnector, C *iContainerForVisu, const std::list< unsigned int > &iListTPs) |
| template<typename T > |
| void | SetColorCodingTemplate (T *iContainerForVisu, bool IsChecked) |
| | get a map with the tracesIDs as keys and the values of the selected columns as values for all traces in the table widget and update the color of the traces in the visu
|
| void | SetInfo (unsigned int iImgSessionID, QWidget *iParent) |
| | set the variables class members
|
| template<typename T > |
| void | SetTraceBoundingBoxAndPoints (unsigned int iXCoordMin, unsigned int iYCoordMin, unsigned int iZCoordMin, unsigned int iTCoord, unsigned int iXCoordMax, unsigned int iYCoordMax, unsigned int iZCoordMax, vtkPolyData *iTraceNodes, vtkMySQLDatabase *iDatabaseConnector, T &iTrace, unsigned int iTCoordMax=0) |
| template<typename T > |
| void | SetTracesInfoContainerForVisuTemplate (T *iContainerForVisu, T **iMemberContainerForVisu) |
| | set the iMemberContainerInfoForVisu to the iContainerForVisu and create the connections SLOT/SIGNAL
|
| template<typename T , typename C > |
| std::list< unsigned int > | UpdateTheTracesColorTemplate (vtkMySQLDatabase *iDatabaseConnector, C *iContainerInfoForVisu) |
| | update the visu container, the database and the TW with the user selected color for the highlighted traces
|
| template<typename T > |
| void | UpdateTWAndContainerWithImportedTracesTemplate (T *iTWContainer, const std::vector< int > &iVectorTraceIDs, vtkMySQLDatabase *iDatabaseConnector) |
| | update for the imported traces the table widget and the database info of the container for visu.
|
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members |
typedef std::pair< unsigned
int, QColor > | IDWithColorData |
typedef std::pair< std::string,
QColor > | NameWithColorData |
typedef
GoDBTableWidgetContainer::TWContainerType | TWContainerType |
| void | AddNewTraceIDInTS (std::pair< std::string, QColor > iTraceToAddData) |
| | signal emitted when a new trace is created that need to be added in the trace settings widget. (when a new mesh is created while contour table is displayed for example)
|
| void | CheckedTracesToAddToSelectedCollection (std::list< unsigned int >) |
| void | CheckedTracesToDelete () |
| | signal emitted when the user click on the action "DeleteTraces" from the context menu as it can impact different TraceManagers
|
| void | DBConnectionNotNeededAnymore () |
| void | NeedToGetDatabaseConnection () |
| void | NeedToGoToTheLocation (int XCoord, int YCoord, int ZCoord, int TCoord) |
| | signal emitted when the user clicks on "go to the trace" in the context menu and return the coordinates for the center of the bounding box of the trace
|
| void | NewCollectionFromCheckedTraces (std::list< unsigned int >) |
| | signal emitted when the user clicks on "create a new collection from
checked traces" in the context menu and return the list of checked tracesIDs
|
| void | PrintMessage (QString iMessage, int iTimeOut=0) |
| void | TraceColorToChange () |
| | signal emitted when the user click on the action "change color" from the context menu as it can impact different TraceManagers
|
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
| | objectName |
This class manages the database queries, the table widget and the data from the database in the Container for visu for the meshes ,.
Definition at line 52 of file QGoDBMeshManager.h.