GOFIGURE2
0.9.0
|
Abstract class inherited by QGoDBContourManager,Mesh,Track,Lineage. More...
#include <Code/GUI/lib/DBManager/QGoDBTraceManager.h>
Public Types | |
typedef std::pair< unsigned int, QColor > | IDWithColorData |
typedef std::pair< std::string, QColor > | NameWithColorData |
typedef GoDBTableWidgetContainer::TWContainerType | TWContainerType |
Signals | |
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) More... | |
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 More... | |
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 More... | |
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 More... | |
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 More... | |
Public Member Functions | |
void | CheckShowRows () |
if m_IsShowOnlyCurrentTimePointOn is true, call the method to show only the rows for the current timepoint, useful when the timepoint changes More... | |
virtual void | DeleteCheckedTraces (vtkMySQLDatabase *iDatabaseConnector)=0 |
delete the checked traces from the database, the TW and the container for visu More... | |
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 More... | |
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 More... | |
std::list< unsigned int > | GetLastCreatedTracesIDs (vtkMySQLDatabase *iDatabaseConnector, int iNumberOfTracesIDs) |
get the last saved traces in the database More... | |
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 More... | |
virtual std::list< unsigned int > | GetListHighlightedIDs ()=0 |
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 More... | |
std::list< unsigned int > | GetListTracesIDsFromThisCollectionOf (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTraces) |
get the collectionOf IDs for the TracesIDs found in iListTraces More... | |
QGoTableWidget * | GetTableWidget () |
get the m_Table More... | |
QGoDBTraceManager (QObject *iParent=NULL) | |
void | SetCurrentTimePoint (int *iTimePoint) |
set the pointer to the current timepoint More... | |
void | SetDatabaseConnection (vtkMySQLDatabase *iDatabaseConnector) |
set the m_DatabaseConnection to iDatabaseConnector More... | |
void | SetSelectedCollection (NameWithColorData *iCollectionData) |
set the pointer to the selected collection data More... | |
void | SetSelectedColor (NameWithColorData *iColorData) |
set the pointer to the current selected color More... | |
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. More... | |
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 More... | |
void | UpdateLastSelectedOneAsCollection () |
virtual std::list< unsigned int > | UpdateTheTracesColor (vtkMySQLDatabase *iDatabaseConnector)=0 |
virtual pure. update the color of the checked traces in the database, the visu container and the TW and return the collectionOf IDs. (i.e traces that belongs to these traces as collection: contourIDs belonging to these meshes if the trace is a mesh) More... | |
void | UpdateTWAndContainerForDeletedTraces (const std::list< unsigned int > &iTraceIDs) |
delete the corresponding traces in the table widget and in the container for visu More... | |
virtual void | UpdateTWAndContainerForImportedTraces (const std::vector< int > &iVectorImportedTraces, vtkMySQLDatabase *iDatabaseConnector)=0 |
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. More... | |
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 Slots | |
virtual void | AddToSelectedCollection () |
virtual void | ChangeTraceColor () |
is called when the user choses the change color action in the context menu, emit the signal TraceColorToChange as it impacts the collectionOf also More... | |
void | CheckSelectedRows () |
void | CheckTheTraceInTW (unsigned int iTraceID, Qt::CheckState iState) |
slot called when a trace has been picked from the visu, to update the TW "checked/unchecked" column correspondingly More... | |
void | CreateContextMenu (const QPoint &iPos) |
create the context menu when the user clicks on the table widget More... | |
virtual void | CreateCorrespondingCollection () |
slot called when the user click on "create a collection from
checked traces" in the context menu, emit the signal NewCollectionFromCheckedTraces as it impact the collection also More... | |
void | DeleteTracesFromContextMenu () |
void | GoToTheTrace () |
void | HideSelectedRows () |
virtual void | SetColorCoding (bool IsChecked)=0 |
ColorCode the traces in the visualization base on a selected column in the table widget. More... | |
void | ShowOnlyRowsForCurrentTimePoint (bool IsChecked) |
Show only the rows in the table widget that have a timepoint equal to the current timepoint if IsChecked is true, show all the rows if false. More... | |
void | ShowSelectedRows () |
void | ShowTheTraceInTW (unsigned int iTraceID, Qt::CheckState iState) |
slot called when a trace has been shown/hidden from the visu, to update the TW "show/hide" column correspondingly More... | |
void | UncheckSelectedRows () |
virtual void | UpdateHighlightedElementsInVisuContainer (int iTraceID)=0 |
modify to the opposite one the highlighted property of the corresponding trace base on traceID in the container for visu More... | |
virtual void | UpdateVisibleElementsInVisuContainer (int iTraceID)=0 |
modify to the opposite one the Visible property of the corresponding trace base on traceID in the container for visu More... | |
Protected Member Functions | |
virtual void | AddActionForAddingCheckedTracesToCollection () |
virtual void | AddActionsContextMenu (QMenu *iMenu) |
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 More... | |
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 More... | |
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 More... | |
template<typename C > | |
void | DisplayInfoAndLoadVisuContainerWithAllTracesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, C *iContainerForVisu, const std::list< unsigned int > &iListTPs) |
virtual void | DisplayInfoForAllTraces (vtkMySQLDatabase *iDatabaseConnector)=0 |
Virtual pure method: get the data needed from the database and display them in the m_Table for all traces corresponding to the imagingsession. More... | |
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 More... | |
virtual void | DisplayInfoForExistingTrace (vtkMySQLDatabase *iDatabaseConnector, int iTraceID)=0 |
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. More... | |
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 More... | |
virtual void | DisplayInfoForLastCreatedTrace (vtkMySQLDatabase *iDatabaseConnector)=0 |
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. More... | |
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 More... | |
virtual void | DisplayInfoForTracesForSpecificTPs (vtkMySQLDatabase *iDatabaseConnector, const std::list< unsigned int > &iListTPs)=0 |
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 More... | |
int | GetLastCreatedTraceID (vtkMySQLDatabase *iDatabaseConnector) |
get the ID for the last created trace in the database More... | |
std::string | GetTheNameIDFromName (std::string iName) |
transform the iName into iNameID More... | |
template<typename C , typename S > | |
void | GetTracesInfoFromDBAndModifyContainerForVisu (vtkMySQLDatabase *iDatabaseConnector, std::vector< int > iVectIDs, C *iContainerForVisu) |
virtual void | GetTracesInfoFromDBAndModifyContainerForVisu (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs=std::list< unsigned int >())=0 |
get the info needed from the database to update the container for visu More... | |
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 More... | |
double * | GetVectorFromQColor (QColor iColor) |
return a double rgba[4] from a QColor More... | |
template<typename C > | |
void | RemoveTracesFromTWAndContainerForVisuForSpecificTPsTemplate (vtkMySQLDatabase *iDatabaseConnector, C *iContainerForVisu, const std::list< unsigned int > &iListTPs) |
virtual void | SetCollectionsTraceNames ()=0 |
virtual pure method: set the std::string class members More... | |
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 More... | |
void | SetInfo (unsigned int iImgSessionID, QWidget *iParent) |
set the variables class members More... | |
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 More... | |
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 More... | |
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. More... | |
![]() | |
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) |
Protected Attributes | |
QMenu * | m_CheckedTracesMenu |
std::string | m_CollectionName |
std::string | m_CollectionNameID |
std::string | m_CollectionOf |
std::string | m_CollectionOfID |
GoDBCollectionOfTraces * | m_CollectionOfTraces |
int * | m_CurrentTimePoint |
vtkMySQLDatabase * | m_DatabaseConnector |
int | m_ImgSessionID |
bool | m_IsColorCodingOn |
bool | m_IsShowOnlyCurrentTimePointOn |
std::string | m_LastSelectedTraceAsCollection |
NameWithColorData * | m_SelectedCollectionData |
NameWithColorData * | m_SelectedColorData |
QGoTableWidget * | m_Table |
std::string | m_TraceName |
std::string | m_TraceNameID |
Additional Inherited Members | |
![]() | |
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 | |
Abstract class inherited by QGoDBContourManager,Mesh,Track,Lineage.
Definition at line 55 of file QGoDBTraceManager.h.
typedef std::pair< unsigned int, QColor > QGoDBTraceManager::IDWithColorData |
Definition at line 64 of file QGoDBTraceManager.h.
typedef std::pair< std::string, QColor > QGoDBTraceManager::NameWithColorData |
Definition at line 63 of file QGoDBTraceManager.h.
Definition at line 62 of file QGoDBTraceManager.h.
|
explicit |
Definition at line 41 of file QGoDBTraceManager.cxx.
|
virtual |
Definition at line 51 of file QGoDBTraceManager.cxx.
|
protectedvirtual |
Definition at line 207 of file QGoDBTraceManager.cxx.
|
protectedvirtual |
Reimplemented in QGoDBMeshManager, QGoDBTrackManager, and QGoDBContourManager.
Definition at line 129 of file QGoDBTraceManager.cxx.
|
protected |
Definition at line 137 of file QGoDBTraceManager.cxx.
|
signal |
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)
|
protected |
Definition at line 184 of file QGoDBTraceManager.cxx.
|
protectedvirtualslot |
Reimplemented in QGoDBContourManager.
Definition at line 512 of file QGoDBTraceManager.cxx.
|
protectedvirtualslot |
is called when the user choses the change color action in the context menu, emit the signal TraceColorToChange as it impacts the collectionOf also
Reimplemented in QGoDBContourManager.
Definition at line 259 of file QGoDBTraceManager.cxx.
|
signal |
|
signal |
signal emitted when the user click on the action "DeleteTraces" from the context menu as it can impact different TraceManagers
|
protectedslot |
Definition at line 223 of file QGoDBTraceManager.cxx.
void QGoDBTraceManager::CheckShowRows | ( | ) |
if m_IsShowOnlyCurrentTimePointOn is true, call the method to show only the rows for the current timepoint, useful when the timepoint changes
Definition at line 592 of file QGoDBTraceManager.cxx.
|
protected |
Definition at line 312 of file QGoDBTraceManager.cxx.
|
protectedslot |
slot called when a trace has been picked from the visu, to update the TW "checked/unchecked" column correspondingly
[in] | iTraceID | TraceID that has been picked |
[in] | iState | state to which the TW needs to be updated |
Definition at line 431 of file QGoDBTraceManager.cxx.
|
protectedslot |
create the context menu when the user clicks on the table widget
[in] | iPos | position of the context menu event |
Definition at line 118 of file QGoDBTraceManager.cxx.
|
protectedvirtualslot |
slot called when the user click on "create a collection from checked traces" in the context menu, emit the signal NewCollectionFromCheckedTraces as it impact the collection also
Reimplemented in QGoDBContourManager.
Definition at line 476 of file QGoDBTraceManager.cxx.
|
inlineprotected |
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
[in] | iXCoordMin | X coord min of the bounding box |
[in] | iYCoordMin | Y coord min of the bounding box |
[in] | iZCoordMin | Z coord min of the bounding box |
[in] | iTCoord | T coord min of the bounding box and max if iTCoordMax = 0 |
[in] | iXCoordMax | X coord max of the bounding box |
[in] | iYCoordMax | Y coord max of the bounding box |
[in] | iZCoordMax | Z coord max of the bounding box |
[in] | iTraceNodes | polydata from which the points will be extracted |
[in] | iColor | color of the trace |
[in] | iDatabaseConnector | connection to the database |
[in,out] | iTrace | GoDBTraceRow with the fields to be set |
[in] | iCollectionID | collection ID of the trace |
[in] | iTCoordMax | T coord max of the bounding box |
T |
Definition at line 531 of file QGoDBTraceManager.h.
|
signal |
|
pure virtual |
delete the checked traces from the database, the TW and the container for visu
[in] | iDatabaseConnector | connection to the database |
Implemented in QGoDBMeshManager, QGoDBContourManager, QGoDBTrackManager, and QGoDBLineageManager.
|
protectedslot |
Definition at line 345 of file QGoDBTraceManager.cxx.
|
inlineprotected |
delete the traces from the database, the TW and the container for visu
[in] | iDatabaseConnector | connection to the database |
[in] | iContainerForVisu | common container for the visu and database |
[in] | iListTracesToDelete | list of the tracesIDs to be deleted |
[in] | DeleteHighlightedTraces | if true, the traces to be deleted are the ones highlighted in the visu |
T | ContourMeshContainer or TrackContainer |
Definition at line 775 of file QGoDBTraceManager.h.
|
inlineprotected |
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
[in] | iTWContainer | contains all the description of its columns to get the data from the database and to display them in the m_Table but has no value yet |
[in] | iDatabaseConnector | connection to the database |
T | only children of GoDBTableWidgetContainer as type T |
Definition at line 587 of file QGoDBTraceManager.h.
|
inlineprotected |
Definition at line 600 of file QGoDBTraceManager.h.
|
protectedpure virtual |
Virtual pure method: get the data needed from the database and display them in the m_Table for all traces corresponding to the imagingsession.
[in] | iDatabaseConnector | connection to the database |
Implemented in QGoDBMeshManager, QGoDBTrackManager, QGoDBContourManager, and QGoDBLineageManager.
|
inlineprotected |
fill the TWContainer with all the data needed from the database and display them into the m_Table
[in] | iTWContainer | contains all the description of its columns to get the data from the database and to display them in the m_Table but has no value yet |
[in] | iDatabaseConnector | connection to the database |
[in] | iState | if false the visible column will be unchecked in the TW |
[in] | iIndexShowColumn | index of the show column in the TW Container(to be set up for mesh and contour) |
T | this method takes only children of GoDBTableWidgetContainer as type |
Definition at line 403 of file QGoDBTraceManager.h.
|
protectedpure virtual |
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.
[in] | iDatabaseConnector | connection to the database |
[in] | iTraceID | ID of the trace |
Implemented in QGoDBContourManager, QGoDBMeshManager, QGoDBTrackManager, and QGoDBLineageManager.
void QGoDBTraceManager::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
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraces | list of the TraceIDs the rows in the TW need to be updated |
Definition at line 296 of file QGoDBTraceManager.cxx.
|
inlineprotected |
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
[in] | iTWContainer | contains all the description of its columns to get the data from the database and to display them in the m_Table but has no value yet |
[in] | iDatabaseConnector | connection to the database |
[in] | iTraceID | ID for the trace the info will be displayed |
T | this method takes only children of GoDBTableWidgetContainer as type |
Definition at line 495 of file QGoDBTraceManager.h.
|
protectedpure virtual |
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.
[in] | iDatabaseConnector | connection to the database |
Implemented in QGoDBContourManager, QGoDBMeshManager, QGoDBTrackManager, and QGoDBLineageManager.
|
inlineprotected |
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
[in] | iTWContainer | contains all the description of its columns to get the data from the database and to display them in the m_Table but has no value yet |
[in] | iDatabaseConnector | connection to the database |
T | this method takes only children of GoDBTableWidgetContainer as type |
Definition at line 455 of file QGoDBTraceManager.h.
|
protectedpure virtual |
Implemented in QGoDBMeshManager, QGoDBTrackManager, QGoDBContourManager, and QGoDBLineageManager.
|
inlineprotected |
Definition at line 422 of file QGoDBTraceManager.h.
|
virtual |
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
[in] | iDatabaseConnector | connection to the database |
[in] | ioIDToSelect | ID to be selected in the combobox |
Reimplemented in QGoDBMeshManager.
Definition at line 419 of file QGoDBTraceManager.cxx.
|
protected |
create a GoDBCoordinateRow and set its fields X,Y,Z,Tcoord
[in] | iXCoord | |
[in] | iYCoord | |
[in] | iZCoord | |
[in] | iTCoord |
Definition at line 497 of file QGoDBTraceManager.cxx.
|
protected |
get the ID for the last created trace in the database
[in] | iDatabaseConnector | connection to the database |
Definition at line 107 of file QGoDBTraceManager.cxx.
std::list< unsigned int > QGoDBTraceManager::GetLastCreatedTracesIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
int | iNumberOfTracesIDs | ||
) |
get the last saved traces in the database
[in] | iDatabaseConnector | connection to the database |
[in] | iNumberOfTracesIDs | number of the last tracesIDs required |
Definition at line 532 of file QGoDBTraceManager.cxx.
std::list< unsigned int > QGoDBTraceManager::GetListCollectionIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
const std::list< unsigned int > & | iListTracesIDs | ||
) |
return the list of collection IDs distinct and different from zero corresponding to the tracesIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iListTracesIDs | list of the tracesIDs from which the collectionID is needed |
Definition at line 375 of file QGoDBTraceManager.cxx.
|
pure virtual |
Implemented in QGoDBMeshManager, QGoDBTrackManager, QGoDBContourManager, and QGoDBLineageManager.
std::list< unsigned int > QGoDBTraceManager::GetListTracesIDsBelongingToCollectionIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
const std::list< unsigned int > & | iListCollectionIDs | ||
) |
get the list of tracesIDs belonging to the collection listed in iListCollectionIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iListCollectionIDs | list of the collection for which the traces are needed |
Definition at line 283 of file QGoDBTraceManager.cxx.
std::list< unsigned int > QGoDBTraceManager::GetListTracesIDsFromThisCollectionOf | ( | vtkMySQLDatabase * | iDatabaseConnector, |
const std::list< unsigned int > & | iListTraces | ||
) |
get the collectionOf IDs for the TracesIDs found in iListTraces
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraces | list of the tracesIDs from which the collectionOf IDs are needed |
Definition at line 271 of file QGoDBTraceManager.cxx.
QGoTableWidget * QGoDBTraceManager::GetTableWidget | ( | ) |
|
protected |
transform the iName into iNameID
[in] | iName |
Definition at line 88 of file QGoDBTraceManager.cxx.
|
inlineprotected |
Definition at line 372 of file QGoDBTraceManager.h.
|
protectedpure virtual |
get the info needed from the database to update the container for visu
Implemented in QGoDBMeshManager, QGoDBTrackManager, QGoDBContourManager, and QGoDBLineageManager.
|
inlineprotected |
get the info needed from the database to fill the container for visu
[in] | iDatabaseConnector | connection to the database |
[in] | iContainerForVisu | common container for the visu and database |
[in] | iListTraceIDs | list of the IDs the info are needed |
Definition at line 866 of file QGoDBTraceManager.h.
|
protected |
return a double rgba[4] from a QColor
[in] | iColor | QColor |
Definition at line 402 of file QGoDBTraceManager.cxx.
|
protectedslot |
Definition at line 451 of file QGoDBTraceManager.cxx.
|
protectedslot |
Definition at line 250 of file QGoDBTraceManager.cxx.
|
signal |
|
signal |
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
|
signal |
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
|
signal |
|
inlineprotected |
Definition at line 618 of file QGoDBTraceManager.h.
|
protectedpure virtual |
virtual pure method: set the std::string class members
Implemented in QGoDBMeshManager, QGoDBTrackManager, QGoDBContourManager, and QGoDBLineageManager.
|
protectedpure virtualslot |
ColorCode the traces in the visualization base on a selected column in the table widget.
[in] | IsChecked | set to true if the action is checked, to false if not |
|
inlineprotected |
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
[in] | iContainerForVisu | common container for the visu and database |
[in] | IsChecked | corresponds to the state of the checkable action |
ContourMeshContainer | or TrackContainer |
Definition at line 810 of file QGoDBTraceManager.h.
void QGoDBTraceManager::SetCurrentTimePoint | ( | int * | iTimePoint | ) |
set the pointer to the current timepoint
[in] | iTimePoint | pointer to the current timepoint |
Definition at line 559 of file QGoDBTraceManager.cxx.
void QGoDBTraceManager::SetDatabaseConnection | ( | vtkMySQLDatabase * | iDatabaseConnector | ) |
set the m_DatabaseConnection to iDatabaseConnector
Definition at line 542 of file QGoDBTraceManager.cxx.
|
protected |
set the variables class members
[in] | iImgSessionID | to set the m_ImgSessionID |
[in] | iParent | parent for the m_Table |
Definition at line 61 of file QGoDBTraceManager.cxx.
void QGoDBTraceManager::SetSelectedCollection | ( | NameWithColorData * | iCollectionData | ) |
set the pointer to the selected collection data
[in] | iCollectionData | pointer to the selected collection data |
Definition at line 551 of file QGoDBTraceManager.cxx.
void QGoDBTraceManager::SetSelectedColor | ( | NameWithColorData * | iColorData | ) |
set the pointer to the current selected color
[in] | iColorData | pointer to the current selected color |
Definition at line 567 of file QGoDBTraceManager.cxx.
|
inlineprotected |
Definition at line 547 of file QGoDBTraceManager.h.
|
inlineprotected |
set the iMemberContainerInfoForVisu to the iContainerForVisu and create the connections SLOT/SIGNAL
[in] | iContainerForVisu | common container for the visu and database |
[in] | iMemberContainerForVisu | m_TraceContainerInfoForVisu |
T | ContourMeshContainer or TrackContainer |
Definition at line 736 of file QGoDBTraceManager.h.
|
protectedslot |
Show only the rows in the table widget that have a timepoint equal to the current timepoint if IsChecked is true, show all the rows if false.
[in] | IsChecked | set to true if the action is checked, to false if not |
Definition at line 575 of file QGoDBTraceManager.cxx.
|
protectedslot |
Definition at line 241 of file QGoDBTraceManager.cxx.
|
protectedslot |
slot called when a trace has been shown/hidden from the visu, to update the TW "show/hide" column correspondingly
[in] | iTraceID | TraceID that has been shown/hidden |
[in] | iState | state to which the TW needs to be updated |
Definition at line 441 of file QGoDBTraceManager.cxx.
|
signal |
signal emitted when the user click on the action "change color" from the context menu as it can impact different TraceManagers
|
protectedslot |
Definition at line 232 of file QGoDBTraceManager.cxx.
|
virtual |
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.
[in] | iDatabaseConnector | connection to the database |
[in] | iListTracesIDs | list of the tracesIDs with a bounding box to update |
[in] | UpdateTW | display the updates in the TW |
Reimplemented in QGoDBLineageManager.
Definition at line 387 of file QGoDBTraceManager.cxx.
void QGoDBTraceManager::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
[in] | iDatabaseConnector | connection to the database |
[in] | iListTracesIDs | list of the tracesIDs that the collectionID need to be changed |
[in] | iCollectionID | collectionID that needs to be changed for the traces |
Definition at line 362 of file QGoDBTraceManager.cxx.
|
protectedpure virtualslot |
modify to the opposite one the highlighted property of the corresponding trace base on traceID in the container for visu
[in] | iTraceID | ID of the trace for the property to be modified |
void QGoDBTraceManager::UpdateLastSelectedOneAsCollection | ( | ) |
Definition at line 602 of file QGoDBTraceManager.cxx.
|
pure virtual |
virtual pure. update the color of the checked traces in the database, the visu container and the TW and return the collectionOf IDs. (i.e traces that belongs to these traces as collection: contourIDs belonging to these meshes if the trace is a mesh)
[in] | iDatabaseConnector | connection to the database |
Implemented in QGoDBMeshManager, QGoDBContourManager, QGoDBTrackManager, and QGoDBLineageManager.
|
inlineprotected |
update the visu container, the database and the TW with the user selected color for the highlighted traces
[in] | iDatabaseConnector | connection to the database |
[in] | iContainerInfoForVisu | info needed for the visu |
T | children of GoDBTraceRow |
C | ContourMeshContainer or TrackContainer |
Definition at line 696 of file QGoDBTraceManager.h.
void QGoDBTraceManager::UpdateTWAndContainerForDeletedTraces | ( | const std::list< unsigned int > & | iTraceIDs | ) |
delete the corresponding traces in the table widget and in the container for visu
[in] | iTraceIDs | list of the IDs for the traces to be deleted |
|
pure virtual |
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.
[in] | iVectorImportedTraces | IDs of the imported traces |
[in] | iDatabaseConnector | connection to the database |
Implemented in QGoDBMeshManager, QGoDBContourManager, QGoDBTrackManager, and QGoDBLineageManager.
|
inlineprotected |
update for the imported traces the table widget and the database info of the container for visu.
[in] | iTWContainer | contains all the description of its columns to get the data from the database and to display them in the m_Table but has no value yet |
[in] | iVectorTraceIDs | vector of the imported TracesIDs |
[in] | iDatabaseConnector | connection to the database |
T | this method takes only children of GoDBTableWidgetContainer |
Definition at line 654 of file QGoDBTraceManager.h.
|
protectedpure virtualslot |
modify to the opposite one the Visible property of the corresponding trace base on traceID in the container for visu
[in] | iTraceID | ID of the trace for the property to be modified |
|
protected |
Definition at line 298 of file QGoDBTraceManager.h.
|
protected |
Definition at line 282 of file QGoDBTraceManager.h.
|
protected |
Definition at line 283 of file QGoDBTraceManager.h.
|
protected |
Definition at line 284 of file QGoDBTraceManager.h.
|
protected |
Definition at line 285 of file QGoDBTraceManager.h.
|
protected |
Definition at line 294 of file QGoDBTraceManager.h.
|
protected |
Definition at line 289 of file QGoDBTraceManager.h.
|
protected |
Definition at line 295 of file QGoDBTraceManager.h.
|
protected |
Definition at line 292 of file QGoDBTraceManager.h.
|
protected |
Definition at line 296 of file QGoDBTraceManager.h.
|
protected |
Definition at line 297 of file QGoDBTraceManager.h.
|
protected |
Definition at line 290 of file QGoDBTraceManager.h.
|
protected |
Definition at line 287 of file QGoDBTraceManager.h.
|
protected |
Definition at line 288 of file QGoDBTraceManager.h.
|
protected |
Definition at line 293 of file QGoDBTraceManager.h.
|
protected |
Definition at line 280 of file QGoDBTraceManager.h.
|
protected |
Definition at line 281 of file QGoDBTraceManager.h.