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

#include <CViewBase.h>

Inheritance diagram for iview::CViewBase:
iview::IShapeView iview::IDraggable iview::IMouseActionObserver iview::IDisplay iview::ISelectable istd::IPolymorphic istd::IPolymorphic iview::IShapeObserver iview::ITouchable istd::IPolymorphic istd::IPolymorphic iview::CCalibratedViewBase iview::CViewport

Public Types

enum  ZoomMode {
  ZM_RESET, ZM_ZOOM_IN, ZM_ZOOM_OUT, ZM_FIT,
  ZM_FIT_COVER, ZM_FIT_UNPROP, ZM_FIT_H, ZM_FIT_V
}
 
- Public Types inherited from iview::IShapeView
typedef IShapeObserver BaseClass
 
- Public Types inherited from iview::IDisplay
enum  ChangeFlags {
  CF_TRANSFORM = 0x3f67360, CF_COLORS, CF_SIZE, CF_EDIT_MODE,
  CS_CONSOLE
}
 Define possible display change flags. More...
 
- Public Types inherited from iview::ISelectable
enum  MousePointerMode {
  MPM_NONE, MPM_DEFAULT, MPM_DESELECT, MPM_POINTER,
  MPM_WAIT, MPM_CROSS, MPM_HAND, MPM_DRAG,
  MPM_SCREEN_MOVE, MPM_LAST = MPM_SCREEN_MOVE
}
 Defines possible states of mouse pointer. More...
 
enum  EditMode { EM_NONE = 0, EM_MOVE = 1, EM_ADD = 2, EM_REMOVE = 3 }
 Describes standard edit modes. More...
 
typedef QSet< IInteractiveShape * > SelectedShapes
 
- Public Types inherited from iview::ITouchable
enum  TouchState {
  TS_NONE, TS_INACTIVE, TS_TICKER, TS_DRAGGABLE,
  TS_OTHER, TS_LAST = TS_OTHER
}
 Enumeration for possible shape touch states. More...
 

Public Member Functions

 CViewBase ()
 
virtual ~CViewBase ()
 
virtual void SetZoom (ZoomMode zoom)
 Set zoom. More...
 
virtual void SetEditMode (int mode)
 Set edit mode. More...
 
virtual void UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet)
 Inform all shapes about changes. More...
 
virtual void SetScreenPosition (const i2d::CVector2d &client, istd::CIndex2d screen)
 It sets position to become transformation of client point to specified screen position. More...
 
virtual const i2d::CRectangleGetFitArea () const
 Get area will be used to automatic fit the zoom to view size. More...
 
virtual void SetFitArea (const i2d::CRectangle &area)
 Set area will be used to fit in some zoom modes. More...
 
virtual void SetViewDraggable (bool state=true)
 Turn on/off possibility to move whole view transform. More...
 
virtual void SetMultiselectable (bool state=true)
 Turn on/off possibility to select more shapes using control keys. More...
 
virtual void SetDraggable (bool state=true)
 Turn on/off possibility to move more selected shapes, when one is moved. More...
 
virtual void AddViewEventObserver (iview::IViewEventObserver *listenerPtr)
 Adds handler to catch view events. More...
 
virtual void RemoveViewEventObserver (iview::IViewEventObserver *listenerPtr)
 Removes handler to catch view events. More...
 
virtual void InsertDefaultLayers ()
 Insert default layers, when there is no one user layer. More...
 
int GetBackgroundLayerIndex () const
 Get index of default background layer. More...
 
int GetInactiveLayerIndex () const
 Get index of default inactive layer. More...
 
int GetActiveLayerIndex () const
 Get index of default active layer. More...
 
IInteractiveShapeGetMouseShapePtr () const
 Get shape under mouse pointer. More...
 
IInteractiveShapeGetFirstActiveShape () const
 
virtual void Update ()
 Updates all invalidates shapes. More...
 
virtual bool IsViewDraggable () const
 Check if is draggable mode. More...
 
virtual bool IsMultiselectable () const
 Check, if it is possible to select more than one shape. More...
 
virtual int InsertLayer (IViewLayer *layerPtr, int index=-1, int layerType=IViewLayer::LT_NONE)
 Insert layer to view. More...
 
virtual int GetLayerIndex (const IViewLayer &layer) const
 Get index of layer. More...
 
virtual int GetLayerIndex (int layerType) const
 Get index of layer by type. More...
 
virtual void RemoveLayer (int index)
 Remove layer from view. More...
 
virtual int GetLayersCount () const
 Get count of layer in this view. More...
 
virtual IViewLayerGetLayer (int index) const
 Get layer with the given index. More...
 
virtual bool ConnectShape (IShape *shapePtr)
 Connect shape object to view. More...
 
virtual ISelectableLayerGetFocusedLayerPtr () const
 Get focused layer. More...
 
virtual void OnLayerShapeFocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)
 Called when shape in layer get focus. More...
 
virtual void OnLayerShapeDefocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)
 Called when shape in layer loose focus. More...
 
virtual void OnLayerInvalidated (const IViewLayer &layer, const i2d::CRect &prevArea, const i2d::CRect &newArea)
 Inform that layer was invalidated. More...
 
virtual int GetSelectedShapesCount () const
 Get count of selected shapes. More...
 
virtual void InsertSelectedShapes (SelectedShapes &result) const
 Get set of selected shapes. More...
 
virtual void DeselectAllShapes ()
 Set all shapes to be deselected. More...
 
virtual int GetKeysState () const
 Get state of system keys. More...
 
virtual int GetEditMode () const
 Get actual edit mode. More...
 
virtual void OnShapeFocused (IInteractiveShape *)
 Called when shape get focus. More...
 
virtual void OnShapeDefocused (IInteractiveShape *)
 Called when shape loose focus. More...
 
virtual TouchState IsTouched (istd::CIndex2d position) const
 Check, if any shape is touched. More...
 
virtual QString GetShapeDescriptionAt (istd::CIndex2d position) const
 Get description to shape at specified position. More...
 
virtual void SetTransform (const i2d::CAffine2d &transform)
 Set a screen transformation. More...
 
virtual void UpdateMousePointer ()
 Update mouse pointer. More...
 
virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)
 It is called, when mouse button is pushed down or up on this object. More...
 
virtual bool OnMouseMove (istd::CIndex2d position)
 It is called, when mouse is moved. More...
 
virtual IDisplayGetParentDisplayPtr () const
 Get parent object of this display. More...
 
virtual const
iview::CScreenTransform
GetTransform () const
 Return a screen transformation. More...
 
virtual i2d::CRect GetBoundingBox () const
 Get bounding box of all object in this display. More...
 
virtual const IColorSchemaGetColorSchema () const
 Get color schema. More...
 
virtual void OnAreaInvalidated (const i2d::CRect &prevArea, const i2d::CRect &newArea)
 Invalidate display area. More...
 
virtual void OnChangeShape (IShape *shapePtr)
 Invalidate a shape. More...
 
virtual bool DisconnectShape (IShape *shapePtr)
 Disconnect shape object from view. More...
 
virtual void OnShapeSelected (IInteractiveShape &shape, bool state=true)
 It is called after change shape selection state. More...
 
virtual bool IsDraggable () const
 Check if drag is enabled. More...
 
virtual void BeginDrag (const istd::CIndex2d &reference)
 Called before dragging is begin. More...
 
virtual void SetDragPosition (const istd::CIndex2d &position)
 Set new drag position. More...
 
virtual void EndDrag ()
 Called after dragging. More...
 
virtual const IColorSchemaGetDefaultColorSchema () const =0
 
- Public Member Functions inherited from iview::IDisplay
virtual i2d::CRect GetClientRect () const =0
 Get bounding box of client area. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Types

typedef QVector< IViewLayer * > Layers
 

Protected Member Functions

virtual void DrawLayers (QPainter &drawContext, int firstLayer, int lastLayer)
 Draw Background layer. More...
 
int GetLastBackgroundLayerIndex ()
 Get last background layer index. More...
 
void SetLastBackgroundLayerIndex (int index)
 
virtual bool CanBeMoved () const
 This method is internal used to check, if drag mode is allowed. More...
 
void DisconnectAllShapes ()
 Disconnect all shapes from this view. More...
 
virtual void InvalidateBackground ()
 Invalidate whole background buffer. More...
 
virtual void InvalidateBoundingBox ()
 Invalidate bounding box. More...
 
bool EnsureBoundingBoxValid ()
 Calculate bounding box if it was invalid. More...
 
virtual i2d::CRect CalcBoundingBox () const
 Calculate bounding box of all shapes. More...
 
virtual void OnBoundingBoxChanged ()
 Called when bounding box has been changed. More...
 
virtual MousePointerMode CalcMousePointer (istd::CIndex2d position) const
 
virtual void InvalidateMouseShape ()
 Invalidate stored shape under mouse pointer. More...
 
virtual void CalcMouseShape () const
 Calc shape under mouse pointer. More...
 
virtual bool IsBackgroundBufferValid () const
 Check if background buffer is valid. More...
 
virtual void SetBackgroundBufferValid (bool state=true)
 Set validate flag of background buffer. More...
 
const i2d::CRectGetInvalidatedBox () const
 Get bounding box of all invalidated rectangles. More...
 
void InvalidateBox (const i2d::CRect &rect)
 Invalidate rectangle screen area. More...
 
void ResetInvalidatedBox ()
 Reset invalidated box. More...
 
void SetKeysState (int state)
 Set state of keys. More...
 
const LayersGetLayers () const
 
LayersGetLayers ()
 
virtual void SetMousePointer (MousePointerMode mode)=0
 Set mouse pointer. More...
 
virtual void UpdateRectArea (const i2d::CRect &rect)=0
 Start updating specified rectangle area. More...
 

Detailed Description

Definition at line 27 of file CViewBase.h.

Member Typedef Documentation

typedef QVector<IViewLayer*> iview::CViewBase::Layers
protected

Definition at line 191 of file CViewBase.h.

Member Enumeration Documentation

Enumerator
ZM_RESET 
ZM_ZOOM_IN 
ZM_ZOOM_OUT 
ZM_FIT 
ZM_FIT_COVER 
ZM_FIT_UNPROP 
ZM_FIT_H 
ZM_FIT_V 

Definition at line 33 of file CViewBase.h.

Constructor & Destructor Documentation

iview::CViewBase::CViewBase ( )
virtual iview::CViewBase::~CViewBase ( )
virtual

Member Function Documentation

virtual void iview::CViewBase::AddViewEventObserver ( iview::IViewEventObserver listenerPtr)
virtual

Adds handler to catch view events.

virtual void iview::CViewBase::BeginDrag ( const istd::CIndex2d reference)
virtual

Called before dragging is begin.

It set also reference value for dragging position.

Implements iview::IDraggable.

virtual i2d::CRect iview::CViewBase::CalcBoundingBox ( ) const
protectedvirtual

Calculate bounding box of all shapes.

It doesn't update current bounding box.

virtual MousePointerMode iview::CViewBase::CalcMousePointer ( istd::CIndex2d  position) const
protectedvirtual
virtual void iview::CViewBase::CalcMouseShape ( ) const
protectedvirtual

Calc shape under mouse pointer.

Referenced by GetMouseShapePtr().

virtual bool iview::CViewBase::CanBeMoved ( ) const
protectedvirtual

This method is internal used to check, if drag mode is allowed.

Normally it return IsViewDraggable(), but in derived class you can change its implementation to avoid dragging.

Reimplemented in iview::CViewport.

virtual bool iview::CViewBase::ConnectShape ( IShape shapePtr)
virtual

Connect shape object to view.

Parameters
shapea shape object.
Returns
true, if it was possible to connect this shape.

Implements iview::IShapeView.

virtual void iview::CViewBase::DeselectAllShapes ( )
virtual

Set all shapes to be deselected.

Implements iview::ISelectable.

void iview::CViewBase::DisconnectAllShapes ( )
protected

Disconnect all shapes from this view.

virtual bool iview::CViewBase::DisconnectShape ( IShape shapePtr)
virtual

Disconnect shape object from view.

This shape had to be connected using ConnectShape.

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

Implements iview::IShapeObserver.

virtual void iview::CViewBase::DrawLayers ( QPainter &  drawContext,
int  firstLayer,
int  lastLayer 
)
protectedvirtual

Draw Background layer.

Standard implementation draws background shape, but it is also possible to use this method to display additional visual elements like a grid or rulers.

virtual void iview::CViewBase::EndDrag ( )
virtual

Called after dragging.

Implements iview::IDraggable.

bool iview::CViewBase::EnsureBoundingBoxValid ( )
protected

Calculate bounding box if it was invalid.

Returns
true, if the new bounding box was calculated.

Referenced by GetBoundingBox().

int iview::CViewBase::GetActiveLayerIndex ( ) const
inline

Get index of default active layer.

Definition at line 506 of file CViewBase.h.

int iview::CViewBase::GetBackgroundLayerIndex ( ) const
inline

Get index of default background layer.

Definition at line 494 of file CViewBase.h.

i2d::CRect iview::CViewBase::GetBoundingBox ( ) const
inlinevirtual

Get bounding box of all object in this display.

Implements iview::IDisplay.

Definition at line 450 of file CViewBase.h.

References EnsureBoundingBoxValid().

const IColorSchema & iview::CViewBase::GetColorSchema ( ) const
inlinevirtual

Get color schema.

Implements iview::IDisplay.

Definition at line 458 of file CViewBase.h.

References GetDefaultColorSchema().

virtual const IColorSchema& iview::CViewBase::GetDefaultColorSchema ( ) const
pure virtual

Implemented in iview::CCalibratedViewBase.

Referenced by GetColorSchema().

virtual int iview::CViewBase::GetEditMode ( ) const
virtual

Get actual edit mode.

Implements iview::ISelectable.

IInteractiveShape* iview::CViewBase::GetFirstActiveShape ( ) const
const i2d::CRectangle & iview::CViewBase::GetFitArea ( ) const
inlinevirtual

Get area will be used to automatic fit the zoom to view size.

See Also
SetZoom(ZoomMode)

Definition at line 359 of file CViewBase.h.

virtual ISelectableLayer* iview::CViewBase::GetFocusedLayerPtr ( ) const
virtual

Get focused layer.

Implements iview::IShapeView.

int iview::CViewBase::GetInactiveLayerIndex ( ) const
inline

Get index of default inactive layer.

Definition at line 500 of file CViewBase.h.

const i2d::CRect & iview::CViewBase::GetInvalidatedBox ( ) const
inlineprotected

Get bounding box of all invalidated rectangles.

Definition at line 529 of file CViewBase.h.

int iview::CViewBase::GetKeysState ( ) const
inlinevirtual

Get state of system keys.

Implements iview::ISelectable.

Definition at line 466 of file CViewBase.h.

int iview::CViewBase::GetLastBackgroundLayerIndex ( )
inlineprotected

Get last background layer index.

Definition at line 482 of file CViewBase.h.

IViewLayer & iview::CViewBase::GetLayer ( int  index) const
inlinevirtual

Get layer with the given index.

Implements iview::IShapeView.

Definition at line 420 of file CViewBase.h.

References GetLayersCount(), InsertDefaultLayers(), and NULL.

virtual int iview::CViewBase::GetLayerIndex ( const IViewLayer layer) const
virtual

Get index of layer.

Returns
layer index, or -1 if not found.

Implements iview::IShapeView.

virtual int iview::CViewBase::GetLayerIndex ( int  layerType) const
virtual

Get index of layer by type.

Returns
layer index, or -1 if not found.

Implements iview::IShapeView.

const CViewBase::Layers & iview::CViewBase::GetLayers ( ) const
inlineprotected

Definition at line 553 of file CViewBase.h.

CViewBase::Layers & iview::CViewBase::GetLayers ( )
inlineprotected

Definition at line 559 of file CViewBase.h.

int iview::CViewBase::GetLayersCount ( ) const
inlinevirtual

Get count of layer in this view.

Implements iview::IShapeView.

Definition at line 414 of file CViewBase.h.

Referenced by GetLayer().

IInteractiveShape * iview::CViewBase::GetMouseShapePtr ( ) const
inline

Get shape under mouse pointer.

Returns
shape under mouse pointer, or NULL if there is no shape.

Definition at line 389 of file CViewBase.h.

References CalcMouseShape().

IDisplay * iview::CViewBase::GetParentDisplayPtr ( ) const
inlinevirtual

Get parent object of this display.

If this display is root, it returns NULL.

Implements iview::IDisplay.

Definition at line 438 of file CViewBase.h.

References NULL.

virtual int iview::CViewBase::GetSelectedShapesCount ( ) const
virtual

Get count of selected shapes.

Implements iview::ISelectable.

virtual QString iview::CViewBase::GetShapeDescriptionAt ( istd::CIndex2d  position) const
virtual

Get description to shape at specified position.

Implements iview::ITouchable.

const iview::CScreenTransform & iview::CViewBase::GetTransform ( ) const
inlinevirtual

Return a screen transformation.

This transformation converts view units to screen units.

Implements iview::IDisplay.

Definition at line 444 of file CViewBase.h.

virtual void iview::CViewBase::InsertDefaultLayers ( )
virtual

Insert default layers, when there is no one user layer.

Reimplemented in iview::CCalibratedViewBase.

Referenced by GetLayer().

virtual int iview::CViewBase::InsertLayer ( IViewLayer layerPtr,
int  index = -1,
int  layerType = IViewLayer::LT_NONE 
)
virtual

Insert layer to view.

Parameters
layerPtrpointer to inserted layer.
indexindex of inserted layer. If equals -1, layer will be inserted after last existing layer.
layerTypeused to set standard layers.
See Also
iview::IShapeView::LayerType
Returns
index of this layer.

Implements iview::IShapeView.

Reimplemented in iview::CCalibratedViewBase.

virtual void iview::CViewBase::InsertSelectedShapes ( SelectedShapes result) const
virtual

Get set of selected shapes.

Implements iview::ISelectable.

virtual void iview::CViewBase::InvalidateBackground ( )
protectedvirtual

Invalidate whole background buffer.

By next call Update() background buffer will be full repainted.

Referenced by iview::CCalibratedViewBase::SetGridVisible().

virtual void iview::CViewBase::InvalidateBoundingBox ( )
protectedvirtual

Invalidate bounding box.

void iview::CViewBase::InvalidateBox ( const i2d::CRect rect)
inlineprotected

Invalidate rectangle screen area.

It added this area to other invalidated areas.

Definition at line 535 of file CViewBase.h.

References i2d::CRect::Union().

virtual void iview::CViewBase::InvalidateMouseShape ( )
protectedvirtual

Invalidate stored shape under mouse pointer.

bool iview::CViewBase::IsBackgroundBufferValid ( ) const
inlineprotectedvirtual

Check if background buffer is valid.

Definition at line 512 of file CViewBase.h.

bool iview::CViewBase::IsDraggable ( ) const
inlinevirtual

Check if drag is enabled.

Implements iview::IDraggable.

Definition at line 474 of file CViewBase.h.

bool iview::CViewBase::IsMultiselectable ( ) const
inlinevirtual

Check, if it is possible to select more than one shape.

Implements iview::IShapeView.

Definition at line 408 of file CViewBase.h.

virtual TouchState iview::CViewBase::IsTouched ( istd::CIndex2d  position) const
virtual

Check, if any shape is touched.

When shape is touched, it return also pointer to this shape.

Returns
touch state for the shape, or iview::IInteractiveShape::TS_NONE, when nothing found.

Implements iview::ITouchable.

bool iview::CViewBase::IsViewDraggable ( ) const
inlinevirtual

Check if is draggable mode.

If this function return true, user can move a view by dragging.

Implements iview::IShapeView.

Definition at line 402 of file CViewBase.h.

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

Invalidate display area.

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

Implements iview::IDisplay.

Reimplemented in iview::CViewport.

virtual void iview::CViewBase::OnBoundingBoxChanged ( )
protectedvirtual

Called when bounding box has been changed.

Reimplemented in iview::CViewport.

virtual void iview::CViewBase::OnChangeShape ( IShape shapePtr)
virtual

Invalidate a shape.

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

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

Implements iview::IShapeObserver.

virtual void iview::CViewBase::OnLayerInvalidated ( const IViewLayer layer,
const i2d::CRect prevArea,
const i2d::CRect newArea 
)
virtual

Inform that layer was invalidated.

Implements iview::IShapeView.

virtual void iview::CViewBase::OnLayerShapeDefocused ( IInteractiveShape shapePtr,
ISelectableLayer layerPtr 
)
virtual

Called when shape in layer loose focus.

Implements iview::IShapeView.

virtual void iview::CViewBase::OnLayerShapeFocused ( IInteractiveShape shapePtr,
ISelectableLayer layerPtr 
)
virtual

Called when shape in layer get focus.

Implements iview::IShapeView.

virtual bool iview::CViewBase::OnMouseButton ( istd::CIndex2d  position,
Qt::MouseButton  buttonType,
bool  downFlag 
)
virtual

It is called, when mouse button is pushed down or up on this object.

Parameters
position- position of mouse pointer on client area (picture coords).
downFlag- true, if mouse button is pushed down, false if pushed up.
Returns
true if this shape should get focus to catch all mouse movements.

Implements iview::IMouseActionObserver.

virtual bool iview::CViewBase::OnMouseMove ( istd::CIndex2d  position)
virtual

It is called, when mouse is moved.

Only objects with focus receive this event.

Parameters
position- position of mouse pointer on client area (picture coords).
Returns
true if this shape should hold focus to catch longer all mouse movements.

Implements iview::IMouseActionObserver.

Reimplemented in iview::CViewport.

virtual void iview::CViewBase::OnShapeDefocused ( IInteractiveShape shapePtr)
inlinevirtual

Called when shape loose focus.

Implements iview::ISelectable.

Definition at line 155 of file CViewBase.h.

virtual void iview::CViewBase::OnShapeFocused ( IInteractiveShape shapePtr)
inlinevirtual

Called when shape get focus.

Implements iview::ISelectable.

Definition at line 154 of file CViewBase.h.

virtual void iview::CViewBase::OnShapeSelected ( IInteractiveShape shape,
bool  state = true 
)
virtual

It is called after change shape selection state.

Implements iview::ISelectable.

virtual void iview::CViewBase::RemoveLayer ( int  index)
virtual

Remove layer from view.

Implements iview::IShapeView.

Reimplemented in iview::CCalibratedViewBase.

virtual void iview::CViewBase::RemoveViewEventObserver ( iview::IViewEventObserver listenerPtr)
virtual

Removes handler to catch view events.

void iview::CViewBase::ResetInvalidatedBox ( )
inlineprotected

Reset invalidated box.

Definition at line 541 of file CViewBase.h.

References i2d::CRect::Reset().

void iview::CViewBase::SetBackgroundBufferValid ( bool  state = true)
inlineprotectedvirtual

Set validate flag of background buffer.

Reimplemented in iview::CViewport.

Definition at line 518 of file CViewBase.h.

References iview::IDisplay::GetClientRect().

Referenced by iview::CCalibratedViewBase::SetGridInMm(), and iview::CCalibratedViewBase::SetMinGridDistance().

void iview::CViewBase::SetDraggable ( bool  state = true)
inlinevirtual

Turn on/off possibility to move more selected shapes, when one is moved.

Definition at line 383 of file CViewBase.h.

virtual void iview::CViewBase::SetDragPosition ( const istd::CIndex2d position)
virtual

Set new drag position.

It must be enclosed using BeginDrag() and EndDrag() methods.

Implements iview::IDraggable.

virtual void iview::CViewBase::SetEditMode ( int  mode)
virtual

Set edit mode.

Implements iview::IShapeView.

Reimplemented in iview::CViewport.

void iview::CViewBase::SetFitArea ( const i2d::CRectangle area)
inlinevirtual

Set area will be used to fit in some zoom modes.

See Also
SetZoom(ZoomMode)

Implements iview::IShapeView.

Reimplemented in iview::CViewport.

Definition at line 365 of file CViewBase.h.

void iview::CViewBase::SetKeysState ( int  state)
inlineprotected

Set state of keys.

Definition at line 547 of file CViewBase.h.

void iview::CViewBase::SetLastBackgroundLayerIndex ( int  index)
inlineprotected

Definition at line 488 of file CViewBase.h.

virtual void iview::CViewBase::SetMousePointer ( MousePointerMode  mode)
protectedpure virtual

Set mouse pointer.

You have to implement it in your iview::CViewBase implementations.

Implemented in iview::CViewport.

void iview::CViewBase::SetMultiselectable ( bool  state = true)
inlinevirtual

Turn on/off possibility to select more shapes using control keys.

Definition at line 377 of file CViewBase.h.

virtual void iview::CViewBase::SetScreenPosition ( const i2d::CVector2d client,
istd::CIndex2d  screen 
)
virtual

It sets position to become transformation of client point to specified screen position.

virtual void iview::CViewBase::SetTransform ( const i2d::CAffine2d transform)
virtual

Set a screen transformation.

See Also
GetTransform()

Implements iview::IShapeView.

void iview::CViewBase::SetViewDraggable ( bool  state = true)
inlinevirtual

Turn on/off possibility to move whole view transform.

Definition at line 371 of file CViewBase.h.

virtual void iview::CViewBase::SetZoom ( ZoomMode  zoom)
virtual

Set zoom.

virtual void iview::CViewBase::Update ( )
virtual

Updates all invalidates shapes.

Implements iview::IShapeView.

virtual void iview::CViewBase::UpdateAllShapes ( const istd::IChangeable::ChangeSet changeSet)
virtual

Inform all shapes about changes.

Reimplemented in iview::CCalibratedViewBase.

virtual void iview::CViewBase::UpdateMousePointer ( )
virtual

Update mouse pointer.

Implements iview::IShapeView.

virtual void iview::CViewBase::UpdateRectArea ( const i2d::CRect rect)
protectedpure virtual

Start updating specified rectangle area.

Implemented in iview::CViewport.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy