ICF 3.1.1.10
Technical documentation of ICF Libraries
i2dgui::CImageViewComp Class Reference

Show observed bitmap on the 2D-console. More...

#include <CImageViewComp.h>

Inheritance diagram for i2dgui::CImageViewComp:
Collaboration diagram for i2dgui::CImageViewComp:

Public Types

typedef istdgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShapeBaseClass
 
- 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_TRANSPARENT , TS_INACTIVE , TS_TICKER ,
  TS_DRAGGABLE , 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

void UpdateGui (const istd::IChangeable::ChangeSet &changeSet) override
 Do update of the GUI to reflect the state of model.
 
void OnGuiCreated () override
 
void OnGuiDestroyed () override
 
- Protected Member Functions inherited from istdgui::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.
 
virtual void OnGuiModelAttached ()
 Called when model is attached and GUI is created.
 
virtual void OnGuiModelDetached ()
 Called when model is detached or GUI is destroyed.
 
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.
 
void UpdateEditor (const istd::IChangeable::ChangeSet &changeSet) override
 Updates editor with model data.
 
void UpdateModelFromEditor () const override
 Updates model from editor.
 
void OnGuiShown () override
 
void OnGuiHidden () override
 
void OnGuiRetranslate () override
 
void OnGuiCreated () override
 
void OnGuiDestroyed () override
 
void AfterModelChange (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
 
bool IsReadOnly () const override
 Returns true if the model data can be changed.
 
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
 
void OnUpdate (const istd::IChangeable::ChangeSet &changeSet) override
 Called on update of observed model.
 
- Protected Member Functions inherited from iview::CShapeBase
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.
 
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 IColorSchemaGetColorSchema () const
 Get color schema for this shape.
 
i2d::CRect GetClientRect () const
 Get display client rectangle.
 
bool IsBoundingBoxValid () const
 
void DisconnectDisplay ()
 
virtual const iview::CScreenTransformGetViewToScreenTransform () 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 istdgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >
 TGuiObserverWrap ()
 
bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
 
bool OnModelDetached (imod::IModel *modelPtr) override
 
- Public Member Functions inherited from iview::CImageShape
 CImageShape (const icmm::IColorTransformation *colorTransformationPtr=nullptr)
 
void Draw (QPainter &drawContext) const override
 Draw this shape using draw context.
 
i2d::CRect CalcBoundingBox () const override
 Calculate bounding box.
 
TouchState IsTouched (istd::CIndex2d position) const override
 Check, if any shape is touched.
 
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::IDisplayGetDisplay () const
 Get access to currently connected display.
 
ShapeTransformMode GetTransformMode () const
 Get shape transformation mode.
 
void SetTransformMode (ShapeTransformMode mode)
 Set shape transformation mode.
 
int GetLayerType () const override
 Get layer type of this shape object.
 
i2d::CRect GetBoundingBox () const override
 Return bounding box in client window coordinates.
 
void SetVisible (bool state=true) override
 Make shape to be visible or not.
 
const IColorSchemaGetUserColorSchema () const override
 Get color schema from view or user defined.
 
void SetUserColorSchema (const IColorSchema *schemaPtr) override
 Set color schema to draw shape.
 
void SetDefaultDescription (const QString &description) override
 Set default description will be used to display on console.
 
bool IsVisible () const override
 Check, if this object is visible.
 
bool IsDisplayAccepted (const IDisplay &display) const override
 Check if this object can be connected to this display.
 
void OnDisplayConnected (IDisplay *displayPtr) override
 Called after display is connected.
 
void OnDisplayDisconnected (IDisplay *displayPtr) override
 Called after display is disconnected.
 
bool OnDisplayChanged (const istd::IChangeable::ChangeSet &changeSet) override
 It informs about changes in display.
 
ITouchable::TouchState IsTouched (istd::CIndex2d position) const override
 Check, if any shape is touched.
 
QString GetShapeDescriptionAt (istd::CIndex2d position) const override
 Get description to shape at specified position.
 
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::IModelGetObservedModel () const
 Get access to observed model.
 
imod::IModelGetModelPtr () 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.
 
bool IsModelAttached (const imod::IModel *modelPtr=nullptr) const override
 Check if specified model is attached.
 
void BeforeModelChange (imod::IModel *modelPtr) override
 This function will be called before update of the observer contents occures.
 
- Public Member Functions inherited from imod::IObserver
- Public Member Functions inherited from iview::IShape
- Public Member Functions inherited from iview::IVisualizable
- Public Member Functions inherited from iview::ITouchable
- Public Member Functions inherited from imod::IModelEditor
- Protected Attributes inherited from istdgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >
bool m_isReadOnly
 

Detailed Description

Show observed bitmap on the 2D-console.

This class extends standard 2D-console to provide background bitmap object.

Definition at line 27 of file CImageViewComp.h.

Member Typedef Documentation

◆ BaseClass

Member Function Documentation

◆ OnGuiCreated()

void i2dgui::CImageViewComp::OnGuiCreated ( )
overrideprotected

◆ OnGuiDestroyed()

void i2dgui::CImageViewComp::OnGuiDestroyed ( )
overrideprotected

◆ UpdateGui()

void i2dgui::CImageViewComp::UpdateGui ( const istd::IChangeable::ChangeSet & changeSet)
overrideprotectedvirtual

Do update of the GUI to reflect the state of model.

This method should be implemented by derived classes instead of imod::IModelEditor::UpdateEditor().

Reimplemented from istdgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape >.


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

© Witold Gantzke and Kirill Lepskiy