Constellation: Connectivity-based Structural Parcellation


constel::SelectBundlesFromNames Class Reference

#include <constellation/selectBundlesFromNames.h>

Inheritance diagram for constel::SelectBundlesFromNames:
Collaboration diagram for constel::SelectBundlesFromNames:

Public Types

typedef std::vector< aims::FiberPointFiber
 

Public Member Functions

 SelectBundlesFromNames (std::vector< std::string > &select_bundles_name, bool verbose=true, bool as_regex=false, bool use_fiber_names=false)
 If use_fiber_names is not set, filtering is performed (as normal) using BundleInfo names, at bundleStarted() time.
 
 SelectBundlesFromNames ()
 
virtual ~SelectBundlesFromNames ()
 
- Public Member Functions inherited from aims::BundleProducer
void addBundleListener (BundleListener &)
 
- Public Member Functions inherited from aims::BundleListener
virtual ~BundleListener ()
 

Protected Member Functions

virtual void bundleStarted (const aims::BundleProducer &, const aims::BundleInfo &bundleInfo)
 
virtual void bundleTerminated (const aims::BundleProducer &, const aims::BundleInfo &bundleInfo)
 
virtual void fiberStarted (const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &)
 
virtual void fiberTerminated (const aims::BundleProducer &, const aims::BundleInfo &bundleInfo, const aims::FiberInfo &fiberInfo)
 
virtual void newFiberPoint (const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &, const aims::FiberPoint &)
 
virtual void noMoreBundle (const aims::BundleProducer &)
 
- Protected Member Functions inherited from aims::BundleProducer
void startBundle (const BundleInfo &)
 
void terminateBundle (const BundleInfo &)
 
void startFiber (const BundleInfo &, const FiberInfo &)
 
void terminateFiber (const BundleInfo &, const FiberInfo &)
 
void addFiberPoint (const BundleInfo &, const FiberInfo &, const FiberPoint &)
 
void noMoreBundle ()
 

Protected Attributes

std::set< std::string > _select_bundles_name
 
std::set< regex_t * > _regex
 
bool _bundle_selected
 
bool _verbose
 
bool _as_regex
 
bool _use_fiber_names
 
bool _new_bundle
 
std::string _last_name
 
int _last_id
 
Fiber _fiber
 

Detailed Description

Definition at line 13 of file selectBundlesFromNames.h.

Member Typedef Documentation

◆ Fiber

Definition at line 17 of file selectBundlesFromNames.h.

Constructor & Destructor Documentation

◆ SelectBundlesFromNames() [1/2]

constel::SelectBundlesFromNames::SelectBundlesFromNames ( std::vector< std::string > & select_bundles_name,
bool verbose = true,
bool as_regex = false,
bool use_fiber_names = false )

If use_fiber_names is not set, filtering is performed (as normal) using BundleInfo names, at bundleStarted() time.

If use_fiber_names is set, filtering is performed at fiberTerminated() time. This is a bit unexpected, but name info is sometimes set when a fiber is entirely parsed (see SelectFiberListenerFromMesh)

◆ SelectBundlesFromNames() [2/2]

constel::SelectBundlesFromNames::SelectBundlesFromNames ( )

◆ ~SelectBundlesFromNames()

virtual constel::SelectBundlesFromNames::~SelectBundlesFromNames ( )
virtual

Member Function Documentation

◆ bundleStarted()

virtual void constel::SelectBundlesFromNames::bundleStarted ( const aims::BundleProducer & ,
const aims::BundleInfo & bundleInfo )
protectedvirtual

Reimplemented from aims::BundleListener.

◆ bundleTerminated()

virtual void constel::SelectBundlesFromNames::bundleTerminated ( const aims::BundleProducer & ,
const aims::BundleInfo & bundleInfo )
protectedvirtual

Reimplemented from aims::BundleListener.

◆ fiberStarted()

virtual void constel::SelectBundlesFromNames::fiberStarted ( const aims::BundleProducer & ,
const aims::BundleInfo & ,
const aims::FiberInfo &  )
protectedvirtual

Reimplemented from aims::BundleListener.

◆ fiberTerminated()

virtual void constel::SelectBundlesFromNames::fiberTerminated ( const aims::BundleProducer & ,
const aims::BundleInfo & bundleInfo,
const aims::FiberInfo & fiberInfo )
protectedvirtual

Reimplemented from aims::BundleListener.

◆ newFiberPoint()

virtual void constel::SelectBundlesFromNames::newFiberPoint ( const aims::BundleProducer & ,
const aims::BundleInfo & ,
const aims::FiberInfo & ,
const aims::FiberPoint &  )
protectedvirtual

Reimplemented from aims::BundleListener.

◆ noMoreBundle()

virtual void constel::SelectBundlesFromNames::noMoreBundle ( const aims::BundleProducer & )
protectedvirtual

Reimplemented from aims::BundleListener.

Member Data Documentation

◆ _as_regex

bool constel::SelectBundlesFromNames::_as_regex
protected

Definition at line 51 of file selectBundlesFromNames.h.

◆ _bundle_selected

bool constel::SelectBundlesFromNames::_bundle_selected
protected

Definition at line 49 of file selectBundlesFromNames.h.

◆ _fiber

Fiber constel::SelectBundlesFromNames::_fiber
protected

Definition at line 56 of file selectBundlesFromNames.h.

◆ _last_id

int constel::SelectBundlesFromNames::_last_id
protected

Definition at line 55 of file selectBundlesFromNames.h.

◆ _last_name

std::string constel::SelectBundlesFromNames::_last_name
protected

Definition at line 54 of file selectBundlesFromNames.h.

◆ _new_bundle

bool constel::SelectBundlesFromNames::_new_bundle
protected

Definition at line 53 of file selectBundlesFromNames.h.

◆ _regex

std::set<regex_t *> constel::SelectBundlesFromNames::_regex
protected

Definition at line 48 of file selectBundlesFromNames.h.

◆ _select_bundles_name

std::set<std::string> constel::SelectBundlesFromNames::_select_bundles_name
protected

Definition at line 47 of file selectBundlesFromNames.h.

◆ _use_fiber_names

bool constel::SelectBundlesFromNames::_use_fiber_names
protected

Definition at line 52 of file selectBundlesFromNames.h.

◆ _verbose

bool constel::SelectBundlesFromNames::_verbose
protected

Definition at line 50 of file selectBundlesFromNames.h.


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