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
GoDBTWContainerForMesh Class Reference

This class describes the specificities of the GoDBTWContainerForContourMesh for mesh. More...

#include <Code/IO/GoDBTWContainerForMesh.h>

Inheritance diagram for GoDBTWContainerForMesh:
Inheritance graph
[legend]
Collaboration diagram for GoDBTWContainerForMesh:
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...
 
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...
 
 GoDBTWContainerForMesh (int iImgSessionID)
 
void SetMeshAttributes (GoFigureMeshAttributes *iMeshAttributes)
 set m_MeshAttributes to iMeshAttributes, needs to be called before displaying the volume, area values More...
 
 ~GoDBTWContainerForMesh ()
 
- Public Member Functions inherited from GoDBTWContainerForContourMesh
int GetIndexShowColumn ()
 return the index of the column in the RowContainer corresponding to the show/hide column More...
 
 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 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 FillRowContainerForMeshValues (vtkMySQLDatabase *iDatabaseConnector, std::vector< std::string > iVectMeshIDs)
 fill the row container with intensities values only if there is more than one mesh in the iVectmeshIDs and that m_MeshAttributes = 0, (expl: when all meshes are loaded from the database) if not, fill the container with values for volume and area also (expl: when a mesh is created from the visu)but the method SetMeshAttributes has to be called before. More...
 
void FillRowContainerForMeshValues (vtkMySQLDatabase *iDatabaseConnector, int iMeshID)
 
void GetIntensityValuesForOneMesh (std::string iMeshID, std::vector< std::vector< std::string > > &ioValuesToFill, vtkMySQLDatabase *iDatabaseConnector)
 get the intensities values from the database,and put them in ioValuesToFill for only one mesh More...
 
void GetValuesForIntensities (vtkMySQLDatabase *iDatabaseConnector, std::vector< std::string > iVectMeshIDs, std::vector< std::vector< std::string > > &ioValuesToFill, std::vector< std::string > &ioSelectFields)
 get the intensities values from the database,put them in ioValuesToFill, and put the corresponding columns names in ioSelectFields (from m_ChannelsInfo) More...
 
void GetValuesForSurfaceVolume (std::vector< std::vector< std::string > > &ioValuesToFill, std::vector< std::string > &ioSelectFields)
 extract the volume and area values from the m_MeshAttributes,put them in ioValuesToFill and put the corresponding columns names in ioSelectFields More...
 
void GetValuesToFillForIntensityFromQueryResults (std::vector< std::string > iResultQuery, std::vector< std::string > iVectMeshIDs, std::vector< std::vector< std::string > > &ioValuesToFill)
 sort the values in iResultQuery to fill ioValuesToFill More...
 
void SetChannelsInfo (vtkMySQLDatabase *iDatabaseConnector)
 get the info for the channels from the database and set the corresponding columns for the intensities values More...
 
void SetColumnsInfoBasedOnChannelsInfo ()
 add as many columns with their description as there is Channels More...
 
void SetSpecificColumnsInfoForMesh ()
 set the columns and their description for the specific columns for mesh except the ones related to channels as a connection to the database is needed to know the number of channels More...
 
void SetSpecificInfoForMeshTable ()
 add the specific info for a trace to the columns description More...
 
- Protected Member Functions inherited from GoDBTWContainerForContourMesh
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. 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

std::vector< std::vector
< std::string > > 
m_ChannelsInfo
 
GoFigureMeshAttributesm_MeshAttributes
 

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 GoDBTWContainerForContourMesh for mesh.

Definition at line 46 of file GoDBTWContainerForMesh.h.

Constructor & Destructor Documentation

GoDBTWContainerForMesh::GoDBTWContainerForMesh ( int  iImgSessionID)

Definition at line 36 of file GoDBTWContainerForMesh.cxx.

GoDBTWContainerForMesh::~GoDBTWContainerForMesh ( )

Definition at line 47 of file GoDBTWContainerForMesh.cxx.

Member Function Documentation

void GoDBTWContainerForMesh::FillRowContainerForMeshValues ( vtkMySQLDatabase *  iDatabaseConnector,
std::vector< std::string >  iVectMeshIDs 
)
protected

fill the row container with intensities values only if there is more than one mesh in the iVectmeshIDs and that m_MeshAttributes = 0, (expl: when all meshes are loaded from the database) if not, fill the container with values for volume and area also (expl: when a mesh is created from the visu)but the method SetMeshAttributes has to be called before.

Parameters
[in]iDatabaseConnectorconnection to the database
[in]iVectMeshIDsvector of the meshIDs

Definition at line 168 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::FillRowContainerForMeshValues ( vtkMySQLDatabase *  iDatabaseConnector,
int  iMeshID 
)
protected

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 383 of file GoDBTWContainerForMesh.cxx.

GoDBTableWidgetContainer::TWContainerType GoDBTWContainerForMesh::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 477 of file GoDBTWContainerForMesh.cxx.

GoDBTableWidgetContainer::TWContainerType GoDBTWContainerForMesh::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]iDatabaseConnectorconnection 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 from GoDBTableWidgetContainer.

Definition at line 424 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::GetIntensityValuesForOneMesh ( std::string  iMeshID,
std::vector< std::vector< std::string > > &  ioValuesToFill,
vtkMySQLDatabase *  iDatabaseConnector 
)
protected

get the intensities values from the database,and put them in ioValuesToFill for only one mesh

Parameters
[in]iMeshIDmeshID for the mesh the intensity values are needed
[in,out]ioValuesToFillvector of the values where the intensities values will be pushed
[in]iDatabaseConnectorconnection to the database

Definition at line 240 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::GetValuesForIntensities ( vtkMySQLDatabase *  iDatabaseConnector,
std::vector< std::string >  iVectMeshIDs,
std::vector< std::vector< std::string > > &  ioValuesToFill,
std::vector< std::string > &  ioSelectFields 
)
protected

get the intensities values from the database,put them in ioValuesToFill, and put the corresponding columns names in ioSelectFields (from m_ChannelsInfo)

Parameters
[in]iDatabaseConnectorconnection to the database
[in]iVectMeshIDsvector of the meshIDs for which the intensities are needed
[in,out]ioValuesToFillvector of the values where the intensities values will be pushed
[in,out]ioSelectFieldsvector of the selected fields where the intensities columns names in the TW will be pushed

Definition at line 189 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::GetValuesForSurfaceVolume ( std::vector< std::vector< std::string > > &  ioValuesToFill,
std::vector< std::string > &  ioSelectFields 
)
protected

extract the volume and area values from the m_MeshAttributes,put them in ioValuesToFill and put the corresponding columns names in ioSelectFields

Parameters
[in,out]ioValuesToFillvector of the values where volume and area values will be pushed
[in,out]ioSelectFieldsvector of the selected fields where the volume and area columns names in the TW will be pushed

Definition at line 394 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::GetValuesToFillForIntensityFromQueryResults ( std::vector< std::string >  iResultQuery,
std::vector< std::string >  iVectMeshIDs,
std::vector< std::vector< std::string > > &  ioValuesToFill 
)
protected

sort the values in iResultQuery to fill ioValuesToFill

Parameters
[in]iResultQueryvector with all the data from the database
[in]iVectMeshIDsvector of all the meshIDs
[in]ioValuesToFillvector of the values where the intensities values will be pushed

Definition at line 272 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::SetChannelsInfo ( vtkMySQLDatabase *  iDatabaseConnector)
protected

get the info for the channels from the database and set the corresponding columns for the intensities values

Parameters
[in]iDatabaseConnectorconnection to the database

Definition at line 453 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::SetColumnsInfoBasedOnChannelsInfo ( )
protected

add as many columns with their description as there is Channels

Definition at line 54 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::SetMeshAttributes ( GoFigureMeshAttributes iMeshAttributes)

set m_MeshAttributes to iMeshAttributes, needs to be called before displaying the volume, area values

Parameters
[in]iMeshAttributesattributes for the mesh computed from visu

Definition at line 490 of file GoDBTWContainerForMesh.cxx.

void GoDBTWContainerForMesh::SetSpecificColumnsInfoForMesh ( )
protected

set the columns and their description for the specific columns for mesh except the ones related to channels as a connection to the database is needed to know the number of channels

void GoDBTWContainerForMesh::SetSpecificInfoForMeshTable ( )
protected

add the specific info for a trace to the columns description

Definition at line 93 of file GoDBTWContainerForMesh.cxx.

Member Data Documentation

std::vector< std::vector< std::string > > GoDBTWContainerForMesh::m_ChannelsInfo
protected

Definition at line 67 of file GoDBTWContainerForMesh.h.

GoFigureMeshAttributes* GoDBTWContainerForMesh::m_MeshAttributes
protected

Definition at line 68 of file GoDBTWContainerForMesh.h.


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