![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Implementation of 2D display console with overlays and scale control functionality. More...
#include <CConsoleGui.h>
Public Types | |
enum | CommandGroupId { CGI_ZOOM = ibase::ICommand::GI_USER + 1 , CGI_SHAPE_EDITOR , CGI_CALIBRATION , CGI_VIEW_CONTROL , CGI_SHAPE_TOOLS } |
typedef iview::CConsoleBase | BaseClass |
![]() | |
enum class | FittingMode { Reset , ScaleToFit , ScaleToFitH , ScaleToFitV , Stretch , PropFill } |
Control fitting mode, to fit area of interest (AOI) to display. More... | |
enum class | ExtraMode { None , FullScreenView , ZoomToFit } |
![]() | |
enum | ChangeFlags { CF_COMMANDS = 0x62b7e8 } |
![]() | |
enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
Public Slots | |
void | OnZoomIn () |
void | OnZoomOut () |
void | OnZoomReset () |
void | OnZoomToFit (bool state) |
void | OnFitContentsToView () |
void | OnPointsNone () |
void | OnPoinsMove () |
void | OnPointsAdd () |
void | OnPointsSub () |
void | OnShowScrollbars (bool state) |
void | OnShowGrid (bool state) |
void | OnShowRuler (bool state) |
void | OnActivateDistanceMeasureTool (bool state) |
void | OnActivatePointMeasureTool (bool state) |
void | OnShowGridInMm (bool state) |
void | OnHScrollbarChanged (int newPos) |
void | OnVScrollbarChanged (int newPos) |
void | UpdateView () |
void | OnStopFullScreen () |
Signals | |
bool | selectionChanged (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state) |
bool | mouseClicked (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr) |
Public Member Functions | |
CConsoleGui (QWidget *parent=nullptr) | |
void | SetShapeStatusInfo (IShapeStatusInfo *shapeStatusInfoPtr) |
Set status info object for the console shapes. | |
bool | IsFullScreenMode () const |
void | SetFullScreenMode (bool isFullScreen) |
void | RetranslateGui () |
virtual const CViewport & | GetView () const |
Get access to internal view implementation. | |
virtual CViewport & | GetViewRef () |
Get access to internal view implementation. | |
virtual void | UpdateCursorInfo (const QString &infoText) |
virtual const ibase::IHierarchicalCommand * | GetCommands () const |
Get list of menu commands. | |
![]() | |
CConsoleBase (QWidget *parent) | |
bool | IsZoomToFit () const |
void | SetZoomToFit (bool state=true) |
FittingMode | GetFitMode () const |
void | SetFitMode (FittingMode mode) |
bool | IsGridVisible () const |
void | SetGridVisible (bool state=true) |
bool | IsRulerVisible () const |
void | SetRulerVisible (bool state=true) |
bool | IsDistanceMeasureToolActive () const |
void | SetDistanceMeasureToolActive (bool state=true) |
bool | IsPointMeasureToolActive () const |
void | SetPointMeasureToolActive (bool state=true) |
bool | IsGridInMm () const |
void | SetGridInMm (bool state=true) |
bool | IsButtonsPanelVisible () const |
void | SetButtonsPanelVisible (bool state=true) |
bool | IsButtonsPanelVertical () const |
void | SetButtonsPanelVertical (bool state=true) |
bool | AreScrollbarsVisible () const |
void | SetScrollbarsVisible (bool state=true) |
bool | AreZoomsVisible () const |
void | SetZoomsVisible (bool state=true) |
bool | IsZoomToFitVisible () const |
void | SetZoomToFitVisible (bool state=true) |
bool | ArePolylineButtonsVisible () const |
void | SetPolylineButtonsVisible (bool state=true) |
bool | AreUserModeButtonsVisible () const |
void | SetUserModeButtonsVisible (bool state=true) |
bool | IsScrollbarsButtonVisible () const |
void | SetScrollbarsButtonVisible (bool state=true) |
bool | IsGridButtonVisible () const |
void | SetGridButtonVisible (bool state=true) |
bool | IsRulerButtonVisible () const |
void | SetRulerButtonVisible (bool state=true) |
bool | IsMmButtonVisible () const |
void | SetMmButtonVisible (bool state=true) |
bool | IsDistanceMeasureButtonVisible () const |
void | SetDistanceMeasureButtonVisible (bool state=true) |
bool | IsPointMeasureButtonVisible () const |
void | SetPointMeasureButtonVisible (bool state=true) |
ExtraMode | GetDoubleClickMode () const |
void | SetDoubleClickMode (ExtraMode mode) |
bool | IsFitReleaseAllowed () const |
void | SetFitReleaseAllowed (bool state=true) |
bool | IsBackgroundActive () const |
Check if background object is present and active. | |
void | UpdateView () |
![]() | |
![]() | |
virtual int | GetSupportedOperations () const |
Get set of flags for supported operations. | |
virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
Copy this object from another one. | |
virtual bool | IsEqual (const IChangeable &object) const |
Compare this object with another object. | |
virtual std::unique_ptr< IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
Make a copy of this object. | |
virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
Reset data to its default state. | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
Protected Member Functions | |
void | UpdateZoomInOutState () |
void | UpdateScrollbarsValues () |
virtual bool | OnWheelEvent (QWheelEvent *eventPtr) |
virtual bool | OnMouseDoubleClickEvent (QEvent *eventPtr) |
virtual bool | OnKeyPressEvent (QKeyEvent *eventPtr) |
virtual void | UpdateEditModeButtons () |
Update state of edit mode buttons. | |
virtual void | UpdateButtonsState () |
Recalculates enabling flags for buttons. | |
virtual void | UpdateComponentsPosition () |
Recalculates position of all components. | |
virtual void | UpdateCommands () |
Recalculate menu commands. | |
virtual bool | OnSelectChange (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state) |
virtual bool | OnViewMouseButton (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr) |
virtual void | OnBoundingBoxChanged () |
virtual bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) |
![]() | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
Protected Attributes | |
iview::CViewport * | m_viewPtr |
Properties | |
bool | ZoomToFit |
bool | GridVisible |
bool | RulerVisible |
bool | DistanceMeasureToolActive |
bool | PointMeasureToolActive |
bool | GridInMm |
bool | ShowButtonPanel |
bool | ButtonPanelVertical |
bool | ScrollbarsVisible |
bool | ZoomButtonsVisible |
bool | ZoomToFitButtonsVisible |
bool | PolylineButtonsVisible |
bool | UserModeButtonsVisible |
bool | ScrollbarsButtonVisible |
bool | GridButtonVisible |
bool | RulerButtonVisible |
bool | MmButtonVisible |
FittingMode | FittingMode |
Additional Inherited Members | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
Implementation of 2D display console with overlays and scale control functionality.
Definition at line 35 of file CConsoleGui.h.
Definition at line 62 of file CConsoleGui.h.
Enumerator | |
---|---|
CGI_ZOOM | |
CGI_SHAPE_EDITOR | |
CGI_CALIBRATION | |
CGI_VIEW_CONTROL | |
CGI_SHAPE_TOOLS |
Definition at line 64 of file CConsoleGui.h.
|
explicit |
|
protectedvirtual |
|
virtual |
Get list of menu commands.
These commands will be integrated in global menu system, independent from actual selected view. For support of normal pull down menu, depth of this tree structure should be at least 3.
Reimplemented from ibase::ICommandsProvider.
|
inlinevirtual |
Get access to internal view implementation.
Implements iview::CConsoleBase.
Definition at line 184 of file CConsoleGui.h.
References m_viewPtr.
|
inlinevirtual |
Get access to internal view implementation.
Implements iview::CConsoleBase.
Definition at line 192 of file CConsoleGui.h.
References m_viewPtr.
bool iview::CConsoleGui::IsFullScreenMode | ( | ) | const |
|
signal |
|
slot |
|
slot |
|
protectedvirtual |
Implements iview::CConsoleBase.
|
slot |
|
slot |
|
protectedvirtual |
|
protectedvirtual |
|
slot |
|
slot |
|
slot |
|
slot |
|
protectedvirtual |
Implements iview::CConsoleBase.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
protectedvirtual |
Implements iview::CConsoleBase.
|
slot |
|
protectedvirtual |
|
slot |
|
slot |
|
slot |
|
slot |
void iview::CConsoleGui::RetranslateGui | ( | ) |
|
signal |
void iview::CConsoleGui::SetFullScreenMode | ( | bool | isFullScreen | ) |
void iview::CConsoleGui::SetShapeStatusInfo | ( | IShapeStatusInfo * | shapeStatusInfoPtr | ) |
Set status info object for the console shapes.
|
protectedvirtual |
Recalculates enabling flags for buttons.
Implements iview::CConsoleBase.
|
protectedvirtual |
Recalculate menu commands.
Implements iview::CConsoleBase.
|
protectedvirtual |
Recalculates position of all components.
Implements iview::CConsoleBase.
|
virtual |
Implements iview::CConsoleBase.
|
protectedvirtual |
Update state of edit mode buttons.
Edit mode buttons controls the mode of interaction with objects. For example for polyline nodes: select, move, insert, remove.
Implements iview::CConsoleBase.
|
protected |
|
slot |
|
protected |
|
protected |
Definition at line 139 of file CConsoleGui.h.
Referenced by GetView(), and GetViewRef().
|
readwrite |
Definition at line 49 of file CConsoleGui.h.
|
readwrite |
Definition at line 45 of file CConsoleGui.h.
|
readwrite |
Definition at line 59 of file CConsoleGui.h.
|
readwrite |
Definition at line 56 of file CConsoleGui.h.
|
readwrite |
Definition at line 47 of file CConsoleGui.h.
|
readwrite |
Definition at line 43 of file CConsoleGui.h.
|
readwrite |
Definition at line 58 of file CConsoleGui.h.
|
readwrite |
Definition at line 46 of file CConsoleGui.h.
|
readwrite |
Definition at line 53 of file CConsoleGui.h.
|
readwrite |
Definition at line 57 of file CConsoleGui.h.
|
readwrite |
Definition at line 44 of file CConsoleGui.h.
|
readwrite |
Definition at line 55 of file CConsoleGui.h.
|
readwrite |
Definition at line 50 of file CConsoleGui.h.
|
readwrite |
Definition at line 48 of file CConsoleGui.h.
|
readwrite |
Definition at line 54 of file CConsoleGui.h.
|
readwrite |
Definition at line 51 of file CConsoleGui.h.
|
readwrite |
Definition at line 42 of file CConsoleGui.h.
|
readwrite |
Definition at line 52 of file CConsoleGui.h.
© Witold Gantzke and Kirill Lepskiy