25 #ifndef WSELECTORBRANCH_H
26 #define WSELECTORBRANCH_H
31 #include "WSelectorRoi.h"
32 #include "../kernel/WRMBranch.h"
45 WSelectorBranch( boost::shared_ptr< const WDataSetFibers > fibers, boost::shared_ptr< WRMBranch > branch );
56 boost::shared_ptr< std::vector<bool> >
getBitField();
68 void addRoi( boost::shared_ptr< WSelectorRoi > roi );
76 std::list< boost::shared_ptr< WSelectorRoi > >
getROIs();
83 void removeRoi( osg::ref_ptr< WROI > roi );
120 boost::shared_ptr< const WDataSetFibers >
m_fibers;
142 std::list< boost::shared_ptr< WSelectorRoi > >
m_rois;
177 #endif // WSELECTORBRANCH_H
WSelectorBranch(boost::shared_ptr< const WDataSetFibers > fibers, boost::shared_ptr< WRMBranch > branch)
constructor
boost::shared_ptr< std::vector< bool > > getBitField()
getter
TODO(schurade): Document this!
boost::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 recalculate()
updates the output bitfield with the information from all rois in this branch
boost::shared_ptr< boost::function< void() > > m_changeSignal
Signal that can be used to update the selector branch.
void setDirty()
Sets the dirty flag.
boost::shared_ptr< boost::function< void() > > m_changeRoiSignal
Signal that can be used to update the selector branch.
std::list< boost::shared_ptr< WSelectorRoi > > m_rois
list of rois in this branch
bool dirty()
Checks if branch is dirty.
~WSelectorBranch()
destructor
bool empty()
Checks if empty.
boost::shared_ptr< const WDataSetFibers > m_fibers
Pointer to the fiber data set.
void addRoi(boost::shared_ptr< WSelectorRoi > roi)
adds a roi to the branch
boost::shared_ptr< std::vector< bool > > m_bitField
the bitfield given to the outside world
boost::shared_ptr< WRMBranch > getBranch()
getter
boost::shared_ptr< WRMBranch > m_branch
pointer to the branch object in the roi manager
void removeRoi(osg::ref_ptr< WROI > roi)
Removes a roi fromt he branch.
WColor getBranchColor() const
Return the current branch color.
std::list< boost::shared_ptr< WSelectorRoi > > getROIs()
Queries the ROIs.