GOFIGURE2
0.9.0
|
this class handles the interaction between the database and the children of QGoDBTraceManager More...
#include <Code/IO/GoDBCollectionOfTraces.h>
Public Types | |
typedef std::pair< std::string, QColor > | NameWithColorData |
typedef GoDBTableWidgetContainer::TWContainerType | TWContainerType |
Public Member Functions | |
template<typename T > | |
void | ChangeColorForTrace (unsigned int iTraceID, NameWithColorData iNewColor, vtkMySQLDatabase *iDatabaseConnector) |
update the color of the specified trace with iNewColor in the database More... | |
template<typename T > | |
int | CreateCollectionWithNoTracesNoPoints (vtkMySQLDatabase *iDatabaseConnector, NameWithColorData iColor, T iNewCollection, int iTimePoint=-1) |
save the collection in the database after getting an empty bounding box and return the corresponding ID More... | |
template<typename T > | |
unsigned int | CreateNewTraceInDB (T iTrace, vtkMySQLDatabase *iDatabaseConnector, NameWithColorData iColor, unsigned int iCollectionID) |
set the bounding box, the color and the collectionID of the trace,save it in the database and return the new TraceID created More... | |
template<typename T > | |
unsigned int | CreateNewTraceInDB (T iTrace, vtkMySQLDatabase *iDatabaseConnector, unsigned int iCoordIDMin, unsigned int iCoordIDMax, NameWithColorData iColor, unsigned int iCollectionID) |
template<typename T > | |
unsigned int | CreateNewTraceInDB (T iTrace, vtkMySQLDatabase *iDatabaseConnector, unsigned int iCoordIDMin, unsigned int iCoordIDMax, NameWithColorData iColor) |
void | DeleteTraceInDB (int TraceToDelete, vtkMySQLDatabase *DatabaseConnector) |
Delete the corresponding trace in the database. More... | |
void | DeleteTracesInDB (std::list< unsigned int > TracesToDelete, vtkMySQLDatabase *DatabaseConnector) |
Delete in the Database all the traces listed in the list of int. More... | |
std::list< NameWithColorData > | GetAllTracesIDsWithColor (vtkMySQLDatabase *iDatabaseConnector) |
get all the distinct traces IDs with their QColor More... | |
unsigned int | GetBoundedBoxTimePoint (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTraceID, bool MinTimePoint=true) |
get the timepoint min or max for the trace More... | |
std::string | GetCollectionOf () |
std::list< double * > | GetCoordinateCenterBoundingBox (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTraceID) |
return a list of the coordinates of all the centers of the bounding boxes for all the collectionOf corresponding to the iTraceID More... | |
std::list< unsigned int > | GetLastCreatedTracesIDs (vtkMySQLDatabase *iDatabaseConnector, int iNumberOfTraces) |
get the IDs of the last saved traces in the database More... | |
std::list< unsigned int > | GetListCollectionIDs (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTracesIDs, bool ExcludeZero=true, bool Distinct=true) |
get the list of IDs that are collection of iListTraces More... | |
template<typename T > | |
std::list< T > | GetListStructureFromDB (vtkMySQLDatabase *iDatabaseConnector, unsigned int iImgSessionID, std::list< unsigned int > iListTraces) |
get a list of structures filled with data from the database More... | |
std::list< unsigned int > | GetListTimePointsFromTraceIDs (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs) |
get the list of timepoints for each trace in iListTraceIDs More... | |
std::list< unsigned int > | GetListTracesIDsFromThisCollectionOf (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraces) |
get the list of IDs belonging to the iListTraces as collectionof More... | |
std::list< unsigned int > | GetListTracesIDWithNoPoints (std::list< unsigned int > iListTracesIDs, vtkMySQLDatabase *iDatabaseConnector) |
get the list of tracesIDs that have no points More... | |
int | GetMaxTraceIDsForSpecificTimePoint (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs, unsigned int iTimePoint) |
get the max of the IDs for the traceIDs in iListTraceIDs that have a timepoint equal to iTimePoint More... | |
std::list< unsigned int > | GetNonMaxTraceIDsForSpecificTimePoint (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs, unsigned int iTimePoint, unsigned int iMaxTraceID) |
get all the traceIDs except the iMaxTraceID for the timepoint More... | |
std::string | GetPoints (vtkMySQLDatabase *iDatabaseConnector, std::string iTraceName, unsigned int iTraceID) |
std::list< unsigned int > | GetTimePointsForTraceIDs (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs) |
get the timepoints (non distinct) for all the traceIDs in iListTraceIDs More... | |
std::list< unsigned int > | GetTimePointWithSeveralTracesFromTheList (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs) |
get the list of timepoints where several traces from the list of traces have the same ones More... | |
std::list< unsigned int > | GetTraceIDsBelongingToCollectionID (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs, unsigned int iCollectionID) |
get the tracesIDs contained in iListTraceIDs that have iCollectionID as a collectionID More... | |
std::list< unsigned int > | GetTraceIDsBelongingToCollectionID (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListCollectionIDs) |
get all the tracesIDs that belong to iListCollectionIDs More... | |
std::list< unsigned int > | GetTraceIDsBelongingToListTimePoints (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTPs) |
std::list< unsigned int > | GetTraceIDsWithTimePointAndCollectionID (vtkMySQLDatabase *iDatabaseConnector, unsigned int iCollectionID, unsigned int iTimePoint) |
get the tracesIDs from the database which have iTimePoint as TCoordMin and iCollectionID as collectionID More... | |
std::list< unsigned int > | GetTraceIDsWithTimePointInf (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs, unsigned int iTimePoint) |
get the tracesIDs belonging to iListTraceIDs with a timepoint inf to iTimePoint More... | |
int | GetTraceIDWithLowestTimePoint (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTraceIDs) |
return the traceID with the lowest timepoint or -1 if there is not only one that have the lowest timepoint More... | |
std::list< NameWithColorData > | GetTracesIDsWithColorForATimePoint (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTimePoint) |
get all the distinct traces IDs with their QColor for a given timepoint More... | |
std::list< unsigned int > | GetTrackFamiliesForLineages (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iLineagesID) |
std::vector< unsigned int > | GetTrackFamily (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTrackID) |
std::list< unsigned int > | GetTrackFamilyDataFromDB (vtkMySQLDatabase *iDatabaseConnector) |
std::list< unsigned int > | GetTrackFamilyID (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTrackIDs) |
return the trackFamilyIDs the track belongs to (as a mother or as a daughter) More... | |
GoDBCollectionOfTraces () | |
GoDBCollectionOfTraces (std::string CollectionName, std::string Traces, std::string iCollectionOfName, unsigned int iImgSessionID) | |
bool | isMother (vtkMySQLDatabase *iDatabaseConnector, unsigned int iTrackID) |
void | RecalculateDBBoundingBox (vtkMySQLDatabase *iDatabaseConnector, int iCollectionID) |
Calculate the bounding box of the corresponding collection and update it in the database. More... | |
void | RecalculateDBBoundingBox (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTracesIDs) |
Get the list of all the collectionIDs, distinct and different from zero for the corresponding traces IDs and recalculate the bounding boxes for them. More... | |
void | SetCollectionInfo (std::string iCollectionName, std::string iTracesName, std::string iCollectionOfName) |
fill the global values for the collection of traces. More... | |
void | SetImgSessionID (unsigned int iImgSessionID) |
set m_ImgSessionID to iImgSessionID More... | |
void | UpdateCollectionIDOfSelectedTraces (std::list< unsigned int > iListSelectedTraces, unsigned int iCollectionID, vtkMySQLDatabase *iDatabaseConnector) |
Update the collectionID of the selected traces in the DB traces table with the new collectionID. More... | |
void | UpdateValueForListTraces (vtkMySQLDatabase *iDatabaseConnector, std::string iNameValue, std::string iValue, std::list< unsigned int > iListTraceIDs) |
update in the database the iNameValue with iValue for the traces from iListTraceIDs More... | |
virtual | ~GoDBCollectionOfTraces () |
Protected Member Functions | |
int | CreateNewCollection () |
Create a new collection Row in the collection table and return the collectionID from the created row: More... | |
int | CreateNewCollection (vtkMySQLDatabase *DatabaseConnector, GoDBTraceRow &myNewObject) |
create a new collection in the database and return the corresponding ID More... | |
std::vector< std::string > | GetAttributesForTraces () |
GoDBCoordinateRow | GetCollectionOfTracesCoordMax (vtkMySQLDatabase *DatabaseConnector, std::list< unsigned int > iListCollectionOfTracesID) |
return the coordinate max of all the coordinates of the collectionOf traces More... | |
GoDBCoordinateRow | GetCollectionOfTracesCoordMin (vtkMySQLDatabase *DatabaseConnector, std::list< unsigned int > iListCollectionOfTracesID) |
return the coordinate min of all the coordinates of the selected traces More... | |
int | GetCoordIDMaxForBoundingBoxWithNoTraces (vtkMySQLDatabase *iDatabaseConnector) |
return the CoordIDMax for a minimum bounding box More... | |
int | GetCoordIDMinForBoundingBoxWithNoTraces (vtkMySQLDatabase *iDatabaseConnector) |
return the CoordIDMin for a minimum bounding box More... | |
int | GetCoordMaxID (vtkMySQLDatabase *DatabaseConnector, int iTraceID) |
get the max of all the coordinates of the collectionof traces belonging to the trace and record them in the database More... | |
int | GetCoordMinID (vtkMySQLDatabase *DatabaseConnector, int iTraceID) |
get the min of all the coordinates of the collectionof traces belonging to the trace and record them in the database More... | |
void | GetFieldsNeededForQueryForColorData (std::vector< std::string > &ioSelectedFields, std::vector< std::string > &ioJoinTablesOnTraceTable) |
get all the different parts needed for the query to get the color of traces from the database More... | |
std::list< NameWithColorData > | GetListNameWithColorDataFromResultsQuery (std::vector< std::vector< std::string > > iResultsQuery) |
get the data from the query results to fill a QColor and the corresponding ID More... | |
void | SetTheTimePointCoordinatesForMesh (unsigned int iTimePoint, int &ioCoordIDMax, int &ioCoordIDMin, vtkMySQLDatabase *iDatabaseConnector) |
modify the timepoint to iTimePoint for the coordmax and coordmin and replace the ioCoordIDMax/Min with the new saved coordinates in the database More... | |
void | UpdateBoundingBoxInDB (int iCoordIDMin, int iCoordIDMax, int iTraceID, vtkMySQLDatabase *iDatabaseConnector) |
Update in the database the coordid max and min of the trace. More... | |
void | UpdateCollectionIDOfSelectedTrace (int iSelectedTraceID, int inewCollectionID, vtkMySQLDatabase *DatabaseConnector) |
change the collection ID of the trace More... | |
Protected Attributes | |
std::string | m_CollectionIDName |
std::string | m_CollectionName |
std::string | m_CollectionOfIDName |
std::string | m_CollectionOfName |
unsigned int | m_ImgSessionID |
std::string | m_TracesIDName |
std::string | m_TracesName |
this class handles the interaction between the database and the children of QGoDBTraceManager
Definition at line 54 of file GoDBCollectionOfTraces.h.
typedef std::pair< std::string, QColor > GoDBCollectionOfTraces::NameWithColorData |
Definition at line 66 of file GoDBCollectionOfTraces.h.
Definition at line 65 of file GoDBCollectionOfTraces.h.
GoDBCollectionOfTraces::GoDBCollectionOfTraces | ( | ) |
Definition at line 50 of file GoDBCollectionOfTraces.cxx.
GoDBCollectionOfTraces::GoDBCollectionOfTraces | ( | std::string | CollectionName, |
std::string | Traces, | ||
std::string | iCollectionOfName, | ||
unsigned int | iImgSessionID | ||
) |
Definition at line 57 of file GoDBCollectionOfTraces.cxx.
|
virtual |
Definition at line 68 of file GoDBCollectionOfTraces.cxx.
|
inline |
update the color of the specified trace with iNewColor in the database
[in] | iTraceID | ID of the trace with the color to modify |
[in] | iNewColor | name and rgba values of the new color |
[in] | iDatabaseConnector | connection to the database |
T | children of GoDBTraceRow |
Definition at line 269 of file GoDBCollectionOfTraces.h.
|
inline |
save the collection in the database after getting an empty bounding box and return the corresponding ID
[in] | iDatabaseConnector | connection to the database |
[in] | iColor | color for the new collection |
[in] | iNewCollection | collection with all the fields set except bounding box |
[in] | iTimePoint | timepoint for the collection (only for mesh) |
T | child of GoDBTraceRow |
Definition at line 169 of file GoDBCollectionOfTraces.h.
|
protected |
Create a new collection Row in the collection table and return the collectionID from the created row:
|
protected |
create a new collection in the database and return the corresponding ID
Definition at line 539 of file GoDBCollectionOfTraces.cxx.
|
inline |
set the bounding box, the color and the collectionID of the trace,save it in the database and return the new TraceID created
[in] | iTrace | |
[in] | iDatabaseConnector | connection to the database |
[in] | iColor | QColor and Name of the color for the trace |
[in] | iCollectionID | ID of the collection for the trace |
T | children of GoDBTraceRow |
Definition at line 216 of file GoDBCollectionOfTraces.h.
|
inline |
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 231 of file GoDBCollectionOfTraces.h.
|
inline |
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 249 of file GoDBCollectionOfTraces.h.
void GoDBCollectionOfTraces::DeleteTraceInDB | ( | int | TraceToDelete, |
vtkMySQLDatabase * | DatabaseConnector | ||
) |
Delete the corresponding trace in the database.
[in] | DatabaseConnector | connection to the database |
[in] | TraceToDelete | ID of the trace to be deleted from the database |
Definition at line 128 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::DeleteTracesInDB | ( | std::list< unsigned int > | TracesToDelete, |
vtkMySQLDatabase * | DatabaseConnector | ||
) |
Delete in the Database all the traces listed in the list of int.
[in] | TracesToDelete | delete from the database the traces with the ID listed in it |
[in] | DatabaseConnector | connection to the database |
Definition at line 102 of file GoDBCollectionOfTraces.cxx.
std::list< GoDBCollectionOfTraces::NameWithColorData > GoDBCollectionOfTraces::GetAllTracesIDsWithColor | ( | vtkMySQLDatabase * | iDatabaseConnector | ) |
get all the distinct traces IDs with their QColor
[in] | iDatabaseConnector | connection to the database |
Definition at line 215 of file GoDBCollectionOfTraces.cxx.
|
protected |
Definition at line 1006 of file GoDBCollectionOfTraces.cxx.
unsigned int GoDBCollectionOfTraces::GetBoundedBoxTimePoint | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iTraceID, | ||
bool | MinTimePoint = true |
||
) |
get the timepoint min or max for the trace
[in] | iDatabaseConnector | connection to the database |
[in] | iTraceID | ID of the trace the timepoint min is needed |
[in] | MinTimePoint | if true return the min timepoint, if false, return the max timepoint |
Definition at line 985 of file GoDBCollectionOfTraces.cxx.
std::string GoDBCollectionOfTraces::GetCollectionOf | ( | ) |
Definition at line 653 of file GoDBCollectionOfTraces.cxx.
|
protected |
return the coordinate max of all the coordinates of the collectionOf traces
Definition at line 436 of file GoDBCollectionOfTraces.cxx.
|
protected |
return the coordinate min of all the coordinates of the selected traces
Definition at line 403 of file GoDBCollectionOfTraces.cxx.
|
protected |
return the CoordIDMax for a minimum bounding box
[in] | iDatabaseConnector | connection to the database |
Definition at line 504 of file GoDBCollectionOfTraces.cxx.
|
protected |
return the CoordIDMin for a minimum bounding box
[in] | iDatabaseConnector | connection to the database |
Definition at line 491 of file GoDBCollectionOfTraces.cxx.
std::list< double * > GoDBCollectionOfTraces::GetCoordinateCenterBoundingBox | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iTraceID | ||
) |
return a list of the coordinates of all the centers of the bounding boxes for all the collectionOf corresponding to the iTraceID
[in] | iDatabaseConnector | connection to the database |
[in] | iTraceID | ID for the trace the bounding boxes of its collectionof traces are needed |
Definition at line 766 of file GoDBCollectionOfTraces.cxx.
|
protected |
get the max of all the coordinates of the collectionof traces belonging to the trace and record them in the database
Definition at line 375 of file GoDBCollectionOfTraces.cxx.
|
protected |
get the min of all the coordinates of the collectionof traces belonging to the trace and record them in the database
Definition at line 347 of file GoDBCollectionOfTraces.cxx.
|
protected |
get all the different parts needed for the query to get the color of traces from the database
[in,out] | ioSelectedFields | will be filed with the attributes of the color DBtable |
[in,out] | ioJoinTablesOnTraceTable | will be filled with the conditions to link the color table and the trace table |
Definition at line 275 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetLastCreatedTracesIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
int | iNumberOfTraces | ||
) |
get the IDs of the last saved traces in the database
[in] | iDatabaseConnector | connection to the database |
[in] | iNumberOfTraces | number of IDs to get |
Definition at line 752 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetListCollectionIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTracesIDs, | ||
bool | ExcludeZero = true , |
||
bool | Distinct = true |
||
) |
get the list of IDs that are collection of iListTraces
[in] | iDatabaseConnector | connection to the database |
[in] | iListTracesIDs | list of traces IDs for which we need the collectionIDs |
[in] | ExcludeZero | if set to true, will not return the collectionID = 0 |
[in] | Distinct | if set to true, will not return doublon |
Definition at line 713 of file GoDBCollectionOfTraces.cxx.
|
protected |
get the data from the query results to fill a QColor and the corresponding ID
[in] | iResultsQuery | vector containing results from a query with a name/ID and the corresponding rgba |
Definition at line 300 of file GoDBCollectionOfTraces.cxx.
|
inline |
get a list of structures filled with data from the database
[in] | iDatabaseConnector | connection to the database |
[in] | iImgSessionID | |
[in] | iListTraces | IDs for the traces to be in the list |
ContourMeshStructure | or TrackStructure |
Definition at line 463 of file GoDBCollectionOfTraces.h.
std::list< unsigned int > GoDBCollectionOfTraces::GetListTimePointsFromTraceIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs | ||
) |
get the list of timepoints for each trace in iListTraceIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs for the traces the timepoints are needed |
Definition at line 871 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetListTracesIDsFromThisCollectionOf | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraces | ||
) |
get the list of IDs belonging to the iListTraces as collectionof
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraces | list of traces IDs for which the collectionof are needed |
Definition at line 697 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetListTracesIDWithNoPoints | ( | std::list< unsigned int > | iListTracesIDs, |
vtkMySQLDatabase * | iDatabaseConnector | ||
) |
get the list of tracesIDs that have no points
[in] | iListTracesIDs | list of the tracesIDs to be checked |
[in] | iDatabaseConnector | connection to the database |
Definition at line 731 of file GoDBCollectionOfTraces.cxx.
int GoDBCollectionOfTraces::GetMaxTraceIDsForSpecificTimePoint | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs, | ||
unsigned int | iTimePoint | ||
) |
get the max of the IDs for the traceIDs in iListTraceIDs that have a timepoint equal to iTimePoint
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs of the traces to be checked |
[in] | iTimePoint | timepoint for which the traceIDs are checked |
Definition at line 817 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetNonMaxTraceIDsForSpecificTimePoint | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs, | ||
unsigned int | iTimePoint, | ||
unsigned int | iMaxTraceID | ||
) |
get all the traceIDs except the iMaxTraceID for the timepoint
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs of the traces to be checked |
[in] | iTimePoint | timepoint for which the traceIDs are checked |
[in] | iMaxTraceID | max of the traceIDs for this timepoint |
Definition at line 843 of file GoDBCollectionOfTraces.cxx.
std::string GoDBCollectionOfTraces::GetPoints | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::string | iTraceName, | ||
unsigned int | iTraceID | ||
) |
Definition at line 1117 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTimePointsForTraceIDs | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs | ||
) |
get the timepoints (non distinct) for all the traceIDs in iListTraceIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs for the traces the timepoints are needed |
Definition at line 924 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTimePointWithSeveralTracesFromTheList | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs | ||
) |
get the list of timepoints where several traces from the list of traces have the same ones
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs of the traces to be checked |
Definition at line 798 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTraceIDsBelongingToCollectionID | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs, | ||
unsigned int | iCollectionID | ||
) |
get the tracesIDs contained in iListTraceIDs that have iCollectionID as a collectionID
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs for the traces to be checked |
[in] | iCollectionID | ID of the collection the traces need to belong to |
Definition at line 885 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTraceIDsBelongingToCollectionID | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListCollectionIDs | ||
) |
get all the tracesIDs that belong to iListCollectionIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iListCollectionIDs | IDs of the collections |
Definition at line 898 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTraceIDsBelongingToListTimePoints | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTPs | ||
) |
Definition at line 908 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTraceIDsWithTimePointAndCollectionID | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iCollectionID, | ||
unsigned int | iTimePoint | ||
) |
get the tracesIDs from the database which have iTimePoint as TCoordMin and iCollectionID as collectionID
[in] | iDatabaseConnector | connection to the database |
[in] | iCollectionID | ID of the collection |
[in] | iTimePoint | timepoint for which the traces IDs are needed |
Definition at line 777 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTraceIDsWithTimePointInf | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs, | ||
unsigned int | iTimePoint | ||
) |
get the tracesIDs belonging to iListTraceIDs with a timepoint inf to iTimePoint
[in] | iDatabaseConnector | connection to the database |
[in] | iListTraceIDs | list of the IDs for the traces to be checked |
[in] | iTimePoint | timepoint to be compared |
Definition at line 938 of file GoDBCollectionOfTraces.cxx.
int GoDBCollectionOfTraces::GetTraceIDWithLowestTimePoint | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTraceIDs | ||
) |
return the traceID with the lowest timepoint or -1 if there is not only one that have the lowest timepoint
Definition at line 1031 of file GoDBCollectionOfTraces.cxx.
std::list< GoDBCollectionOfTraces::NameWithColorData > GoDBCollectionOfTraces::GetTracesIDsWithColorForATimePoint | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iTimePoint | ||
) |
get all the distinct traces IDs with their QColor for a given timepoint
[in] | iDatabaseConnector | connection to the database |
[in] | iTimePoint | timepoint for which the tracesIDs are expected |
Definition at line 239 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTrackFamiliesForLineages | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iLineagesID | ||
) |
Definition at line 1089 of file GoDBCollectionOfTraces.cxx.
std::vector< unsigned int > GoDBCollectionOfTraces::GetTrackFamily | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iTrackID | ||
) |
Definition at line 1145 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTrackFamilyDataFromDB | ( | vtkMySQLDatabase * | iDatabaseConnector | ) |
Definition at line 1067 of file GoDBCollectionOfTraces.cxx.
std::list< unsigned int > GoDBCollectionOfTraces::GetTrackFamilyID | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTrackIDs | ||
) |
return the trackFamilyIDs the track belongs to (as a mother or as a daughter)
Definition at line 1102 of file GoDBCollectionOfTraces.cxx.
bool GoDBCollectionOfTraces::isMother | ( | vtkMySQLDatabase * | iDatabaseConnector, |
unsigned int | iTrackID | ||
) |
Definition at line 1170 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::RecalculateDBBoundingBox | ( | vtkMySQLDatabase * | iDatabaseConnector, |
int | iCollectionID | ||
) |
Calculate the bounding box of the corresponding collection and update it in the database.
[in] | iDatabaseConnector | connection to the database |
[in] | iCollectionID | ID of the collection the bounding box is calculated |
Definition at line 186 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::RecalculateDBBoundingBox | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::list< unsigned int > | iListTracesIDs | ||
) |
Get the list of all the collectionIDs, distinct and different from zero for the corresponding traces IDs and recalculate the bounding boxes for them.
[in] | iDatabaseConnector | connection to the database |
[in] | iListTracesIDs | list of the tracesIDs the collection need to be recalculated |
Definition at line 200 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::SetCollectionInfo | ( | std::string | iCollectionName, |
std::string | iTracesName, | ||
std::string | iCollectionOfName | ||
) |
fill the global values for the collection of traces.
[in] | iCollectionName | name of the collection exp: track |
[in] | iTracesName | name of the trace exp:mesh |
[in] | iCollectionOfName | name of the collectionOf exp: contour |
Definition at line 75 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::SetImgSessionID | ( | unsigned int | iImgSessionID | ) |
set m_ImgSessionID to iImgSessionID
Definition at line 93 of file GoDBCollectionOfTraces.cxx.
|
protected |
modify the timepoint to iTimePoint for the coordmax and coordmin and replace the ioCoordIDMax/Min with the new saved coordinates in the database
[in] | iTimePoint | TCoord to be replaced with for the coordmin and max |
[in,out] | ioCoordIDMax | in: ID for the coordinate max with the timepoint to be modified, out: ID of the coordinate max with the timepoint set as itimepoint |
[in,out] | ioCoordIDMin | in: ID for the coordinate min with the timepoint to be modified, out: ID of the coordinate min with the timepoint set as itimepoint |
[in] | iDatabaseConnector | connection to the database |
Definition at line 517 of file GoDBCollectionOfTraces.cxx.
|
protected |
Update in the database the coordid max and min of the trace.
Definition at line 678 of file GoDBCollectionOfTraces.cxx.
|
protected |
change the collection ID of the trace
Definition at line 160 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::UpdateCollectionIDOfSelectedTraces | ( | std::list< unsigned int > | iListSelectedTraces, |
unsigned int | iCollectionID, | ||
vtkMySQLDatabase * | iDatabaseConnector | ||
) |
Update the collectionID of the selected traces in the DB traces table with the new collectionID.
[in] | iListSelectedTraces | IDs of the traces the collectionID need to be updated |
[in] | iCollectionID | new collectionID |
[in] | iDatabaseConnector | connection to the database |
Definition at line 139 of file GoDBCollectionOfTraces.cxx.
void GoDBCollectionOfTraces::UpdateValueForListTraces | ( | vtkMySQLDatabase * | iDatabaseConnector, |
std::string | iNameValue, | ||
std::string | iValue, | ||
std::list< unsigned int > | iListTraceIDs | ||
) |
update in the database the iNameValue with iValue for the traces from iListTraceIDs
[in] | iDatabaseConnector | connection to the database |
[in] | iNameValue | name of the field in the database |
[in] | iValue | value of the field |
[in] | iListTraceIDs | list of the traces with the value to be updated |
Definition at line 172 of file GoDBCollectionOfTraces.cxx.
|
protected |
Definition at line 511 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 510 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 515 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 514 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 516 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 513 of file GoDBCollectionOfTraces.h.
|
protected |
Definition at line 512 of file GoDBCollectionOfTraces.h.