aimsdata  4.7.0
Neuroimaging data handling
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 &key)
 
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
 
void changeBuiltinProperty (const std::string &, T &)
 
void changeBuiltinProperty (const std::string &, T &, bool &provided)
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 
- 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
 
- Public Member Functions inherited from carto::SizeInterface
virtual ~SizeInterface ()
 
- Public Member Functions inherited from carto::Interface
virtual ~Interface ()
 
- Public Member Functions inherited from carto::IterableInterface
virtual ~IterableInterface ()
 
virtual bool isIterable () const
 
virtual bool operator== (const IterableInterface &other) const
 
virtual bool operator!= (const IterableInterface &other) 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 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
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

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 359 of file bundles.h.

Constructor & Destructor Documentation

◆ BundleToGraph() [1/2]

aims::BundleToGraph::BundleToGraph ( )

◆ BundleToGraph() [2/2]

aims::BundleToGraph::BundleToGraph ( Graph )

◆ ~BundleToGraph()

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

Member Function Documentation

◆ bundleStarted()

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

Reimplemented from aims::BundleListener.

◆ bundleTerminated()

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

Reimplemented from aims::BundleListener.

◆ fiberStarted()

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

Reimplemented from aims::BundleListener.

◆ fiberTerminated()

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

Reimplemented from aims::BundleListener.

◆ getGraph()

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

Definition at line 686 of file bundles.h.

◆ newFiberPoint()

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

Reimplemented from aims::BundleListener.

◆ noMoreBundle()

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

Reimplemented from aims::BundleListener.

Reimplemented in aims::BundleToGraphWriter.

◆ parameterChangedSlot()

void aims::BundleToGraph::parameterChangedSlot ( const carto::Object ,
const std::string &  ,
const carto::Object  
)
protected

◆ parametersValueChanged()

virtual void aims::BundleToGraph::parametersValueChanged ( )
protectedvirtual

◆ shuffleBundle()

void aims::BundleToGraph::shuffleBundle ( )
protected

Member Data Documentation

◆ _autoFiberStartPos

bool aims::BundleToGraph::_autoFiberStartPos
protected

Definition at line 396 of file bundles.h.

◆ _boundingbox_max

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

Definition at line 393 of file bundles.h.

◆ _boundingbox_min

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

Definition at line 392 of file bundles.h.

◆ _current_fibers_count

size_t aims::BundleToGraph::_current_fibers_count
protected

Definition at line 402 of file bundles.h.

◆ _currentCurve

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

Definition at line 399 of file bundles.h.

◆ _currentLines

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

Definition at line 401 of file bundles.h.

◆ _currentMesh

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

Definition at line 400 of file bundles.h.

◆ _currentVertex

Vertex* aims::BundleToGraph::_currentVertex
protected

Definition at line 398 of file bundles.h.

◆ _meshResult

Graph* aims::BundleToGraph::_meshResult
protected

Definition at line 386 of file bundles.h.

◆ _minimumLength

float aims::BundleToGraph::_minimumLength
protected

Definition at line 388 of file bundles.h.

◆ _normalsAsFiberStartPos

bool aims::BundleToGraph::_normalsAsFiberStartPos
protected

Definition at line 394 of file bundles.h.

◆ _numPointsInMeshSection

int aims::BundleToGraph::_numPointsInMeshSection
protected

Definition at line 390 of file bundles.h.

◆ _rcptrMeshResult

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

Definition at line 387 of file bundles.h.

◆ _relatveFiberStartPos

Point3df aims::BundleToGraph::_relatveFiberStartPos
protected

Definition at line 395 of file bundles.h.

◆ _section

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

Definition at line 391 of file bundles.h.

◆ _width

float aims::BundleToGraph::_width
protected

Definition at line 389 of file bundles.h.


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