|
ACF $AcfVersion:0$
|
Show observed bitmap on the 2D-console. More...
#include <CImageViewComp.h>
Public Types | |
| typedef iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > | BaseClass |
Public Types inherited from iview::CImageShape | |
| typedef CShapeBase | BaseClass |
Public Types inherited from iview::CShapeBase | |
| enum | ShapeTransformMode { STM_VIEW , STM_SHAPE , STM_COMBINE } |
| Describe how shape tranformation is interpreted. More... | |
| typedef imod::CSingleModelObserverBase | BaseClass |
Public Types inherited from imod::CSingleModelObserverBase | |
| typedef imod::IModel | ModelType |
Public Types inherited from iview::IShape | |
| enum | ChangeFlags { CF_CALIB = 0x3663adf } |
| Data model change notification flags. More... | |
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 imod::IModelEditor | |
| enum | ChangeFlags { CF_INIT_EDITOR = 0x3720694 } |
| Data model change notification flags. More... | |
Protected Member Functions | |
| virtual void | UpdateGui (const istd::IChangeable::ChangeSet &changeSet) override |
| Do update of the GUI to reflect the state of model. | |
| virtual void | OnGuiModelAttached () override |
| Called when model is attached and GUI is created. | |
| virtual void | OnGuiModelDetached () override |
| Called when model is detached or GUI is destroyed. | |
Protected Member Functions inherited from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > | |
| virtual void | OnGuiModelShown () |
| Called when model is attached and GUI is shown. | |
| virtual void | OnGuiModelHidden () |
| Called when model is detached or GUI is hidden. | |
| bool | IsUpdateBlocked () const |
| Check if GUI updating is blocked. | |
| bool | DoUpdateModel () const |
| Secure update model. | |
| virtual void | UpdateModel () const |
| Do update of the model to reflect the current contents of GUI. | |
| virtual void | UpdateEditor (const istd::IChangeable::ChangeSet &changeSet) override |
| Updates editor with model data. | |
| virtual void | UpdateModelFromEditor () const override |
| Updates model from editor. | |
| virtual void | OnGuiShown () override |
| virtual void | OnGuiHidden () override |
| virtual void | OnGuiRetranslate () override |
| virtual void | OnGuiCreated () override |
| virtual void | OnGuiDestroyed () override |
| virtual void | AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override |
| virtual bool | IsReadOnly () const override |
Returns true if the model data can be changed. | |
| virtual void | SetReadOnly (bool state) override |
| Set flag that the model data can be changed. | |
| void | SetDisableUiIfReadOnly (bool state) |
| Control if GUI should be disaled for read-only editors. | |
Protected Member Functions inherited from iview::CImageShape | |
| virtual void | DrawPixmap (QPainter &painter, const QPixmap &pixmap, const i2d::CRect &bitmapArea, const i2d::CAffine2d &destTransform) const |
Protected Member Functions inherited from iview::CShapeBase | |
| double | GetLocalLineWidth (const i2d::CVector2d &screenPosition) const |
| Get line with (in logical coordinates) for single screen position. | |
| virtual bool | IsDisplayChangeImportant (const istd::IChangeable::ChangeSet &changeSet) |
| Get display changes mask. | |
| virtual void | InvalidateBoundingBox () |
| Invalidate bounding box. | |
| bool | IsDisplayConnected () const |
| Check if display is connected. | |
| const IColorSchema & | GetColorSchema () const |
| Get color schema for this shape. | |
| i2d::CRect | GetClientRect () const |
| Get display client rectangle. | |
| bool | IsBoundingBoxValid () const |
| void | DisconnectDisplay () |
| virtual const iview::CScreenTransform & | GetViewToScreenTransform () const |
Protected Member Functions inherited from imod::CSingleModelObserverBase | |
| void | SetModelPtr (imod::IModel *modelPtr) |
| Set internal model pointer to specified value. | |
Additional Inherited Members | |
Public Member Functions inherited from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > | |
| TGuiObserverWrap () | |
| virtual bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override |
| virtual bool | OnModelDetached (imod::IModel *modelPtr) override |
Public Member Functions inherited from iview::CImageShape | |
| CImageShape (const icmm::IColorTransformation *colorTransformationPtr=NULL) | |
| const QPixmap & | GetPixmap () const |
| virtual void | Draw (QPainter &drawContext) const override |
| Draw this shape using draw context. | |
| virtual i2d::CRect | CalcBoundingBox () const override |
| Calculate bounding box. | |
| 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. | |
Public Member Functions inherited from iview::CShapeBase | |
| CShapeBase () | |
| CShapeBase (const CShapeBase &shape) | |
| virtual | ~CShapeBase () |
| virtual bool | AssignToLayer (int layerType) |
| Assign this shape to same layer. | |
| virtual void | Invalidate () |
| iview::IDisplay * | GetDisplayPtr () const |
| Get access to currently connected display. | |
| ShapeTransformMode | GetTransformMode () const |
| Get shape transformation mode. | |
| void | SetTransformMode (ShapeTransformMode mode) |
| Set shape transformation mode. | |
| i2d::CVector2d | GetScreenPosition (const i2d::CVector2d &logPosition) const |
| Get screen position based on logical position. | |
| i2d::CVector2d | GetLogPosition (const i2d::CVector2d &screenPosition) const |
| Get logical position based on screen position. | |
| virtual int | GetLayerType () const override |
| Get layer type of this shape object. | |
| virtual i2d::CRect | GetBoundingBox () const override |
| Return bounding box in client window coordinates. | |
| virtual void | SetVisible (bool state=true) override |
| Make shape to be visible or not. | |
| virtual const IColorSchema * | GetUserColorSchema () const override |
| Get color schema from view or user defined. | |
| virtual void | SetUserColorSchema (const IColorSchema *schemaPtr) override |
| Set color schema to draw shape. | |
| virtual void | SetDefaultDescription (const QString &description) override |
| Set default description will be used to display on console. | |
| virtual void | SetToolTip (const QString &toolTip) override |
| virtual bool | IsInside (const istd::CIndex2d &screenPosition) const override |
| virtual bool | IsVisible () const override |
| Check, if this object is visible. | |
| virtual bool | IsDisplayAccepted (const IDisplay &display) const override |
| Check if this object can be connected to this display. | |
| virtual void | OnConnectDisplay (IDisplay *displayPtr) override |
| Called after display is connected. | |
| virtual void | OnDisconnectDisplay (IDisplay *displayPtr) override |
| Called after display is disconnected. | |
| virtual bool | OnDisplayChange (const istd::IChangeable::ChangeSet &changeSet) override |
| It informs about changes in display. | |
| virtual QString | GetToolTipAt (istd::CIndex2d position) const override |
| Get tooltip at specified position. | |
| virtual void | OnUpdate (const istd::IChangeable::ChangeSet &changeSet) override |
| Called on update of observed model. | |
Public Member Functions inherited from imod::CSingleModelObserverBase | |
| CSingleModelObserverBase () | |
| virtual | ~CSingleModelObserverBase () |
| imod::IModel * | GetObservedModel () const |
| Get access to observed model. | |
| imod::IModel * | GetModelPtr () const |
| Get access to observed model. | |
| void | EnsureModelDetached () |
| Make sure this observer is detached. | |
| void | SetObservedIds (const istd::IChangeable::ChangeSet &changeMask) |
| Set list of ID's beeing observed. | |
| virtual bool | IsModelAttached (const imod::IModel *modelPtr=NULL) const override |
| Checks if the specified model is currently attached to this observer. | |
| virtual void | BeforeUpdate (imod::IModel *modelPtr) override |
| Callback invoked before an update of the observer's content occurs. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Public Member Functions inherited from iview::IShape | |
| virtual bool | IsAreaTouchAllowed () const |
| virtual void | SetAreaTouchAllowed (bool=true) |
| virtual iview::ISelectable::MousePointerMode | UpdateMousePointer (iview::ISelectable::MousePointerMode defaultPointer, ITouchable::TouchState, const istd::CIndex2d &) const |
Protected Attributes inherited from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > | |
| bool | m_isReadOnly |
Static Protected Attributes inherited from imod::CSingleModelObserverBase | |
| static const istd::IChangeable::ChangeSet | s_undoChanges |
Show observed bitmap on the 2D-console.
This class extends standard 2D-console to provide background bitmap object.
Definition at line 26 of file CImageViewComp.h.
| typedef iqtgui::TGuiObserverWrap<CViewProviderGuiComp, iview::CImageShape> iqt2d::CImageViewComp::BaseClass |
Definition at line 30 of file CImageViewComp.h.
|
overrideprotectedvirtual |
Called when model is attached and GUI is created.
Reimplemented from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >.
|
overrideprotectedvirtual |
Called when model is detached or GUI is destroyed.
Reimplemented from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >.
|
overrideprotectedvirtual |
Do update of the GUI to reflect the state of model.
This method should be implmented by derived classes instead of imod::IModelEditor::UpdateEditor().
Reimplemented from iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >.