A.I.M.S


aims::BundleToGraph Class Reference

Bundles structure building as a Graph. More...

#include <aims/fibers/bundles.h>

Inheritance diagram for aims::BundleToGraph:
Collaboration diagram for aims::BundleToGraph:

Public Member Functions

 BundleToGraph ()
 
 BundleToGraph (Graph &)
 
virtual ~BundleToGraph ()
 
const carto::rc_ptr< Graph > & getGraph () const
 
- Public Member Functions inherited from aims::BundleListener
virtual ~BundleListener ()
 
- Public Member Functions inherited from carto::PropertySet
 PropertySet ()
 
 PropertySet (const PropertySet &)
 
PropertySetoperator= (const PropertySet &)
 
virtual ~PropertySet ()
 
SignalgetSignalPropertyChanged ()
 
void addBuiltinProperty (const std::string &, T &)
 
void addBuiltinProperty (const std::string &, T &, bool &provided)
 
bool getProperty (const std::string &, T &) const
 
void setProperty (const std::string &, const T &)
 
virtual bool getProperty (const std::string &, Object &) const
 
virtual void setProperty (const std::string &, Object)
 
virtual bool removeProperty (const std::string &)
 
virtual bool hasProperty (const std::string &) const
 
virtual size_t size () const
 
virtual void clearProperties ()
 
virtual void copyBuiltinProperties (const PropertySet &source)
 
virtual Object objectIterator () const
 
iterator getIterator () const
 
- Public Member Functions inherited from carto::DictionaryInterface
virtual ~DictionaryInterface ()
 
virtual bool isDictionary () const
 
Object getProperty (const std::string &) const
 
Object getProperty (Object key) const
 
bool getProperty (const std::string &key, T &value) const
 
void setProperty (const std::string &, const char *)
 
void setProperty (const std::string &, const T &)
 
virtual void copyProperties (Object source)
 
virtual bool operator== (const DictionaryInterface &other) const
 
virtual bool operator!= (const DictionaryInterface &other) const
 
void setProperty (const std::string &key, Object const &value)
 
bool getProperty (const std::string &key, Object &value) const
 

Protected Member Functions

virtual void bundleStarted (const BundleProducer &, const BundleInfo &)
 
virtual void bundleTerminated (const BundleProducer &, const BundleInfo &)
 
virtual void fiberStarted (const BundleProducer &, const BundleInfo &, const FiberInfo &)
 
virtual void fiberTerminated (const BundleProducer &, const BundleInfo &, const FiberInfo &)
 
virtual void newFiberPoint (const BundleProducer &, const BundleInfo &, const FiberInfo &, const FiberPoint &)
 
virtual void noMoreBundle (const BundleProducer &)
 
virtual void parametersValueChanged ()
 
void parameterChangedSlot (const carto::Object &, const std::string &, const carto::Object &)
 
void shuffleBundle ()
 
- Protected Member Functions inherited from aims::BundleListener
virtual void fiberTerminated (const BundleProducer &, const BundleInfo &, const FiberInfo &, FiberPoint *, int &)
 

Protected Attributes

Graph_meshResult
 
carto::rc_ptr< Graph_rcptrMeshResult
 
float _minimumLength
 
float _width
 
int _numPointsInMeshSection
 
std::vector< Point2df_section
 
std::vector< int > _boundingbox_min
 
std::vector< int > _boundingbox_max
 
bool _normalsAsFiberStartPos
 
Point3df _relatveFiberStartPos
 
bool _autoFiberStartPos
 
Vertex_currentVertex
 
aims::Polyline _currentCurve
 
carto::rc_ptr
< AimsSurfaceTriangle
_currentMesh
 
carto::rc_ptr< AimsTimeSurface
< 2, Void > > 
_currentLines
 
size_t _current_fibers_count
 

Additional Inherited Members

- Public Types inherited from carto::PropertySet
typedef ::sigc::signal3< void,
const Object &, const
std::string &, const Object & > 
Signal
 

Detailed Description

Bundles structure building as a Graph.

The Graph structure is used to represent bundles and fibers when we need to keep their complete structure in memory. This structure is especially used for 3D rendering in Anatomist.

BundleToGraph is a BundleListener, thus has to be connected to a BundleProducer to work (typically, a BundleReader).

Note that the BundleProducer / BundleListener system work as processing chains, and allows to keep only a small set of data in memory at one time. The Graph structure, on the contrary, keeps all information in memory, so may need a large amount of memory.

Definition at line 362 of file bundles.h.

Constructor & Destructor Documentation

aims::BundleToGraph::BundleToGraph ( )
aims::BundleToGraph::BundleToGraph ( Graph )
virtual aims::BundleToGraph::~BundleToGraph ( )
virtual

Member Function Documentation

virtual void aims::BundleToGraph::bundleStarted ( const BundleProducer ,
const BundleInfo  
)
protectedvirtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleToGraph::bundleTerminated ( const BundleProducer ,
const BundleInfo  
)
protectedvirtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleToGraph::fiberStarted ( const BundleProducer ,
const BundleInfo ,
const FiberInfo  
)
protectedvirtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleToGraph::fiberTerminated ( const BundleProducer ,
const BundleInfo ,
const FiberInfo  
)
protectedvirtual

Reimplemented from aims::BundleListener.

const carto::rc_ptr< Graph > & aims::BundleToGraph::getGraph ( ) const
inline

Definition at line 689 of file bundles.h.

References _rcptrMeshResult.

virtual void aims::BundleToGraph::newFiberPoint ( const BundleProducer ,
const BundleInfo ,
const FiberInfo ,
const FiberPoint  
)
protectedvirtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleToGraph::noMoreBundle ( const BundleProducer )
protectedvirtual

Reimplemented from aims::BundleListener.

Reimplemented in aims::BundleToGraphWriter.

void aims::BundleToGraph::parameterChangedSlot ( const carto::Object ,
const std::string &  ,
const carto::Object  
)
protected
virtual void aims::BundleToGraph::parametersValueChanged ( )
protectedvirtual
void aims::BundleToGraph::shuffleBundle ( )
protected

Member Data Documentation

bool aims::BundleToGraph::_autoFiberStartPos
protected

Definition at line 399 of file bundles.h.

std::vector<int> aims::BundleToGraph::_boundingbox_max
protected

Definition at line 396 of file bundles.h.

std::vector<int> aims::BundleToGraph::_boundingbox_min
protected

Definition at line 395 of file bundles.h.

size_t aims::BundleToGraph::_current_fibers_count
protected

Definition at line 405 of file bundles.h.

aims::Polyline aims::BundleToGraph::_currentCurve
protected

Definition at line 402 of file bundles.h.

carto::rc_ptr< AimsTimeSurface<2,Void> > aims::BundleToGraph::_currentLines
protected

Definition at line 404 of file bundles.h.

carto::rc_ptr< AimsSurfaceTriangle > aims::BundleToGraph::_currentMesh
protected

Definition at line 403 of file bundles.h.

Vertex* aims::BundleToGraph::_currentVertex
protected

Definition at line 401 of file bundles.h.

Graph* aims::BundleToGraph::_meshResult
protected

Definition at line 389 of file bundles.h.

float aims::BundleToGraph::_minimumLength
protected

Definition at line 391 of file bundles.h.

bool aims::BundleToGraph::_normalsAsFiberStartPos
protected

Definition at line 397 of file bundles.h.

int aims::BundleToGraph::_numPointsInMeshSection
protected

Definition at line 393 of file bundles.h.

carto::rc_ptr< Graph > aims::BundleToGraph::_rcptrMeshResult
protected

Definition at line 390 of file bundles.h.

Referenced by getGraph().

Point3df aims::BundleToGraph::_relatveFiberStartPos
protected

Definition at line 398 of file bundles.h.

std::vector< Point2df > aims::BundleToGraph::_section
protected

Definition at line 394 of file bundles.h.

float aims::BundleToGraph::_width
protected

Definition at line 392 of file bundles.h.


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