GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
TrackStructure Struct Reference

Structure which represent a track, and used for interaction between Visualization and TableWidget. More...

#include <Code/IO/TrackStructure.h>

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

Public Types

typedef
PointsMapType::const_iterator 
PointsMapConstIterator
 
typedef PointsMapType::iterator PointsMapIterator
 
typedef std::map< unsigned int,
double * > 
PointsMapType
 
typedef TrackStructure Self
 

Public Member Functions

void AddDivisionArray (vtkIntArray *iArray)
 
void AddVolume (const double &iVolume)
 
GoFigureTrackAttributes ComputeAttributes () const
 
void CreateDivisionNode (vtkPolyData *iNode)
 
bool DeleteElement (const unsigned int &iTime)
 Delete the point at the current time point. More...
 
bool InsertElement (const unsigned int &iTime, double *iPoint)
 Insert a point at the current time point. More...
 
const bool IsLeaf () const
 
const bool IsRoot () const
 
void ModifyDivisionColorActor (const double *iColor)
 
void ModifyDivisionColorData (const double *iColor)
 
void ModifyDivisionHighlight (vtkProperty *iProperty, const bool &iHighlight)
 
void ModifyDivisionVisibility (const bool &iVisibility)
 
void ReleaseData () const
 
 TrackStructure ()
 
 TrackStructure (const TrackStructure &iE)
 
void UpdateLineWidth (const double &iWidth) const
 
void UpdateTracksRepresentation (const double &iRadius, const double &iRadius2) const
 
 ~TrackStructure ()
 
- Public Member Functions inherited from TraceStructure
void RenderWithOriginalColors () const
 Render with original colors (Remove the active scalars data). More...
 
void ResetNodes () const
 
void SetActorProperties (vtkProperty *iProperty) const
 Set Property for all actors. More...
 
void SetActorVisibility (const bool &iVisible) const
 Set Visibility for all actors. More...
 
void SetLookupTable (const vtkLookupTable *iLut) const
 Set the lookup table. More...
 
void SetScalarData (const std::string &iName, const double &iValue) const
 Set Scalar Data associated to the elements (use for color coding) More...
 
void SetScalarRange (const double &iMin, const double &iMax) const
 Set the scalar range (use for color coding) More...
 
 TraceStructure ()
 
 TraceStructure (const unsigned int &iTraceID, const unsigned int &iCollectionID, std::vector< vtkActor * > iActors, vtkPolyData *iNodes, const bool &iHighlighted, const bool &iVisible, const double &r, const double &g, const double &b, const double &alpha)
 
 TraceStructure (const unsigned int &iTraceID, const unsigned int &iCollectionID, std::vector< vtkActor * > iActors, vtkPolyData *iNodes, const bool &iHighlighted, const bool &iVisible, double iRgba[4])
 
 TraceStructure (const unsigned int &iTraceID, const unsigned int &iCollectionID, vtkActor *iActorXY, vtkActor *iActorYZ, vtkActor *iActorXZ, vtkActor *iActorXYZ, vtkPolyData *iNodes, const bool &iHighlighted, const bool &iVisible, const double &r, const double &g, const double &b, const double &alpha)
 
 TraceStructure (const TraceStructure &iE)
 
virtual ~TraceStructure ()
 

Public Attributes

double m_AverageVolume
 
PointsMapType PointsMap
 
TreeNodeStructure< SelfTreeNode
 
- Public Attributes inherited from TraceStructure
vtkActor * ActorXY
 
vtkActor * ActorXYZ
 
vtkActor * ActorXZ
 
vtkActor * ActorYZ
 
unsigned int CollectionID
 
bool Highlighted
 
vtkPolyData * Nodes
 
double rgba [4]
 
unsigned int TraceID
 
bool Visible
 

Friends

std::ostream & operator<< (std::ostream &os, const TrackStructure &c)
 

Detailed Description

Structure which represent a track, and used for interaction between Visualization and TableWidget.

Todo:
passe parameters by reference for performance

Definition at line 65 of file TrackStructure.h.

Member Typedef Documentation

typedef PointsMapType::const_iterator TrackStructure::PointsMapConstIterator

Definition at line 79 of file TrackStructure.h.

typedef PointsMapType::iterator TrackStructure::PointsMapIterator

Definition at line 78 of file TrackStructure.h.

typedef std::map< unsigned int, double* > TrackStructure::PointsMapType

Map containing all the polydata points ordered by time

Definition at line 77 of file TrackStructure.h.

Definition at line 69 of file TrackStructure.h.

Constructor & Destructor Documentation

TrackStructure::TrackStructure ( )

Default Constructor

Definition at line 53 of file TrackStructure.cxx.

TrackStructure::TrackStructure ( const TrackStructure iE)

Constructor by copy

Definition at line 60 of file TrackStructure.cxx.

TrackStructure::~TrackStructure ( )

Destructor

Definition at line 70 of file TrackStructure.cxx.

Member Function Documentation

void TrackStructure::AddDivisionArray ( vtkIntArray *  iArray)

Definition at line 363 of file TrackStructure.cxx.

void TrackStructure::AddVolume ( const double &  iVolume)

Definition at line 409 of file TrackStructure.cxx.

GoFigureTrackAttributes TrackStructure::ComputeAttributes ( ) const

Definition at line 225 of file TrackStructure.cxx.

void TrackStructure::CreateDivisionNode ( vtkPolyData *  iNode)

Definition at line 378 of file TrackStructure.cxx.

bool TrackStructure::DeleteElement ( const unsigned int &  iTime)

Delete the point at the current time point.

Parameters
[in]iTimetime point where we want to delete the mesh
Returns
true is element has been deleted, false if there where no point at the specified time point.

Definition at line 92 of file TrackStructure.cxx.

bool TrackStructure::InsertElement ( const unsigned int &  iTime,
double *  iPoint 
)

Insert a point at the current time point.

Parameters
[in]iTimetime point where we want to insert the point
[in]iPointnew point to be inserted
Returns
true is element has been inserted, false if not (i.e. there is already a point associated to this time point). If you want to override this point, call ReplaceElement(int iTime, double* iPoint) instead.

Definition at line 78 of file TrackStructure.cxx.

const bool TrackStructure::IsLeaf ( ) const

Definition at line 400 of file TrackStructure.cxx.

const bool TrackStructure::IsRoot ( ) const

Definition at line 391 of file TrackStructure.cxx.

void TrackStructure::ModifyDivisionColorActor ( const double *  iColor)

Definition at line 339 of file TrackStructure.cxx.

void TrackStructure::ModifyDivisionColorData ( const double *  iColor)

Definition at line 327 of file TrackStructure.cxx.

void TrackStructure::ModifyDivisionHighlight ( vtkProperty *  iProperty,
const bool &  iHighlight 
)

Definition at line 317 of file TrackStructure.cxx.

void TrackStructure::ModifyDivisionVisibility ( const bool &  iVisibility)

Definition at line 304 of file TrackStructure.cxx.

void TrackStructure::ReleaseData ( ) const
virtual

Reimplemented from TraceStructure.

Definition at line 115 of file TrackStructure.cxx.

void TrackStructure::UpdateLineWidth ( const double &  iWidth) const

Definition at line 136 of file TrackStructure.cxx.

void TrackStructure::UpdateTracksRepresentation ( const double &  iRadius,
const double &  iRadius2 
) const

Definition at line 180 of file TrackStructure.cxx.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const TrackStructure c 
)
friend

Printing one element. std::cout << element << std::endl;

Definition at line 114 of file TrackStructure.h.

Member Data Documentation

double TrackStructure::m_AverageVolume

Definition at line 172 of file TrackStructure.h.

PointsMapType TrackStructure::PointsMap

Definition at line 81 of file TrackStructure.h.

TreeNodeStructure<Self> TrackStructure::TreeNode

Definition at line 72 of file TrackStructure.h.


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