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

Wraps a boost::multi_index_container of ContourMeshStructure. This class is specialized for the means of 2D Contour. More...

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

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

Public Member Functions

 ContourContainer (QObject *iParent, QGoImageView3D *iView)
 Constructor. More...
 
 ~ContourContainer ()
 Destructor. More...
 
- Public Member Functions inherited from ContourMeshContainer
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...
 

Protected Member Functions

std::vector< vtkActor * > AddTrace (vtkPolyData *iNode, vtkProperty *iProperty)
 Add a contour in the visualization given the spline nodes and the property for the given contour. It returns a vector of size 4, of each element represents one view in the Quad-View. More...
 

Private Member Functions

 Q_DISABLE_COPY (ContourContainer)
 

Additional Inherited Members

- Public Types inherited from ContourMeshContainer
typedef
MultiIndexContainerType::index
< TCoord >::type::iterator 
MultiIndexContainerTCoordIterator
 
typedef
Superclass::MultiIndexContainerType 
MultiIndexContainerType
 
typedef TraceContainerBase
< boost::MultiIndexContourMeshContainer
Superclass
 
- Public Slots inherited from ContourMeshContainer
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 inherited from ContourMeshContainer
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...
 
- Static Public Member Functions inherited from ContourMeshContainer
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...
 
- Public Attributes inherited from TraceContainerBase< boost::MultiIndexContourMeshContainer >
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 ContourMeshContainer
unsigned int m_TCoord
 

Detailed Description

Wraps a boost::multi_index_container of ContourMeshStructure. This class is specialized for the means of 2D Contour.

Definition at line 46 of file ContourContainer.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 39 of file ContourContainer.cxx.

ContourContainer::~ContourContainer ( )

Destructor.

Definition at line 45 of file ContourContainer.cxx.

Member Function Documentation

std::vector< vtkActor * > ContourContainer::AddTrace ( vtkPolyData *  iNode,
vtkProperty *  iProperty 
)
protected

Add a contour in the visualization given the spline nodes and the property for the given contour. It returns a vector of size 4, of each element represents one view in the Quad-View.

Definition at line 50 of file ContourContainer.cxx.

ContourContainer::Q_DISABLE_COPY ( ContourContainer  )
private

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