#include <View.h>

Public Member Functions | |
| virtual void | setName (const std::string &viewName)=0 |
| virtual ViewType | getViewType () const =0 |
| virtual QWidget * | getWidget () const =0 |
| virtual void | setBackgroundColor (const ColorType &backgroundColor)=0 |
| virtual ColorType | getBackgroundColor () const =0 |
| virtual void | setClassification (const Classification *pClassification)=0 |
| virtual Classification * | getClassification ()=0 |
| virtual const Classification * | getClassification () const =0 |
| virtual PositionType | getClassificationPosition () const =0 |
| virtual void | setClassificationPosition (PositionType position)=0 |
| virtual std::string | getClassificationText () const =0 |
| virtual void | enableClassification (bool enable)=0 |
| virtual void | setDataOrigin (const DataOrigin &dataOrigin)=0 |
| virtual DataOrigin | getDataOrigin () const =0 |
| virtual bool | addMouseMode (MouseMode *pMouseMode)=0 |
| virtual bool | setMouseMode (MouseMode *pMouseMode)=0 |
| virtual bool | setMouseMode (const std::string &modeName)=0 |
| virtual bool | containsMouseMode (MouseMode *pMouseMode) const =0 |
| virtual MouseMode * | getMouseMode (const std::string &modeName) const =0 |
| virtual MouseMode * | getCurrentMouseMode () const =0 |
| virtual void | getMouseModes (std::vector< MouseMode * > &modes) const =0 |
| virtual AnimationController * | getAnimationController () const =0 |
| virtual void | setAnimationController (AnimationController *pPlayer)=0 |
| virtual unsigned int | getNumMouseModes () const =0 |
| virtual void | getExtents (double &dMinX, double &dMinY, double &dMaxX, double &dMaxY) const =0 |
| virtual void | getVisibleCorners (LocationType &lowerLeft, LocationType &upperLeft, LocationType &upperRight, LocationType &lowerRight) const =0 |
| virtual LocationType | getVisibleCenter () const =0 |
| virtual void | zoomExtents ()=0 |
| virtual void | zoomToBox (const LocationType &lowerLeft, const LocationType &upperRight)=0 |
| virtual void | panTo (const LocationType &worldCoord)=0 |
| virtual void | panToCenter ()=0 |
| virtual void | panBy (double dDeltaX, double dDeltaY)=0 |
| virtual bool | enableInset (bool bEnable)=0 |
| virtual bool | isInsetEnabled () const =0 |
| virtual void | setInsetPoint (const LocationType &worldCoord)=0 |
| virtual bool | enableCrossHair (bool bEnable)=0 |
| virtual bool | isCrossHairEnabled () const =0 |
| virtual void | setCrossHairColor (const ColorType &color)=0 |
| virtual ColorType | getCrossHairColor () const =0 |
| virtual void | setCrossHairBlended (bool blended)=0 |
| virtual bool | isCrossHairBlended () const =0 |
| virtual void | setCrossHairSize (int size)=0 |
| virtual int | getCrossHairSize () const =0 |
| virtual void | setCrossHairWidth (unsigned int width)=0 |
| virtual unsigned int | getCrossHairWidth () const =0 |
| virtual void | refresh ()=0 |
| virtual bool | getCurrentImage (QImage &image)=0 |
| virtual SubImageIterator * | getSubImageIterator (const QSize &totalSize, const QSize &subImageSize)=0 |
| virtual bool | linkView (View *pView, LinkType type)=0 |
| virtual void | getLinkedViews (std::vector< std::pair< View *, LinkType > > &linkedViews) const =0 |
| virtual LinkType | getViewLinkType (View *pView) const =0 |
| virtual bool | unlinkView (View *pView)=0 |
| virtual View * | copy () const =0 |
| virtual bool | copy (View *pView) const =0 |
| virtual bool | removeMouseMode (const MouseMode *pMouseMode)=0 |
| virtual void | enableMouseMode (const MouseMode *pMouseMode, bool bEnable)=0 |
| virtual bool | isMouseModeEnabled (const MouseMode *pMouseMode) const =0 |
| virtual void | translateWorldToScreen (double dWorldX, double dWorldY, double &dScreenX, double &dScreenY, bool *pVisible=NULL) const =0 |
| virtual void | translateScreenToWorld (double dScreenX, double dScreenY, double &dWorldX, double &dWorldY) const =0 |
| virtual double | getPixelSize (const LocationType &lowerLeft, const LocationType &upperRight) const =0 |
| virtual bool | isUndoBlocked () const =0 |
| virtual bool | inUndoGroup () const =0 |
| virtual void | addUndoAction (UndoAction *pAction)=0 |
| virtual void | clearUndo ()=0 |
Static Public Member Functions | |
| static ColorType | getSettingBackgroundColor () |
| static bool | hasSettingBackgroundColor () |
| static void | setSettingBackgroundColor (ColorType newValue, bool setIfSame=false) |
| static std::string | getSettingBackgroundColorKey () |
| static DataOrigin | getSettingDataOrigin () |
| static bool | hasSettingDataOrigin () |
| static void | setSettingDataOrigin (DataOrigin newValue, bool setIfSame=false) |
| static std::string | getSettingDataOriginKey () |
| static bool | getSettingInsetShowCoordinates () |
| static bool | hasSettingInsetShowCoordinates () |
| static void | setSettingInsetShowCoordinates (bool newValue, bool setIfSame=false) |
| static std::string | getSettingInsetShowCoordinatesKey () |
| static unsigned int | getSettingInsetSize () |
| static bool | hasSettingInsetSize () |
| static void | setSettingInsetSize (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingInsetSizeKey () |
| static unsigned int | getSettingInsetZoom () |
| static bool | hasSettingInsetZoom () |
| static void | setSettingInsetZoom (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingInsetZoomKey () |
| static InsetZoomMode | getSettingInsetZoomMode () |
| static bool | hasSettingInsetZoomMode () |
| static void | setSettingInsetZoomMode (InsetZoomMode newValue, bool setIfSame=false) |
| static std::string | getSettingInsetZoomModeKey () |
| static int | getSettingMousePanSensitivity () |
| static bool | hasSettingMousePanSensitivity () |
| static void | setSettingMousePanSensitivity (int newValue, bool setIfSame=false) |
| static std::string | getSettingMousePanSensitivityKey () |
| static unsigned int | getSettingPixelValueMinimumFontSize () |
| static bool | hasSettingPixelValueMinimumFontSize () |
| static void | setSettingPixelValueMinimumFontSize (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingPixelValueMinimumFontSizeKey () |
| static unsigned int | getSettingPixelValueMaximumFontSize () |
| static bool | hasSettingPixelValueMaximumFontSize () |
| static void | setSettingPixelValueMaximumFontSize (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingPixelValueMaximumFontSizeKey () |
| static bool | getSettingDisplayCrosshair () |
| static bool | hasSettingDisplayCrosshair () |
| static void | setSettingDisplayCrosshair (bool newValue, bool setIfSame=false) |
| static std::string | getSettingDisplayCrosshairKey () |
| static ColorType | getSettingCrosshairColor () |
| static bool | hasSettingCrosshairColor () |
| static void | setSettingCrosshairColor (ColorType newValue, bool setIfSame=false) |
| static std::string | getSettingCrosshairColorKey () |
| static bool | getSettingCrosshairBlend () |
| static bool | hasSettingCrosshairBlend () |
| static void | setSettingCrosshairBlend (bool newValue, bool setIfSame=false) |
| static std::string | getSettingCrosshairBlendKey () |
| static int | getSettingCrosshairSize () |
| static bool | hasSettingCrosshairSize () |
| static void | setSettingCrosshairSize (int newValue, bool setIfSame=false) |
| static std::string | getSettingCrosshairSizeKey () |
| static unsigned int | getSettingCrosshairWidth () |
| static bool | hasSettingCrosshairWidth () |
| static void | setSettingCrosshairWidth (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingCrosshairWidthKey () |
| static bool | getSettingUseViewResolution () |
| static bool | hasSettingUseViewResolution () |
| static void | setSettingUseViewResolution (bool newValue, bool setIfSame=false) |
| static std::string | getSettingUseViewResolutionKey () |
| static bool | getSettingAspectRatioLock () |
| static bool | hasSettingAspectRatioLock () |
| static void | setSettingAspectRatioLock (bool newValue, bool setIfSame=false) |
| static std::string | getSettingAspectRatioLockKey () |
| static unsigned int | getSettingOutputWidth () |
| static bool | hasSettingOutputWidth () |
| static void | setSettingOutputWidth (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingOutputWidthKey () |
| static unsigned int | getSettingOutputHeight () |
| static bool | hasSettingOutputHeight () |
| static void | setSettingOutputHeight (unsigned int newValue, bool setIfSame=false) |
| static std::string | getSettingOutputHeightKey () |
| static LinkType | getSettingLinkType () |
| static bool | hasSettingLinkType () |
| static void | setSettingLinkType (LinkType newValue, bool setIfSame=false) |
| static std::string | getSettingLinkTypeKey () |
| static const std::string & | signalSelectionBoxChanged () |
| static const std::string & | signalRenamed () |
| static const std::string & | signalClassificationChanged () |
| static const std::string & | signalClassificationTextChanged () |
| static const std::string & | signalClassificationFontChanged () |
| static const std::string & | signalClassificationColorChanged () |
| static const std::string & | signalBackgroundColorChanged () |
| static const std::string & | signalOriginChanged () |
| static const std::string & | signalMouseModeChanged () |
| static const std::string & | signalMousePanEnabled () |
| static const std::string & | signalExtentsChanged () |
| static const std::string & | signalAboutToShowContextMenu () |
Protected Member Functions | |
| virtual | ~View () |
| virtual void | blockUndo ()=0 |
| virtual void | unblockUndo ()=0 |
| virtual void | startUndoGroup (const std::string &text)=0 |
| virtual void | endUndoGroup ()=0 |
Classes | |
| class | SubImageIterator |
| This class accesses portions of a view image. More... | |
This class is a base class containing common functionality to display data to the user. A view is actually a widget has a name and a type, and classification. Zooming and panning functionality is provided, along with capability to link other views to this view and to set other display features.
When the user right-clicks in the view, a context menu is invoked allowing the user to change the display characteristics of the view.
This subclass of Subject will notify upon the following conditions:
Definition at line 51 of file View.h.
| virtual View::~View | ( | ) | [protected, virtual] |
This should be destroyed by calling DesktopServices::deleteView.
| static ColorType View::getSettingBackgroundColor | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingBackgroundColor | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingBackgroundColor | ( | ColorType | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingBackgroundColorKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static DataOrigin View::getSettingDataOrigin | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingDataOrigin | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingDataOrigin | ( | DataOrigin | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingDataOriginKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static bool View::getSettingInsetShowCoordinates | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingInsetShowCoordinates | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingInsetShowCoordinates | ( | bool | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingInsetShowCoordinatesKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingInsetSize | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingInsetSize | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingInsetSize | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingInsetSizeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingInsetZoom | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingInsetZoom | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingInsetZoom | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingInsetZoomKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static InsetZoomMode View::getSettingInsetZoomMode | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingInsetZoomMode | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingInsetZoomMode | ( | InsetZoomMode | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingInsetZoomModeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static int View::getSettingMousePanSensitivity | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingMousePanSensitivity | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingMousePanSensitivity | ( | int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingMousePanSensitivityKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingPixelValueMinimumFontSize | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingPixelValueMinimumFontSize | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingPixelValueMinimumFontSize | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingPixelValueMinimumFontSizeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingPixelValueMaximumFontSize | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingPixelValueMaximumFontSize | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingPixelValueMaximumFontSize | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingPixelValueMaximumFontSizeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static bool View::getSettingDisplayCrosshair | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingDisplayCrosshair | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingDisplayCrosshair | ( | bool | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingDisplayCrosshairKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static ColorType View::getSettingCrosshairColor | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingCrosshairColor | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingCrosshairColor | ( | ColorType | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingCrosshairColorKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static bool View::getSettingCrosshairBlend | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingCrosshairBlend | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingCrosshairBlend | ( | bool | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingCrosshairBlendKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static int View::getSettingCrosshairSize | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingCrosshairSize | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingCrosshairSize | ( | int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingCrosshairSizeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingCrosshairWidth | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingCrosshairWidth | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingCrosshairWidth | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingCrosshairWidthKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static bool View::getSettingUseViewResolution | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingUseViewResolution | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingUseViewResolution | ( | bool | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingUseViewResolutionKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static bool View::getSettingAspectRatioLock | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingAspectRatioLock | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingAspectRatioLock | ( | bool | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingAspectRatioLockKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingOutputWidth | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingOutputWidth | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingOutputWidth | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingOutputWidthKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static unsigned int View::getSettingOutputHeight | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingOutputHeight | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingOutputHeight | ( | unsigned int | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingOutputHeightKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static LinkType View::getSettingLinkType | ( | ) | [static] |
Returns the current value for this setting.
If this setting does not exist in ConfigurationSettings, a verification error will be logged to the message log and potentially a verification error message box will be displayed to the user.
Please see Settings Macros for more details
| static bool View::hasSettingLinkType | ( | ) | [static] |
Returns true if this setting exists and has a value in ConfigurationSettings.
Please see Settings Macros for more details
true if this setting exists, false otherwise. | static void View::setSettingLinkType | ( | LinkType | newValue, | |
| bool | setIfSame = false | |||
| ) | [static] |
Changes the current value of this setting to the new value.
Please see Settings Macros for more details
| newValue | the new value for this setting. | |
| setIfSame | If true, the value will be set into ConfigurationSettings even if the newValue and existing value are the same. This has the side-effect of making the value a per-user setting and stored in the user's configuration file. If false, this value will only be set if the newValue and existing value are different. Therefore the value will only be stored in the user's configuration file if the newValue is unique to the user. |
| static std::string View::getSettingLinkTypeKey | ( | ) | [static] |
Returns the key for this setting that could be passed to ConfigurationSettings::getSetting() or ConfigurationSettings::setSetting().
Please see Settings Macros for more details
| static const std::string& View::signalSelectionBoxChanged | ( | ) | [static] |
| static const std::string& View::signalRenamed | ( | ) | [static] |
| static const std::string& View::signalClassificationChanged | ( | ) | [static] |
Emitted with boost::any<const Classification*> when the classification changes.
| static const std::string& View::signalClassificationTextChanged | ( | ) | [static] |
Emitted when the displayed classification text changes as a result of a classification change with boost::any<std::string> containing the new classification text.
This signal will not always be emitted when the signalClassificationChanged() signal is emitted as a result of a classification change, if the modified classification parameters do not appear in the displayed text.
| static const std::string& View::signalClassificationFontChanged | ( | ) | [static] |
| static const std::string& View::signalClassificationColorChanged | ( | ) | [static] |
| static const std::string& View::signalBackgroundColorChanged | ( | ) | [static] |
| static const std::string& View::signalOriginChanged | ( | ) | [static] |
| static const std::string& View::signalMouseModeChanged | ( | ) | [static] |
| static const std::string& View::signalMousePanEnabled | ( | ) | [static] |
| static const std::string& View::signalExtentsChanged | ( | ) | [static] |
| static const std::string& View::signalAboutToShowContextMenu | ( | ) | [static] |
Emitted with boost::any<ContextMenu*> when the user right-clicks to invoke a context menu.
This signal provides a means by which an object can be notified when a context menu is invoked by the user clicking inside a view. To receive notification for when a context menu is invoked when the user clicks on any session item, attach to the DesktopServices::signalAboutToShowContextMenu() signal instead.
This signal is emitted after getContextMenuActions() is called and after the DesktopServices::signalAboutToShowContextMenu() signal is emitted, but before the context menu is shown to give attached objects a chance to add or modify the context menu that will be displayed to the user.
The ContextMenu pointer value is guaranteed to be non-NULL. The session items vector in the context menu contains the view.
| virtual void View::setName | ( | const std::string & | viewName | ) | [pure virtual] |
Sets the view name.
| viewName | The new name for the view. Cannot be empty. |
| virtual ViewType View::getViewType | ( | ) | const [pure virtual] |
| virtual QWidget* View::getWidget | ( | ) | const [pure virtual] |
Returns the widget that displays the view.
This method returns the Qt widget that displays the view. This can be used to add the view to a custom dialog or widget if it is not already contained in a ViewWindow.
NULL is returned if the widget cannot be accessed. | virtual void View::setBackgroundColor | ( | const ColorType & | backgroundColor | ) | [pure virtual] |
Sets the background color of the view.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| backgroundColor | The new background color. Must be a valid color. |
| virtual ColorType View::getBackgroundColor | ( | ) | const [pure virtual] |
Returns the background color of the view.
| virtual void View::setClassification | ( | const Classification * | pClassification | ) | [pure virtual] |
Sets the classification of the view.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| pClassification | The classification for the view. A deep copy is performed so it is the responsibility of the calling object to delete the given Classification object when necessary. This method does nothing if NULL is passed in. |
| virtual Classification* View::getClassification | ( | ) | [pure virtual] |
Returns a pointer to the view's classification object.
The classification object documents how the data in the view is to be handled and/or restricted.
| virtual const Classification* View::getClassification | ( | ) | const [pure virtual] |
Returns read-only access to the view's classification object.
The classification object documents how the data in the view is to be handled and/or restricted.
| virtual PositionType View::getClassificationPosition | ( | ) | const [pure virtual] |
Returns the position for the classification markings.
| virtual void View::setClassificationPosition | ( | PositionType | position | ) | [pure virtual] |
Sets the position of the classification markings in the view.
| position | An enum that designates the positions for the top and bottom classification markings. |
| virtual std::string View::getClassificationText | ( | ) | const [pure virtual] |
Retrieves a text string containing the classification markings.
| virtual void View::enableClassification | ( | bool | enable | ) | [pure virtual] |
Enables/disables display of classification markings.
| enable | If true (the default), classification markings are displayed on the view. If false, classification markings are not displayed. |
| virtual void View::setDataOrigin | ( | const DataOrigin & | dataOrigin | ) | [pure virtual] |
Sets the data origin location in the view.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| dataOrigin | The new origin location of the world coordinate system. |
| virtual DataOrigin View::getDataOrigin | ( | ) | const [pure virtual] |
Returns the data origin location.
| virtual bool View::addMouseMode | ( | MouseMode * | pMouseMode | ) | [pure virtual] |
Registers a new mouse mode.
| pMouseMode | The mouse mode to register with the view. Cannot be NULL. The mouse mode name must be unique for all mouse modes registered with the view. |
| virtual bool View::setMouseMode | ( | MouseMode * | pMouseMode | ) | [pure virtual] |
Sets the current mouse mode.
| pMouseMode | The new mouse mode. |
| virtual bool View::setMouseMode | ( | const std::string & | modeName | ) | [pure virtual] |
Sets the current mouse mode.
This method serves as a convenience function to set the mouse mode. It sets the mouse mode based on the mode name.
| modeName | The name for the mouse mode to set for the view. Cannot be empty. |
| virtual bool View::containsMouseMode | ( | MouseMode * | pMouseMode | ) | const [pure virtual] |
Queries whether a given mouse mode is registered with the view.
| pMouseMode | The mouse mode to query. |
| virtual MouseMode* View::getMouseMode | ( | const std::string & | modeName | ) | const [pure virtual] |
Returns the mouse mode with a given name.
| modeName | The name for the mouse mode to get. Cannot be empty. |
NULL is returned if the view does not contain a mouse mode with the given name. | virtual MouseMode* View::getCurrentMouseMode | ( | ) | const [pure virtual] |
Returns the current mouse mode.
NULL is returned if the view does not contain any mouse modes, or if no mode is considered current. | virtual void View::getMouseModes | ( | std::vector< MouseMode * > & | modes | ) | const [pure virtual] |
Retrieves all mouse modes registered with the view.
| modes | Populated with pointers to the registered mouse modes. |
| virtual AnimationController* View::getAnimationController | ( | ) | const [pure virtual] |
Retrieves the animation controller associated with the view.
NULL if there is no associated AnimationController| virtual void View::setAnimationController | ( | AnimationController * | pPlayer | ) | [pure virtual] |
Associates an animation controller with the view.
| pPlayer | The AnimationController to associate with the view. |
| virtual unsigned int View::getNumMouseModes | ( | ) | const [pure virtual] |
Returns the number of registered mouse mode.
| virtual void View::getExtents | ( | double & | dMinX, | |
| double & | dMinY, | |||
| double & | dMaxX, | |||
| double & | dMaxY | |||
| ) | const [pure virtual] |
Retrieves the data extents in world coordinates.
| dMinX | The minimum data value in the X dimension. | |
| dMinY | The minimum data value in the Y dimension. | |
| dMaxX | The maximum data value in the X dimension. | |
| dMaxY | The maximum data value in the Y dimension. |
| virtual void View::getVisibleCorners | ( | LocationType & | lowerLeft, | |
| LocationType & | upperLeft, | |||
| LocationType & | upperRight, | |||
| LocationType & | lowerRight | |||
| ) | const [pure virtual] |
Retrieves the corner coordinates of the visible view area.
| lowerLeft | A LocationType that is populated with the lower left coordinate. | |
| upperLeft | A LocationType that is populated with the upper left coordinate. | |
| upperRight | A LocationType that is populated with the upper right coordinate. | |
| lowerRight | A LocationType that is populated with the lower right coordinate. |
| virtual LocationType View::getVisibleCenter | ( | ) | const [pure virtual] |
Returns the coordinate at the current visible center of the view.
| virtual void View::zoomExtents | ( | ) | [pure virtual] |
Zooms the image to the data extents.
This method zooms the view out so that the entire extents of the data are displayed.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| virtual void View::zoomToBox | ( | const LocationType & | lowerLeft, | |
| const LocationType & | upperRight | |||
| ) | [pure virtual] |
Zooms the image to a defined rectangular area.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| lowerLeft | The lower left location of the view in world coordinates. | |
| upperRight | The upper right location of the view in world coordinates. |
| virtual void View::panTo | ( | const LocationType & | worldCoord | ) | [pure virtual] |
Centers the image on a given point.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| worldCoord | The point to pan to the center of the view in world coordinates. |
| virtual void View::panToCenter | ( | ) | [pure virtual] |
| virtual void View::panBy | ( | double | dDeltaX, | |
| double | dDeltaY | |||
| ) | [pure virtual] |
Moves the image by a given distance.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
| dDeltaX | The X distance from which to pan the view from its current location in world coordinates. | |
| dDeltaY | The Y distance from which to pan the view from its current location in world coordinates. |
| virtual bool View::enableInset | ( | bool | bEnable | ) | [pure virtual] |
Toggles the display of a dynamic inset window.
This methods toggles the display of a dynamic inset window, which appears on top of the view. The window displays a portion of the view at a different zoom and level than the view. The default size and zoom level of the inset window are specified in the Options.
| bEnable | Set this value to TRUE to display the inset window or to FALSE to hide the inset window. |
| virtual bool View::isInsetEnabled | ( | ) | const [pure virtual] |
Queries whether the dynamic inset window is enabled.
| virtual void View::setInsetPoint | ( | const LocationType & | worldCoord | ) | [pure virtual] |
Sets the center of the dynamic inset window.
| worldCoord | The new inset center point in world coordinates. |
| virtual bool View::enableCrossHair | ( | bool | bEnable | ) | [pure virtual] |
Toggles the display of the view crosshair.
This methods toggles the display of a crosshair marker in the center of the view.
| bEnable | Set this value to true to display the crosshair in the view or to false to hide the crosshair. |
true if the crosshair was successfully enabled or disabled, or false if the crosshair is not supported by the view. | virtual bool View::isCrossHairEnabled | ( | ) | const [pure virtual] |
Queries whether the view crosshair is enabled.
true if the crosshair is currently enabled, whereby it is drawn in the center of the view, or false if the crosshair is currently disabled. | virtual void View::setCrossHairColor | ( | const ColorType & | color | ) | [pure virtual] |
Sets the crosshair color in the view.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
Calling this method still sets the crosshair color, even if isCrossHairEnabled() returns false.
| color | The new crosshair color. This method does nothing if an invalid color is passed in. |
| virtual ColorType View::getCrossHairColor | ( | ) | const [pure virtual] |
Returns the crosshair color.
| virtual void View::setCrossHairBlended | ( | bool | blended | ) | [pure virtual] |
Sets the crosshair color to be blended with the view color.
Enabling the blended state combines the crosshair color with the color in the view just behind the crosshair to provide enough contrast for the crosshair to always be visible.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
Calling this method still sets the crosshair blended state, even if isCrossHairEnabled() returns false.
| blended | Set this value to true to enable blending the crosshair color with the color in the view just behind the crosshair. Set this value to false to display the crosshair as a solid color, regardless of the view color. |
| virtual bool View::isCrossHairBlended | ( | ) | const [pure virtual] |
Returns the blended state when drawing the crosshair.
true if the crosshair color will be blended with the view color when drawn. Returns false if the crosshair is drawn as a solid color regardless of the view color.| virtual void View::setCrossHairSize | ( | int | size | ) | [pure virtual] |
Sets the overall width and height of the crosshair in the view in screen pixels.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
Calling this method still sets the crosshair size, even if isCrossHairEnabled() returns false.
| size | The crosshair width and height in screen pixels. This method does nothing if a value less than one is passed in. |
| virtual int View::getCrossHairSize | ( | ) | const [pure virtual] |
Returns the crosshair size.
| virtual void View::setCrossHairWidth | ( | unsigned int | width | ) | [pure virtual] |
Sets the line width of the crosshair in the view.
This method does not call refresh() so that multiple calls to modify view settings can be made without refreshing the view after each modification.
Calling this method still sets the crosshair line width, even if isCrossHairEnabled() returns false.
| width | The crosshair line width in screen pixels. This method does nothing if a value of zero is passed in. |
| virtual unsigned int View::getCrossHairWidth | ( | ) | const [pure virtual] |
Returns the crosshair line width.
| virtual void View::refresh | ( | ) | [pure virtual] |
Redraws the current contents of the view.
| virtual bool View::getCurrentImage | ( | QImage & | image | ) | [pure virtual] |
Retrieves an image of the current view state.
This method retrieves the data for the current image as displayed in the view. This is similar to taking a screen snapshot of the view.
| image | A Qt image reference that is populated with the current view image. If a null image is passed in, the size of the image will be equal to the size of the view in screen pixels. Otherwise, the view will be scaled to the image size when generating the image data. If a size is specified, the QImage should use QImage::Format_ARGB32. If the format is different, the QImage will be converted to QImage::Format_ARGB32. |
true if a valid image was successfully retrieved, otherwise returns false. | virtual SubImageIterator* View::getSubImageIterator | ( | const QSize & | totalSize, | |
| const QSize & | subImageSize | |||
| ) | [pure virtual] |
Retrieves an iterator over sub-images of the current view state.
This method is similar to getCurrentImage(QImage&) except it obtains an iterator which accesses sub-sections of the view. This is used for "pan and scan" image generation. The caller takes ownership of the SubImageIterator and MUST delete the SubImageIterator when it is no longer needed. When a SubImageIterator exists for a view, another can not be created and no other view operations should be performed.
| totalSize | This is the size of the entire image. If all the generated sub-images are stitched together, they will make an image this size. | |
| subImageSize | This is the size of each sub-image. |
Links a view with this view.
This method establishes a link between this view and another view. Linked views are linked depending on the link type specified.
| pView | The view to link with this view. Cannot be NULL. | |
| type | The type of link to create. Specifying NO_LINK is equivilent to calling unlinkView(). |
| virtual void View::getLinkedViews | ( | std::vector< std::pair< View *, LinkType > > & | linkedViews | ) | const [pure virtual] |
Retrieves views linked with this view.
| linkedViews | A reference to a vector that is populated with pointers to views linked with this view and the associated link type. If no views are linked, the vector is emptied. |
Queries what kind of link a view has with this view.
| pView | The view to query for linkage with this view. |
| virtual bool View::unlinkView | ( | View * | pView | ) | [pure virtual] |
Breaks the link between this view and a given view.
| pView | The view to unlink with this view. Cannot be NULL. |
| virtual View* View::copy | ( | ) | const [pure virtual] |
Creates a new view with the same settings and properties as this view.
This is designed to copy an existing view into a product view object. This method will not create a new window.
NULL is returned if an error occurs. | virtual bool View::copy | ( | View * | pView | ) | const [pure virtual] |
Copies view settings and properties to an existing view.
This performs a shallow copy into an existing view. The common use case is to create a new window/view and copy the settings of an existing view. This creates a duplicate but independent view into the same data.
| pView | The target view. |
| virtual bool View::removeMouseMode | ( | const MouseMode * | pMouseMode | ) | [pure virtual] |
Removes an existing mouse mode.
This method removes the given mouse mode from the view regardless of whether the mode is enabled or disabled. The mouse mode is not deleted.
| pMouseMode | The mouse mode to remove from the view. |
| virtual void View::enableMouseMode | ( | const MouseMode * | pMouseMode, | |
| bool | bEnable | |||
| ) | [pure virtual] |
Enables or disables a mouse mode.
This method enables or disabled the given mouse mode from the view. A disabled mouse mode cannot be made current with the setMouseMode() method.
| pMouseMode | The mouse mode to enable or disable. This method does nothing if the view does not contain the given mouse mode. | |
| bEnable | Set this parameter to true to enable the mouse mode or to false to disable the mouse mode. |
| virtual bool View::isMouseModeEnabled | ( | const MouseMode * | pMouseMode | ) | const [pure virtual] |
Queries whether a mouse mode is currently enabled or disabled.
This method removes the given mouse mode from the view regardless of whether the mode is enabled or disabled. The mouse mode is not deleted.
| pMouseMode | The mouse mode to query whether it is enabled or disabled. |
| virtual void View::translateWorldToScreen | ( | double | dWorldX, | |
| double | dWorldY, | |||
| double & | dScreenX, | |||
| double & | dScreenY, | |||
| bool * | pVisible = NULL | |||
| ) | const [pure virtual] |
Retrieves a screen coordinate for a given world coordinate.
This method converts a world coordinate into a screen coordinate. The world coordinate is the linear coordinate system used internally to draw the data, which is typically the same coodinate system as the data itself. The screen coordinate is the location relative to the view widget with the origin being in the lower left corner.
| dWorldX | The x-position of the world coordinate. The value does not need to be within the view extents. | |
| dWorldY | The y-position of the world coordinate. The value does not need to be within the view extents. | |
| dScreenX | Populated with the screen x-coordinate of the given world coordinate. A negative value indicates that the world coordinate is not currently displayed in the view widget. | |
| dScreenY | Populated with the screen y-coordinate of the given world coordinate. A negative value indicates that the world coordinate is not currently displayed in the view widget. | |
| pVisible | If this value is non-NULL, the pointer is populated with a value indicating whether the given world coordinate is visible with the current view widget. |
| virtual void View::translateScreenToWorld | ( | double | dScreenX, | |
| double | dScreenY, | |||
| double & | dWorldX, | |||
| double & | dWorldY | |||
| ) | const [pure virtual] |
Retrieves a world coordinate for a given screen coordinate.
This method converts an OpenGL screen coordinate into a world coordinate. The OpenGL screen coordinate is the location relative to the view widget with the origin being in the lower left corner. To determine the correct dScreenY value, the mouse event y-coordinate must be subtracted from the view height,e.g., dScreenY = pViewWidget.height() - pMouseEvent.pos().y().
The world coordinate is the linear coordinate system used internally to draw the data, which is typically the same coodinate system as the data itself.
| dScreenX | The x-position of the screen coordinate. The value does not need to be within the view extents. | |
| dScreenY | The y-position of the screen coordinate. The value does not need to be within the view extents. | |
| dWorldX | Populated with the world x-coordinate of the given screen coordinate. | |
| dWorldY | Populated with the world y-coordinate of the given screen coordinate. |
| virtual double View::getPixelSize | ( | const LocationType & | lowerLeft, | |
| const LocationType & | upperRight | |||
| ) | const [pure virtual] |
Returns the number of screen pixels that cover a given range of world pixels.
double pixelSize = pPerspectiveView->getPixelSize(llCorner, urCorner); double pixelSizeX = pixelSize * pPerspectiveView->getPixelAspect(); double pixelSizeY = pixelSize;
| lowerLeft | The world coordinate closest to the origin. | |
| upperRight | The world coordinate furthest from the origin. |
| virtual bool View::isUndoBlocked | ( | ) | const [pure virtual] |
Queries whether undo actions are able to be added to the view's undo stack.
true if undo actions cannot be added to the undo stack, or false if undo actions are added to the stack.| virtual bool View::inUndoGroup | ( | ) | const [pure virtual] |
Queries whether undo actions are currently added to an undo group.
true if undo actions are added to an undo group, or false if undo actions are added directly to the stack.| virtual void View::addUndoAction | ( | UndoAction * | pAction | ) | [pure virtual] |
Adds an action to the undo stack.
This method add the given action to the undo stack. If startUndoGroup() has been called without a corresponding call to endUndoGroup() the action is added to the group.
This method only needs to be called from a plug-in if adding custom undo actions defined in the plug-in.
| pAction | The action to add to the undo stack. The view assumes ownership of the action and will delete it when necessary. If isUndoBlocked() returns true, this method deletes the given action immediately. |
| virtual void View::clearUndo | ( | ) | [pure virtual] |
Clears the undo stack.
This method removes all undo actions from the undo stack regardless of whether adding undo actions is blocked. If inUndoGroup() returns true, any actions existing in the group are destroyed.
| virtual void View::blockUndo | ( | ) | [protected, pure virtual] |
Prevents undo actions from being added to the view's undo stack.
| virtual void View::unblockUndo | ( | ) | [protected, pure virtual] |
Allows undo actions to be added to the view's undo stack.
| virtual void View::startUndoGroup | ( | const std::string & | text | ) | [protected, pure virtual] |
Instructs the undo stack to add all future undo actions to a group.
| text | The name for the undo action group that will appear to the user. |
| virtual void View::endUndoGroup | ( | ) | [protected, pure virtual] |
Returns the undo stack to normal operations when adding undo actions.