|
GOFIGURE2
0.9.0
|
Wraps a boost::multi_index_container of ContourMeshStructure. This class intends to synchronize Contour and Mesh representation in the Visualization and in the TableWidget. More...
#include <Code/GUI/lib/VisualizationTraceContainers/ContourMeshContainer.h>
Public Types | |
| typedef MultiIndexContainerType::index < TCoord >::type::iterator | MultiIndexContainerTCoordIterator |
| typedef Superclass::MultiIndexContainerType | MultiIndexContainerType |
| typedef TraceContainerBase < boost::MultiIndexContourMeshContainer > | Superclass |
Public Types inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer > | |
| 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::MultiIndexContourMeshContainer | MultiIndexContainerType |
| typedef MultiIndexContainerType::template index< Visible > ::type::iterator | MultiIndexContainerVisibleIterator |
Public Slots | |
| void | UpdateElementHighlightingWithGivenTraceIDs (const QStringList &iList, const Qt::CheckState &iCheck) |
| Change elements highlighting property given a list of TraceIDs and the new status. More... | |
| void | UpdateElementVisibilityWithGivenTraceIDs (const QStringList &iList, const Qt::CheckState &iCheck) |
| Change elements visibility property given a list of TraceIDs and the new status. More... | |
Signals | |
| void | TracePicked (unsigned int, Qt::CheckState) |
| When one contour / mesh has been picked (highlighted) from the visualization. More... | |
| void | TraceVisibilityChanged (unsigned int, Qt::CheckState) |
| When one contour / mesh's visibility has been changed from the visualization. More... | |
Public Member Functions | |
| void | AddActorsWithGivenTimePoint (const unsigned int &iT) |
| Add all actors (elements) from the scene for a given time point. More... | |
| void | AssignToGivenCollection (unsigned int iCollection, std::list< unsigned int > iToBeAssigned) |
| void | ChangeActorsVisibility (MultiIndexContainerTCoordIterator iBegin, MultiIndexContainerTCoordIterator iEnd, const bool &iVisibility) |
| Change elements (in between iBegin and iEnd ) visibility. More... | |
| template<class TIndex > | |
| void | ChangeActorsVisibility (typename MultiIndexContainerType::template index< TIndex >::type::iterator iBegin, typename MultiIndexContainerType::template index< TIndex >::type::iterator iEnd, const bool &iVisibility) |
| Change element visibility in the scene. More... | |
| void | Clear () |
| Delete all elements from the container. More... | |
| void | Clear (const std::list< unsigned int > &iTraceIDs) |
| Delete given elements from the container. More... | |
| ContourMeshContainer (QObject *iParent, QGoImageView3D *iView) | |
| Constructor. 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) |
| std::list< unsigned int > | GetElementsTraceIDForGivenTimePoint (unsigned int iTimePoint) |
| std::list< unsigned int > | GetHighlightedElementsTCoord () |
| std::map< unsigned int, double * > | GetMeshesPoints (std::list< unsigned int > iMeshID) |
| void | RemoveActorsWithGivenTimePoint (const unsigned int &iT) |
| Remove all actors (elements) from the scene for a given time point. More... | |
| void | SetTimePoint (const unsigned int &iT) |
| Set the Current Time Point. More... | |
| void | ShowActorsWithGivenTimePoint (const unsigned int &iT) |
| Display all elements for a given time point. More... | |
| void | UpdateCurrentElementFromVisu (std::vector< vtkActor * > &iActors, vtkPolyData *iNodes, const unsigned int &iT, const bool &iHighlighted, const bool &iVisible) |
| Update Current Element by providing all required informations from the visualization. More... | |
| void | UpdateElementHighlighting (unsigned int TraceId) |
| Update highlighting property of one element given one actor. More... | |
| void | UpdateElementVisibility (unsigned int iTraceID, bool iState) |
| Update highlighting property of one element given one actor. More... | |
| virtual | ~ContourMeshContainer () |
| Destructor. More... | |
Public Member Functions inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer > | |
| 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... | |
Public Member Functions inherited from QObject | |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
| virtual | ~QObject () |
Static Public Member Functions | |
| template<typename T > | |
| static int | ComputeDirectionFromBounds (T *iBounds) |
| Returns the direction of a given element given its bounding box. This static method is supposed to be used when dealing with contours. More... | |
| template<typename T > | |
| static int | ComputeDirectionFromBounds (const std::vector< T > &iBounds) |
| static int | ComputeDirectionFromContour (vtkPolyData *iContour) |
| Returns the direction of a given contour vtkPolyData. This static method is supposed to be used when dealing with contours. More... | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Attributes | |
| unsigned int | m_TCoord |
Protected Attributes inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer > | |
| vtkProperty * | m_HighlightedProperty |
| float | m_IntersectionLineWidth |
Private Member Functions | |
| Q_DISABLE_COPY (ContourMeshContainer) | |
Additional Inherited Members | |
Public Attributes inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer > | |
| MultiIndexContainerType | m_Container |
| Trace Contaienr. More... | |
| MultiIndexContainerElementType | m_CurrentElement |
| Current Element of the trace type. More... | |
| QGoImageView3D * | m_ImageView |
| Link to the visualization. More... | |
Protected Member Functions inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer > | |
| 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) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
| objectName | |
Wraps a boost::multi_index_container of ContourMeshStructure. This class intends to synchronize Contour and Mesh representation in the Visualization and in the TableWidget.
Definition at line 117 of file ContourMeshContainer.h.
| typedef MultiIndexContainerType::index< TCoord >::type::iterator ContourMeshContainer::MultiIndexContainerTCoordIterator |
Definition at line 127 of file ContourMeshContainer.h.
Definition at line 124 of file ContourMeshContainer.h.
| typedef TraceContainerBase< boost::MultiIndexContourMeshContainer > ContourMeshContainer::Superclass |
Definition at line 123 of file ContourMeshContainer.h.
|
explicit |
Constructor.
Definition at line 41 of file ContourMeshContainer.cxx.
|
virtual |
Destructor.
Definition at line 52 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::AddActorsWithGivenTimePoint | ( | const unsigned int & | iT | ) |
Add all actors (elements) from the scene for a given time point.
Definition at line 149 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::AssignToGivenCollection | ( | unsigned int | iCollection, |
| std::list< unsigned int > | iToBeAssigned | ||
| ) |
Definition at line 410 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::ChangeActorsVisibility | ( | MultiIndexContainerTCoordIterator | iBegin, |
| MultiIndexContainerTCoordIterator | iEnd, | ||
| const bool & | iVisibility | ||
| ) |
Change elements (in between iBegin and iEnd ) visibility.
| [in] | iBegin | first element |
| [in] | iEnd | last element |
| [in] | iVisibility |
|
inline |
Change element visibility in the scene.
| TIndex | refers to any index from the multi index container indices |
| [in] | iBegin | first element |
| [in] | iEnd | last element |
| [in] | iVisibility |
Definition at line 337 of file ContourMeshContainer.h.
| void ContourMeshContainer::Clear | ( | ) |
Delete all elements from the container.
Definition at line 376 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::Clear | ( | const std::list< unsigned int > & | iTraceIDs | ) |
Delete given elements from the container.
Definition at line 393 of file ContourMeshContainer.cxx.
|
inlinestatic |
Returns the direction of a given element given its bounding box. This static method is supposed to be used when dealing with contours.
Definition at line 214 of file ContourMeshContainer.h.
|
inlinestatic |
Definition at line 232 of file ContourMeshContainer.h.
|
inlinestatic |
Returns the direction of a given contour vtkPolyData. This static method is supposed to be used when dealing with contours.
| [in] | iContour |
Definition at line 195 of file ContourMeshContainer.h.
|
virtual |
Delete all highlighted elements.
Implements TraceContainerBase< boost::MultiIndexContourMeshContainer >.
Definition at line 253 of file ContourMeshContainer.cxx.
|
virtual |
Remove the element which TraceId = iId.
| [in] | iId | TraceID of the element to be deleted |
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::MultiIndexContourMeshContainer >.
Definition at line 188 of file ContourMeshContainer.cxx.
|
virtual |
Implements TraceContainerBase< boost::MultiIndexContourMeshContainer >.
Definition at line 200 of file ContourMeshContainer.cxx.
| std::list< unsigned int > ContourMeshContainer::GetElementsTraceIDForGivenTimePoint | ( | unsigned int | iTimePoint | ) |
| [in] | iTimePoint | timepoint for which the traceIDs are needed |
Definition at line 320 of file ContourMeshContainer.cxx.
| std::list< unsigned int > ContourMeshContainer::GetHighlightedElementsTCoord | ( | ) |
Definition at line 433 of file ContourMeshContainer.cxx.
| std::map< unsigned int, double * > ContourMeshContainer::GetMeshesPoints | ( | std::list< unsigned int > | iMeshID | ) |
Definition at line 340 of file ContourMeshContainer.cxx.
|
private |
| void ContourMeshContainer::RemoveActorsWithGivenTimePoint | ( | const unsigned int & | iT | ) |
Remove all actors (elements) from the scene for a given time point.
| [in] | iT |
Definition at line 111 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::SetTimePoint | ( | const unsigned int & | iT | ) |
Set the Current Time Point.
Definition at line 87 of file ContourMeshContainer.cxx.
| void ContourMeshContainer::ShowActorsWithGivenTimePoint | ( | const unsigned int & | iT | ) |
Display all elements for a given time point.
| [in] | iT | time point |
Definition at line 129 of file ContourMeshContainer.cxx.
|
signal |
When one contour / mesh has been picked (highlighted) from the visualization.
|
signal |
When one contour / mesh's visibility has been changed from the visualization.
| void ContourMeshContainer::UpdateCurrentElementFromVisu | ( | std::vector< vtkActor * > & | iActors, |
| vtkPolyData * | iNodes, | ||
| const unsigned int & | iT, | ||
| const bool & | iHighlighted, | ||
| const bool & | iVisible | ||
| ) |
Update Current Element by providing all required informations from the visualization.
| [in] | iActors | |
| [in] | iNodes | |
| [in] | iT | |
| [in] | iHighlighted | |
| [in] | iVisible |
Definition at line 96 of file ContourMeshContainer.cxx.
|
inline |
Update highlighting property of one element given one actor.
| [in] | iActor | Actor of the element to be modified |
Definition at line 256 of file ContourMeshContainer.h.
|
slot |
Change elements highlighting property given a list of TraceIDs and the new status.
| [in] | iList | list of TraceIDs |
| [in] | iCheck |
Definition at line 167 of file ContourMeshContainer.cxx.
|
inline |
Update highlighting property of one element given one actor.
| [in] | iActor | Actor of the element to be modified |
| [in] | iState | Visibility to applied to the element |
Definition at line 270 of file ContourMeshContainer.h.
|
slot |
Change elements visibility property given a list of TraceIDs and the new status.
| [in] | iList | list of TraceIDs |
| [in] | iCheck |
Definition at line 178 of file ContourMeshContainer.cxx.
|
protected |
Definition at line 435 of file ContourMeshContainer.h.
1.8.5