this class manages the map with the keys matching the fields of the Mesh gofiguredatabase table and values of the map matching a row of the Mesh table
More...
Public Member Functions |
| | GoDBMeshRow () |
| | GoDBMeshRow (vtkMySQLDatabase *DatabaseConnector, vtkPolyData *TraceVisu, GoDBCoordinateRow Min, GoDBCoordinateRow Max, unsigned int ImgSessionID, GoFigureMeshAttributes *iMeshAttributes=0) |
| | fill the mesh map with the values gotten from the visualization
|
| | GoDBMeshRow (const GoDBMeshRow &iRow) |
| | GoDBMeshRow (unsigned int ImagingSessionID) |
| | GoDBMeshRow (unsigned int iExistingID, vtkMySQLDatabase *iDatabaseConnector) |
| void | SafeDownCast (GoDBTraceRow &iRow) |
| | convert a GoDBTraceRow in GoDBMeshRow
|
| virtual int | SaveInDB (vtkMySQLDatabase *DatabaseConnector) |
| | save the row in the database if the TraceID is set to "0", update the existing traceRow if the TraceID is <> 0
|
| void | SaveInDBTotalIntensityPerChannel (vtkMySQLDatabase *DatabaseConnector, boost::unordered_map< std::string, int > iNameChannelWithValues) |
| | create the intensities per channel based on the channel names and values contained in iNameChannelWithValues
|
| void | SetCellType (vtkMySQLDatabase *DatabaseConnector, std::string CellTypeName) |
| | put the value of map["Celltype"] to CellTypeName
|
| void | SetSubCellType (vtkMySQLDatabase *DatabaseConnector, std::string SubCellTypeName) |
| | put the value of map["SubCelltype"] to SubCellTypeName
|
| void | SetTheDataFromTheVisu (vtkMySQLDatabase *DatabaseConnector, vtkPolyData *TraceVisu, GoDBCoordinateRow iCoordMin, GoDBCoordinateRow iCoordMax, GoFigureMeshAttributes *iMeshAttributes) |
| | ~GoDBMeshRow () |
| int | DoesThisBoundingBoxExist (vtkMySQLDatabase *DatabaseConnector) |
| | check if a trace already has the same bounding box
|
| std::string | GetCollectionIDName () |
| std::string | GetCollectionName () |
| | GoDBTraceRow () |
| | GoDBTraceRow (vtkMySQLDatabase *DatabaseConnector, vtkPolyData *TraceVisu, GoDBCoordinateRow Min, GoDBCoordinateRow Max, unsigned int ImgSessionID) |
| | fill the trace map with the values gotten from the visualization
|
| void | SetCollectionID (unsigned int iCollectionID) |
| | set the collectionID field to iCollectionID
|
| void | SetColor (unsigned int Red, unsigned int Green, unsigned int Blue, unsigned int Alpha, std::string ColorName, vtkMySQLDatabase *DatabaseConnector) |
| | get the colorID corresponding to the rgba values and set the colorID field of the trace with it
|
| void | SetTheBoundingBox (vtkMySQLDatabase *iDatabaseConnector, GoDBCoordinateRow Min, GoDBCoordinateRow Max) |
| | check in the database if the Coordinate Min and Max already exists, if yes fill the map["CoordIDMin"] and ["CoordIDmax"] with the existing CoordinateID if not, create the coordinates in the database and fill the map with the new created ID, if the bounding box already exists, a cout is generated
|
| bool | SetValuesForSpecificID (int ID, vtkMySQLDatabase *iDatabaseConnector) |
| | ~GoDBTraceRow () |
| StringMapConstIterator | ConstMapBegin () |
| StringMapConstIterator | ConstMapEnd () |
| void | DeleteFromDB (vtkMySQLDatabase *iDatabaseConnector) |
| | delete from the database the row which has the same TableID
|
| std::string | GetMapValue (const std::string &key) |
| | return the value for the field map[key] after having removed the " at the beginning and at the end of the value if it is a string in order to get the original value.
|
| template<typename T > |
| T | GetMapValue (const std::string &key) |
| std::string | GetTableIDName () |
| std::string | GetTableName () |
| std::vector< std::string > | GetVectorColumnNames () |
| | put all the keys of the map in a vector
|
| | GoDBRow () |
| StringMapIterator | MapBegin () |
| StringMapIterator | MapEnd () |
| std::string | PrintColumnNames () |
| | put all the keys of the map in a string separated by ','
|
| std::string | PrintColumnNamesWithValues () |
| | put all the keys and values of the map in a string as map[key] = value separated by ','
|
| std::vector< std::string > | PrintColumnsAndValues () |
| std::string | PrintValues () |
| | put all the values of the map in a string separated by ','
|
| template<typename T > |
| void | SetField (const std::string &key, const T &value) |
| | convert the value into a string and assign it to the key in the map
|
| void | SetField (const std::string &key, const std::string &value) |
| | set value as the value of map[key] after having put " at the beginning and at the end of the string, as value is a string and it will be needed for the database queries. map[key] = " "value" "
|
| virtual | ~GoDBRow () |
Protected Member Functions |
| virtual void | InitializeMap () |
| | virtual pure. initialize all the values of the map
|
| template<typename T > |
| int | SaveInDBTemplate (vtkMySQLDatabase *iDatabaseConnector, T *iTrace) |
| | save the row in the database if the TraceID is set to "0", update the existing traceRow if the TraceID is <> 0
|
| void | SetImgSessionID (unsigned int iImgSessionID) |
| | set the ImagingSessionID field to iImgSessionID
|
| template<typename T > |
| void | SetTheDataFromTheVisuTemplate (vtkMySQLDatabase *DatabaseConnector, vtkPolyData *TraceVisu, GoDBCoordinateRow iCoordMin, GoDBCoordinateRow iCoordMax) |
| void | AddConditions (const std::string &iNameOfField, std::vector< FieldWithValue > &ioFieldWithValue) |
| | add as an element of ioFieldWithValue the name and value of the map with the key iNameOfField
|
this class manages the map with the keys matching the fields of the Mesh gofiguredatabase table and values of the map matching a row of the Mesh table
Definition at line 55 of file GoDBMeshRow.h.