GOFIGURE2
0.9.0
|
Generic interface for trace container. More specific container should inherit from this class and get specialized depending on the kind of trace it contains. More...
#include <Code/GUI/lib/VisualizationTraceContainers/TraceContainerBase.h>
Public Types | |
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 TContainer | MultiIndexContainerType |
typedef MultiIndexContainerType::template index< Visible > ::type::iterator | MultiIndexContainerVisibleIterator |
Public Member Functions | |
virtual std::list< unsigned int > | DeleteAllHighlightedElements ()=0 |
Delete all highlighted elements. More... | |
virtual bool | DeleteElement (const unsigned int &iId)=0 |
Remove the element which TraceId = iId. More... | |
virtual bool | DeleteElement (MultiIndexContainerTraceIDIterator iIter)=0 |
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... | |
template<class TIterator > | |
void | Print (TIterator iBegin, TIterator iEnd) |
Print the container content in the application output. More... | |
template<class TIndex > | |
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... | |
template<typename TValue > | |
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... | |
template<class TIndex > | |
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... | |
template<class TIndex > | |
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... | |
template<class TList > | |
void | UpdateVisualizationForGivenIDs (TList iList) |
Update Visualization of the given TraceIDs. More... | |
virtual | ~TraceContainerBase () |
Destructor. More... | |
![]() | |
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 () |
Public Attributes | |
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 | |
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) |
![]() | |
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) |
Protected Attributes | |
vtkProperty * | m_HighlightedProperty |
float | m_IntersectionLineWidth |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Generic interface for trace container. More specific container should inherit from this class and get specialized depending on the kind of trace it contains.
TContainer | boost::multi_index_container of a given TraceStructure |
Definition at line 144 of file TraceContainerBase.h.
typedef MultiIndexContainerType::template index< CollectionID >::type::iterator TraceContainerBase< TContainer >::MultiIndexContainerCollectionIDIterator |
Definition at line 154 of file TraceContainerBase.h.
typedef MultiIndexContainerType::value_type TraceContainerBase< TContainer >::MultiIndexContainerElementType |
Definition at line 148 of file TraceContainerBase.h.
typedef MultiIndexContainerType::template index< Highlighted >::type::iterator TraceContainerBase< TContainer >::MultiIndexContainerHighlightedIterator |
Definition at line 157 of file TraceContainerBase.h.
typedef MultiIndexContainerType::template index< TraceID >::type::iterator TraceContainerBase< TContainer >::MultiIndexContainerTraceIDIterator |
Definition at line 151 of file TraceContainerBase.h.
typedef TContainer TraceContainerBase< TContainer >::MultiIndexContainerType |
Definition at line 147 of file TraceContainerBase.h.
typedef MultiIndexContainerType::template index< Visible >::type::iterator TraceContainerBase< TContainer >::MultiIndexContainerVisibleIterator |
Definition at line 160 of file TraceContainerBase.h.
|
explicit |
Constructor.
[in] | iParent | Parent to provide ownership (Qt style) |
[in] | iView | Visualization for trace |
|
virtual |
Destructor.
|
pure virtual |
Delete all highlighted elements.
Implemented in ContourMeshContainer, TrackContainer, and LineageContainer.
|
pure 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.
Implemented in ContourMeshContainer, TrackContainer, and LineageContainer.
|
pure virtual |
Implemented in ContourMeshContainer, TrackContainer, and LineageContainer.
std::vector<vtkActor*> TraceContainerBase< TContainer >::GetActorGivenTraceID | ( | unsigned int | iTraceID | ) |
unsigned int TraceContainerBase< TContainer >::GetCollectionIDOfGivenTraceID | ( | unsigned int | iTraceID | ) |
Get the CollectionID given a TraceID.
double* TraceContainerBase< TContainer >::GetCurrentElementColor | ( | ) |
Get the color of the current element track.
vtkPolyData* TraceContainerBase< TContainer >::GetCurrentElementNodes | ( | ) |
Get the polydata representing the current element track.
std::list< vtkPolyData* > TraceContainerBase< TContainer >::GetHighlightedElements | ( | ) |
Get all highlighted elements by pair<ID, Polydata>.
std::list< unsigned int > TraceContainerBase< TContainer >::GetHighlightedElementsCollectionID | ( | ) |
std::list< unsigned int > TraceContainerBase< TContainer >::GetHighlightedElementsTraceID | ( | ) |
Get the list of highlighted elements TraceID.
vtkProperty* TraceContainerBase< TContainer >::GetHighlightedProperty | ( | ) |
Get property for highlighted traces.
void TraceContainerBase< TContainer >::Insert | ( | const MultiIndexContainerElementType & | iE | ) |
Insert one element in the container.
[in] | iE | element to be insert in the container |
void TraceContainerBase< TContainer >::InsertCurrentElement | ( | ) |
Insert Current Element in the container.
|
inline |
Print the container content in the application output.
TIterator | Iterator on one index of boost::multi_index_container or on the container itself. |
Definition at line 187 of file TraceContainerBase.h.
|
inline |
Print the container content in the application output according to the template parameter.
TIndex |
Definition at line 206 of file TraceContainerBase.h.
void TraceContainerBase< TContainer >::Print | ( | ) |
Print the container content in the application output.
bool TraceContainerBase< TContainer >::RemoveElementFromVisualizationWithGivenTraceID | ( | const unsigned int & | iId | ) |
Remove element from visualization.
[in] | iId | TraceID of the element to be removed |
|
protected |
Render with original colors.
void TraceContainerBase< TContainer >::ResetCurrentElement | ( | ) |
Reset Current Element to a default state.
void TraceContainerBase< TContainer >::SetColorCode | ( | const std::string & | iColumnName, |
const std::map< unsigned int, std::string > & | iValues | ||
) |
Color code contour / mesh according to values provided.
[in] | iColumnName | Name of data provided |
[in] | iValues | is a map where the key is the TraceID and the Value is a string that can be either converted to a double, or not |
|
inline |
Color code contour / mesh according to values provided.
TValue | numerical type that can be converted into double |
[in] | iColumnName | Name of data provided |
[in] | iValues | is a map where the key is the TraceID and the Value is the actual data used to color. |
Definition at line 508 of file TraceContainerBase.h.
void TraceContainerBase< TContainer >::SetHighlightedProperty | ( | vtkProperty * | iProperty | ) |
Set property whenever the trace is highlighted.
[in] | iProperty |
void TraceContainerBase< TContainer >::SetIntersectionLineWidth | ( | const float & | iWidth | ) |
void TraceContainerBase< TContainer >::SetLookupTableForColorCoding | ( | vtkLookupTable * | iLut | ) |
Apply the given lookup table to all traces in the container.
[in] | iLut | lookup table |
void TraceContainerBase< TContainer >::SetRandomColor | ( | const std::string & | iColumnName, |
const std::map< unsigned int, unsigned int > & | iIds | ||
) |
void TraceContainerBase< TContainer >::SetRandomColor | ( | const std::string & | iColumnName, |
const std::map< unsigned int, std::string > & | iValues | ||
) |
|
protected |
Set the scalar range.
std::list< unsigned int > TraceContainerBase< TContainer >::UpdateAllHighlightedElementsWithGivenColor | ( | QColor | iColor | ) |
Update all highlighted elements in the container with a given color.
[in] | iColor |
void TraceContainerBase< TContainer >::UpdateCurrentElementCollection | ( | unsigned int | iCollectionID | ) |
void TraceContainerBase< TContainer >::UpdateCurrentElementFromDB | ( | unsigned int | iTraceID, |
double | irgba[4], | ||
bool | IsVisible = false |
||
) |
Update Current Element from te database.
[in] | iTraceID | |
[in] | irgba | |
[in] | IsVisible |
bool TraceContainerBase< TContainer >::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
[in] | iTraceID | ID of the existing element |
|
inline |
Definition at line 400 of file TraceContainerBase.h.
|
protected |
bool TraceContainerBase< TContainer >::UpdateElementHighlightingWithGivenTraceID | ( | const unsigned int & | iId | ) |
Update element highlighting given it TraceId.
[in] | iId | TraceID of the element to be modified |
|
protectedvirtual |
Change elements highlighting property given a list of TraceIDs and the new status.
[in] | iList | list of TraceIDs |
[in] | iCheck |
|
inlineprotected |
Update highlighting property of one element given one actor.
[in] | iActor | Actor of the element to be modified |
[out] | oTraceId | TraceId of the element |
[out] | oState | Qt::Checked if the element is not highlighted else Qt::UnChecked |
Definition at line 633 of file TraceContainerBase.h.
bool TraceContainerBase< TContainer >::UpdateElementVisibilityWithGivenTraceID | ( | const unsigned int & | iId | ) |
Update element visibility given it TraceId.
[in] | iId | TraceID of the element to be modified |
|
protectedvirtual |
Change elements visibility property given a list of TraceIDs and the new status.
[in] | iList | list of TraceIDs |
[in] | iCheck |
|
inlineprotected |
Definition at line 684 of file TraceContainerBase.h.
|
inline |
Update Actors, Highlighted, Visibility (properties) of given a element.
TIndex | Index Type (referring to multi index container's indices) |
[in] | iIt | element to update |
[in] | iActors | its actors |
[in] | iHighlighted | |
[in] | iVisible | if false remove the element from the scene, else add it |
Definition at line 313 of file TraceContainerBase.h.
|
inline |
Update Visualization of the given TraceIDs.
TContainer | Container of TraceIDs |
[in] | iList | input container of TraceIDs |
Definition at line 239 of file TraceContainerBase.h.
MultiIndexContainerType TraceContainerBase< TContainer >::m_Container |
Trace Contaienr.
Definition at line 172 of file TraceContainerBase.h.
MultiIndexContainerElementType TraceContainerBase< TContainer >::m_CurrentElement |
Current Element of the trace type.
Definition at line 178 of file TraceContainerBase.h.
|
protected |
Definition at line 596 of file TraceContainerBase.h.
QGoImageView3D* TraceContainerBase< TContainer >::m_ImageView |
Link to the visualization.
Definition at line 175 of file TraceContainerBase.h.
|
protected |
Definition at line 597 of file TraceContainerBase.h.