ICF 3.0.5.47
Technical documentation of ICF Libraries
iview::IShapeObserver Class Referenceabstract

Common interface for all objects informed about shapes state changes. More...

#include <IShapeObserver.h>

Inheritance diagram for iview::IShapeObserver:
Collaboration diagram for iview::IShapeObserver:

Public Member Functions

virtual void OnChangeShape (IShape *shapePtr)=0
 Invalidate a shape.
 
virtual bool DisconnectShape (IShape *shapePtr)=0
 Disconnect shape object from view.
 

Detailed Description

Common interface for all objects informed about shapes state changes.

Each shape has a pointer to one IShapeObserver object.

Definition at line 24 of file IShapeObserver.h.

Member Function Documentation

◆ DisconnectShape()

virtual bool iview::IShapeObserver::DisconnectShape ( IShape * shapePtr)
pure virtual

Disconnect shape object from view.

This shape had to be connected using ConnectShape.

Returns
true, if it was possible to disconnect this shape.

Implemented in iview::CInteractiveViewLayer, iview::CViewBase, and iview::CViewLayer.

Referenced by i2dgui::TViewExtenderCompBase< Base >::RemoveItemsFromScene().

◆ OnChangeShape()

virtual void iview::IShapeObserver::OnChangeShape ( IShape * shapePtr)
pure virtual

Invalidate a shape.

When you call Update, all invalidated shapes will be repainted.

Returns
true, if it was possible to invalidate this shape.

Implemented in iview::CInteractiveViewLayer, iview::CViewBase, and iview::CViewLayer.


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

© Witold Gantzke and Kirill Lepskiy