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

#include <IDisplay.h>

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

Public Types

enum  ChangeFlags {
  CF_TRANSFORM = 0x3f67360, CF_COLORS, CF_SIZE, CF_EDIT_MODE,
  CS_CONSOLE
}
 Define possible display change flags. More...
 

Public Member Functions

virtual IDisplayGetParentDisplayPtr () const =0
 Get parent object of this display. More...
 
virtual const
iview::CScreenTransform
GetTransform () const =0
 Return a screen transformation. More...
 
virtual i2d::CRect GetBoundingBox () const =0
 Get bounding box of all object in this display. More...
 
virtual i2d::CRect GetClientRect () const =0
 Get bounding box of client area. More...
 
virtual const IColorSchemaGetColorSchema () const =0
 Get color schema. More...
 
virtual void OnAreaInvalidated (const i2d::CRect &prevArea, const i2d::CRect &newArea)=0
 Invalidate display area. More...
 
- Public Member Functions inherited from iview::IShapeObserver
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

Definition at line 18 of file IDisplay.h.

Member Enumeration Documentation

Define possible display change flags.

Enumerator
CF_TRANSFORM 

View transform is changed.

CF_COLORS 

View colors are changed.

CF_SIZE 

View size is changed.

CF_EDIT_MODE 

Edit mode is changed.

CS_CONSOLE 

Indicate, that changes come from display console shapes.

Definition at line 24 of file IDisplay.h.

Member Function Documentation

virtual i2d::CRect iview::IDisplay::GetBoundingBox ( ) const
pure virtual

Get bounding box of all object in this display.

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

virtual i2d::CRect iview::IDisplay::GetClientRect ( ) const
pure virtual

Get bounding box of client area.

Implemented in iview::CViewport, and iview::CViewLayer.

Referenced by iview::CViewBase::SetBackgroundBufferValid().

virtual const IColorSchema& iview::IDisplay::GetColorSchema ( ) const
pure virtual

Get color schema.

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

virtual IDisplay* iview::IDisplay::GetParentDisplayPtr ( ) const
pure virtual

Get parent object of this display.

If this display is root, it returns NULL.

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

virtual const iview::CScreenTransform& iview::IDisplay::GetTransform ( ) const
pure virtual

Return a screen transformation.

This transformation converts view units to screen units.

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

virtual void iview::IDisplay::OnAreaInvalidated ( const i2d::CRect prevArea,
const i2d::CRect newArea 
)
pure virtual

Invalidate display area.

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

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


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy