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

Wraps a boost multi index container of TrackStructure. This class intends to synchronize Track representation in the Visualization and in the TableWidget. More...

#include <Code/GUI/lib/VisualizationTraceContainers/TrackContainer.h>

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

Public Types

enum  BorderType { FIRST = 0, LAST = 1 }
 
typedef
Superclass::MultiIndexContainerType 
MultiIndexContainerType
 
typedef
TrackType::PointsMapConstIterator 
PointsMapConstIterator
 
typedef
TrackType::PointsMapIterator 
PointsMapIterator
 
typedef TrackType::PointsMapType PointsMapType
 
typedef TraceContainerBase
< boost::MultiIndexTrackContainer
Superclass
 
typedef
Superclass::MultiIndexContainerElementType 
TrackType
 
- Public Types inherited from TraceContainerBase< boost::MultiIndexTrackContainer >
typedef
MultiIndexContainerType::template
index< CollectionID >
::type::iterator 
MultiIndexContainerCollectionIDIterator
 
typedef
MultiIndexContainerType::value_type 
MultiIndexContainerElementType
 
typedef
MultiIndexContainerType::template
index< Highlighted >
::type::iterator 
MultiIndexContainerHighlightedIterator
 
typedef
MultiIndexContainerType::template
index< TraceID >
::type::iterator 
MultiIndexContainerTraceIDIterator
 
typedef
boost::MultiIndexTrackContainer 
MultiIndexContainerType
 
typedef
MultiIndexContainerType::template
index< Visible >
::type::iterator 
MultiIndexContainerVisibleIterator
 

Public Slots

void AddVolume (const unsigned int &iTrackID, const double &iVolume)
 
void ChangeColorCode (const QString &iColorCode)
 Color code the track by an array. More...
 
void ChangeDivisionsColorCode (const QString &iColorCode)
 Color code the lineage by an array. More...
 
void DeleteADivision (const unsigned int &iMotherID)
 
void DeleteCollection (unsigned int)
 
void HighlightCollection (const unsigned int &iRootTrackID, const bool &iHighlighted)
 
int ModifyDivisionHighlight (MultiIndexContainerTraceIDIterator &it, const bool &iHighlight)
 
int ModifyDivisionVisibility (MultiIndexContainerTraceIDIterator &it, const bool &iVisibility)
 
void ShowCollection (const unsigned int &, const bool &)
 
void ShowCurrentCollection (std::list< unsigned int > &iTrackIDRoot, const unsigned int &iTimePoint)
 
void UpdateCollectionDelete (MultiIndexContainerTraceIDIterator &it)
 
void UpdateCollectionHighlighted (MultiIndexContainerTraceIDIterator &it, const bool &iHighlighted)
 
void UpdateCollectionVisibility (MultiIndexContainerTraceIDIterator &it, const bool &iVisibility)
 
bool UpdateCurrentCollectionVisibility (MultiIndexContainerTraceIDIterator &it, const int &iTime)
 
virtual void UpdateElementHighlightingWithGivenTraceIDs (const QStringList &iList, const Qt::CheckState &iCheck)
 Change elements highlighting property given a list of TraceIDs and the new status. More...
 
virtual void UpdateElementVisibilityWithGivenTraceIDs (const QStringList &iList, const Qt::CheckState &iCheck)
 Change elements visibility property given a list of TraceIDs and the new status. More...
 
void UpdateTracksRepresentation (const double &iRadius, const double &iRadius2, const double &iWidth)
 

Signals

void NeedMeshesInfoForImportedTrack (unsigned int)
 When we want to import meshes into a track. More...
 
void TracePicked (unsigned int, Qt::CheckState)
 When one track has been picked (highlighted) from the visualization. More...
 
void TraceVisibilityChanged (unsigned int, Qt::CheckState)
 When one track's visibility has been changed from the visualization. More...
 
void UpdateLineageHighlightingFromTrackRootID (unsigned int)
 
void UpdateTWCollectionStatus (std::list< unsigned int >, std::list< unsigned int >)
 

Public Member Functions

void AddDivision (const unsigned int &iMotherID, const unsigned int &iDaughter1ID, const unsigned int &iDaughter2ID, const bool &iVisible=true)
 
std::vector< vtkActor * > CreateDivisionActor (vtkPolyData *iPolyData, const bool &iVisible=true)
 
void CreateDivisionPolydata (const unsigned int &iMother)
 
void CreateTrackActors (TrackStructure &iStructure)
 Create new actors for the current polydata and update and visualize the current actors. More...
 
std::list< unsigned int > DeleteAllHighlightedElements ()
 Delete all highlighted elements. More...
 
bool DeleteElement (const unsigned int &iId)
 Remove the element which TraceId = iId. More...
 
bool DeleteElement (MultiIndexContainerTraceIDIterator iIter)
 
vtkMutableDirectedGraph * ExportLineage (const unsigned int &iTrackID)
 
double * GetBorderOfTheTrack (const unsigned int &iTrackID, const BorderType &iBorder)
 
unsigned int GetCollectionMaxDepth (const unsigned int &iTrackRootID)
 
unsigned int GetCollectionMinDepth (const unsigned int &iTrackRootID)
 
unsigned int GetCollectionNumberOfDivisions (const unsigned int &iTrackRootID)
 
unsigned int GetCollectionNumberOfLeaves (const unsigned int &iTrackRootID)
 
GoFigureLineageAttributes GetLineageAttributes (unsigned int iTrackRootID)
 
void GetRootIterator (MultiIndexContainerTraceIDIterator &iMotherIterator)
 
std::list< unsigned int > GetSubLineage (const unsigned int &iTrackID)
 
int getTimeInterval ()
 
void ImportTrackInCurrentElement (std::map< unsigned int, double * > &iMeshes)
 Update the current element map then polydata. More...
 
void MergeTrack (const unsigned int &iId1, const unsigned int &iId2)
 
void RenderAllDivisionsWithOriginalColors ()
 
void SetCollectionColorCode (const std::string &iColumnName, const std::map< unsigned int, std::string > &iValues)
 
void SetDivisionRandomColor (const std::string &iColumnName, const std::map< unsigned int, std::string > &iValues)
 
void SetListOfDivisions (std::list< unsigned int > &iListOfDivisions)
 
void SetLookupTableForAllDivisionsColorCoding (const vtkLookupTable *iLut)
 
void SetScalarRangeForAllDivisions (const double &iMin, const double &iMax)
 
void setTimeInterval (const int &iTimeInterval)
 
void ShowActorsWithGivenTimePoint (const unsigned int &iT)
 Display all elements for a given time point. More...
 
 TrackContainer (QObject *iParent, QGoImageView3D *iView)
 Constructor. More...
 
void UpdateCollectionColors (const unsigned int &iTrackID, const double *color)
 
void UpdateCollectionColorsData (const unsigned int &iTrackID, const double *color)
 
void UpdateCollectionHighlighting (const unsigned int &iTraceId)
 
void UpdateCollectionMaxDepth (MultiIndexContainerTraceIDIterator &it, const unsigned int &iDivisionDepth, unsigned int &iLineageDepth)
 
void UpdateCollectionMinDepth (MultiIndexContainerTraceIDIterator &it, const unsigned int &iDivisionDepth, unsigned int &iLineageDepth)
 
void UpdateCollectionNumberOfDivisions (MultiIndexContainerTraceIDIterator &it, unsigned int &iNumberOfDivisions)
 
void UpdateCollectionNumberOfLeaves (MultiIndexContainerTraceIDIterator &it, unsigned int &iNumberOfLeaves)
 
GoFigureLineageAttributes UpdateCollectionScalars (const unsigned int &iTrackID)
 
void UpdateDivisionColor (MultiIndexContainerTraceIDIterator &iMotherIterator, const double *iColor)
 
void UpdateDivisionColorData (MultiIndexContainerTraceIDIterator &iMotherIterator, const double *iColor)
 
void UpdateDivisionScalar (MultiIndexContainerTraceIDIterator &iMotherIterator, const unsigned int &iDepth)
 
void UpdateDivisionScalarData (MultiIndexContainerTraceIDIterator &it, const std::string &iColumnName, const double &iValue, double &iMin, double &iMax)
 
GoFigureLineageAttributes UpdateDivisionsForALineage (unsigned int iTrackIDRoot, double *color)
 update the color and the divisions scalars of an all lineage which has iTrackIDRoot as track root More...
 
void UpdateElementHighlighting (const unsigned int &TraceId)
 Update highlighting property of one element given one actor. More...
 
void UpdateElementVisibility (const unsigned int &iTraceID, const bool &iState)
 Update highlighting property of one element given one actor. More...
 
void UpdateLineage (MultiIndexContainerTraceIDIterator &it, vtkMutableDirectedGraph *iGraph, unsigned int iPedrigree, vtkIdType mother, unsigned int iDepth, vtkDoubleArray *iDepthArray, vtkDoubleArray *iIDArray, vtkDoubleArray *iFirstTPArray, vtkDoubleArray *iLastTPArray)
 
TrackStructureUpdatePointsForATrack (const unsigned int &iTrackID, std::list< double * > &iListCenterBoundingBoxes)
 get the element with iTrackID into the current element, remove it from the container, recalculate the points from the iListCenterBoundingBox and emit a signal for the current element to be saved into the database More...
 
void UpdateSubLineage (MultiIndexContainerTraceIDIterator it, std::list< unsigned int > &iList)
 
void UpdateTrackActors (TrackStructure &iStructure)
 
template<class TList >
void UpdateTracksStrings (const TList &iTrackList)
 Update the points strings of the tracks for each element of the list { 1 -Add trackID to current element 2- Remove old element 3- Get corresponding meshes centers 4- convert coordinates 5- fill map 6- generate new polydata 7- emit signal (to save in DB + insert element) 8- update the visu }. More...
 
bool UpdateTrackStructurePolyData (const TrackStructure &iTrackStructure)
 Update the TrackStructure polydata according to the current map. More...
 
virtual ~TrackContainer ()
 Destructor. More...
 
- Public Member Functions inherited from TraceContainerBase< boost::MultiIndexTrackContainer >
std::vector< vtkActor * > GetActorGivenTraceID (unsigned int iTraceID)
 
unsigned int GetCollectionIDOfGivenTraceID (unsigned int iTraceID)
 Get the CollectionID given a TraceID. More...
 
double * GetCurrentElementColor ()
 Get the color of the current element track. More...
 
vtkPolyData * GetCurrentElementNodes ()
 Get the polydata representing the current element track. More...
 
std::list< vtkPolyData * > GetHighlightedElements ()
 Get all highlighted elements by pair<ID, Polydata>. More...
 
std::list< unsigned int > GetHighlightedElementsCollectionID ()
 
std::list< unsigned int > GetHighlightedElementsTraceID ()
 Get the list of highlighted elements TraceID. More...
 
vtkProperty * GetHighlightedProperty ()
 Get property for highlighted traces. More...
 
void Insert (const MultiIndexContainerElementType &iE)
 Insert one element in the container. More...
 
void InsertCurrentElement ()
 Insert Current Element in the container. More...
 
void Print (TIterator iBegin, TIterator iEnd)
 Print the container content in the application output. More...
 
void Print ()
 Print the container content in the application output according to the template parameter. More...
 
void Print ()
 Print the container content in the application output. More...
 
bool RemoveElementFromVisualizationWithGivenTraceID (const unsigned int &iId)
 Remove element from visualization. More...
 
void ResetCurrentElement ()
 Reset Current Element to a default state. More...
 
void SetColorCode (const std::string &iColumnName, const std::map< unsigned int, std::string > &iValues)
 Color code contour / mesh according to values provided. More...
 
void SetColorCode (const std::string &iColumnName, const std::map< unsigned int, TValue > &iValues)
 Color code contour / mesh according to values provided. More...
 
void SetHighlightedProperty (vtkProperty *iProperty)
 Set property whenever the trace is highlighted. More...
 
void SetIntersectionLineWidth (const float &iWidth)
 
void SetLookupTableForColorCoding (vtkLookupTable *iLut)
 Apply the given lookup table to all traces in the container. More...
 
void SetRandomColor (const std::string &iColumnName, const std::map< unsigned int, unsigned int > &iIds)
 
void SetRandomColor (const std::string &iColumnName, const std::map< unsigned int, std::string > &iValues)
 
 TraceContainerBase (QObject *iParent, QGoImageView3D *iView)
 Constructor. More...
 
std::list< unsigned int > UpdateAllHighlightedElementsWithGivenColor (QColor iColor)
 Update all highlighted elements in the container with a given color. More...
 
void UpdateCurrentElementCollection (unsigned int iCollectionID)
 
void UpdateCurrentElementFromDB (unsigned int iTraceID, double irgba[4], bool IsVisible=false)
 Update Current Element from te database. More...
 
bool UpdateCurrentElementFromExistingOne (unsigned int iTraceID, bool iErase=true)
 put the information of the existing element into m_CurrentElement and remove the existing element from the container,the visu and the memory More...
 
bool UpdateCurrentElementFromExistingOne (typename MultiIndexContainerType::template index< TIndex >::type::iterator iIt)
 
bool UpdateElementHighlightingWithGivenTraceID (const unsigned int &iId)
 Update element highlighting given it TraceId. More...
 
bool UpdateElementVisibilityWithGivenTraceID (const unsigned int &iId)
 Update element visibility given it TraceId. More...
 
void UpdateVisualizationForGivenElement (typename MultiIndexContainerType::template index< TIndex >::type::iterator &iIt, std::vector< vtkActor * > iActors, const bool &iHighlighted, const bool &iVisible)
 Update Actors, Highlighted, Visibility (properties) of given a element. More...
 
void UpdateVisualizationForGivenIDs (TList iList)
 Update Visualization of the given TraceIDs. More...
 
virtual ~TraceContainerBase ()
 Destructor. More...
 

Protected Member Functions

void ComputeSpeed ()
 
void RecomputeMap (TrackStructure *iStructure, std::list< double * > &iPoints)
 Recompute a polydata from a list of point (coordinates) for the current element. If the current element is a new track, then the polydata, actors are allocated and added in consequence. More...
 
double * setDivisionNodeScalars (const QString &iArrayName)
 Changes the divisions scalars to be displayed and return the new range. More...
 
double * setTrackNodeScalars (const QString &iArrayName)
 Changes the scalars to be displayed and return the new range. More...
 
- Protected Member Functions inherited from TraceContainerBase< boost::MultiIndexTrackContainer >
void RenderAllElementsWithOriginalColors ()
 Render with original colors. More...
 
void SetScalarRangeForAllElements (const double &iMin, const double &iMax)
 Set the scalar range. More...
 
void UpdateCurrentElementFromVisuBase (std::vector< vtkActor * > &iActors, vtkPolyData *iNodes, const bool &iHighlighted, const bool &iVisible)
 
virtual void UpdateElementHighlightingWithGivenTraceIDsBase (const QStringList &iList, const Qt::CheckState &iCheck)
 Change elements highlighting property given a list of TraceIDs and the new status. More...
 
void UpdateElementHighlightingWithTraceID (const unsigned int &oTraceId, Qt::CheckState &oState)
 Update highlighting property of one element given one actor. More...
 
virtual void UpdateElementVisibilityWithGivenTraceIDsBase (const QStringList &iList, const Qt::CheckState &iCheck)
 Change elements visibility property given a list of TraceIDs and the new status. More...
 
void UpdateElementVisibilityWithTraceID (const unsigned int &oTraceId, const bool &iState)
 

Private Member Functions

template<class TIndex >
void ChangeActorsVisibility (typename MultiIndexContainerType::template index< TIndex >::type::iterator iBegin, bool iVisibility)
 Change element visibility in the scene. More...
 
 Q_DISABLE_COPY (TrackContainer)
 

Private Attributes

QString m_ActiveDivisionScalars
 
QString m_ActiveTrackScalars
 
int m_TimeInterval
 

Additional Inherited Members

- Public Attributes inherited from TraceContainerBase< boost::MultiIndexTrackContainer >
MultiIndexContainerType m_Container
 Trace Contaienr. More...
 
MultiIndexContainerElementType m_CurrentElement
 Current Element of the trace type. More...
 
QGoImageView3Dm_ImageView
 Link to the visualization. More...
 
- Protected Attributes inherited from TraceContainerBase< boost::MultiIndexTrackContainer >
vtkProperty * m_HighlightedProperty
 
float m_IntersectionLineWidth
 

Detailed Description

Wraps a boost multi index container of TrackStructure. This class intends to synchronize Track representation in the Visualization and in the TableWidget.

See Also
TrackStructure QGoTableWidget QGoImageView3D

Definition at line 245 of file TrackContainer.h.

Member Typedef Documentation

Definition at line 253 of file TrackContainer.h.

typedef TrackType::PointsMapConstIterator TrackContainer::PointsMapConstIterator

Definition at line 258 of file TrackContainer.h.

typedef TrackType::PointsMapIterator TrackContainer::PointsMapIterator

Definition at line 257 of file TrackContainer.h.

typedef TrackType::PointsMapType TrackContainer::PointsMapType

Definition at line 256 of file TrackContainer.h.

Definition at line 251 of file TrackContainer.h.

Definition at line 254 of file TrackContainer.h.

Member Enumeration Documentation

Enumerator
FIRST 
LAST 

Definition at line 445 of file TrackContainer.h.

Constructor & Destructor Documentation

TrackContainer::TrackContainer ( QObject *  iParent,
QGoImageView3D iView 
)
explicit

Constructor.

Definition at line 66 of file TrackContainer.cxx.

TrackContainer::~TrackContainer ( )
virtual

Destructor.

Definition at line 78 of file TrackContainer.cxx.

Member Function Documentation

void TrackContainer::AddDivision ( const unsigned int &  iMotherID,
const unsigned int &  iDaughter1ID,
const unsigned int &  iDaughter2ID,
const bool &  iVisible = true 
)

Definition at line 799 of file TrackContainer.cxx.

void TrackContainer::AddVolume ( const unsigned int &  iTrackID,
const double &  iVolume 
)
slot

Definition at line 2124 of file TrackContainer.cxx.

template<class TIndex >
void TrackContainer::ChangeActorsVisibility ( typename MultiIndexContainerType::template index< TIndex >::type::iterator  iBegin,
bool  iVisibility 
)
inlineprivate

Change element visibility in the scene.

Template Parameters
TIndexrefers to any index from the multi index container indices
Parameters
[in]iBeginfirst element
[in]iEndlast element
[in]iVisibility

Definition at line 881 of file TrackContainer.h.

void TrackContainer::ChangeColorCode ( const QString &  iColorCode)
slot

Color code the track by an array.

Parameters
[in]iColorCodename of the active array

Definition at line 476 of file TrackContainer.cxx.

void TrackContainer::ChangeDivisionsColorCode ( const QString &  iColorCode)
slot

Color code the lineage by an array.

Parameters
[in]iColorCodename of the active array

Definition at line 509 of file TrackContainer.cxx.

void TrackContainer::ComputeSpeed ( )
protected
std::vector< vtkActor * > TrackContainer::CreateDivisionActor ( vtkPolyData *  iPolyData,
const bool &  iVisible = true 
)

Definition at line 954 of file TrackContainer.cxx.

void TrackContainer::CreateDivisionPolydata ( const unsigned int &  iMother)

Definition at line 866 of file TrackContainer.cxx.

void TrackContainer::CreateTrackActors ( TrackStructure iStructure)

Create new actors for the current polydata and update and visualize the current actors.

Parameters
[in]iStructureStructure to be updated
Note
input paramter not cont sine it is modified in the method

Definition at line 296 of file TrackContainer.cxx.

void TrackContainer::DeleteADivision ( const unsigned int &  iMotherID)
slot

Definition at line 1274 of file TrackContainer.cxx.

std::list< unsigned int > TrackContainer::DeleteAllHighlightedElements ( )
virtual

Delete all highlighted elements.

Returns
the list of TraceIDs of such elements

Implements TraceContainerBase< boost::MultiIndexTrackContainer >.

Definition at line 142 of file TrackContainer.cxx.

void TrackContainer::DeleteCollection ( unsigned int  iRootTrackID)
slot

Definition at line 1141 of file TrackContainer.cxx.

TrackContainer::DeleteElement ( const unsigned int &  iId)
virtual

Remove the element which TraceId = iId.

  • from the visualization
  • from the container
  • from memory (release memory)
Parameters
[in]iIdTraceID of the element to be deleted
Returns
true if the element was present in the container.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements TraceContainerBase< boost::MultiIndexTrackContainer >.

Definition at line 94 of file TrackContainer.cxx.

bool TrackContainer::DeleteElement ( MultiIndexContainerTraceIDIterator  iIter)
virtual
vtkMutableDirectedGraph * TrackContainer::ExportLineage ( const unsigned int &  iTrackID)

Definition at line 1786 of file TrackContainer.cxx.

double * TrackContainer::GetBorderOfTheTrack ( const unsigned int &  iTrackID,
const BorderType iBorder 
)

Definition at line 740 of file TrackContainer.cxx.

unsigned int TrackContainer::GetCollectionMaxDepth ( const unsigned int &  iTrackRootID)

Definition at line 1560 of file TrackContainer.cxx.

unsigned int TrackContainer::GetCollectionMinDepth ( const unsigned int &  iTrackRootID)

Definition at line 1614 of file TrackContainer.cxx.

unsigned int TrackContainer::GetCollectionNumberOfDivisions ( const unsigned int &  iTrackRootID)

Definition at line 1669 of file TrackContainer.cxx.

unsigned int TrackContainer::GetCollectionNumberOfLeaves ( const unsigned int &  iTrackRootID)

Definition at line 1719 of file TrackContainer.cxx.

GoFigureLineageAttributes TrackContainer::GetLineageAttributes ( unsigned int  iTrackRootID)

Definition at line 1741 of file TrackContainer.cxx.

void TrackContainer::GetRootIterator ( MultiIndexContainerTraceIDIterator iMotherIterator)

Definition at line 1378 of file TrackContainer.cxx.

std::list< unsigned int > TrackContainer::GetSubLineage ( const unsigned int &  iTrackID)

Definition at line 1309 of file TrackContainer.cxx.

int TrackContainer::getTimeInterval ( )

Definition at line 690 of file TrackContainer.cxx.

void TrackContainer::HighlightCollection ( const unsigned int &  iRootTrackID,
const bool &  iHighlighted 
)
slot

Definition at line 998 of file TrackContainer.cxx.

void TrackContainer::ImportTrackInCurrentElement ( std::map< unsigned int, double * > &  iMeshes)

Update the current element map then polydata.

Parameters
[in]iMeshesmeshes to be added in the map

Definition at line 270 of file TrackContainer.cxx.

void TrackContainer::MergeTrack ( const unsigned int &  iId1,
const unsigned int &  iId2 
)
int TrackContainer::ModifyDivisionHighlight ( MultiIndexContainerTraceIDIterator it,
const bool &  iHighlight 
)
slot

Definition at line 1245 of file TrackContainer.cxx.

int TrackContainer::ModifyDivisionVisibility ( MultiIndexContainerTraceIDIterator it,
const bool &  iVisibility 
)
slot

Definition at line 1215 of file TrackContainer.cxx.

void TrackContainer::NeedMeshesInfoForImportedTrack ( unsigned  int)
signal

When we want to import meshes into a track.

TrackContainer::Q_DISABLE_COPY ( TrackContainer  )
private
void TrackContainer::RecomputeMap ( TrackStructure iStructure,
std::list< double * > &  iPoints 
)
protected

Recompute a polydata from a list of point (coordinates) for the current element. If the current element is a new track, then the polydata, actors are allocated and added in consequence.

Parameters
[in]iPointslist of points to generate the new polydata

Definition at line 404 of file TrackContainer.cxx.

void TrackContainer::RenderAllDivisionsWithOriginalColors ( )

Definition at line 583 of file TrackContainer.cxx.

void TrackContainer::SetCollectionColorCode ( const std::string &  iColumnName,
const std::map< unsigned int, std::string > &  iValues 
)

Definition at line 1887 of file TrackContainer.cxx.

double * TrackContainer::setDivisionNodeScalars ( const QString &  iArrayName)
protected

Changes the divisions scalars to be displayed and return the new range.

Parameters
[in]iArrayNameArray to be displayed
Returns
Pointer to double[2] where [0] is the min scalar value and [1] is the max scalar value. Pointer has to be deleted (delete[] pointer)

Definition at line 641 of file TrackContainer.cxx.

void TrackContainer::SetDivisionRandomColor ( const std::string &  iColumnName,
const std::map< unsigned int, std::string > &  iValues 
)

Definition at line 2018 of file TrackContainer.cxx.

void TrackContainer::SetListOfDivisions ( std::list< unsigned int > &  iListOfDivisions)

Definition at line 776 of file TrackContainer.cxx.

void TrackContainer::SetLookupTableForAllDivisionsColorCoding ( const vtkLookupTable *  iLut)

Definition at line 564 of file TrackContainer.cxx.

void TrackContainer::SetScalarRangeForAllDivisions ( const double &  iMin,
const double &  iMax 
)

Definition at line 545 of file TrackContainer.cxx.

void TrackContainer::setTimeInterval ( const int &  iTimeInterval)

Definition at line 680 of file TrackContainer.cxx.

double * TrackContainer::setTrackNodeScalars ( const QString &  iArrayName)
protected

Changes the scalars to be displayed and return the new range.

Parameters
[in]iArrayNameArray to be displayed
Returns
Pointer to double[2] where [0] is the min scalar value and [1] is the max scalar value. Pointer has to be deleted (delete[] pointer)

Definition at line 603 of file TrackContainer.cxx.

void TrackContainer::ShowActorsWithGivenTimePoint ( const unsigned int &  iT)

Display all elements for a given time point.

Parameters
[in]iTtime point

Definition at line 2138 of file TrackContainer.cxx.

void TrackContainer::ShowCollection ( const unsigned int &  iRootTrackID,
const bool &  iVisible 
)
slot

Definition at line 1015 of file TrackContainer.cxx.

void TrackContainer::ShowCurrentCollection ( std::list< unsigned int > &  iTrackIDRoot,
const unsigned int &  iTimePoint 
)
slot

Definition at line 1061 of file TrackContainer.cxx.

void TrackContainer::TracePicked ( unsigned  int,
Qt::CheckState   
)
signal

When one track has been picked (highlighted) from the visualization.

void TrackContainer::TraceVisibilityChanged ( unsigned  int,
Qt::CheckState   
)
signal

When one track's visibility has been changed from the visualization.

void TrackContainer::UpdateCollectionColors ( const unsigned int &  iTrackID,
const double *  color 
)

Definition at line 1469 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionColorsData ( const unsigned int &  iTrackID,
const double *  color 
)

Definition at line 1515 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionDelete ( MultiIndexContainerTraceIDIterator it)
slot

Definition at line 1158 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionHighlighted ( MultiIndexContainerTraceIDIterator it,
const bool &  iHighlighted 
)
slot

Definition at line 1186 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionHighlighting ( const unsigned int &  iTraceId)

Definition at line 1354 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionMaxDepth ( MultiIndexContainerTraceIDIterator it,
const unsigned int &  iDivisionDepth,
unsigned int &  iLineageDepth 
)

Definition at line 1582 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionMinDepth ( MultiIndexContainerTraceIDIterator it,
const unsigned int &  iDivisionDepth,
unsigned int &  iLineageDepth 
)

Definition at line 1636 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionNumberOfDivisions ( MultiIndexContainerTraceIDIterator it,
unsigned int &  iNumberOfDivisions 
)

Definition at line 1691 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionNumberOfLeaves ( MultiIndexContainerTraceIDIterator it,
unsigned int &  iNumberOfLeaves 
)

Definition at line 1758 of file TrackContainer.cxx.

GoFigureLineageAttributes TrackContainer::UpdateCollectionScalars ( const unsigned int &  iTrackID)

Definition at line 1414 of file TrackContainer.cxx.

void TrackContainer::UpdateCollectionVisibility ( MultiIndexContainerTraceIDIterator it,
const bool &  iVisibility 
)
slot

Definition at line 1032 of file TrackContainer.cxx.

bool TrackContainer::UpdateCurrentCollectionVisibility ( MultiIndexContainerTraceIDIterator it,
const int &  iTime 
)
slot

Definition at line 1100 of file TrackContainer.cxx.

void TrackContainer::UpdateDivisionColor ( MultiIndexContainerTraceIDIterator iMotherIterator,
const double *  iColor 
)

Definition at line 1486 of file TrackContainer.cxx.

void TrackContainer::UpdateDivisionColorData ( MultiIndexContainerTraceIDIterator iMotherIterator,
const double *  iColor 
)

Definition at line 1532 of file TrackContainer.cxx.

void TrackContainer::UpdateDivisionScalar ( MultiIndexContainerTraceIDIterator iMotherIterator,
const unsigned int &  iDepth 
)

Definition at line 1432 of file TrackContainer.cxx.

void TrackContainer::UpdateDivisionScalarData ( MultiIndexContainerTraceIDIterator it,
const std::string &  iColumnName,
const double &  iValue,
double &  iMin,
double &  iMax 
)

Definition at line 1979 of file TrackContainer.cxx.

GoFigureLineageAttributes TrackContainer::UpdateDivisionsForALineage ( unsigned int  iTrackIDRoot,
double *  color 
)

update the color and the divisions scalars of an all lineage which has iTrackIDRoot as track root

Definition at line 1394 of file TrackContainer.cxx.

void TrackContainer::UpdateElementHighlighting ( const unsigned int &  TraceId)
inline

Update highlighting property of one element given one actor.

Parameters
[in]iActorActor of the element to be modified
Returns
true if the element exists
false else
Note
move to superclass

Definition at line 378 of file TrackContainer.h.

void TrackContainer::UpdateElementHighlightingWithGivenTraceIDs ( const QStringList &  iList,
const Qt::CheckState &  iCheck 
)
virtualslot

Change elements highlighting property given a list of TraceIDs and the new status.

Parameters
[in]iListlist of TraceIDs
[in]iCheck

Definition at line 453 of file TrackContainer.cxx.

void TrackContainer::UpdateElementVisibility ( const unsigned int &  iTraceID,
const bool &  iState 
)
inline

Update highlighting property of one element given one actor.

Parameters
[in]iActorActor of the element to be modified
Returns
true if the element exists
false else
Note
move to superclass

Definition at line 409 of file TrackContainer.h.

void TrackContainer::UpdateElementVisibilityWithGivenTraceIDs ( const QStringList &  iList,
const Qt::CheckState &  iCheck 
)
virtualslot

Change elements visibility property given a list of TraceIDs and the new status.

Parameters
[in]iListlist of TraceIDs
[in]iCheck

Definition at line 466 of file TrackContainer.cxx.

void TrackContainer::UpdateLineage ( MultiIndexContainerTraceIDIterator it,
vtkMutableDirectedGraph *  iGraph,
unsigned int  iPedrigree,
vtkIdType  mother,
unsigned int  iDepth,
vtkDoubleArray *  iDepthArray,
vtkDoubleArray *  iIDArray,
vtkDoubleArray *  iFirstTPArray,
vtkDoubleArray *  iLastTPArray 
)

Definition at line 1841 of file TrackContainer.cxx.

void TrackContainer::UpdateLineageHighlightingFromTrackRootID ( unsigned  int)
signal
TrackStructure * TrackContainer::UpdatePointsForATrack ( const unsigned int &  iTrackID,
std::list< double * > &  iListCenterBoundingBoxes 
)

get the element with iTrackID into the current element, remove it from the container, recalculate the points from the iListCenterBoundingBox and emit a signal for the current element to be saved into the database

Parameters
[in]iTrackIDID for the track to be updated
[in]iListCenterBoundingBoxeslist of the center of the bounding boxes for the meshes belonging to this track

Definition at line 350 of file TrackContainer.cxx.

void TrackContainer::UpdateSubLineage ( MultiIndexContainerTraceIDIterator  it,
std::list< unsigned int > &  iList 
)

Definition at line 1329 of file TrackContainer.cxx.

void TrackContainer::UpdateTrackActors ( TrackStructure iStructure)

Definition at line 334 of file TrackContainer.cxx.

void TrackContainer::UpdateTracksRepresentation ( const double &  iRadius,
const double &  iRadius2,
const double &  iWidth 
)
slot

Definition at line 700 of file TrackContainer.cxx.

template<class TList >
void TrackContainer::UpdateTracksStrings ( const TList &  iTrackList)
inline

Update the points strings of the tracks for each element of the list { 1 -Add trackID to current element 2- Remove old element 3- Get corresponding meshes centers 4- convert coordinates 5- fill map 6- generate new polydata 7- emit signal (to save in DB + insert element) 8- update the visu }.

Parameters
[in]iTrackListList containing IDs of the track of interest

Definition at line 322 of file TrackContainer.h.

bool TrackContainer::UpdateTrackStructurePolyData ( const TrackStructure iTrackStructure)

Update the TrackStructure polydata according to the current map.

Parameters
[in]iTrackStructureStructure to be updated
Returns
true if the polydata has been updated
false if it hasn't (i.e. mesh without point)

Definition at line 191 of file TrackContainer.cxx.

void TrackContainer::UpdateTWCollectionStatus ( std::list< unsigned int >  ,
std::list< unsigned int >   
)
signal

Member Data Documentation

QString TrackContainer::m_ActiveDivisionScalars
private

Definition at line 871 of file TrackContainer.h.

QString TrackContainer::m_ActiveTrackScalars
private

Definition at line 870 of file TrackContainer.h.

int TrackContainer::m_TimeInterval
private

Definition at line 869 of file TrackContainer.h.


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