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

This class describes the specificities of the GoDBTWContainerForTrackLineage for lineage. More...

#include <Code/IO/GoDBTWContainerForLineage.h>

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

Public Member Functions

virtual TWContainerType GetContainerForOneSpecificTrace (vtkMySQLDatabase *iDatabaseConnector, int iTraceID)
 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 More...
 
 GoDBTWContainerForLineage (int iImgSessionID)
 
void SetLineageAttributes (GoFigureLineageAttributes iLineageAttributes)
 
 ~GoDBTWContainerForLineage ()
 
- Public Member Functions inherited from GoDBTWContainerForTrackLineage
 GoDBTWContainerForTrackLineage (std::string iCollectionName, std::string iTracesName, int iImgSessionID)
 
 ~GoDBTWContainerForTrackLineage ()
 
- Public Member Functions inherited from GoDBTableWidgetContainer
std::vector< int > GetAllTraceIDsInContainer ()
 return all the traces IDs present in the RowContainer More...
 
virtual TWContainerType GetContainerLoadedWithAllFromDB (vtkMySQLDatabase *iDatabaseConnector, std::list< unsigned int > iListTPs=std::list< unsigned int >())
 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 More...
 
std::vector< int > 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 More...
 
std::list< std::pair
< std::string, std::string > > 
GetListColumnsNamesAndToolTipsForTableWidget ()
 Return a list with all the ColumnNames and tooltips to be displayed in the tableWidget. More...
 
std::vector< std::string > GetNameComputedColumns ()
 Return a list with all the ColumnNames for computed values displayed in the tableWidget. More...
 
 GoDBTableWidgetContainer ()
 Default Constructor. More...
 
 GoDBTableWidgetContainer (std::string iCollectionName, std::string iTracesName, int iImgSessionID)
 constructor More...
 
virtual ~GoDBTableWidgetContainer ()
 desctructor More...
 

Protected Member Functions

void FillRowContainerForLineageComputedValues ()
 get the values from m_LineageAttributes and the names of the calculated values from m_LineageAttributes and fill the corresponding columns of the row container with them More...
 
void GetValuesAndNamesForLineageComputedValues (GoFigureLineageAttributes iLineageAttributes, std::vector< std::vector< std::string > > &ioValues, std::vector< std::string > &ioNames)
 
void SetSpecificInfoForLineageTable ()
 add the specific info for a lineage to the columns description More...
 
- Protected Member Functions inherited from GoDBTWContainerForTrackLineage
void SetCommonInfoForTwoTracesTable ()
 Virtual Pure method Fill the vector of GoDBTraceInfoForTableWidget with the info common to 2 traces only. More...
 
- Protected Member Functions inherited from GoDBTableWidgetContainer
virtual void ClearRowContainerValues ()
 
void FillRowContainer (std::vector< std::vector< std::string > > iResultsFromQuery, std::vector< std::string > iSelectFields, std::string BaseOn="")
 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 More...
 
void FillRowContainerForComputedValues (std::vector< std::vector< std::string > > *iComputedValues)
 fill the row container with the values calculated and stored in th meshAttributes More...
 
virtual void FillRowContainerWithDBValues (vtkMySQLDatabase *iDatabaseConnector, std::string iRestrictionName, std::string iRestrictionValue, std::list< unsigned int > iListTimepoints=std::list< unsigned int >())
 
virtual std::vector
< GoDBTraceInfoForTableWidget
GetColumnsInfoForTraceTable ()
 Fill a vector of GoDBTraceInfoForTableWidget with the info needed to fill the table widget for all the traces. More...
 
int GetIndexInsideRowContainer (std::string iInfoName)
 return the index in the row container for the column with the given InfoName More...
 
size_t GetNumberOfRows ()
 
std::vector< std::string > GetQueryStringForSelectFieldsTables (bool SameFieldsInQuery)
 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 More...
 
std::vector< std::string > GetQueryStringForTraceJoinedTables (bool SameFieldsInQuery)
 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 More...
 
void SetInfoForColumnIsVisible ()
 

Protected Attributes

GoFigureLineageAttributes m_LineageAttributes
 

Additional Inherited Members

- Public Types inherited from GoDBTableWidgetContainer
typedef std::vector< std::pair
< GoDBTraceInfoForTableWidget,
std::vector< std::string > > > 
TWContainerType
 

Detailed Description

This class describes the specificities of the GoDBTWContainerForTrackLineage for lineage.

Definition at line 47 of file GoDBTWContainerForLineage.h.

Constructor & Destructor Documentation

GoDBTWContainerForLineage::GoDBTWContainerForLineage ( int  iImgSessionID)

Definition at line 36 of file GoDBTWContainerForLineage.cxx.

GoDBTWContainerForLineage::~GoDBTWContainerForLineage ( )

Definition at line 45 of file GoDBTWContainerForLineage.cxx.

Member Function Documentation

void GoDBTWContainerForLineage::FillRowContainerForLineageComputedValues ( )
protected

get the values from m_LineageAttributes and the names of the calculated values from m_LineageAttributes and fill the corresponding columns of the row container with them

Definition at line 115 of file GoDBTWContainerForLineage.cxx.

GoDBTableWidgetContainer::TWContainerType GoDBTWContainerForLineage::GetContainerForOneSpecificTrace ( vtkMySQLDatabase *  iDatabaseConnector,
int  iTraceID 
)
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 updated trace and return the link to the corresponding row container which has only 1 row

Parameters
[in]iDatabaseConnectorconnection to the database
[in]iTraceIDtraceID the data are needed for
Returns
the row container with all the data for the specific trace

Reimplemented from GoDBTableWidgetContainer.

Definition at line 128 of file GoDBTWContainerForLineage.cxx.

void GoDBTWContainerForLineage::GetValuesAndNamesForLineageComputedValues ( GoFigureLineageAttributes  iLineageAttributes,
std::vector< std::vector< std::string > > &  ioValues,
std::vector< std::string > &  ioNames 
)
protected

Definition at line 140 of file GoDBTWContainerForLineage.cxx.

void GoDBTWContainerForLineage::SetLineageAttributes ( GoFigureLineageAttributes  iLineageAttributes)

Definition at line 108 of file GoDBTWContainerForLineage.cxx.

void GoDBTWContainerForLineage::SetSpecificInfoForLineageTable ( )
protected

add the specific info for a lineage to the columns description

Definition at line 52 of file GoDBTWContainerForLineage.cxx.

Member Data Documentation

GoFigureLineageAttributes GoDBTWContainerForLineage::m_LineageAttributes
protected

Definition at line 61 of file GoDBTWContainerForLineage.h.


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