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

This class describes the specificities of the GoDBTableWidgetContainer for contour and mesh. More...

#include <Code/IO/GoDBTWContainerForContourMesh.h>

Inheritance diagram for GoDBTWContainerForContourMesh:
[legend]
Collaboration diagram for GoDBTWContainerForContourMesh:
[legend]

Public Member Functions

int GetIndexShowColumn ()
 return the index of the column in the RowContainer corresponding to the show/hide column
 GoDBTWContainerForContourMesh ()
 GoDBTWContainerForContourMesh (std::string iCollectionName, std::string iTracesName, int iImgSessionID)
 ~GoDBTWContainerForContourMesh ()
- Public Member Functions inherited from GoDBTableWidgetContainer
std::vector< int > GetAllTraceIDsInContainer ()
 return all the traces IDs present in the RowContainer
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
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
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
std::list< std::pair
< std::string, std::string > > 
GetListColumnsNamesAndToolTipsForTableWidget ()
 Return a list with all the ColumnNames and tooltips to be displayed in the tableWidget.
std::vector< std::string > GetNameComputedColumns ()
 Return a list with all the ColumnNames for computed values displayed in the tableWidget.
 GoDBTableWidgetContainer ()
 Default Constructor.
 GoDBTableWidgetContainer (std::string iCollectionName, std::string iTracesName, int iImgSessionID)
 constructor
virtual ~GoDBTableWidgetContainer ()
 desctructor

Protected Member Functions

void FillColumnShowHide (vtkMySQLDatabase *iDatabaseConnector)
void FillRowContainerWithDBValues (vtkMySQLDatabase *iDatabaseConnector, std::string iRestrictionName, std::string iRestrictionValue)
void SetCommonInfoForTwoTracesTable ()
 Virtual Pure method Fill the vector of GoDBTraceInfoForTableWidget with the info common to 2 traces only.
- 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
void FillRowContainerForComputedValues (std::vector< std::vector< std::string > > *iComputedValues)
 fill the row container with the values calculated and stored in th meshAttributes
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.
int GetIndexInsideRowContainer (std::string iInfoName)
 return the index in the row container for the column with the given InfoName
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
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
void SetInfoForColumnIsVisible ()

Additional Inherited Members

- Public Types inherited from GoDBTableWidgetContainer
typedef std::vector< std::pair
< GoDBTraceInfoForTableWidget,
std::vector< std::string > > > 
TWContainerType
- Protected Attributes inherited from GoDBTableWidgetContainer
std::string m_CollectionIDName
std::string m_CollectionName
 return a list of all the traces with a bounding box containing the given ZCoord
std::vector
< GoDBTraceInfoForTableWidget
m_ColumnsInfos
int m_ImgSessionID
TWContainerType m_RowContainer
std::string m_TracesIDName
std::string m_TracesName

Detailed Description

This class describes the specificities of the GoDBTableWidgetContainer for contour and mesh.

Definition at line 45 of file GoDBTWContainerForContourMesh.h.

Constructor & Destructor Documentation

GoDBTWContainerForContourMesh::GoDBTWContainerForContourMesh ( )
GoDBTWContainerForContourMesh::GoDBTWContainerForContourMesh ( std::string  iCollectionName,
std::string  iTracesName,
int  iImgSessionID 
)

Definition at line 36 of file GoDBTWContainerForContourMesh.cxx.

GoDBTWContainerForContourMesh::~GoDBTWContainerForContourMesh ( )

Definition at line 46 of file GoDBTWContainerForContourMesh.cxx.

Member Function Documentation

void GoDBTWContainerForContourMesh::FillColumnShowHide ( vtkMySQLDatabase *  iDatabaseConnector)
protected

Definition at line 89 of file GoDBTWContainerForContourMesh.cxx.

void GoDBTWContainerForContourMesh::FillRowContainerWithDBValues ( vtkMySQLDatabase *  iDatabaseConnector,
std::string  iRestrictionName,
std::string  iRestrictionValue 
)
protected

Definition at line 77 of file GoDBTWContainerForContourMesh.cxx.

int GoDBTWContainerForContourMesh::GetIndexShowColumn ( )

return the index of the column in the RowContainer corresponding to the show/hide column

Definition at line 144 of file GoDBTWContainerForContourMesh.cxx.

void GoDBTWContainerForContourMesh::SetCommonInfoForTwoTracesTable ( )
protectedvirtual

Virtual Pure method Fill the vector of GoDBTraceInfoForTableWidget with the info common to 2 traces only.

Implements GoDBTableWidgetContainer.

Definition at line 53 of file GoDBTWContainerForContourMesh.cxx.


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