svgui
1.9
|
View is the base class of widgets that display one or more overlaid views of data against a horizontal time scale. More...
#include <View.h>
Classes | |
struct | AlignmentProgressBarRec |
struct | ProgressBarRec |
Public Types | |
typedef PropertyContainer::PropertyName | PropertyName |
typedef std::set< ModelId > | ModelSet |
Public Slots | |
virtual void | modelChanged (ModelId) |
virtual void | modelChangedWithin (ModelId, sv_frame_t startFrame, sv_frame_t endFrame) |
virtual void | modelCompletionChanged (ModelId) |
virtual void | modelAlignmentCompletionChanged (ModelId) |
virtual void | modelReplaced () |
virtual void | layerParametersChanged () |
virtual void | layerParameterRangesChanged () |
virtual void | layerMeasurementRectsChanged () |
virtual void | layerNameChanged () |
virtual void | globalCentreFrameChanged (sv_frame_t) |
virtual void | viewCentreFrameChanged (View *, sv_frame_t) |
virtual void | viewManagerPlaybackFrameChanged (sv_frame_t) |
virtual void | viewZoomLevelChanged (View *, ZoomLevel, bool) |
virtual void | propertyContainerSelected (View *, PropertyContainer *pc) |
A property container has been selected, for example in the associated property stack. More... | |
virtual void | selectionChanged () |
virtual void | toolModeChanged () |
virtual void | overlayModeChanged () |
virtual void | zoomWheelsEnabledChanged () |
virtual void | cancelClicked () |
virtual void | progressCheckStalledTimerElapsed () |
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 | cancelButtonPressed (Layer *) |
void | centreFrameChanged (sv_frame_t frame, bool globalScroll, PlaybackFollowMode followMode) |
void | zoomLevelChanged (ZoomLevel level, bool locked) |
void | contextHelpChanged (const QString &) |
Public Member Functions | |
virtual | ~View () |
Deleting a View does not delete any of its layers. More... | |
int | getId () const override |
Retrieve the id of this object. More... | |
sv_frame_t | getStartFrame () const override |
Retrieve the first visible sample frame on the widget. More... | |
void | setStartFrame (sv_frame_t) |
Set the widget pan based on the given first visible frame. More... | |
sv_frame_t | getCentreFrame () const override |
Return the centre frame of the visible widget. More... | |
void | setCentreFrame (sv_frame_t f) |
Set the centre frame of the visible widget. More... | |
sv_frame_t | getEndFrame () const override |
Retrieve the last visible sample frame on the widget. More... | |
int | getXForFrame (sv_frame_t frame) const override |
Return the pixel x-coordinate corresponding to a given sample frame. More... | |
sv_frame_t | getFrameForX (int x) const override |
Return the closest frame to the given pixel x-coordinate. More... | |
int | getXForViewX (int viewx) const override |
Return the closest pixel x-coordinate corresponding to a given view x-coordinate. More... | |
int | getViewXForX (int x) const override |
Return the closest view x-coordinate corresponding to a given pixel x-coordinate. More... | |
double | getYForFrequency (double frequency, double minFreq, double maxFreq, bool logarithmic) const override |
Return the pixel y-coordinate corresponding to a given frequency, if the frequency range is as specified. More... | |
double | getFrequencyForY (double y, double minFreq, double maxFreq, bool logarithmic) const override |
Return the closest frequency to the given pixel y-coordinate, if the frequency range is as specified. More... | |
ZoomLevel | getZoomLevel () const override |
Return the zoom level, i.e. More... | |
virtual void | setZoomLevel (ZoomLevel z) |
Set the zoom level, i.e. More... | |
virtual void | zoom (bool in) |
Zoom in or out. More... | |
virtual void | scroll (bool right, bool lots, bool doEmit=true) |
Scroll left or right by a smallish or largish amount. More... | |
virtual void | addLayer (Layer *v) |
Add a layer to the view. More... | |
virtual void | removeLayer (Layer *v) |
Remove a layer from the view. More... | |
virtual int | getLayerCount () const |
Return the number of layers, regardless of whether visible or dormant, i.e. More... | |
virtual Layer * | getLayer (int n) |
Return the nth layer, counted in stacking order. More... | |
virtual Layer * | getFixedOrderLayer (int n) |
Return the nth layer, counted in the order they were added. More... | |
virtual Layer * | getInteractionLayer () |
Return the layer currently active for tool interaction. More... | |
virtual const Layer * | getInteractionLayer () const |
virtual Layer * | getSelectedLayer () |
Return the layer most recently selected by the user. More... | |
virtual const Layer * | getSelectedLayer () const |
virtual Layer * | getTopLayer () |
Return the "top" layer in the view, whether visible or dormant. More... | |
virtual void | setViewManager (ViewManager *m) |
virtual void | setViewManager (ViewManager *m, sv_frame_t initialFrame) |
ViewManager * | getViewManager () const override |
virtual void | setFollowGlobalPan (bool f) |
virtual bool | getFollowGlobalPan () const |
virtual void | setFollowGlobalZoom (bool f) |
virtual bool | getFollowGlobalZoom () const |
bool | hasLightBackground () const override |
QColor | getForeground () const override |
QColor | getBackground () const override |
void | drawMeasurementRect (QPainter &p, const Layer *, QRect rect, bool focus) const override |
bool | shouldShowFeatureLabels () const override |
bool | shouldIlluminateLocalFeatures (const Layer *, QPoint &) const override |
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 QString | getPropertyContainerIconName () const =0 |
virtual int | getPropertyContainerCount () const |
virtual const PropertyContainer * | getPropertyContainer (int i) const |
virtual PropertyContainer * | getPropertyContainer (int i) |
virtual QImage * | renderToNewImage () |
Render the view contents to a new QImage (which may be wider than the visible View). More... | |
virtual QImage * | renderPartToNewImage (sv_frame_t f0, sv_frame_t f1) |
Render the view contents between the given frame extents to a new QImage (which may be wider than the visible View). More... | |
virtual QSize | getRenderedImageSize () |
Calculate and return the size of image that will be generated by renderToNewImage(). More... | |
virtual QSize | getRenderedPartImageSize (sv_frame_t f0, sv_frame_t f1) |
Calculate and return the size of image that will be generated by renderPartToNewImage(f0, f1). More... | |
virtual bool | renderToSvgFile (QString filename) |
Render the view contents to a new SVG file. More... | |
virtual bool | renderPartToSvgFile (QString filename, sv_frame_t f0, sv_frame_t f1) |
Render the view contents between the given frame extents to a new SVG file. More... | |
bool | getVisibleExtentsForUnit (QString unit, double &min, double &max, bool &log) const override |
Return the visible vertical extents for the given unit, if any. More... | |
bool | getVisibleExtentsForAnyUnit (double &min, double &max, bool &logarithmic, QString &unit) const |
Return some visible vertical extents and unit. More... | |
int | getTextLabelYCoord (const Layer *layer, QPainter &) const override |
Return a y-coordinate at which text labels for individual items in a layer may be drawn, so as not to overlap with those of other layers. More... | |
void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const override |
virtual sv_frame_t | getFirstVisibleFrame () const |
virtual sv_frame_t | getLastVisibleFrame () const |
sv_frame_t | getModelsStartFrame () const override |
sv_frame_t | getModelsEndFrame () const override |
QRect | getPaintRect () const override |
To be called from a layer, to obtain the extent of the surface that the layer is currently painting to. More... | |
QSize | getPaintSize () const override |
int | getPaintWidth () const override |
int | getPaintHeight () const override |
double | scaleSize (double size) const override |
int | scalePixelSize (int size) const override |
double | scalePenWidth (double width) const override |
QPen | scalePen (QPen pen) const override |
ModelSet | getModels () |
void | setUseAligningProxy (bool uap) |
!!??? poor name, probably poor api, consider this More... | |
ModelId | getAligningModel () const |
!! More... | |
void | getAligningAndReferenceModels (ModelId &aligning, ModelId &reference) const |
sv_frame_t | alignFromReference (sv_frame_t) const |
sv_frame_t | alignToReference (sv_frame_t) const |
sv_frame_t | getAlignedPlaybackFrame () const |
void | updatePaintRect (QRect r) override |
View * | getView () override |
const View * | getView () const override |
Protected Types | |
typedef std::vector< Layer * > | LayerList |
typedef std::map< Layer *, ProgressBarRec > | ProgressMap |
Protected Member Functions | |
View (QWidget *, bool showProgress) | |
void | paintEvent (QPaintEvent *e) override |
virtual void | drawSelections (QPainter &) |
virtual bool | shouldLabelSelections () const |
virtual void | drawPlayPointer (QPainter &) |
virtual bool | render (QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1) |
virtual void | setPaintFont (QPainter &paint) |
QSize | scaledSize (const QSize &s, int factor) |
QRect | scaledRect (const QRect &r, int factor) |
sv_samplerate_t | getModelsSampleRate () const |
bool | areLayersScrollable () const |
LayerList | getScrollableBackLayers (bool testChanged, bool &changed) const |
LayerList | getNonScrollableFrontLayers (bool testChanged, bool &changed) const |
Layer * | getScaleProvidingLayerForUnit (QString unit) const |
ZoomLevel | getZoomConstraintLevel (ZoomLevel level, ZoomConstraint::RoundingDirection dir=ZoomConstraint::RoundNearest) const |
int | countZoomLevels () const |
int | getZoomLevelIndex (ZoomLevel level) const |
ZoomLevel | getZoomLevelByIndex (int ix) const |
bool | areLayerColoursSignificant () const |
bool | hasTopLayerTimeXAxis () const |
bool | setCentreFrame (sv_frame_t f, bool doEmit) |
void | movePlayPointer (sv_frame_t f) |
void | checkProgress (ModelId) |
void | checkAlignmentProgress (ModelId) |
bool | waitForLayersToBeReady () |
int | getProgressBarWidth () const |
int | effectiveDevicePixelRatio () const |
Static Protected Member Functions | |
static int | getNextId () |
Protected Attributes | |
int | m_id |
sv_frame_t | m_centreFrame |
ZoomLevel | m_zoomLevel |
bool | m_followPan |
bool | m_followZoom |
PlaybackFollowMode | m_followPlay |
bool | m_followPlayIsDetached |
sv_frame_t | m_playPointerFrame |
bool | m_lightBackground |
bool | m_showProgress |
QPixmap * | m_cache |
QPixmap * | m_buffer |
bool | m_cacheValid |
sv_frame_t | m_cacheCentreFrame |
ZoomLevel | m_cacheZoomLevel |
bool | m_selectionCached |
bool | m_deleting |
LayerList | m_layerStack |
LayerList | m_fixedOrderLayers |
bool | m_haveSelectedLayer |
bool | m_useAligningProxy |
QString | m_lastError |
LayerList | m_lastScrollableBackLayers |
LayerList | m_lastNonScrollableBackLayers |
ProgressMap | m_progressBars |
AlignmentProgressBarRec | m_alignmentProgressBar |
ViewManager * | m_manager |
ViewPropertyContainer * | m_propertyContainer |
Detailed Description
View is the base class of widgets that display one or more overlaid views of data against a horizontal time scale.
A View may have any number of attached Layers, each of which is expected to have one data Model (although multiple views may share the same model).
A View may be panned in time and zoomed, although the mechanisms for doing so (as well as any other operations and properties available) depend on the subclass.
Member Typedef Documentation
typedef PropertyContainer::PropertyName View::PropertyName |
typedef std::set<ModelId> View::ModelSet |
|
protected |
|
protected |
Constructor & Destructor Documentation
|
virtual |
Deleting a View does not delete any of its layers.
They should be managed elsewhere (e.g. by the Document).
Definition at line 83 of file View.cpp.
References m_buffer, m_cache, m_deleting, and m_propertyContainer.
|
protected |
Definition at line 56 of file View.cpp.
References m_manager, and m_propertyContainer.
Referenced by getView().
Member Function Documentation
|
inlineoverridevirtual |
Retrieve the id of this object.
Views have their own unique ids, but ViewProxy objects share the id of their View.
Implements LayerGeometryProvider.
Definition at line 72 of file View.h.
References getStartFrame(), m_id, and setStartFrame().
Referenced by AlignmentView::buildMaps(), checkAlignmentProgress(), checkProgress(), Pane::drawVerticalScale(), getFrameForX(), ViewProxy::getId(), getScaleProvidingLayerForUnit(), getVisibleExtentsForUnit(), getXForFrame(), globalCentreFrameChanged(), AlignmentView::keyFramesChanged(), modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), Pane::mouseReleaseEvent(), movePlayPointer(), AlignmentView::paintEvent(), paintEvent(), progressCheckStalledTimerElapsed(), setCentreFrame(), viewManagerPlaybackFrameChanged(), and viewZoomLevelChanged().
|
overridevirtual |
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.
Implements LayerGeometryProvider.
Definition at line 445 of file View.cpp.
References getFrameForX().
Referenced by Pane::drawModelTimeExtents(), drawPlayPointer(), Pane::edgeScrollMaybe(), getFirstVisibleFrame(), getId(), ViewProxy::getStartFrame(), modelChangedWithin(), movePlayPointer(), Overview::paintEvent(), paintEvent(), scroll(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
void View::setStartFrame | ( | sv_frame_t | f | ) |
Set the widget pan based on the given first visible frame.
The frame value may be negative.
Definition at line 457 of file View.cpp.
References m_zoomLevel, and setCentreFrame().
Referenced by getId(), and Pane::zoomToRegion().
|
inlineoverridevirtual |
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.
Implements LayerGeometryProvider.
Definition at line 93 of file View.h.
References m_centreFrame.
Referenced by drawPlayPointer(), ViewProxy::getCentreFrame(), getFrameForX(), and getXForFrame().
|
inline |
Set the centre frame of the visible widget.
Definition at line 98 of file View.h.
References getEndFrame(), getFrameForX(), getXForFrame(), and setCentreFrame().
Referenced by Pane::dragTopLayer(), Pane::edgeScrollMaybe(), globalCentreFrameChanged(), Pane::mouseDoubleClickEvent(), movePlayPointer(), scroll(), setCentreFrame(), setStartFrame(), setViewManager(), and Pane::wheelHorizontalFine().
|
overridevirtual |
Retrieve the last visible sample frame on the widget.
This is a calculated value based on the centre-frame, widget width and zoom level.
Implements LayerGeometryProvider.
Definition at line 451 of file View.cpp.
References getFrameForX().
Referenced by Pane::drawModelTimeExtents(), drawPlayPointer(), Pane::edgeScrollMaybe(), ViewProxy::getEndFrame(), getLastVisibleFrame(), modelChangedWithin(), movePlayPointer(), scroll(), setCentreFrame(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
|
overridevirtual |
Return the pixel x-coordinate corresponding to a given sample frame.
The frame is permitted to be negative, and the result may be outside the currently visible area. But this should not be called with frame values very far away from the currently visible area, as that could lead to overflow. In that situation an error will be logged and 0 returned.
Implements LayerGeometryProvider.
Definition at line 527 of file View.cpp.
References getCentreFrame(), getFrameForX(), getId(), m_centreFrame, and m_zoomLevel.
Referenced by Pane::dragTopLayer(), Pane::drawEditingSelection(), Pane::drawModelTimeExtents(), drawPlayPointer(), drawSelections(), Pane::editSelectionEnd(), getFrameForX(), Pane::getSelectionAt(), ViewProxy::getXForFrame(), movePlayPointer(), AlignmentView::paintEvent(), Overview::paintEvent(), paintEvent(), setCentreFrame(), and Overview::viewManagerPlaybackFrameChanged().
|
overridevirtual |
Return the closest frame to the given pixel x-coordinate.
Implements LayerGeometryProvider.
Definition at line 600 of file View.cpp.
References getCentreFrame(), getId(), getXForFrame(), m_centreFrame, and m_zoomLevel.
Referenced by Pane::dragExtendSelection(), Pane::dragTopLayer(), Pane::drawEditingSelection(), drawSelections(), Pane::edgeScrollMaybe(), Pane::editSelectionEnd(), getEndFrame(), Pane::getFirstVisibleFrame(), ViewProxy::getFrameForX(), Pane::getSelectionAt(), getStartFrame(), getXForFrame(), Overview::mouseDoubleClickEvent(), Pane::mouseDoubleClickEvent(), Overview::mousePressEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), movePlayPointer(), Overview::paintEvent(), Pane::selectionIsBeingEdited(), setCentreFrame(), and Pane::zoomToRegion().
|
inlineoverridevirtual |
Return the closest pixel x-coordinate corresponding to a given view x-coordinate.
Default is no scaling, ViewProxy handles scaling case.
Implements LayerGeometryProvider.
|
inlineoverridevirtual |
Return the closest view x-coordinate corresponding to a given pixel x-coordinate.
Default is no scaling, ViewProxy handles scaling case.
Implements LayerGeometryProvider.
Definition at line 134 of file View.h.
References addLayer(), getFrequencyForY(), getYForFrequency(), getZoomLevel(), removeLayer(), scroll(), setZoomLevel(), and zoom().
|
overridevirtual |
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.
Implements LayerGeometryProvider.
Definition at line 666 of file View.cpp.
Referenced by getViewXForX(), and ViewProxy::getYForFrequency().
|
overridevirtual |
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.
Implements LayerGeometryProvider.
Definition at line 700 of file View.cpp.
Referenced by ViewProxy::getFrequencyForY(), and getViewXForX().
|
overridevirtual |
Return the zoom level, i.e.
the number of frames per pixel or pixels per frame
Implements LayerGeometryProvider.
Definition at line 732 of file View.cpp.
References m_zoomLevel.
Referenced by getRenderedPartImageSize(), getViewXForX(), ViewProxy::getZoomLevel(), Pane::renderPartToNewImage(), renderPartToNewImage(), renderPartToSvgFile(), and Pane::updateHeadsUpDisplay().
|
virtual |
Set the zoom level, i.e.
the number of frames per pixel or pixels per frame. The centre frame will be unchanged; the start and end frames will change.
!! int dpratio = effectiveDevicePixelRatio();
Definition at line 760 of file View.cpp.
References m_followZoom, m_zoomLevel, and zoomLevelChanged().
Referenced by getViewXForX(), Pane::horizontalThumbwheelMoved(), setViewManager(), viewZoomLevelChanged(), Pane::wheelVertical(), zoom(), and Pane::zoomToRegion().
|
virtual |
Zoom in or out.
Definition at line 1879 of file View.cpp.
References getZoomConstraintLevel(), m_zoomLevel, and setZoomLevel().
Referenced by getViewXForX().
|
virtual |
Scroll left or right by a smallish or largish amount.
Definition at line 1899 of file View.cpp.
References getEndFrame(), getModelsEndFrame(), getStartFrame(), m_centreFrame, and setCentreFrame().
Referenced by getViewXForX().
|
virtual |
Add a layer to the view.
(Normally this should be handled through some command abstraction instead of using this function directly.)
Definition at line 838 of file View.cpp.
References View::ProgressBarRec::bar, View::ProgressBarRec::cancel, cancelClicked(), View::ProgressBarRec::lastStallCheckValue, layerMeasurementRectsChanged(), layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cacheValid, m_fixedOrderLayers, m_layerStack, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), progressCheckStalledTimerElapsed(), propertyContainerAdded(), scalePixelSize(), SingleColourLayer::setDefaultColourFor(), and View::ProgressBarRec::stallCheckTimer.
Referenced by getViewXForX().
|
virtual |
Remove a layer from the view.
Does not delete the layer. (Normally this should be handled through some command abstraction instead of using this function directly.)
Definition at line 905 of file View.cpp.
References layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), m_cacheValid, m_deleting, m_fixedOrderLayers, m_layerStack, m_progressBars, modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), and propertyContainerRemoved().
Referenced by getViewXForX().
|
inlinevirtual |
Return the number of layers, regardless of whether visible or dormant, i.e.
invisible, in this view.
Definition at line 197 of file View.h.
References m_layerStack.
Referenced by LayerTreeModel::data(), Pane::drawVerticalScale(), FlexiNoteLayer::getAssociatedPitchModel(), getInteractionLayer(), getModels(), AlignmentView::getSalientModel(), getSelectedLayer(), LayerTreeModel::LayerTreeModel(), LayerTreeModel::playParametersAudibilityChanged(), LayerTreeModel::propertyContainerPropertyChanged(), Pane::propertyContainerSelected(), ModelMetadataModel::rebuildModelSet(), LayerTreeModel::rowCount(), LayerTreeModel::setData(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
|
inlinevirtual |
Return the nth layer, counted in stacking order.
That is, layer 0 is the bottom layer and layer "getLayerCount()-1" is the top one. The returned layer may be visible or it may be dormant, i.e. invisible.
Definition at line 205 of file View.h.
References m_layerStack.
Referenced by LayerTreeModel::data(), FlexiNoteLayer::getAssociatedPitchModel(), getInteractionLayer(), getModels(), AlignmentView::getSalientModel(), getSelectedLayer(), LayerTreeModel::LayerTreeModel(), TimeRulerLayer::paint(), LayerTreeModel::playParametersAudibilityChanged(), LayerTreeModel::propertyContainerPropertyChanged(), Pane::propertyContainerSelected(), ModelMetadataModel::rebuildModelSet(), LayerTreeModel::setData(), FlexiNoteLayer::setVerticalRangeToNoteRange(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), Pane::verticalThumbwheelMoved(), and Pane::verticalZoomChanged().
|
inlinevirtual |
Return the nth layer, counted in the order they were added.
Unlike the stacking order used in getLayer(), which changes each time a layer is selected, this ordering remains fixed. The returned layer may be visible or it may be dormant, i.e. invisible.
Definition at line 217 of file View.h.
References getInteractionLayer(), getSelectedLayer(), and m_fixedOrderLayers.
|
virtual |
Return the layer currently active for tool interaction.
This is the topmost non-dormant (i.e. visible) layer in the view. If there are no visible layers in the view, return 0.
Definition at line 960 of file View.cpp.
References getLayer(), getLayerCount(), getSelectedLayer(), Layer::isLayerDormant(), and m_layerStack.
Referenced by Pane::dragExtendSelection(), Pane::editSelectionEnd(), getFixedOrderLayer(), getInteractionLayer(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), Pane::updateContextHelp(), and Pane::zoomToRegion().
|
virtual |
Definition at line 980 of file View.cpp.
References getInteractionLayer().
|
virtual |
Return the layer most recently selected by the user.
This is the layer that any non-tool-driven commands should operate on, in the case where this view is the "current" one.
If the user has selected the view itself more recently than any of the layers on it, this function will return 0, and any non-tool-driven layer commands should be deactivated while this view is current. It will also return 0 if there are no layers in the view.
Note that, unlike getInteractionLayer(), this could return an invisible (dormant) layer.
Definition at line 986 of file View.cpp.
References getLayer(), getLayerCount(), m_haveSelectedLayer, and m_layerStack.
Referenced by getFixedOrderLayer(), getInteractionLayer(), and getSelectedLayer().
|
virtual |
Definition at line 996 of file View.cpp.
References getSelectedLayer().
|
inlinevirtual |
Return the "top" layer in the view, whether visible or dormant.
This is the same as getLayer(getLayerCount()-1) if there is at least one layer, and 0 otherwise.
For most purposes involving interaction or commands, you probably want either getInteractionLayer() or getSelectedLayer() instead.
Definition at line 258 of file View.h.
References m_layerStack, and setViewManager().
Referenced by Pane::getRenderedPartImageSize(), Pane::getTopLayerDisplayExtents(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), Pane::render(), Pane::renderPartToNewImage(), and Pane::setTopLayerDisplayExtents().
|
virtual |
Definition at line 1002 of file View.cpp.
References centreFrameChanged(), getAlignedPlaybackFrame(), ViewManager::getGlobalCentreFrame(), ViewManager::getGlobalZoom(), ViewManager::getPlaybackFrame(), globalCentreFrameChanged(), m_followPan, m_followPlay, m_followZoom, m_manager, movePlayPointer(), overlayModeChanged(), PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, PlaybackScrollPageWithCentre, selectionChanged(), setCentreFrame(), setZoomLevel(), toolModeChanged(), viewCentreFrameChanged(), viewManagerPlaybackFrameChanged(), viewZoomLevelChanged(), zoomLevelChanged(), and zoomWheelsEnabledChanged().
Referenced by PaneStack::addPane(), getTopLayer(), and setViewManager().
|
virtual |
Definition at line 1076 of file View.cpp.
References setCentreFrame(), and setViewManager().
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
Definition at line 264 of file View.h.
References m_manager, and setFollowGlobalPan().
Referenced by ViewProxy::getViewManager().
|
virtual |
Definition at line 1083 of file View.cpp.
References m_followPan, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by getViewManager(), and setProperty().
|
inlinevirtual |
Definition at line 267 of file View.h.
References m_followPan, and setFollowGlobalZoom().
|
virtual |
Definition at line 1090 of file View.cpp.
References m_followZoom, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by getFollowGlobalPan(), and setProperty().
|
inlinevirtual |
Definition at line 270 of file View.h.
References drawMeasurementRect(), getBackground(), getForeground(), hasLightBackground(), and m_followZoom.
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 774 of file View.cpp.
References Layer::ColourAbsent, Layer::ColourDistinguishes, ViewManager::getGlobalDarkBackground(), m_layerStack, and m_manager.
Referenced by Pane::drawCentreLine(), Pane::drawFeatureDescription(), drawMeasurementRect(), Pane::drawModelTimeExtents(), getBackground(), getFollowGlobalZoom(), getForeground(), ViewProxy::hasLightBackground(), and Overview::Overview().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 824 of file View.cpp.
References hasLightBackground().
Referenced by Pane::drawEditingSelection(), Pane::drawLayerNames(), drawPlayPointer(), drawSelections(), Pane::drawVerticalScale(), getFollowGlobalZoom(), ViewProxy::getForeground(), paintEvent(), Pane::render(), and render().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 804 of file View.cpp.
References hasLightBackground().
Referenced by drawPlayPointer(), Pane::drawVerticalScale(), ViewProxy::getBackground(), getFollowGlobalZoom(), paintEvent(), Pane::render(), and render().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 2767 of file View.cpp.
References PaintAssistant::drawVisibleText(), Layer::getXScaleValue(), Layer::getYScaleDifference(), Layer::getYScaleValue(), hasLightBackground(), and PaintAssistant::OutlinedText.
Referenced by ViewProxy::drawMeasurementRect(), and getFollowGlobalZoom().
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
Definition at line 279 of file View.h.
References m_manager, and ViewManager::shouldShowFeatureLabels().
Referenced by ViewProxy::shouldShowFeatureLabels().
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
Definition at line 282 of file View.h.
Referenced by ViewProxy::shouldIlluminateLocalFeatures().
|
inlinevirtual |
Reimplemented in Pane.
Definition at line 285 of file View.h.
References setPlaybackFollow().
Referenced by drawSelections().
|
virtual |
Definition at line 1097 of file View.cpp.
References m_followPlay, m_propertyContainer, and propertyContainerPropertyChanged().
Referenced by Overview::Overview(), setProperty(), and shouldIlluminateLocalSelection().
|
inlinevirtual |
Definition at line 290 of file View.h.
References m_followPlay.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Definition at line 122 of file View.cpp.
References m_followPan, m_followPlay, m_followZoom, PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, and PlaybackScrollPageWithCentre.
|
virtual |
|
virtual |
Definition at line 160 of file View.cpp.
References PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPageWithCentre, setFollowGlobalPan(), setFollowGlobalZoom(), and setPlaybackFollow().
|
inlinevirtual |
Definition at line 306 of file View.h.
References getFirstVisibleFrame(), getLastVisibleFrame(), getModelsEndFrame(), getModelsStartFrame(), getPaintRect(), getPropertyContainer(), getPropertyContainerCount(), getPropertyContainerIconName(), getRenderedImageSize(), getRenderedPartImageSize(), getTextLabelYCoord(), getVisibleExtentsForAnyUnit(), getVisibleExtentsForUnit(), renderPartToNewImage(), renderPartToSvgFile(), renderToNewImage(), renderToSvgFile(), and toXml().
|
pure virtual |
Implemented in Pane, Overview, and AlignmentView.
Referenced by getPropertyContainerName().
|
virtual |
Definition at line 177 of file View.cpp.
References m_fixedOrderLayers.
Referenced by PropertyStack::containsContainer(), getPropertyContainerName(), and PropertyStack::repopulate().
|
virtual |
Definition at line 183 of file View.cpp.
Referenced by PropertyStack::containsContainer(), getPropertyContainerName(), PropertyStack::repopulate(), and PaneStack::setCurrentLayer().
|
virtual |
Definition at line 190 of file View.cpp.
References m_fixedOrderLayers, and m_propertyContainer.
|
virtual |
Render the view contents to a new QImage (which may be wider than the visible View).
Reimplemented in Pane.
Definition at line 3151 of file View.cpp.
References getModelsEndFrame(), getModelsStartFrame(), renderPartToNewImage(), and waitForLayersToBeReady().
Referenced by getPropertyContainerName(), and Pane::renderToNewImage().
|
virtual |
Render the view contents between the given frame extents to a new QImage (which may be wider than the visible View).
Reimplemented in Pane.
Definition at line 3164 of file View.cpp.
References getZoomLevel(), and render().
Referenced by getPropertyContainerName(), and renderToNewImage().
|
virtual |
Calculate and return the size of image that will be generated by renderToNewImage().
Reimplemented in Pane.
Definition at line 3183 of file View.cpp.
References getModelsEndFrame(), getModelsStartFrame(), and getRenderedPartImageSize().
Referenced by getPropertyContainerName(), and Pane::getRenderedImageSize().
|
virtual |
Calculate and return the size of image that will be generated by renderPartToNewImage(f0, f1).
Reimplemented in Pane.
Definition at line 3192 of file View.cpp.
References getZoomLevel().
Referenced by getPropertyContainerName(), getRenderedImageSize(), and Pane::getRenderedPartImageSize().
|
virtual |
Render the view contents to a new SVG file.
Definition at line 3201 of file View.cpp.
References getModelsEndFrame(), getModelsStartFrame(), and renderPartToSvgFile().
Referenced by getPropertyContainerName().
|
virtual |
Render the view contents between the given frame extents to a new SVG file.
Definition at line 3210 of file View.cpp.
References getZoomLevel(), and render().
Referenced by getPropertyContainerName(), and renderToSvgFile().
|
overridevirtual |
Return the visible vertical extents for the given unit, if any.
Overridden from LayerGeometryProvider (see docs there).
Implements LayerGeometryProvider.
Definition at line 197 of file View.cpp.
References Layer::getDisplayExtents(), getId(), getScaleProvidingLayerForUnit(), Layer::getValueExtents(), and m_layerStack.
Referenced by getPropertyContainerName(), and ViewProxy::getVisibleExtentsForUnit().
bool View::getVisibleExtentsForAnyUnit | ( | double & | min, |
double & | max, | ||
bool & | logarithmic, | ||
QString & | unit | ||
) | const |
Return some visible vertical extents and unit.
That is, if at least one non-dormant layer has a non-empty unit and returns some values from its getDisplayExtents() method, return the extents and unit from the topmost of those. Otherwise return false.
Definition at line 323 of file View.cpp.
References Layer::getDisplayExtents(), Layer::getValueExtents(), Layer::isLayerDormant(), and m_layerStack.
Referenced by getPropertyContainerName().
|
overridevirtual |
Return a y-coordinate at which text labels for individual items in a layer may be drawn, so as not to overlap with those of other layers.
The returned coordinate will be near the top of the visible widget, but adjusted downward depending on how many other visible layers return true from their implementation of Layer::needsTextLabelHeight().
Implements LayerGeometryProvider.
Definition at line 367 of file View.cpp.
References m_layerStack, and scalePixelSize().
Referenced by getPropertyContainerName(), and ViewProxy::getTextLabelYCoord().
|
override |
Definition at line 3230 of file View.cpp.
References m_centreFrame, m_fixedOrderLayers, m_followPan, m_followPlay, m_followZoom, m_zoomLevel, PlaybackScrollContinuous, PlaybackScrollPage, and PlaybackScrollPageWithCentre.
Referenced by getPropertyContainerName(), and Pane::toXml().
|
virtual |
Reimplemented in Pane.
Definition at line 1433 of file View.cpp.
References getModelsStartFrame(), and getStartFrame().
Referenced by Pane::getFirstVisibleFrame(), and getPropertyContainerName().
|
virtual |
Definition at line 1442 of file View.cpp.
References getEndFrame(), and getModelsEndFrame().
Referenced by getPropertyContainerName().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1451 of file View.cpp.
References m_layerStack.
Referenced by AlignmentView::getDefaultKeyFrames(), getFirstVisibleFrame(), getModelsEndFrame(), ViewProxy::getModelsStartFrame(), getPropertyContainerName(), getRenderedImageSize(), Overview::modelChangedWithin(), Overview::paintEvent(), renderToNewImage(), and renderToSvgFile().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1475 of file View.cpp.
References getModelsStartFrame(), and m_layerStack.
Referenced by Pane::dragExtendSelection(), Pane::dragTopLayer(), AlignmentView::getDefaultKeyFrames(), getLastVisibleFrame(), ViewProxy::getModelsEndFrame(), getPropertyContainerName(), getRenderedImageSize(), Overview::modelChangedWithin(), Overview::mouseMoveEvent(), Overview::paintEvent(), renderToNewImage(), renderToSvgFile(), scroll(), Pane::wheelHorizontalFine(), and Pane::zoomToRegion().
|
overridevirtual |
To be called from a layer, to obtain the extent of the surface that the layer is currently painting to.
This may be the extent of the view (if 1x display scaling is in effect) or of a larger cached pixmap (if greater display scaling is in effect).
Implements LayerGeometryProvider.
Definition at line 2219 of file View.cpp.
Referenced by getPaintHeight(), ViewProxy::getPaintRect(), getPaintSize(), getPaintWidth(), and getPropertyContainerName().
|
inlineoverridevirtual |
Reimplemented from LayerGeometryProvider.
Definition at line 391 of file View.h.
References getPaintRect().
|
inlineoverridevirtual |
Reimplemented from LayerGeometryProvider.
Definition at line 392 of file View.h.
References getPaintRect().
|
inlineoverridevirtual |
Reimplemented from LayerGeometryProvider.
Definition at line 393 of file View.h.
References getPaintRect(), scalePen(), scalePenWidth(), scalePixelSize(), and scaleSize().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1807 of file View.cpp.
Referenced by getPaintHeight(), scalePenWidth(), scalePixelSize(), and ViewProxy::scaleSize().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1834 of file View.cpp.
References scaleSize().
Referenced by addLayer(), checkProgress(), getPaintHeight(), Pane::getSelectionAt(), getTextLabelYCoord(), and ViewProxy::scalePixelSize().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1843 of file View.cpp.
References scaleSize().
Referenced by drawSelections(), getPaintHeight(), scalePen(), and ViewProxy::scalePenWidth().
|
overridevirtual |
Implements LayerGeometryProvider.
Definition at line 1853 of file View.cpp.
References scalePenWidth().
Referenced by Pane::drawCentreLine(), and getPaintHeight().
View::ModelSet View::getModels | ( | ) |
Definition at line 1521 of file View.cpp.
References getLayer(), getLayerCount(), and Layer::getModel().
|
inline |
!!??? poor name, probably poor api, consider this
Definition at line 404 of file View.h.
References alignFromReference(), alignToReference(), getAlignedPlaybackFrame(), getAligningAndReferenceModels(), getAligningModel(), and m_useAligningProxy.
ModelId View::getAligningModel | ( | ) | const |
!!
Definition at line 1542 of file View.cpp.
References getAligningAndReferenceModels().
Referenced by alignFromReference(), alignToReference(), getAlignedPlaybackFrame(), Overview::mousePressEvent(), paintEvent(), and setUseAligningProxy().
void View::getAligningAndReferenceModels | ( | ModelId & | aligning, |
ModelId & | reference | ||
) | const |
Definition at line 1550 of file View.cpp.
References ViewManager::getAlignMode(), ViewManager::getPlaybackModel(), m_layerStack, and m_manager.
Referenced by getAligningModel(), and setUseAligningProxy().
sv_frame_t View::alignFromReference | ( | sv_frame_t | f | ) | const |
Definition at line 1597 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), and m_manager.
Referenced by Layer::alignFromReference(), AlignmentView::buildMaps(), drawSelections(), globalCentreFrameChanged(), Overview::paintEvent(), and setUseAligningProxy().
sv_frame_t View::alignToReference | ( | sv_frame_t | f | ) | const |
Definition at line 1606 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), and m_manager.
Referenced by Layer::alignToReference(), AlignmentView::buildMaps(), Pane::dragExtendSelection(), Overview::mouseDoubleClickEvent(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), Overview::paintEvent(), setCentreFrame(), and setUseAligningProxy().
sv_frame_t View::getAlignedPlaybackFrame | ( | ) | const |
Definition at line 1615 of file View.cpp.
References getAligningModel(), ViewManager::getAlignMode(), ViewManager::getPlaybackFrame(), and m_manager.
Referenced by Overview::modelReplaced(), setUseAligningProxy(), setViewManager(), Overview::viewManagerPlaybackFrameChanged(), and viewManagerPlaybackFrameChanged().
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
|
inlineoverridevirtual |
Implements LayerGeometryProvider.
Definition at line 418 of file View.h.
References cancelButtonPressed(), cancelClicked(), centreFrameChanged(), contextHelpChanged(), globalCentreFrameChanged(), layerMeasurementRectsChanged(), layerModelChanged(), layerNameChanged(), layerParameterRangesChanged(), layerParametersChanged(), modelAlignmentCompletionChanged(), modelChanged(), modelChangedWithin(), modelCompletionChanged(), modelReplaced(), overlayModeChanged(), progressCheckStalledTimerElapsed(), propertyChanged(), propertyContainerAdded(), propertyContainerNameChanged(), propertyContainerPropertyChanged(), propertyContainerPropertyRangeChanged(), propertyContainerRemoved(), propertyContainerSelected(), selectionChanged(), toolModeChanged(), View(), viewCentreFrameChanged(), viewManagerPlaybackFrameChanged(), viewZoomLevelChanged(), zoomLevelChanged(), and zoomWheelsEnabledChanged().
|
signal |
Referenced by addLayer(), getView(), AlignmentView::setAboveView(), and AlignmentView::setBelowView().
|
signal |
Referenced by getView(), and removeLayer().
|
signal |
Referenced by getView(), layerParametersChanged(), setFollowGlobalPan(), setFollowGlobalZoom(), and setPlaybackFollow().
|
signal |
Referenced by getView(), and layerParameterRangesChanged().
|
signal |
Referenced by getView(), and layerNameChanged().
|
signal |
Referenced by getView(), Pane::propertyContainerSelected(), and propertyContainerSelected().
|
signal |
Referenced by getView().
|
signal |
Referenced by getView(), modelChanged(), AlignmentView::setAboveView(), and AlignmentView::setBelowView().
|
signal |
Referenced by cancelClicked(), and getView().
|
signal |
|
signal |
|
signal |
|
virtualslot |
Definition at line 1104 of file View.cpp.
References checkProgress(), getId(), getScrollableBackLayers(), layerModelChanged(), and m_cacheValid.
Referenced by addLayer(), getView(), AlignmentView::reconnectModels(), and removeLayer().
|
virtualslot |
Definition at line 1137 of file View.cpp.
References checkProgress(), getEndFrame(), getId(), getScrollableBackLayers(), getStartFrame(), and m_cacheValid.
Referenced by addLayer(), getView(), Overview::modelChangedWithin(), and removeLayer().
|
virtualslot |
Definition at line 1184 of file View.cpp.
References checkProgress(), and getId().
Referenced by addLayer(), getView(), and removeLayer().
|
virtualslot |
Definition at line 1193 of file View.cpp.
References checkAlignmentProgress(), and getId().
Referenced by addLayer(), getView(), Pane::modelAlignmentCompletionChanged(), and removeLayer().
|
virtualslot |
Definition at line 1202 of file View.cpp.
References getId(), and m_cacheValid.
Referenced by addLayer(), getView(), Overview::modelReplaced(), and removeLayer().
|
virtualslot |
Definition at line 1212 of file View.cpp.
References m_cacheValid, and propertyContainerPropertyChanged().
Referenced by addLayer(), getView(), Pane::layerParametersChanged(), and removeLayer().
|
virtualslot |
Definition at line 1229 of file View.cpp.
References propertyContainerPropertyRangeChanged().
Referenced by addLayer(), getView(), and removeLayer().
|
virtualslot |
Definition at line 1236 of file View.cpp.
Referenced by addLayer(), and getView().
|
virtualslot |
Definition at line 1243 of file View.cpp.
References propertyContainerNameChanged().
Referenced by addLayer(), getView(), and removeLayer().
|
virtualslot |
Definition at line 1250 of file View.cpp.
References alignFromReference(), getId(), m_followPan, and setCentreFrame().
Referenced by getView(), AlignmentView::globalCentreFrameChanged(), and setViewManager().
|
virtualslot |
Definition at line 1263 of file View.cpp.
Referenced by getView(), setViewManager(), and AlignmentView::viewCentreFrameChanged().
|
virtualslot |
Definition at line 1269 of file View.cpp.
References getAlignedPlaybackFrame(), getId(), m_manager, and movePlayPointer().
Referenced by getView(), and setViewManager().
|
virtualslot |
Definition at line 1412 of file View.cpp.
References getId(), m_followZoom, and setZoomLevel().
Referenced by getView(), setViewManager(), and Pane::viewZoomLevelChanged().
|
virtualslot |
A property container has been selected, for example in the associated property stack.
The property container may be a layer, in which case the effect should be to raise that layer to the front of the view and select it; or it may be the view's own property container, in which case the effect is to switch to a mode in which no layer is selected.
(This is the main slot for raising a layer.)
Definition at line 390 of file View.cpp.
References m_cacheValid, m_haveSelectedLayer, m_layerStack, m_propertyContainer, and propertyContainerSelected().
|
virtualslot |
Definition at line 1423 of file View.cpp.
References m_cacheValid, and m_selectionCached.
Referenced by getView(), and setViewManager().
|
virtualslot |
Definition at line 426 of file View.cpp.
Referenced by getView(), and setViewManager().
|
virtualslot |
Definition at line 432 of file View.cpp.
References m_cacheValid.
Referenced by getView(), and setViewManager().
|
virtualslot |
Definition at line 439 of file View.cpp.
Referenced by getView(), and setViewManager().
|
virtualslot |
Definition at line 1925 of file View.cpp.
References cancelButtonPressed(), and m_progressBars.
Referenced by addLayer(), and getView().
|
virtualslot |
Definition at line 2146 of file View.cpp.
References getId(), and m_progressBars.
Referenced by addLayer(), and getView().
|
overrideprotected |
Definition at line 2225 of file View.cpp.
References drawPlayPointer(), drawSelections(), effectiveDevicePixelRatio(), getAligningModel(), getBackground(), getForeground(), getId(), Layer::getModel(), getNonScrollableFrontLayers(), getScrollableBackLayers(), Layer::getSourceModel(), getStartFrame(), getXForFrame(), getZoomConstraintLevel(), m_buffer, m_cache, m_cacheCentreFrame, m_cacheValid, m_cacheZoomLevel, m_centreFrame, m_layerStack, m_useAligningProxy, m_zoomLevel, Layer::paint(), scaledRect(), scaledSize(), and setPaintFont().
Referenced by Overview::paintEvent(), and Pane::paintEvent().
|
protectedvirtual |
Definition at line 2571 of file View.cpp.
References alignFromReference(), areLayerColoursSignificant(), PaintAssistant::drawVisibleText(), getForeground(), getFrameForX(), ViewManager::getInProgressSelection(), getModelsSampleRate(), ViewManager::getSelections(), getXForFrame(), hasTopLayerTimeXAxis(), ViewManager::haveInProgressSelection(), m_manager, PaintAssistant::OutlinedText, scalePenWidth(), shouldIlluminateLocalSelection(), shouldLabelSelections(), and ViewManager::shouldShowSelectionExtents().
Referenced by paintEvent().
|
inlineprotectedvirtual |
Reimplemented in Overview, and AlignmentView.
Definition at line 485 of file View.h.
References drawPlayPointer(), render(), and setPaintFont().
Referenced by drawSelections().
|
protectedvirtual |
Definition at line 2733 of file View.cpp.
References getBackground(), getCentreFrame(), getEndFrame(), getForeground(), getStartFrame(), getXForFrame(), ViewManager::isPlaying(), m_followPlay, m_manager, m_playPointerFrame, PlaybackIgnore, PlaybackScrollContinuous, and ViewManager::shouldShowCentreLine().
Referenced by paintEvent(), and shouldLabelSelections().
|
protectedvirtual |
Reimplemented in Pane.
Definition at line 3078 of file View.cpp.
References getBackground(), getForeground(), m_centreFrame, m_layerStack, m_zoomLevel, and waitForLayersToBeReady().
Referenced by Pane::render(), renderPartToNewImage(), renderPartToSvgFile(), and shouldLabelSelections().
|
protectedvirtual |
Definition at line 2190 of file View.cpp.
References effectiveDevicePixelRatio().
Referenced by Pane::paintEvent(), paintEvent(), and shouldLabelSelections().
|
inlineprotected |
Definition at line 490 of file View.h.
Referenced by paintEvent().
|
inlineprotected |
Definition at line 493 of file View.h.
Referenced by paintEvent().
|
protected |
!! Just go for the first, for now. If we were supporting
!! nah, this wants to always return the sr of the main model!
Definition at line 1500 of file View.cpp.
References m_layerStack.
Referenced by Pane::drawEditingSelection(), drawSelections(), and Pane::paintEvent().
|
protected |
Definition at line 1630 of file View.cpp.
References m_layerStack.
|
protected |
Definition at line 1640 of file View.cpp.
References m_lastScrollableBackLayers, and m_layerStack.
Referenced by modelChanged(), modelChangedWithin(), and paintEvent().
|
protected |
Definition at line 1676 of file View.cpp.
References m_lastNonScrollableBackLayers, and m_layerStack.
Referenced by paintEvent().
|
protected |
Definition at line 246 of file View.cpp.
References Layer::getDisplayExtents(), getId(), Layer::getLayerPresentationName(), Layer::getValueExtents(), Layer::isLayerDormant(), and m_layerStack.
Referenced by Pane::drawVerticalScale(), and getVisibleExtentsForUnit().
|
protected |
Definition at line 1708 of file View.cpp.
References m_layerStack.
Referenced by countZoomLevels(), getZoomLevelByIndex(), getZoomLevelIndex(), Overview::modelChangedWithin(), Overview::paintEvent(), paintEvent(), Pane::wheelVertical(), zoom(), and Pane::zoomToRegion().
|
protected |
Definition at line 1738 of file View.cpp.
References getZoomConstraintLevel().
Referenced by Pane::updateHeadsUpDisplay().
|
protected |
Definition at line 1782 of file View.cpp.
References getZoomConstraintLevel().
Referenced by Pane::updateHeadsUpDisplay().
|
protected |
Definition at line 1757 of file View.cpp.
References getZoomConstraintLevel().
Referenced by Pane::horizontalThumbwheelMoved().
|
protected |
Definition at line 1859 of file View.cpp.
References Layer::ColourHasMeaningfulValue, and m_layerStack.
Referenced by drawSelections().
|
protected |
Definition at line 1870 of file View.cpp.
References m_layerStack.
Referenced by drawSelections(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), Pane::paintEvent(), and Pane::updateContextHelp().
|
protected |
Definition at line 464 of file View.cpp.
References alignToReference(), centreFrameChanged(), getId(), m_centreFrame, m_followPan, m_followPlay, and m_zoomLevel.
|
protected |
Definition at line 1289 of file View.cpp.
References getEndFrame(), getFrameForX(), getId(), ViewManager::getPlaySelectionMode(), ViewManager::getSelections(), getStartFrame(), getXForFrame(), ViewManager::isPlaying(), m_followPlay, m_followPlayIsDetached, m_manager, m_playPointerFrame, PlaybackIgnore, PlaybackScrollContinuous, PlaybackScrollPage, PlaybackScrollPageWithCentre, and setCentreFrame().
Referenced by setViewManager(), and viewManagerPlaybackFrameChanged().
|
protected |
Definition at line 1946 of file View.cpp.
References View::AlignmentProgressBarRec::bar, getId(), m_alignmentProgressBar, m_lastError, m_progressBars, m_showProgress, and scalePixelSize().
Referenced by modelChanged(), modelChangedWithin(), and modelCompletionChanged().
|
protected |
Definition at line 2080 of file View.cpp.
References View::AlignmentProgressBarRec::alignedModel, View::AlignmentProgressBarRec::bar, getId(), m_alignmentProgressBar, and m_showProgress.
Referenced by modelAlignmentCompletionChanged().
|
protected |
Definition at line 3006 of file View.cpp.
References m_layerStack.
Referenced by render(), and renderToNewImage().
|
protected |
Definition at line 2173 of file View.cpp.
References View::AlignmentProgressBarRec::bar, m_alignmentProgressBar, and m_progressBars.
Referenced by Pane::drawDurationAndRate().
|
protected |
Definition at line 741 of file View.cpp.
Referenced by paintEvent(), and setPaintFont().
|
inlinestaticprotectedinherited |
Definition at line 48 of file LayerGeometryProvider.h.
Member Data Documentation
|
protected |
Definition at line 540 of file View.h.
Referenced by Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::edgeScrollMaybe(), getCentreFrame(), getFrameForX(), getXForFrame(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), Overview::paintEvent(), paintEvent(), render(), scroll(), setCentreFrame(), toXml(), AlignmentView::viewCentreFrameChanged(), and Pane::wheelHorizontalFine().
|
protected |
Definition at line 541 of file View.h.
Referenced by getFrameForX(), getXForFrame(), getZoomLevel(), Overview::modelChangedWithin(), Overview::mouseMoveEvent(), Overview::paintEvent(), paintEvent(), render(), setCentreFrame(), setStartFrame(), setZoomLevel(), toXml(), AlignmentView::viewAboveZoomLevelChanged(), Pane::wheelHorizontalFine(), Pane::wheelVertical(), and zoom().
|
protected |
Definition at line 542 of file View.h.
Referenced by getFollowGlobalPan(), getPropertyRangeAndValue(), globalCentreFrameChanged(), Overview::Overview(), setCentreFrame(), setFollowGlobalPan(), setViewManager(), and toXml().
|
protected |
Definition at line 543 of file View.h.
Referenced by getFollowGlobalZoom(), getPropertyRangeAndValue(), Overview::Overview(), Overview::paintEvent(), setFollowGlobalZoom(), setViewManager(), setZoomLevel(), toXml(), Pane::viewZoomLevelChanged(), and viewZoomLevelChanged().
|
protected |
Definition at line 544 of file View.h.
Referenced by drawPlayPointer(), Pane::edgeScrollMaybe(), getPlaybackFollow(), getPropertyRangeAndValue(), Overview::mouseMoveEvent(), Pane::mousePressEvent(), movePlayPointer(), setCentreFrame(), setPlaybackFollow(), setViewManager(), and toXml().
|
protected |
Definition at line 545 of file View.h.
Referenced by movePlayPointer().
|
protected |
Definition at line 546 of file View.h.
Referenced by drawPlayPointer(), Overview::modelReplaced(), movePlayPointer(), and Overview::viewManagerPlaybackFrameChanged().
|
protected |
Definition at line 548 of file View.h.
Referenced by checkAlignmentProgress(), and checkProgress().
|
protected |
Definition at line 550 of file View.h.
Referenced by paintEvent(), and ~View().
|
protected |
Definition at line 551 of file View.h.
Referenced by paintEvent(), and ~View().
|
protected |
Definition at line 552 of file View.h.
Referenced by addLayer(), layerParametersChanged(), modelChanged(), modelChangedWithin(), modelReplaced(), overlayModeChanged(), paintEvent(), propertyContainerSelected(), removeLayer(), and selectionChanged().
|
protected |
Definition at line 553 of file View.h.
Referenced by paintEvent().
|
protected |
Definition at line 554 of file View.h.
Referenced by paintEvent().
|
protected |
Definition at line 555 of file View.h.
Referenced by selectionChanged().
|
protected |
Definition at line 557 of file View.h.
Referenced by removeLayer(), and ~View().
|
protected |
Definition at line 559 of file View.h.
Referenced by addLayer(), areLayerColoursSignificant(), areLayersScrollable(), Pane::drawCentreLine(), Pane::drawLayerNames(), Pane::drawVerticalScale(), getAligningAndReferenceModels(), getInteractionLayer(), getLayer(), getLayerCount(), getModelsEndFrame(), getModelsSampleRate(), getModelsStartFrame(), getNonScrollableFrontLayers(), getScaleProvidingLayerForUnit(), getScrollableBackLayers(), getSelectedLayer(), getTextLabelYCoord(), Pane::getTopFlexiNoteLayer(), getTopLayer(), getVisibleExtentsForAnyUnit(), getVisibleExtentsForUnit(), getZoomConstraintLevel(), hasLightBackground(), hasTopLayerTimeXAxis(), Overview::modelChangedWithin(), Pane::paintEvent(), paintEvent(), propertyContainerSelected(), removeLayer(), render(), waitForLayersToBeReady(), and Pane::zoomToRegion().
|
protected |
Definition at line 560 of file View.h.
Referenced by addLayer(), getFixedOrderLayer(), getPropertyContainer(), getPropertyContainerCount(), removeLayer(), and toXml().
|
protected |
Definition at line 561 of file View.h.
Referenced by getSelectedLayer(), and propertyContainerSelected().
|
protected |
Definition at line 563 of file View.h.
Referenced by paintEvent(), and setUseAligningProxy().
|
protected |
Definition at line 565 of file View.h.
Referenced by checkProgress().
|
mutableprotected |
Definition at line 568 of file View.h.
Referenced by getScrollableBackLayers().
|
mutableprotected |
Definition at line 569 of file View.h.
Referenced by getNonScrollableFrontLayers().
|
protected |
Definition at line 578 of file View.h.
Referenced by addLayer(), cancelClicked(), checkProgress(), getProgressBarWidth(), progressCheckStalledTimerElapsed(), and removeLayer().
|
protected |
Definition at line 584 of file View.h.
Referenced by checkAlignmentProgress(), checkProgress(), and getProgressBarWidth().
|
protected |
Definition at line 586 of file View.h.
Referenced by alignFromReference(), alignToReference(), Pane::dragExtendSelection(), Pane::dragTopLayer(), Pane::drawCentreLine(), Pane::drawDurationAndRate(), Pane::drawLayerNames(), drawPlayPointer(), drawSelections(), Pane::drawVerticalScale(), Pane::edgeScrollMaybe(), Pane::editSelectionEnd(), Pane::editSelectionStart(), Pane::editVerticalPannerExtents(), getAlignedPlaybackFrame(), getAligningAndReferenceModels(), AlignmentView::getDefaultKeyFrames(), Pane::getRenderedPartImageSize(), Pane::getSelectionAt(), getViewManager(), hasLightBackground(), Pane::mouseDoubleClickEvent(), Pane::mouseMoveEvent(), Pane::mousePressEvent(), Pane::mouseReleaseEvent(), movePlayPointer(), AlignmentView::paintEvent(), Pane::paintEvent(), Pane::playbackScheduleTimerElapsed(), Pane::render(), Pane::renderPartToNewImage(), setViewManager(), Pane::shouldIlluminateLocalFeatures(), Pane::shouldIlluminateLocalSelection(), shouldShowFeatureLabels(), Pane::toolModeChanged(), Pane::updateContextHelp(), Pane::updateDragMode(), Pane::updateHeadsUpDisplay(), Pane::updateVerticalPanner(), View(), viewManagerPlaybackFrameChanged(), and Pane::viewZoomLevelChanged().
|
protected |
Definition at line 587 of file View.h.
Referenced by getPropertyContainer(), propertyContainerSelected(), setFollowGlobalPan(), setFollowGlobalZoom(), setPlaybackFollow(), View(), and ~View().
The documentation for this class was generated from the following files:
Generated by 1.8.11