this class describes the columns of the table widget with the corresponding info to find their values in the database if the columns refer to data stored in the database and provides methods to fill the rows of the table widget and to get the right queries to find the data in the database
More...
#include <Code/IO/GoDBTableWidgetContainer.h>
this class describes the columns of the table widget with the corresponding info to find their values in the database if the columns refer to data stored in the database and provides methods to fill the rows of the table widget and to get the right queries to find the data in the database
Definition at line 53 of file GoDBTableWidgetContainer.h.
GoDBTableWidgetContainer::GoDBTableWidgetContainer |
( |
| ) |
|
GoDBTableWidgetContainer::GoDBTableWidgetContainer |
( |
std::string |
iCollectionName, |
|
|
std::string |
iTracesName, |
|
|
int |
iImgSessionID |
|
) |
| |
|
explicit |
constructor
- Parameters
-
[in] | iCollectionName | name of the collection |
[in] | iTracesName | name of the traces |
[in] | iImgSessionID | ID of the imagingsession |
Definition at line 38 of file GoDBTableWidgetContainer.cxx.
virtual GoDBTableWidgetContainer::~GoDBTableWidgetContainer |
( |
| ) |
|
|
inlinevirtual |
void GoDBTableWidgetContainer::ClearRowContainerValues |
( |
| ) |
|
|
protectedvirtual |
void GoDBTableWidgetContainer::FillRowContainer |
( |
std::vector< std::vector< std::string > > |
iResultsFromQuery, |
|
|
std::vector< std::string > |
iSelectFields, |
|
|
std::string |
BaseOn = "" |
|
) |
| |
|
protected |
fill the columns of the row container following the vector of string containing the columns to be filled with the results contained in the vector results from query and look on the columnNameDatabase in the column Info by default or else
Definition at line 517 of file GoDBTableWidgetContainer.cxx.
void GoDBTableWidgetContainer::FillRowContainerForComputedValues |
( |
std::vector< std::vector< std::string > > * |
iComputedValues | ) |
|
|
protected |
fill the row container with the values calculated and stored in th meshAttributes
- Todo:
- Lydie: find a way to make it ok for all traces, now only for mesh
Definition at line 777 of file GoDBTableWidgetContainer.cxx.
void GoDBTableWidgetContainer::FillRowContainerWithDBValues |
( |
vtkMySQLDatabase * |
iDatabaseConnector, |
|
|
std::string |
iRestrictionName, |
|
|
std::string |
iRestrictionValue, |
|
|
std::list< unsigned int > |
iListTimepoints = std::list<unsigned int>() |
|
) |
| |
|
protectedvirtual |
std::vector< int > GoDBTableWidgetContainer::GetAllTraceIDsInContainer |
( |
| ) |
|
get the results of the queries and put them in the row container corresponding to all the data needed to fill the table widget for the updated trace and return the link to the corresponding row container which has only 1 row
- Parameters
-
[in] | iDatabaseConnector | connection to the database |
[in] | iTraceID | traceID the data are needed for |
- Returns
- the row container with all the data for the specific trace
Reimplemented in GoDBTWContainerForMesh, GoDBTWContainerForLineage, and GoDBTWContainerForTrack.
Definition at line 701 of file GoDBTableWidgetContainer.cxx.
GoDBTableWidgetContainer::TWContainerType GoDBTableWidgetContainer::GetContainerLoadedWithAllFromDB |
( |
vtkMySQLDatabase * |
iDatabaseConnector, |
|
|
std::list< unsigned int > |
iListTPs = std::list<unsigned int>() |
|
) |
| |
|
virtual |
get the results of the queries and put them in the row container corresponding to all the data needed to fill the table widget for the traces and return the corresponding row container
- Parameters
-
[in] | iDatabaseConnector | connection to the database |
- Returns
- all the values needed from the database and the description of the info to know how to display them in the table widget
Reimplemented in GoDBTWContainerForMesh.
Definition at line 687 of file GoDBTableWidgetContainer.cxx.
std::vector< int > GoDBTableWidgetContainer::GetIndexForGroupColor |
( |
std::string |
iGroupName | ) |
|
get the results of the queries and put them in the row container corresponding to all the data needed to fill the table widget for the new created trace and return the link to the corresponding row container which has only 1 row
Definition at line 810 of file GoDBTableWidgetContainer.cxx.
int GoDBTableWidgetContainer::GetIndexInsideRowContainer |
( |
std::string |
iInfoName | ) |
|
|
protected |
std::list< std::pair< std::string, std::string > > GoDBTableWidgetContainer::GetListColumnsNamesAndToolTipsForTableWidget |
( |
| ) |
|
Return a list with all the ColumnNames and tooltips to be displayed in the tableWidget.
- Returns
- a list with all the ColumnNames and tooltips to be displayed in the tableWidget
Definition at line 434 of file GoDBTableWidgetContainer.cxx.
std::vector< std::string > GoDBTableWidgetContainer::GetNameComputedColumns |
( |
| ) |
|
Return a list with all the ColumnNames for computed values displayed in the tableWidget.
- Returns
- a list with all the ColumnNames for computed values displayed in the tableWidget
Definition at line 454 of file GoDBTableWidgetContainer.cxx.
size_t GoDBTableWidgetContainer::GetNumberOfRows |
( |
| ) |
|
|
protected |
std::vector< std::string > GoDBTableWidgetContainer::GetQueryStringForSelectFieldsTables |
( |
bool |
SameFieldsInQuery | ) |
|
|
protected |
return a vector of the table.fields to be selected from the database for all the fields except the ones with the same name if SameFieldsQuery is set to false and only for them if SameFieldsQuery is set to true
Definition at line 473 of file GoDBTableWidgetContainer.cxx.
std::vector< std::string > GoDBTableWidgetContainer::GetQueryStringForTraceJoinedTables |
( |
bool |
SameFieldsInQuery | ) |
|
|
protected |
return a vector of string with the tables to be joined with the trace table in the database query for all the fields except the ones with the same name if SameFieldsQuery is set to false and only for them if SameFieldsQuery is set to true
Definition at line 581 of file GoDBTableWidgetContainer.cxx.
virtual void GoDBTableWidgetContainer::SetCommonInfoForTwoTracesTable |
( |
| ) |
|
|
protectedpure virtual |
void GoDBTableWidgetContainer::SetInfoForColumnIsVisible |
( |
| ) |
|
|
protected |
std::string GoDBTableWidgetContainer::m_CollectionIDName |
|
protected |
std::string GoDBTableWidgetContainer::m_CollectionName |
|
protected |
return a list of all the traces with a bounding box containing the given ZCoord
*Set the info needed for mesh Insert a new created trace with the datas contained in the NewTraceContainer into the m_RowContainer
Definition at line 148 of file GoDBTableWidgetContainer.h.
int GoDBTableWidgetContainer::m_ImgSessionID |
|
protected |
std::string GoDBTableWidgetContainer::m_TracesIDName |
|
protected |
std::string GoDBTableWidgetContainer::m_TracesName |
|
protected |
The documentation for this class was generated from the following files: