#include <Overview.h>
Inherits View.
Inheritance diagram for Overview:


Definition at line 31 of file Overview.h.
Public Types | |
| enum | TextStyle { BoxedText, OutlinedText } |
| typedef PropertyContainer::PropertyName | PropertyName |
| typedef std::set< Model * > | ModelSet |
Public Slots | |
| virtual void | modelChanged (size_t startFrame, size_t endFrame) |
| virtual void | modelReplaced () |
| virtual void | globalCentreFrameChanged (unsigned long) |
| virtual void | viewCentreFrameChanged (View *, unsigned long) |
| virtual void | viewZoomLevelChanged (View *, unsigned long, bool) |
| virtual void | viewManagerPlaybackFrameChanged (unsigned long) |
| virtual void | propertyContainerSelected (View *, PropertyContainer *pc) |
| virtual void | modelChanged () |
| virtual void | modelCompletionChanged () |
| virtual void | modelAlignmentCompletionChanged () |
| virtual void | layerParametersChanged () |
| virtual void | layerParameterRangesChanged () |
| virtual void | layerMeasurementRectsChanged () |
| virtual void | layerNameChanged () |
| virtual void | selectionChanged () |
| virtual void | toolModeChanged () |
| virtual void | overlayModeChanged () |
| virtual void | zoomWheelsEnabledChanged () |
Signals | |
| void | propertyContainerAdded (PropertyContainer *pc) |
| void | propertyContainerRemoved (PropertyContainer *pc) |
| void | propertyContainerPropertyChanged (PropertyContainer *pc) |
| void | propertyContainerPropertyRangeChanged (PropertyContainer *pc) |
| void | propertyContainerNameChanged (PropertyContainer *pc) |
| void | propertyContainerSelected (PropertyContainer *pc) |
| void | propertyChanged (PropertyContainer::PropertyName) |
| void | layerModelChanged () |
| void | centreFrameChanged (unsigned long frame, bool globalScroll, PlaybackFollowMode followMode) |
| void | zoomLevelChanged (unsigned long, bool) |
| void | contextHelpChanged (const QString &) |
Public Member Functions | |
| Overview (QWidget *parent=0) | |
| void | registerView (View *view) |
| void | unregisterView (View *view) |
| virtual QString | getPropertyContainerIconName () const |
| long | getStartFrame () const |
| Retrieve the first visible sample frame on the widget. | |
| void | setStartFrame (long) |
| Set the widget pan based on the given first visible frame. | |
| size_t | getCentreFrame () const |
| Return the centre frame of the visible widget. | |
| void | setCentreFrame (size_t f) |
| Set the centre frame of the visible widget. | |
| size_t | getEndFrame () const |
| Retrieve the last visible sample frame on the widget. | |
| int | getXForFrame (long frame) const |
| Return the pixel x-coordinate corresponding to a given sample frame (which may be negative). | |
| long | getFrameForX (int x) const |
| Return the closest frame to the given pixel x-coordinate. | |
| float | getYForFrequency (float frequency, float minFreq, float maxFreq, bool logarithmic) const |
| Return the pixel y-coordinate corresponding to a given frequency, if the frequency range is as specified. | |
| float | getFrequencyForY (int y, float minFreq, float maxFreq, bool logarithmic) const |
| Return the closest frequency to the given pixel y-coordinate, if the frequency range is as specified. | |
| int | getZoomLevel () const |
| Return the zoom level, i.e. | |
| virtual void | setZoomLevel (size_t z) |
| Set the zoom level, i.e. | |
| virtual void | zoom (bool in) |
| Zoom in or out. | |
| virtual void | scroll (bool right, bool lots) |
| Scroll left or right by a smallish or largish amount. | |
| virtual void | addLayer (Layer *v) |
| virtual void | removeLayer (Layer *v) |
| virtual int | getLayerCount () const |
| virtual Layer * | getLayer (int n) |
| Return a layer, counted in stacking order. | |
| virtual Layer * | getTopLayer () |
| Return the top layer. | |
| virtual Layer * | getSelectedLayer () |
| Return the layer last selected by the user. | |
| virtual const Layer * | getSelectedLayer () const |
| virtual void | setViewManager (ViewManager *m) |
| virtual ViewManager * | getViewManager () const |
| virtual void | setFollowGlobalPan (bool f) |
| virtual bool | getFollowGlobalPan () const |
| virtual void | setFollowGlobalZoom (bool f) |
| virtual bool | getFollowGlobalZoom () const |
| virtual bool | hasLightBackground () const |
| virtual QColor | getForeground () const |
| virtual QColor | getBackground () const |
| virtual void | drawVisibleText (QPainter &p, int x, int y, QString text, TextStyle style) const |
| virtual void | drawMeasurementRect (QPainter &p, const Layer *, QRect rect, bool focus) const |
| virtual bool | shouldIlluminateLocalFeatures (const Layer *, QPoint &) const |
| virtual bool | shouldIlluminateLocalSelection (QPoint &, bool &, bool &) const |
| virtual void | setPlaybackFollow (PlaybackFollowMode m) |
| virtual PlaybackFollowMode | getPlaybackFollow () const |
| virtual PropertyContainer::PropertyList | getProperties () const |
| virtual QString | getPropertyLabel (const PropertyName &) const |
| virtual PropertyContainer::PropertyType | getPropertyType (const PropertyName &) const |
| virtual int | getPropertyRangeAndValue (const PropertyName &, int *min, int *max, int *deflt) const |
| virtual QString | getPropertyValueLabel (const PropertyName &, int value) const |
| virtual void | setProperty (const PropertyName &, int value) |
| virtual QString | getPropertyContainerName () const |
| virtual size_t | getPropertyContainerCount () const |
| virtual const PropertyContainer * | getPropertyContainer (size_t i) const |
| virtual PropertyContainer * | getPropertyContainer (size_t i) |
| virtual QImage * | toNewImage (size_t f0, size_t f1) |
| virtual QImage * | toNewImage () |
| virtual QSize | getImageSize (size_t f0, size_t f1) |
| virtual QSize | getImageSize () |
| virtual int | getTextLabelHeight (const Layer *layer, QPainter &) const |
| virtual bool | getValueExtents (QString unit, float &min, float &max, bool &log) const |
| virtual void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
| Stream this exportable object out to XML on a text stream. | |
| virtual size_t | getFirstVisibleFrame () const |
| virtual size_t | getLastVisibleFrame () const |
| size_t | getModelsStartFrame () const |
| size_t | getModelsEndFrame () const |
| ModelSet | getModels () |
| Model * | getAligningModel () const |
| !! | |
| size_t | alignFromReference (size_t) const |
| size_t | alignToReference (size_t) const |
| int | getAlignedPlaybackFrame () const |
| virtual QString | toXmlString (QString indent="", QString extraAttributes="") const |
| Convert this exportable object to XML in a string. | |
Static Public Member Functions | |
| static QString | encodeEntities (QString) |
| static QString | encodeColour (QColor) |
| static int | getObjectExportId (const void *) |
Protected Types | |
| typedef std::set< View * > | ViewSet |
| typedef std::vector< Layer * > | LayerList |
| typedef std::map< Layer *, LayerProgressBar * > | ProgressMap |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *e) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
| virtual void | enterEvent (QEvent *) |
| virtual void | leaveEvent (QEvent *) |
| virtual bool | shouldLabelSelections () const |
| bool | setCentreFrame (size_t f, bool doEmit) |
| virtual void | drawSelections (QPainter &) |
| virtual bool | render (QPainter &paint, int x0, size_t f0, size_t f1) |
| virtual void | setPaintFont (QPainter &paint) |
| int | getModelsSampleRate () const |
| bool | areLayersScrollable () const |
| LayerList | getScrollableBackLayers (bool testChanged, bool &changed) const |
| LayerList | getNonScrollableFrontLayers (bool testChanged, bool &changed) const |
| size_t | getZoomConstraintBlockSize (size_t blockSize, ZoomConstraint::RoundingDirection dir=ZoomConstraint::RoundNearest) const |
| bool | areLayerColoursSignificant () const |
| bool | hasTopLayerTimeXAxis () const |
| void | checkProgress (void *object) |
Protected Attributes | |
| QPoint | m_clickPos |
| QPoint | m_mousePos |
| bool | m_clickedInRange |
| size_t | m_dragCentreFrame |
| QTime | m_modelTestTime |
| ViewSet | m_views |
| size_t | m_centreFrame |
| int | m_zoomLevel |
| bool | m_followPan |
| bool | m_followZoom |
| PlaybackFollowMode | m_followPlay |
| size_t | m_playPointerFrame |
| bool | m_lightBackground |
| bool | m_showProgress |
| QPixmap * | m_cache |
| size_t | m_cacheCentreFrame |
| int | m_cacheZoomLevel |
| bool | m_selectionCached |
| bool | m_deleting |
| LayerList | m_layers |
| bool | m_haveSelectedLayer |
| LayerList | m_lastScrollableBackLayers |
| LayerList | m_lastNonScrollableBackLayers |
| ProgressMap | m_progressBars |
| ViewManager * | m_manager |
| ViewPropertyContainer * | m_propertyContainer |
typedef std::set<View *> Overview::ViewSet [protected] |
Definition at line 68 of file Overview.h.
typedef PropertyContainer::PropertyName View::PropertyName [inherited] |
typedef std::set<Model *> View::ModelSet [inherited] |
typedef std::vector<Layer *> View::LayerList [protected, inherited] |
typedef std::map<Layer *, LayerProgressBar *> View::ProgressMap [protected, inherited] |
enum View::TextStyle [inherited] |
| Overview::Overview | ( | QWidget * | parent = 0 |
) |
Definition at line 28 of file Overview.cpp.
References View::m_followPan, View::m_followZoom, m_modelTestTime, PlaybackIgnore, and View::setPlaybackFollow().
| void Overview::registerView | ( | View * | view | ) |
Definition at line 79 of file Overview.cpp.
References m_views.
Referenced by MainWindow::newSession(), and MainWindow::paneAdded().
| void Overview::unregisterView | ( | View * | view | ) |
Definition at line 86 of file Overview.cpp.
References m_views.
Referenced by MainWindow::closeSession(), MainWindow::paneAboutToBeDeleted(), and MainWindow::paneHidden().
| virtual QString Overview::getPropertyContainerIconName | ( | ) | const [inline, virtual] |
| void Overview::modelChanged | ( | size_t | startFrame, | |
| size_t | endFrame | |||
| ) | [virtual, slot] |
Reimplemented from View.
Definition at line 40 of file Overview.cpp.
References View::getModelsEndFrame(), View::getModelsStartFrame(), View::getZoomConstraintBlockSize(), View::m_layers, m_modelTestTime, View::m_zoomLevel, View::modelChanged(), and ZoomConstraint::RoundUp.
| void Overview::modelReplaced | ( | ) | [virtual, slot] |
Reimplemented from View.
Definition at line 72 of file Overview.cpp.
References View::getAlignedPlaybackFrame(), View::m_playPointerFrame, and View::modelReplaced().
| void Overview::globalCentreFrameChanged | ( | unsigned | long | ) | [virtual, slot] |
| void Overview::viewCentreFrameChanged | ( | View * | , | |
| unsigned | long | |||
| ) | [virtual, slot] |
| void Overview::viewZoomLevelChanged | ( | View * | , | |
| unsigned | long, | |||
| bool | ||||
| ) | [virtual, slot] |
| void Overview::viewManagerPlaybackFrameChanged | ( | unsigned | long | ) | [virtual, slot] |
Reimplemented from View.
Definition at line 116 of file Overview.cpp.
References View::getAlignedPlaybackFrame(), View::getXForFrame(), and View::m_playPointerFrame.
| void Overview::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
Reimplemented from View.
Definition at line 129 of file Overview.cpp.
References View::alignFromReference(), View::alignToReference(), View::centreFrameChanged(), View::getForeground(), View::getFrameForX(), View::getModelsEndFrame(), View::getModelsStartFrame(), View::getXForFrame(), View::getZoomConstraintBlockSize(), View::m_centreFrame, View::m_followZoom, m_views, View::m_zoomLevel, View::paintEvent(), PlaybackIgnore, ZoomConstraint::RoundUp, and View::zoomLevelChanged().
| void Overview::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 212 of file Overview.cpp.
References View::getAligningModel(), View::getFrameForX(), m_clickedInRange, m_clickPos, m_dragCentreFrame, and m_views.
| void Overview::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void Overview::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 238 of file Overview.cpp.
References View::alignToReference(), View::centreFrameChanged(), View::getModelsEndFrame(), View::m_centreFrame, m_clickedInRange, m_clickPos, m_dragCentreFrame, View::m_zoomLevel, and PlaybackScrollContinuous.
Referenced by mouseReleaseEvent().
| void Overview::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 267 of file Overview.cpp.
References View::alignToReference(), View::centreFrameChanged(), View::getFrameForX(), and PlaybackScrollContinuous.
| void Overview::enterEvent | ( | QEvent * | ) | [protected, virtual] |
| void Overview::leaveEvent | ( | QEvent * | ) | [protected, virtual] |
| virtual bool Overview::shouldLabelSelections | ( | ) | const [inline, protected, virtual] |
| long View::getStartFrame | ( | ) | const [inherited] |
Retrieve the first visible sample frame on the widget.
This is a calculated value based on the centre-frame, widget width and zoom level. The result may be negative.
Definition at line 291 of file View.cpp.
References View::getFrameForX().
Referenced by Pane::edgeScrollMaybe(), View::getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), View::getXForFrame(), View::modelChanged(), SpectrogramLayer::paint(), View::paintEvent(), Layer::paintMeasurementRect(), View::scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().
| void View::setStartFrame | ( | long | ) | [inherited] |
Set the widget pan based on the given first visible frame.
The frame value may be negative.
Definition at line 303 of file View.cpp.
References View::m_zoomLevel, and View::setCentreFrame().
Referenced by Pane::zoomToRegion().
| size_t View::getCentreFrame | ( | ) | const [inline, inherited] |
Return the centre frame of the visible widget.
This is an exact value that does not depend on the zoom block size. Other frame values (start, end) are calculated from this based on the zoom and other factors.
Definition at line 79 of file View.h.
References View::m_centreFrame.
Referenced by SpectrumLayer::paint(), SliceLayer::paint(), and View::paintEvent().
| void View::setCentreFrame | ( | size_t | f | ) | [inline, inherited] |
Set the centre frame of the visible widget.
Definition at line 84 of file View.h.
Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), View::globalCentreFrameChanged(), Pane::mouseDoubleClickEvent(), SVFileReader::readView(), View::scroll(), View::setStartFrame(), View::setViewManager(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and MainWindowBase::zoomToFit().
| bool View::setCentreFrame | ( | size_t | f, | |
| bool | doEmit | |||
| ) | [protected, inherited] |
Definition at line 309 of file View.cpp.
References View::alignToReference(), View::centreFrameChanged(), View::m_centreFrame, View::m_followPan, View::m_followPlay, and View::m_zoomLevel.
| size_t View::getEndFrame | ( | ) | const [inherited] |
Retrieve the last visible sample frame on the widget.
This is a calculated value based on the centre-frame, widget width and zoom level.
Definition at line 297 of file View.cpp.
References View::getFrameForX().
Referenced by Pane::edgeScrollMaybe(), View::getLastVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), NoteLayer::getLocalPoints(), TimeRulerLayer::getMajorTickSpacing(), WaveformLayer::getNormalizeGain(), View::modelChanged(), View::paintEvent(), Layer::paintMeasurementRect(), View::scroll(), MainWindowBase::selectVisible(), TimeRulerLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), Pane::wheelEvent(), and Pane::zoomToRegion().
| int View::getXForFrame | ( | long | frame | ) | const [inherited] |
Return the pixel x-coordinate corresponding to a given sample frame (which may be negative).
Definition at line 346 of file View.cpp.
References View::getStartFrame(), and View::m_zoomLevel.
Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), View::drawSelections(), Pane::editSelectionEnd(), TimeValueLayer::getFeatureDescription(), TimeInstantLayer::getFeatureDescription(), TextLayer::getFeatureDescription(), NoteLayer::getFeatureDescription(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), TextLayer::getLocalPoints(), NoteLayer::getLocalPoints(), ImageLayer::getLocalPoints(), Pane::getSelectionAt(), SpectrogramLayer::illuminateLocalFeatures(), TimeValueLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), SliceLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), View::paintEvent(), paintEvent(), Layer::paintMeasurementRect(), TimeValueLayer::snapToFeatureFrame(), TimeRulerLayer::snapToFeatureFrame(), TimeInstantLayer::snapToFeatureFrame(), TextLayer::snapToFeatureFrame(), NoteLayer::snapToFeatureFrame(), ImageLayer::snapToFeatureFrame(), Layer::updateMeasurePixrects(), View::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().
| long View::getFrameForX | ( | int | x | ) | const [inherited] |
Return the closest frame to the given pixel x-coordinate.
Definition at line 352 of file View.cpp.
References View::m_centreFrame, and View::m_zoomLevel.
Referenced by Pane::dragExtendSelection(), Pane::dragTopLayer(), TimeValueLayer::drawDrag(), TimeInstantLayer::drawDrag(), TextLayer::drawDrag(), NoteLayer::drawDrag(), ImageLayer::drawDrag(), View::drawSelections(), TimeValueLayer::drawStart(), TimeInstantLayer::drawStart(), TextLayer::drawStart(), NoteLayer::drawStart(), ImageLayer::drawStart(), Pane::edgeScrollMaybe(), TimeValueLayer::editDrag(), TimeInstantLayer::editDrag(), TextLayer::editDrag(), NoteLayer::editDrag(), ImageLayer::editDrag(), Pane::editSelectionEnd(), View::getEndFrame(), Colour3DPlotLayer::getFeatureDescription(), Pane::getFirstVisibleFrame(), TimeValueLayer::getLocalPoints(), TimeInstantLayer::getLocalPoints(), TextLayer::getLocalPoints(), NoteLayer::getLocalPoints(), Pane::getSelectionAt(), WaveformLayer::getSourceFramesForX(), View::getStartFrame(), SpectrogramLayer::getXBinRange(), Layer::getXScaleValue(), Pane::mouseDoubleClickEvent(), mouseDoubleClickEvent(), Pane::mousePressEvent(), mousePressEvent(), TimeValueLayer::paint(), TimeRulerLayer::paint(), TimeInstantLayer::paint(), TextLayer::paint(), SliceLayer::paint(), NoteLayer::paint(), ImageLayer::paint(), Colour3DPlotLayer::paint(), SpectrogramLayer::paintCrosshairs(), Colour3DPlotLayer::paintDense(), paintEvent(), Pane::selectionIsBeingEdited(), Layer::setMeasureRectFromPixrect(), View::viewManagerPlaybackFrameChanged(), and Pane::zoomToRegion().
| float View::getYForFrequency | ( | float | frequency, | |
| float | minFreq, | |||
| float | maxFreq, | |||
| bool | logarithmic | |||
| ) | const [inherited] |
Return the pixel y-coordinate corresponding to a given frequency, if the frequency range is as specified.
This does not imply any policy about layer frequency ranges, but it might be useful for layers to match theirs up if desired.
Not thread-safe in logarithmic mode. Call only from GUI thread.
Definition at line 366 of file View.cpp.
Referenced by SpectrogramLayer::getYForFrequency(), and SpectrogramLayer::paintVerticalScale().
| float View::getFrequencyForY | ( | int | y, | |
| float | minFreq, | |||
| float | maxFreq, | |||
| bool | logarithmic | |||
| ) | const [inherited] |
Return the closest frequency to the given pixel y-coordinate, if the frequency range is as specified.
Not thread-safe in logarithmic mode. Call only from GUI thread.
Definition at line 398 of file View.cpp.
Referenced by SpectrogramLayer::getFrequencyForY(), and SpectrogramLayer::getYBinRange().
| int View::getZoomLevel | ( | ) | const [inherited] |
Return the zoom level, i.e.
the number of frames per pixel
Definition at line 430 of file View.cpp.
References View::m_zoomLevel.
Referenced by WaveformLayer::getFeatureDescription(), View::getImageSize(), WaveformLayer::paint(), TimeRulerLayer::paint(), SpectrogramLayer::paint(), Colour3DPlotLayer::paint(), View::toNewImage(), Pane::toNewImage(), and Pane::updateHeadsUpDisplay().
| void View::setZoomLevel | ( | size_t | z | ) | [virtual, inherited] |
Set the zoom level, i.e.
the number of frames per pixel. The centre frame will be unchanged; the start and end frames will change.
Definition at line 439 of file View.cpp.
References View::m_followZoom, View::m_zoomLevel, and View::zoomLevelChanged().
Referenced by MainWindow::addPane(), MainWindow::handleOSCMessage(), Pane::horizontalThumbwheelMoved(), SVFileReader::readView(), View::setViewManager(), View::viewZoomLevelChanged(), Pane::wheelEvent(), View::zoom(), MainWindowBase::zoomDefault(), MainWindowBase::zoomToFit(), and Pane::zoomToRegion().
| void View::zoom | ( | bool | in | ) | [virtual, inherited] |
Zoom in or out.
Definition at line 1330 of file View.cpp.
References View::getZoomConstraintBlockSize(), View::m_zoomLevel, ZoomConstraint::RoundDown, ZoomConstraint::RoundUp, and View::setZoomLevel().
Referenced by MainWindowBase::zoomIn(), and MainWindowBase::zoomOut().
| void View::scroll | ( | bool | right, | |
| bool | lots | |||
| ) | [virtual, inherited] |
Scroll left or right by a smallish or largish amount.
Definition at line 1348 of file View.cpp.
References View::getEndFrame(), View::getModelsEndFrame(), View::getStartFrame(), View::m_centreFrame, and View::setCentreFrame().
Referenced by MainWindowBase::jumpLeft(), MainWindowBase::jumpRight(), MainWindowBase::scrollLeft(), and MainWindowBase::scrollRight().
| void View::addLayer | ( | Layer * | v | ) | [virtual, inherited] |
Definition at line 518 of file View.cpp.
References Preferences::getInstance(), Preferences::getViewFontSize(), View::layerMeasurementRectsChanged(), View::layerNameChanged(), View::layerParameterRangesChanged(), View::layerParametersChanged(), View::m_cache, View::m_layers, View::m_progressBars, View::modelAlignmentCompletionChanged(), View::modelChanged(), View::modelCompletionChanged(), View::modelReplaced(), View::propertyContainerAdded(), and SingleColourLayer::setDefaultColourFor().
Referenced by Document::AddLayerCommand::execute(), MainWindow::MainWindow(), and Document::RemoveLayerCommand::unexecute().
| void View::removeLayer | ( | Layer * | v | ) | [virtual, inherited] |
Definition at line 565 of file View.cpp.
References View::layerNameChanged(), View::layerParameterRangesChanged(), View::layerParametersChanged(), View::m_cache, View::m_deleting, View::m_layers, View::m_progressBars, View::modelAlignmentCompletionChanged(), View::modelChanged(), View::modelCompletionChanged(), View::modelReplaced(), and View::propertyContainerRemoved().
Referenced by Document::RemoveLayerCommand::execute(), and Document::AddLayerCommand::unexecute().
| virtual int View::getLayerCount | ( | ) | const [inline, virtual, inherited] |
Definition at line 148 of file View.h.
References View::m_layers.
Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), View::getModels(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindowBase::insertInstantAt(), MainWindowBase::nextLayer(), MainWindowBase::openAudio(), MainWindowBase::openImage(), MainWindowBase::paneDeleteButtonClicked(), MainWindowBase::previousLayer(), Pane::propertyContainerSelected(), LayerTreeModel::rowCount(), LayerTreeModel::setData(), Pane::updateHeadsUpDisplay(), MainWindowBase::updateMenuStates(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
| virtual Layer* View::getLayer | ( | int | n | ) | [inline, virtual, inherited] |
Return a layer, counted in stacking order.
That is, layer 0 is the bottom layer and layer "getLayerCount()-1" is the top one.
Definition at line 154 of file View.h.
References View::m_layers.
Referenced by MainWindow::addLayer(), MainWindow::currentPaneChanged(), LayerTreeModel::data(), MainWindowBase::deleteCurrentPane(), Document::RemoveLayerCommand::execute(), Document::AddLayerCommand::execute(), View::getModels(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantAt(), MainWindowBase::layerInAView(), MainWindowBase::nextLayer(), MainWindowBase::openAudio(), MainWindowBase::openImage(), TimeRulerLayer::paint(), MainWindowBase::paneDeleteButtonClicked(), LayerTreeModel::playParametersAudibilityChanged(), MainWindowBase::previousLayer(), Pane::propertyContainerSelected(), ModelDataModel::rebuildModelSet(), LayerTreeModel::setData(), MainWindow::setupExistingLayersMenus(), Pane::updateHeadsUpDisplay(), MainWindowBase::updateMenuStates(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
| virtual Layer* View::getTopLayer | ( | ) | [inline, virtual, inherited] |
Return the top layer.
This is the same as getLayer(getLayerCount()-1) if there is at least one layer, and 0 otherwise.
Definition at line 163 of file View.h.
References View::m_layers.
Referenced by Pane::getTopLayerDisplayExtents(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), and Pane::setTopLayerDisplayExtents().
| Layer * View::getSelectedLayer | ( | ) | [virtual, inherited] |
Return the layer last selected by the user.
This is normally the top layer, the same as getLayer(getLayerCount()-1). However, if the user has selected the pane itself more recently than any of the layers on it, this function will return 0. It will also return 0 if there are no layers.
Definition at line 608 of file View.cpp.
References View::getLayer(), View::getLayerCount(), View::m_haveSelectedLayer, and View::m_layers.
Referenced by MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::deleteCurrentLayer(), MainWindowBase::deleteSelected(), Pane::dragExtendSelection(), Pane::editSelectionEnd(), MainWindow::exportLayer(), View::getSelectedLayer(), MainWindowBase::getSnapLayer(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantAt(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), MainWindowBase::nextLayer(), MainWindowBase::openImage(), MainWindowBase::paste(), MainWindowBase::previousLayer(), MainWindow::renameCurrentLayer(), MainWindowBase::renumberInstants(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), Pane::updateContextHelp(), MainWindowBase::updateMenuStates(), and MainWindow::updateMenuStates().
| const Layer * View::getSelectedLayer | ( | ) | const [virtual, inherited] |
| void View::setViewManager | ( | ViewManager * | m | ) | [virtual, inherited] |
Definition at line 624 of file View.cpp.
References View::centreFrameChanged(), ViewManager::getGlobalCentreFrame(), ViewManager::getGlobalZoom(), ViewManager::getPlaybackFrame(), View::globalCentreFrameChanged(), View::m_followPan, View::m_followPlay, View::m_followZoom, View::m_manager, View::overlayModeChanged(), PlaybackScrollContinuous, PlaybackScrollPage, View::selectionChanged(), View::setCentreFrame(), View::setZoomLevel(), View::toolModeChanged(), View::viewCentreFrameChanged(), View::viewManagerPlaybackFrameChanged(), View::viewZoomLevelChanged(), View::zoomLevelChanged(), and View::zoomWheelsEnabledChanged().
Referenced by PaneStack::addPane(), and MainWindow::MainWindow().
| virtual ViewManager* View::getViewManager | ( | ) | const [inline, virtual, inherited] |
Definition at line 178 of file View.h.
References View::m_manager.
Referenced by Colour3DPlotLayer::getFeatureDescription(), WaveformLayer::paint(), TimeRulerLayer::paint(), SliceLayer::paint(), Colour3DPlotLayer::paint(), and Colour3DPlotLayer::paintDense().
| void View::setFollowGlobalPan | ( | bool | f | ) | [virtual, inherited] |
Definition at line 686 of file View.cpp.
References View::m_followPan, View::m_propertyContainer, and View::propertyContainerPropertyChanged().
Referenced by SVFileReader::readView().
| virtual bool View::getFollowGlobalPan | ( | ) | const [inline, virtual, inherited] |
Definition at line 181 of file View.h.
References View::m_followPan.
Referenced by MainWindowBase::globalCentreFrameChanged().
| void View::setFollowGlobalZoom | ( | bool | f | ) | [virtual, inherited] |
Definition at line 693 of file