iRoCS Toolbox
1.1.0
|
#include <AnnotationChannelSpecs.hh>
Public Types | |
enum | ChannelType { Data = 0x0001, Visualization = 0x0002, RGB = 0x0004, Annotation = 0x0008, SplineCurve = 0x0010, IRoCS = 0x0020, IRoCSSCT = 0x0040 } |
typedef std::vector< Marker * >::const_iterator | const_iterator |
typedef std::vector< Marker * >::iterator | iterator |
enum | Operation { AddMarker = 0x0000, LabelMarker = 0x0001, EditMarker = 0x0002, DeleteMarker = 0x0003, UnknownOperation = 0xffff } |
Public Slots | |
virtual void | revalidate () |
Reset the channel shape, element size, transformation and bounding box from the underlying data. More... | |
void | setAlpha (float alpha) |
void | setCoordinateUpdateButtonEnabled (bool enable) |
void | setHasNewData (bool hasNewData) |
void | setIcon (QIcon const &icon) |
void | setName (std::string const &name) |
virtual void | setTransformation (blitz::TinyMatrix< double, 4, 4 > const &transformation) |
void | setUpdatesEnabled (bool enable) |
Enables/Disables cache updates for this channel. More... | |
void | setVisible (bool visible) |
void | update () |
Explicitely trigger a cache update for all associated renderers. More... | |
Signals | |
void | boundingBoxChanged (blitz::TinyVector< double, 3 > const &lowerBoundUm, blitz::TinyVector< double, 3 > const &upperBoundUm) |
void | featureSizeChanged (int size) |
void | iconChanged () |
void | nameChanged () |
void | transformationChanged () |
void | viewChanged () |
This signal is emitted whenever the contents or visualization of the channel are altered and an update of the views is required to reflect these changes. More... | |
Public Member Functions | |
AnnotationChannelSpecs (Marker::MarkerType markerType, MultiChannelModel *model=NULL) | |
~AnnotationChannelSpecs () | |
Marker * | addMarker (blitz::TinyVector< double, 3 > const &positionUm) |
void | addMarker (Marker *marker) |
ChannelSpecsRenderer * | addRenderer (ViewWidget *view) |
float | alpha () const |
float | alphaForLabel (int label) const |
std::map< int, float > & | alphaMap () |
const_iterator | begin () const |
iterator | begin () |
QWidget * | channelControlWidget () const |
ChannelSpecs::ChannelType | channelType () const |
Marker * | closestMarker (blitz::TinyVector< double, 3 > const &positionUm, bool intersecting=false) |
blitz::TinyVector< float, 3 > | colorForLabel (int label) const |
std::map< int, blitz::TinyVector< float, 3 > > & | colorMap () |
blitz::TinyVector< double, 3 > const & | elementSizeUm () const |
const_iterator | end () const |
iterator | end () |
bool | hasNewData () const |
QIcon | icon () const |
void | labelMarker (Marker *marker) |
HDF5DataIO::RetVal | load (std::string const &fileName, iRoCS::ProgressReporter *pr=NULL) |
void | load (BlitzH5File const &inFile, iRoCS::ProgressReporter *pr=NULL) |
virtual blitz::TinyVector< double, 3 > const & | lowerBoundUm () const |
MarkerControlWidget * | markerControlWidget () |
MarkerPresetWidget * | markerPresetWidget () |
std::vector< Marker * > const & | markers () const |
Marker::MarkerType | markerType () const |
MultiChannelModel * | model () const |
std::string | name () const |
Marker const * | operator[] (size_t index) const |
Marker * | operator[] (size_t index) |
void | removeMarker (Marker *marker) |
void | removeRenderer (ViewWidget *view) |
ChannelSpecsRenderer * | renderer (ViewWidget *view) const |
std::map< ViewWidget *, ChannelSpecsRenderer * > const & | renderers () const |
std::map< ViewWidget *, ChannelSpecsRenderer * > & | renderers () |
void | resizeFeatures (size_t newSize) |
HDF5DataIO::RetVal | save (std::string const &fileName, iRoCS::ProgressReporter *pr=NULL) const |
void | save (BlitzH5File &outFile, iRoCS::ProgressReporter *pr=NULL) const |
void | saveCSV (std::string const &fileName) const |
Marker const * | selectedMarker () const |
Marker * | selectedMarker () |
Operation | selectedOperation () const |
int | selectedViewType () const |
void | selectMarker (Marker *marker) |
void | setAlphaForLabel (int label, float alpha) |
void | setColorForLabel (int label, blitz::TinyVector< float, 3 > const &color) |
void | setModel (MultiChannelModel *model) |
std::string | stringValueAt (blitz::TinyVector< double, 3 > const &positionUm) const |
virtual blitz::TinyMatrix< double, 4, 4 > const & | transformation () const |
bool | updatesEnabled () const |
Check whether cache updates for this channel are enabled. More... | |
virtual blitz::TinyVector< double, 3 > const & | upperBoundUm () const |
float | valueAt (blitz::TinyVector< double, 3 > const &positionUm) const |
bool | visible () const |
Static Public Member Functions | |
static AnnotationChannelSpecs * | loadCSV (std::string const &fileName) |
Static Public Attributes | |
static ChannelTypes const | Any |
Protected Slots | |
void | emitUpdateRequest () |
This function sets the hasNewData flag for this channel to true, to inform the renderers that this channel has new data and possibly cached values are invalid. More... | |
Protected Attributes | |
blitz::TinyVector< double, 3 > | _elementSizeUm |
bool | _hasNewData |
blitz::TinyVector< double, 3 > | _lowerBoundUm |
bool | _oldVisibilityState |
blitz::TinyMatrix< double, 4, 4 > | _originalTransformation |
std::map< ViewWidget *, ChannelSpecsRenderer * > | _renderers |
blitz::TinyMatrix< double, 4, 4 > | _transformation |
blitz::TinyVector< double, 3 > | _upperBoundUm |
QFormLayout * | p_advancedControlLayout |
QWidget * | p_advancedControlWidget |
DoubleControlElement * | p_alphaControl |
QFormLayout * | p_channelControlLayout |
QWidget * | p_channelControlWidget |
MultiChannelModel * | p_model |
QToolButton * | p_toggleAdvancedButton |
Double4x4ControlElement * | p_transformationControl |
BoolControlElement * | p_visibleControl |
Definition at line 41 of file AnnotationChannelSpecs.hh.
typedef std::vector<Marker*>::const_iterator AnnotationChannelSpecs::const_iterator |
Definition at line 52 of file AnnotationChannelSpecs.hh.
typedef std::vector<Marker*>::iterator AnnotationChannelSpecs::iterator |
Definition at line 53 of file AnnotationChannelSpecs.hh.
Enumerator | |
---|---|
AddMarker | |
LabelMarker | |
EditMarker | |
DeleteMarker | |
UnknownOperation |
Definition at line 48 of file AnnotationChannelSpecs.hh.
|
inherited |
Enumerator | |
---|---|
Data | |
Visualization | |
RGB | |
Annotation | |
SplineCurve | |
IRoCS | |
IRoCSSCT |
Definition at line 60 of file ChannelSpecs.hh.
AnnotationChannelSpecs::AnnotationChannelSpecs | ( | Marker::MarkerType | markerType, |
MultiChannelModel * | model = NULL |
||
) |
AnnotationChannelSpecs::~AnnotationChannelSpecs | ( | ) |
|
virtual |
Implements ChannelSpecs.
|
virtual |
Implements ChannelSpecs.
|
virtual |
Implements ChannelSpecs.
int AnnotationChannelSpecs::selectedViewType | ( | ) | const |
Operation AnnotationChannelSpecs::selectedOperation | ( | ) | const |
MarkerPresetWidget* AnnotationChannelSpecs::markerPresetWidget | ( | ) |
MarkerControlWidget* AnnotationChannelSpecs::markerControlWidget | ( | ) |
Marker* AnnotationChannelSpecs::closestMarker | ( | blitz::TinyVector< double, 3 > const & | positionUm, |
bool | intersecting = false |
||
) |
Marker* AnnotationChannelSpecs::addMarker | ( | blitz::TinyVector< double, 3 > const & | positionUm | ) |
void AnnotationChannelSpecs::addMarker | ( | Marker * | marker | ) |
void AnnotationChannelSpecs::labelMarker | ( | Marker * | marker | ) |
void AnnotationChannelSpecs::removeMarker | ( | Marker * | marker | ) |
void AnnotationChannelSpecs::selectMarker | ( | Marker * | marker | ) |
Marker const* AnnotationChannelSpecs::selectedMarker | ( | ) | const |
Marker* AnnotationChannelSpecs::selectedMarker | ( | ) |
Marker::MarkerType AnnotationChannelSpecs::markerType | ( | ) | const |
blitz::TinyVector<float,3> AnnotationChannelSpecs::colorForLabel | ( | int | label | ) | const |
void AnnotationChannelSpecs::setColorForLabel | ( | int | label, |
blitz::TinyVector< float, 3 > const & | color | ||
) |
std::map< int,blitz::TinyVector<float,3> >& AnnotationChannelSpecs::colorMap | ( | ) |
float AnnotationChannelSpecs::alphaForLabel | ( | int | label | ) | const |
void AnnotationChannelSpecs::setAlphaForLabel | ( | int | label, |
float | alpha | ||
) |
std::map< int,float >& AnnotationChannelSpecs::alphaMap | ( | ) |
void AnnotationChannelSpecs::resizeFeatures | ( | size_t | newSize | ) |
std::vector<Marker*> const& AnnotationChannelSpecs::markers | ( | ) | const |
const_iterator AnnotationChannelSpecs::begin | ( | ) | const |
iterator AnnotationChannelSpecs::begin | ( | ) |
const_iterator AnnotationChannelSpecs::end | ( | ) | const |
iterator AnnotationChannelSpecs::end | ( | ) |
Marker const* AnnotationChannelSpecs::operator[] | ( | size_t | index | ) | const |
Marker* AnnotationChannelSpecs::operator[] | ( | size_t | index | ) |
|
virtual |
Implements ChannelSpecs.
|
virtual |
Reimplemented from ChannelSpecs.
HDF5DataIO::RetVal AnnotationChannelSpecs::load | ( | std::string const & | fileName, |
iRoCS::ProgressReporter * | pr = NULL |
||
) |
void AnnotationChannelSpecs::load | ( | BlitzH5File const & | inFile, |
iRoCS::ProgressReporter * | pr = NULL |
||
) |
HDF5DataIO::RetVal AnnotationChannelSpecs::save | ( | std::string const & | fileName, |
iRoCS::ProgressReporter * | pr = NULL |
||
) | const |
void AnnotationChannelSpecs::save | ( | BlitzH5File & | outFile, |
iRoCS::ProgressReporter * | pr = NULL |
||
) | const |
void AnnotationChannelSpecs::saveCSV | ( | std::string const & | fileName | ) | const |
|
static |
|
signal |
|
slot |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Reimplemented in SplineCurveChannelSpecs, IRoCSSCTChannelSpecs, and IRoCSChannelSpecs.
|
virtualinherited |
Reimplemented in SplineCurveChannelSpecs, IRoCSSCTChannelSpecs, and IRoCSChannelSpecs.
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Check whether cache updates for this channel are enabled.
|
slotinherited |
|
slotinherited |
|
slotinherited |
|
slotinherited |
|
slotinherited |
|
virtualslotinherited |
|
slotinherited |
Enables/Disables cache updates for this channel.
If you programmatically apply many subsequent changes to a channel like automatic marker insertion or property changes, disable cache updates, otherwise each operation triggers a cache update.
enable | true to enable cache updates, false to disable cache updates |
|
slotinherited |
Explicitely trigger a cache update for all associated renderers.
This is only necessary if updates were disabled and after all changes the cache has to be updated. If updates are disabled a call to this function is a noop.
|
virtualslotinherited |
Reset the channel shape, element size, transformation and bounding box from the underlying data.
This method must be called whenever the underlying data were programmatically changed using the direct data access methods. If updates are enabled it will also do cache updates.
|
signalinherited |
|
signalinherited |
|
signalinherited |
|
signalinherited |
|
signalinherited |
This signal is emitted whenever the contents or visualization of the channel are altered and an update of the views is required to reflect these changes.
The MultiChannelModel catches this SIGNAL, calls updateCache() and redraw() for all views and clears the hasNewData flag for all channels when the redraw has finished.
|
protectedslotinherited |
This function sets the hasNewData flag for this channel to true, to inform the renderers that this channel has new data and possibly cached values are invalid.
It also saves the current visibility state to _oldVisibilityState and emits a viewChanged() SIGNAL.
|
staticinherited |
Definition at line 70 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 200 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 201 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 202 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 203 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 204 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 205 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 207 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 208 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 209 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 211 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 213 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 214 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 216 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 216 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 216 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 217 of file ChannelSpecs.hh.
|
protectedinherited |
Definition at line 217 of file ChannelSpecs.hh.