ACF $AcfVersion:0$
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
iview::CViewport Class Reference

#include <CViewport.h>

Inheritance diagram for iview::CViewport:
iview::CCalibratedViewBase iview::IViewEventObserver iview::CViewBase i2d::ICalibrationProvider iview::IVisualCalibrationInfo iview::IToolsLayerInfo istd::IPolymorphic iview::IShapeView iview::IDraggable iview::IMouseActionObserver istd::IChangeable istd::IChangeable istd::IChangeable iview::IDisplay iview::ISelectable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic iview::IShapeObserver iview::ITouchable istd::IPolymorphic istd::IPolymorphic

Public Types

typedef CCalibratedViewBase BaseClass
 
typedef QWidget BaseClass2
 
- Public Types inherited from iview::CCalibratedViewBase
typedef CViewBase BaseClass
 
- Public Types inherited from iview::CViewBase
enum  ZoomMode {
  ZM_RESET , ZM_ZOOM_IN , ZM_ZOOM_OUT , ZM_FIT ,
  ZM_FIT_COVER , ZM_FIT_UNPROP , ZM_FIT_H , ZM_FIT_V
}
 
- Public Types inherited from iview::IShapeView
typedef IShapeObserver BaseClass
 
- Public Types inherited from iview::IDisplay
enum  ChangeFlags {
  CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE ,
  CF_DISPLAY_MODE , CS_CONSOLE
}
 Define possible display change flags. More...
 
- Public Types inherited from iview::ISelectable
enum  MousePointerMode {
  MPM_NONE , MPM_DEFAULT , MPM_DESELECT , MPM_POINTER ,
  MPM_WAIT , MPM_CROSS , MPM_HAND , MPM_DRAG ,
  MPM_SCREEN_MOVE , MPM_ADD , MPM_LAST
}
 Defines possible states of mouse pointer. More...
 
enum  EditMode {
  EM_NONE = 0 , EM_MOVE = 1 , EM_ADD = 2 , EM_REMOVE = 3 ,
  EM_LAST = 100
}
 Describes standard edit modes. More...
 
enum  DisplayMode { DM_DEFAULT = 0 }
 Describes standard display modes. More...
 
typedef QSet< IInteractiveShape * > SelectedShapes
 
- Public Types inherited from iview::ITouchable
enum  TouchState {
  TS_NONE , TS_INACTIVE , TS_TICKER , TS_DRAGGABLE ,
  TS_AREA , TS_OTHER , TS_LAST = TS_OTHER
}
 Enumeration for possible shape touch states. More...
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_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
}
 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...
 
typedef QMultiMap< QByteArray, QVariant > ChangeInfoMap
 

Signals

void ShapesChanged ()
 Called when some shapes has been changed.
 
void BoundingBoxChanged ()
 

Public Member Functions

 CViewport (CConsoleBase *framePtr, QWidget *parent=NULL)
 
virtual ~CViewport ()
 
CConsoleBaseGetFramePtr () const
 
void UpdateFitTransform ()
 
bool MoveViewBy (int dx, int dy)
 
void SetShowInfoText (bool on)
 
void SetMousePointerCursor (int mode, const QCursor &cursor)
 
virtual void SetEditMode (int mode)
 Changes the edit mode.
 
virtual void SetFitArea (const i2d::CRectangle &area) override
 Set area used for fitting of the view contents.
 
virtual i2d::CRect GetClientRect () const override
 Get bounding box of client area.
 
virtual void Update () override
 Updates all invalidates shapes.
 
virtual bool OnSelectChange (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state) override
 Event handler for selection changes.
 
virtual bool OnViewMouseButton (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr) override
 Event handler for mouse button click.
 
virtual bool OnViewMouseMove (const iview::IShapeView &view, const istd::CIndex2d &position) override
 Event handler for mouse move event.
 
virtual bool OnMouseMove (istd::CIndex2d position) override
 It is called, when mouse is moved.
 
virtual void ConnectCalibrationShape (iview::IShape *shapePtr) override
 Connect visualisation shape for calibration object.
 
- Public Member Functions inherited from iview::CCalibratedViewBase
 CCalibratedViewBase ()
 
void SetDisplayCalibration (const i2d::ICalibration2d *calibrationPtr)
 Set calibration using to display logical coordinates.
 
virtual void SetGridVisible (bool state=true)
 Set grid visibility state.
 
virtual void SetDistanceMeasureToolActive (bool state=true)
 Set distance measure tool active.
 
virtual void SetPointMeasureToolActive (bool state=true)
 Set point measure tool active.
 
virtual void ConnectToolShape (iview::IShape *shapePtr)
 Connect visualisation shape for ruler object.
 
void SetMinGridDistance (double gridDistance)
 Set minimal grid size.
 
void SetGridInMm (bool state=true)
 Set if grid should be shown in milimeter.
 
const iview::IViewLayerGetCalibrationLayer () const
 Get default calibration layer.
 
const iview::IViewLayerGetToolsLayer () const
 Get default tools layer.
 
void SetDefaultColorSchema (const IColorSchema *colorSchemaPtr, bool releaseFlag=false)
 Set default color schema object.
 
bool IsBackgroundBufferActive () const
 
void SetBackgroundBufferActive (bool state=true)
 
bool IsDoubleBufferActive () const
 
void SetDoubleBufferActive (bool state=true)
 
const iview::CDrawBufferGetBackgroundBuffer () const
 
iview::CDrawBufferGetBackgroundBuffer ()
 
const iview::CDrawBufferGetDoubleBuffer () const
 
iview::CDrawBufferGetDoubleBuffer ()
 
void CheckResize ()
 Check if size size was changed and invalidation and OnResize() should be done.
 
virtual const iview::IColorSchemaGetDefaultColorSchema () const override
 
virtual void UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void InsertDefaultLayers () override
 
virtual int InsertLayer (iview::IViewLayer *layerPtr, int index=-1, int layerType=IViewLayer::LT_NONE) override
 Insert layer to view.
 
virtual void RemoveLayer (int index) override
 Remove layer from view.
 
virtual bool IsGridVisible () const override
 Check if grid is visible.
 
virtual double GetMinGridDistance () const override
 Get minimal distance between grid lines.
 
virtual bool IsGridInMm () const override
 Check if grid should be shown in milimeter.
 
virtual bool IsDistanceMeasureToolActive () const override
 Check if the distance measuring is active.
 
virtual bool IsPointMeasureToolActive () const override
 Check if the point measuring is active.
 
virtual const i2d::ICalibration2dGetCalibration () const override
 Get access to transformation object, which transforms a local logical coordinate system to global one.
 
virtual void InvalidateBackground ()
 Invalidate whole background buffer.
 
- Public Member Functions inherited from iview::CViewBase
 CViewBase ()
 
virtual ~CViewBase ()
 
void SetExternalScreenTransform (const istd::TSmartPtr< iview::CScreenTransform > &screenTransformPtr)
 
void CenterTo (const iview::IShape &shape)
 Zooms the view to the given shape.
 
int GetBackgroundLayerIndex () const
 Get index of default background layer.
 
int GetInactiveLayerIndex () const
 Get index of default inactive layer.
 
int GetActiveLayerIndex () const
 Get index of default active layer.
 
virtual void AddViewEventObserver (iview::IViewEventObserver *listenerPtr) override
 Add/remove external event observers.
 
virtual void RemoveViewEventObserver (iview::IViewEventObserver *listenerPtr) override
 
virtual void SetZoom (ZoomMode zoom)
 
virtual void SetDisplayMode (int mode) override
 Changes the display mode.
 
virtual void SetScreenPosition (const i2d::CVector2d &client, istd::CIndex2d screen)
 
virtual const i2d::CRectangleGetFitArea () const
 
virtual void SetViewDraggable (bool state=true)
 
virtual void SetMultiselectable (bool state=true)
 
virtual void SetDraggable (bool state=true)
 
virtual bool IsViewDraggable () const override
 Check if is draggable mode.
 
virtual bool IsMultiselectable () const override
 Check, if it is possible to select more than one shape.
 
virtual int GetLayerIndex (const IViewLayer &layer) const override
 Get index of layer.
 
virtual int GetLayerIndex (int layerType) const override
 Get index of layer by type.
 
virtual int GetLayersCount () const override
 Get count of layer in this view.
 
virtual IViewLayerGetLayer (int index) const override
 Get layer with the given index.
 
virtual bool ConnectShape (IShape *shapePtr) override
 Connect shape object to view.
 
virtual ISelectableLayerGetFocusedLayerPtr () const override
 Get focused layer.
 
virtual void OnLayerShapeFocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr) override
 Called when shape in layer get focus.
 
virtual void OnLayerShapeDefocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr) override
 Called when shape in layer loose focus.
 
virtual void OnLayerInvalidated (const IViewLayer &layer, const i2d::CRect &prevArea, const i2d::CRect &newArea) override
 Inform that layer was invalidated.
 
virtual int GetSelectedShapesCount () const override
 Get count of selected shapes.
 
virtual void InsertSelectedShapes (SelectedShapes &result) const override
 Get set of selected shapes.
 
virtual void DeselectAllShapes () override
 Set all shapes to be deselected.
 
virtual int GetKeysState () const override
 Get state of system keys.
 
virtual int GetEditMode () const override
 Get actual edit mode.
 
virtual int GetDisplayMode () const override
 Get actual display mode.
 
virtual void OnShapeFocused (IInteractiveShape *) override
 Called when shape get focus.
 
virtual void OnShapeDefocused (IInteractiveShape *) override
 Called when shape loose focus.
 
virtual TouchState IsTouched (istd::CIndex2d position) const override
 Check, if any shape is touched.
 
virtual QString GetShapeDescriptionAt (istd::CIndex2d position) const override
 Get description to shape at specified position.
 
virtual QString GetToolTipAt (istd::CIndex2d) const override
 Get tooltip at specified position.
 
virtual void SetTransform (const i2d::CAffine2d &transform) override
 Set a screen transformation.
 
virtual void UpdateMousePointer () override
 Update mouse pointer.
 
virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
 It is called, when mouse button is pushed down or up on this object.
 
virtual IDisplayGetParentDisplayPtr () const override
 Get parent object of this display.
 
virtual const iview::CScreenTransformGetTransform () const override
 Return a screen transformation.
 
virtual i2d::CRect GetBoundingBox () const override
 Get bounding box of all object in this display.
 
virtual const IColorSchemaGetColorSchema () const override
 Get color schema.
 
virtual void OnChangeShape (IShape *shapePtr) override
 Invalidate a shape.
 
virtual bool DisconnectShape (IShape *shapePtr) override
 Disconnect shape object from view.
 
virtual void OnShapeSelected (IInteractiveShape &shape, bool state=true) override
 It is called after change shape selection state.
 
virtual bool IsDraggable () const override
 Check if drag is enabled.
 
virtual void BeginDrag (const istd::CIndex2d &reference) override
 Called before dragging is begin.
 
virtual void SetDragPosition (const istd::CIndex2d &position) override
 Set new drag position.
 
virtual void EndDrag () override
 Called after dragging.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from istd::IChangeable
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 istd::TUniqueInterfacePtr< istd::IChangeableCloneMe (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 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

virtual void SetBackgroundBufferValid (bool state=true)
 Set validate flag of background buffer.
 
virtual void OnResize ()
 Called if found that display area was resized.
 
virtual bool CanBeMoved () const
 This method is internal used to check, if drag mode is allowed.
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void keyReleaseEvent (QKeyEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual void SetMousePointer (MousePointerMode mode) override
 Set mouse pointer.
 
virtual void UpdateRectArea (const i2d::CRect &rect) override
 Start updating specified rectangle area.
 
virtual void OnBoundingBoxChanged () override
 Called when bounding box has been changed.
 
virtual void OnAreaInvalidated (const i2d::CRect &beforeBox, const i2d::CRect &afterBox) override
 Invalidate display area.
 
int GetMouseKeysState (const QMouseEvent &event)
 
- Protected Member Functions inherited from iview::CCalibratedViewBase
virtual void DrawBuffers (QPaintDevice &nativeContext, const i2d::CRect &clipRect)
 
virtual void DrawToContext (QPaintDevice &nativeContext, QPainter &context, const i2d::CRect &invalidatedBox)
 
- Protected Member Functions inherited from iview::CViewBase
virtual void DrawLayers (QPainter &drawContext, int firstLayer, int lastLayer)
 Draw Background layer.
 
int GetLastBackgroundLayerIndex () const
 Get last background layer index.
 
void SetLastBackgroundLayerIndex (int index)
 
void DisconnectAllShapes ()
 Disconnect all shapes from this view.
 
virtual void InvalidateBoundingBox ()
 Invalidate bounding box.
 
bool EnsureBoundingBoxValid ()
 Calculate bounding box if it was invalid.
 
virtual i2d::CRect CalcBoundingBox () const
 Calculate bounding box of all shapes.
 
virtual MousePointerMode CalcMousePointer (istd::CIndex2d position) const
 Calc mouse pointer for the given position.
 
virtual bool IsBackgroundBufferValid () const
 Check if background buffer is valid.
 
const i2d::CRectGetInvalidatedBox () const
 Get bounding box of all invalidated rectangles.
 
void InvalidateBox (const i2d::CRect &rect)
 Invalidate rectangle screen area.
 
void ResetInvalidatedBox ()
 Reset invalidated box.
 
void SetKeysState (int state)
 Set state of keys.
 
const LayersGetLayers () const
 
LayersGetLayers ()
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 

Protected Attributes

QCursor m_mousePointerModes [MPM_LAST]
 
imath::CFixedPointManip m_pixelPositionFormatter
 
imath::CFixedPointManip m_logicalPositionFormatter
 
CConsoleBasem_framePtr = nullptr
 
bool m_showInfoText = false
 
QString m_infoText
 
- Protected Attributes inherited from iview::CViewBase
bool m_isBackgroundBufferValid
 
istd::TSmartPtr< iview::CScreenTransformm_transformPtr
 
ViewMode m_viewMode
 
int m_editMode
 
int m_displayMode
 
i2d::CVector2d m_moveReference
 
bool m_isMultiselectable
 
bool m_isViewDraggable
 
bool m_isDraggable
 
QVector< iview::IViewEventObserver * > m_viewListeners
 
ISelectableLayerm_focusedLayerPtr
 
int m_backgroundLayerIndex
 
int m_activeLayerIndex
 
int m_inactiveLayerIndex
 
i2d::CRect m_invalidatedBox
 
i2d::CRectangle m_fitArea
 
int m_lastBackgroundLayerIndex
 
iview::IMouseActionObserverm_mouseActionObserverPtr = nullptr
 
iview::CViewLayer m_backgroundLayer
 
iview::CViewLayer m_inactiveLayer
 
iview::CInteractiveViewLayer m_activeLayer
 
Layers m_layers
 
bool m_isLastMouseButtonDown
 
int m_keysState
 
istd::CIndex2d m_lastMousePosition
 
bool m_isSelectEventActive
 
i2d::CRect m_boundingBox
 
bool m_isBoundingBoxValid
 
bool m_blockBBoxEvent
 

Friends

class CConsoleBase
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes.
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set.
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set.
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set.
 
- Protected Types inherited from iview::CViewBase
enum  ViewMode { VM_NONE , VM_DRAG , VM_MOVE }
 
typedef QVector< IViewLayer * > Layers
 

Detailed Description

Definition at line 28 of file CViewport.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 36 of file CViewport.h.

◆ BaseClass2

Definition at line 37 of file CViewport.h.

Constructor & Destructor Documentation

◆ CViewport()

iview::CViewport::CViewport ( CConsoleBase framePtr,
QWidget *  parent = NULL 
)

◆ ~CViewport()

virtual iview::CViewport::~CViewport ( )
virtual

Member Function Documentation

◆ BoundingBoxChanged

void iview::CViewport::BoundingBoxChanged ( )
signal

◆ CanBeMoved()

virtual bool iview::CViewport::CanBeMoved ( ) const
protectedvirtual

This method is internal used to check, if drag mode is allowed.

Normally it return IsViewDraggable(), but in derived class you can change its implementation to avoid dragging.

Reimplemented from iview::CViewBase.

◆ ConnectCalibrationShape()

virtual void iview::CViewport::ConnectCalibrationShape ( iview::IShape shapePtr)
overridevirtual

Connect visualisation shape for calibration object.

Reimplemented from iview::CCalibratedViewBase.

◆ GetClientRect()

virtual i2d::CRect iview::CViewport::GetClientRect ( ) const
overridevirtual

Get bounding box of client area.

Implements iview::IDisplay.

◆ GetFramePtr()

CConsoleBase * iview::CViewport::GetFramePtr ( ) const

◆ GetMouseKeysState()

int iview::CViewport::GetMouseKeysState ( const QMouseEvent &  event)
protected

◆ keyPressEvent()

virtual void iview::CViewport::keyPressEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ keyReleaseEvent()

virtual void iview::CViewport::keyReleaseEvent ( QKeyEvent *  event)
overrideprotectedvirtual

◆ leaveEvent()

virtual void iview::CViewport::leaveEvent ( QEvent *  event)
overrideprotectedvirtual

◆ mouseMoveEvent()

virtual void iview::CViewport::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mousePressEvent()

virtual void iview::CViewport::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ mouseReleaseEvent()

virtual void iview::CViewport::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

◆ MoveViewBy()

bool iview::CViewport::MoveViewBy ( int  dx,
int  dy 
)

◆ OnAreaInvalidated()

virtual void iview::CViewport::OnAreaInvalidated ( const i2d::CRect prevArea,
const i2d::CRect newArea 
)
overrideprotectedvirtual

Invalidate display area.

Parameters
prevAreaprevious area used to display object.
newAreanew area used to display object.

Reimplemented from iview::CViewBase.

◆ OnBoundingBoxChanged()

virtual void iview::CViewport::OnBoundingBoxChanged ( )
overrideprotectedvirtual

Called when bounding box has been changed.

Reimplemented from iview::CViewBase.

◆ OnMouseMove()

virtual bool iview::CViewport::OnMouseMove ( istd::CIndex2d  position)
overridevirtual

It is called, when mouse is moved.

Only objects with focus receive this event.

Parameters
position- position of mouse pointer on client area (picture coords).
Returns
true if this shape should hold focus to catch longer all mouse movements.

Reimplemented from iview::CViewBase.

◆ OnResize()

virtual void iview::CViewport::OnResize ( )
protectedvirtual

Called if found that display area was resized.

Reimplemented from iview::CCalibratedViewBase.

◆ OnSelectChange()

virtual bool iview::CViewport::OnSelectChange ( const iview::IShapeView view,
const istd::CIndex2d position,
const iview::IInteractiveShape shape,
bool  state 
)
overridevirtual

Event handler for selection changes.

Returns
true, if this event was consumed by this listener and should not be further processed.

Implements iview::IViewEventObserver.

◆ OnViewMouseButton()

virtual bool iview::CViewport::OnViewMouseButton ( const iview::IShapeView view,
const istd::CIndex2d position,
Qt::MouseButton  buttonType,
bool  state,
const iview::IInteractiveShape shapePtr 
)
overridevirtual

Event handler for mouse button click.

Returns
true, if this event was consumed by this listener and should not be further processed.

Implements iview::IViewEventObserver.

◆ OnViewMouseMove()

virtual bool iview::CViewport::OnViewMouseMove ( const iview::IShapeView view,
const istd::CIndex2d position 
)
overridevirtual

Event handler for mouse move event.

Returns
true, if this event was consumed by this listener and should not be further processed.

Implements iview::IViewEventObserver.

◆ paintEvent()

virtual void iview::CViewport::paintEvent ( QPaintEvent *  event)
overrideprotectedvirtual

◆ resizeEvent()

virtual void iview::CViewport::resizeEvent ( QResizeEvent *  event)
overrideprotectedvirtual

◆ SetBackgroundBufferValid()

virtual void iview::CViewport::SetBackgroundBufferValid ( bool  state = true)
protectedvirtual

Set validate flag of background buffer.

Reimplemented from iview::CViewBase.

◆ SetEditMode()

virtual void iview::CViewport::SetEditMode ( int  mode)
virtual

Changes the edit mode.

Reimplemented from iview::CViewBase.

◆ SetFitArea()

virtual void iview::CViewport::SetFitArea ( const i2d::CRectangle area)
overridevirtual

Set area used for fitting of the view contents.

Reimplemented from iview::CViewBase.

◆ SetMousePointer()

virtual void iview::CViewport::SetMousePointer ( MousePointerMode  mode)
overrideprotectedvirtual

Set mouse pointer.

You have to implement it in your iview::CViewBase implementations.

Implements iview::CViewBase.

◆ SetMousePointerCursor()

void iview::CViewport::SetMousePointerCursor ( int  mode,
const QCursor &  cursor 
)

◆ SetShowInfoText()

void iview::CViewport::SetShowInfoText ( bool  on)

◆ ShapesChanged

void iview::CViewport::ShapesChanged ( )
signal

Called when some shapes has been changed.

◆ Update()

virtual void iview::CViewport::Update ( )
overridevirtual

Updates all invalidates shapes.

Reimplemented from iview::CViewBase.

◆ UpdateFitTransform()

void iview::CViewport::UpdateFitTransform ( )

◆ UpdateRectArea()

virtual void iview::CViewport::UpdateRectArea ( const i2d::CRect rect)
overrideprotectedvirtual

Start updating specified rectangle area.

Implements iview::CViewBase.

Friends And Related Symbol Documentation

◆ CConsoleBase

friend class CConsoleBase
friend

Definition at line 125 of file CViewport.h.

Member Data Documentation

◆ m_framePtr

CConsoleBase* iview::CViewport::m_framePtr = nullptr
protected

Definition at line 120 of file CViewport.h.

◆ m_infoText

QString iview::CViewport::m_infoText
protected

Definition at line 123 of file CViewport.h.

◆ m_logicalPositionFormatter

imath::CFixedPointManip iview::CViewport::m_logicalPositionFormatter
protected

Definition at line 119 of file CViewport.h.

◆ m_mousePointerModes

QCursor iview::CViewport::m_mousePointerModes[MPM_LAST]
protected

Definition at line 116 of file CViewport.h.

◆ m_pixelPositionFormatter

imath::CFixedPointManip iview::CViewport::m_pixelPositionFormatter
protected

Definition at line 118 of file CViewport.h.

◆ m_showInfoText

bool iview::CViewport::m_showInfoText = false
protected

Definition at line 122 of file CViewport.h.


The documentation for this class was generated from the following file: