25 #ifndef WSELECTORBRANCH_H
26 #define WSELECTORBRANCH_H
32 #include "../kernel/WRMBranch.h"
33 #include "WSelectorRoi.h"
46 WSelectorBranch( std::shared_ptr< const WDataSetFibers > fibers, std::shared_ptr< WRMBranch > branch );
69 void addRoi( std::shared_ptr< WSelectorRoi > roi );
77 std::list< std::shared_ptr< WSelectorRoi > >
getROIs();
84 void removeRoi( osg::ref_ptr< WROI > roi );
143 std::list< std::shared_ptr< WSelectorRoi > >
m_rois;
TODO(schurade): Document this!
void setDirty()
Sets the dirty flag.
WColor getBranchColor() const
Return the current branch color.
std::shared_ptr< const WDataSetFibers > m_fibers
Pointer to the fiber data set.
WSelectorBranch(std::shared_ptr< const WDataSetFibers > fibers, std::shared_ptr< WRMBranch > branch)
constructor
std::shared_ptr< boost::function< void() > > m_changeRoiSignal
Signal that can be used to update the selector branch.
std::shared_ptr< boost::function< void() > > m_changeSignal
Signal that can be used to update the selector branch.
std::shared_ptr< WRMBranch > m_branch
pointer to the branch object in the roi manager
~WSelectorBranch()
destructor
std::shared_ptr< WRMBranch > getBranch()
getter
std::shared_ptr< std::vector< bool > > getBitField()
getter
bool dirty()
Checks if branch is dirty.
std::shared_ptr< std::vector< bool > > m_workerBitfield
the bitfield we work on
size_t m_size
size of the fiber dataset, stored for convinience
void removeRoi(osg::ref_ptr< WROI > roi)
Removes a roi fromt he branch.
std::list< std::shared_ptr< WSelectorRoi > > m_rois
list of rois in this branch
void addRoi(std::shared_ptr< WSelectorRoi > roi)
adds a roi to the branch
std::shared_ptr< std::vector< bool > > m_bitField
the bitfield given to the outside world
void recalculate()
updates the output bitfield with the information from all rois in this branch
std::list< std::shared_ptr< WSelectorRoi > > getROIs()
Queries the ROIs.
bool empty()
Checks if empty.