Public Member Functions | List of all members
iview::IShapeObserver Class Referenceabstract

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

#include <IShapeObserver.h>

Inheritance diagram for iview::IShapeObserver:
istd::IPolymorphic iview::IDisplay iview::IShapeView iview::IViewLayer iview::CViewBase iview::CViewLayer iview::ISelectableLayer iview::CCalibratedViewBase iview::CInteractiveViewLayer iview::CInteractiveViewLayer iview::CViewport

Public Member Functions

virtual void OnChangeShape (IShape *shapePtr)=0
 Invalidate a shape. More...
 
virtual bool DisconnectShape (IShape *shapePtr)=0
 Disconnect shape object from view. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Common interface for all objects informed about shapes state changes.

Each shape has a pointer to one IShapeObserver object.

Definition at line 19 of file IShapeObserver.h.

Member Function Documentation

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::CViewBase, iview::CInteractiveViewLayer, and iview::CViewLayer.

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

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::CViewBase, iview::CInteractiveViewLayer, and iview::CViewLayer.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy