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

#include <CConsoleBase.h>

Inheritance diagram for iview::CConsoleBase:
iview::CConsoleGui

Public Types

enum  FitMode {
  FM_RESET, FM_BOTH, FM_HORIZONTAL, FM_VERTICAL,
  FM_UNPROP, FM_COVER
}
 Control fitting mode, to fit area of interest (AOI) to display. More...
 

Public Member Functions

 CConsoleBase (QWidget *parent)
 
bool IsZoomToFit () const
 
void SetZoomToFit (bool state=true)
 
FitMode GetFitMode () const
 
void SetFitMode (FitMode mode)
 
bool IsGridVisible () const
 
void SetGridVisible (bool state=true)
 
bool IsRulerVisible () const
 
void SetRulerVisible (bool state=true)
 
bool IsGridInMm () const
 
void SetGridInMm (bool state=true)
 
bool IsButtonsPanelVisible () const
 
void SetButtonsPanelVisible (bool state=true)
 
bool IsButtonsPanelVertical () const
 
void SetButtonsPanelVertical (bool state=true)
 
bool AreScrollbarsVisible () const
 
void SetScrollbarsVisible (bool state=true)
 
bool AreZoomsVisible () const
 
void SetZoomsVisible (bool state=true)
 
bool IsZoomToFitVisible () const
 
void SetZoomToFitVisible (bool state=true)
 
bool ArePolylineButtonsVisible () const
 
void SetPolylineButtonsVisible (bool state=true)
 
bool AreUserModeButtonsVisible () const
 
void SetUserModeButtonsVisible (bool state=true)
 
bool IsScrollbarsButtonVisible () const
 
void SetScrollbarsButtonVisible (bool state=true)
 
bool IsGridButtonVisible () const
 
void SetGridButtonVisible (bool state=true)
 
bool IsRulerButtonVisible () const
 
void SetRulerButtonVisible (bool state=true)
 
bool IsMmButtonVisible () const
 
void SetMmButtonVisible (bool state=true)
 
bool IsFullScreenAllowed () const
 
void SetFullScreenAllowed (bool allow=true)
 
bool IsBackgroundActive () const
 Check if background object is present and active. More...
 
void UpdateView ()
 
virtual const CViewportGetView () const =0
 Get access to internal view implementation. More...
 
virtual CViewportGetViewRef ()=0
 Get access to internal view implementation. More...
 
virtual void UpdateEditModeButtons ()=0
 Update state of edit mode buttons. More...
 
virtual void UpdateButtonsState ()=0
 Recalculates enabling flags for buttons. More...
 
virtual void UpdateComponentsPosition ()=0
 Recalculates position of all components. More...
 
virtual void UpdateCommands ()=0
 Recalculate menu commands. More...
 
virtual void UpdateCursorInfo (const QString &infoText)=0
 

Protected Member Functions

virtual bool OnSelectChange (const iview::IShapeView &view, const istd::CIndex2d &position, const iview::IInteractiveShape &shape, bool state)=0
 
virtual bool OnViewMouseButton (const iview::IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const iview::IInteractiveShape *shapePtr)=0
 
virtual void OnBoundingBoxChanged ()=0
 

Friends

class CViewport
 

Detailed Description

Definition at line 28 of file CConsoleBase.h.

Member Enumeration Documentation

Control fitting mode, to fit area of interest (AOI) to display.

Enumerator
FM_RESET 

No fitting, frame use always identity transformation.

FM_BOTH 

Scale both axes proportional to display biggest, but full visible AOI.

FM_HORIZONTAL 

Only horizontal size of AOI will be consider.

FM_VERTICAL 

Only vertical size of AOI will be consider.

FM_UNPROP 

Both axes will be scaled separately.

FM_COVER 

Scale both axes proportional to display smallest AOI, which fully covers display.

Definition at line 34 of file CConsoleBase.h.

Constructor & Destructor Documentation

iview::CConsoleBase::CConsoleBase ( QWidget *  parent)
explicit

Member Function Documentation

bool iview::CConsoleBase::ArePolylineButtonsVisible ( ) const
bool iview::CConsoleBase::AreScrollbarsVisible ( ) const
bool iview::CConsoleBase::AreUserModeButtonsVisible ( ) const
bool iview::CConsoleBase::AreZoomsVisible ( ) const
FitMode iview::CConsoleBase::GetFitMode ( ) const
virtual const CViewport& iview::CConsoleBase::GetView ( ) const
pure virtual

Get access to internal view implementation.

Implemented in iview::CConsoleGui.

virtual CViewport& iview::CConsoleBase::GetViewRef ( )
pure virtual

Get access to internal view implementation.

Implemented in iview::CConsoleGui.

bool iview::CConsoleBase::IsBackgroundActive ( ) const

Check if background object is present and active.

bool iview::CConsoleBase::IsButtonsPanelVertical ( ) const
bool iview::CConsoleBase::IsButtonsPanelVisible ( ) const
bool iview::CConsoleBase::IsFullScreenAllowed ( ) const
bool iview::CConsoleBase::IsGridButtonVisible ( ) const
bool iview::CConsoleBase::IsGridInMm ( ) const
bool iview::CConsoleBase::IsGridVisible ( ) const
bool iview::CConsoleBase::IsMmButtonVisible ( ) const
bool iview::CConsoleBase::IsRulerButtonVisible ( ) const
bool iview::CConsoleBase::IsRulerVisible ( ) const
bool iview::CConsoleBase::IsScrollbarsButtonVisible ( ) const
bool iview::CConsoleBase::IsZoomToFit ( ) const
bool iview::CConsoleBase::IsZoomToFitVisible ( ) const
virtual void iview::CConsoleBase::OnBoundingBoxChanged ( )
protectedpure virtual

Implemented in iview::CConsoleGui.

virtual bool iview::CConsoleBase::OnSelectChange ( const iview::IShapeView view,
const istd::CIndex2d position,
const iview::IInteractiveShape shape,
bool  state 
)
protectedpure virtual

Implemented in iview::CConsoleGui.

virtual bool iview::CConsoleBase::OnViewMouseButton ( const iview::IShapeView view,
const istd::CIndex2d position,
Qt::MouseButton  buttonType,
bool  state,
const iview::IInteractiveShape shapePtr 
)
protectedpure virtual

Implemented in iview::CConsoleGui.

void iview::CConsoleBase::SetButtonsPanelVertical ( bool  state = true)
void iview::CConsoleBase::SetButtonsPanelVisible ( bool  state = true)
void iview::CConsoleBase::SetFitMode ( FitMode  mode)
void iview::CConsoleBase::SetFullScreenAllowed ( bool  allow = true)
void iview::CConsoleBase::SetGridButtonVisible ( bool  state = true)
void iview::CConsoleBase::SetGridInMm ( bool  state = true)
void iview::CConsoleBase::SetGridVisible ( bool  state = true)
void iview::CConsoleBase::SetMmButtonVisible ( bool  state = true)
void iview::CConsoleBase::SetPolylineButtonsVisible ( bool  state = true)
void iview::CConsoleBase::SetRulerButtonVisible ( bool  state = true)
void iview::CConsoleBase::SetRulerVisible ( bool  state = true)
void iview::CConsoleBase::SetScrollbarsButtonVisible ( bool  state = true)
void iview::CConsoleBase::SetScrollbarsVisible ( bool  state = true)
void iview::CConsoleBase::SetUserModeButtonsVisible ( bool  state = true)
void iview::CConsoleBase::SetZoomsVisible ( bool  state = true)
void iview::CConsoleBase::SetZoomToFit ( bool  state = true)
void iview::CConsoleBase::SetZoomToFitVisible ( bool  state = true)
virtual void iview::CConsoleBase::UpdateButtonsState ( )
pure virtual

Recalculates enabling flags for buttons.

Implemented in iview::CConsoleGui.

virtual void iview::CConsoleBase::UpdateCommands ( )
pure virtual

Recalculate menu commands.

Implemented in iview::CConsoleGui.

virtual void iview::CConsoleBase::UpdateComponentsPosition ( )
pure virtual

Recalculates position of all components.

Implemented in iview::CConsoleGui.

virtual void iview::CConsoleBase::UpdateCursorInfo ( const QString &  infoText)
pure virtual

Implemented in iview::CConsoleGui.

virtual void iview::CConsoleBase::UpdateEditModeButtons ( )
pure virtual

Update state of edit mode buttons.

Edit mode buttons controls the mode of interaction with objects. For example for polyline nodes: select, move, insert, remove.

See Also
iview::ISelectable::EditMode

Implemented in iview::CConsoleGui.

void iview::CConsoleBase::UpdateView ( )

Friends And Related Function Documentation

friend class CViewport
friend

Definition at line 187 of file CConsoleBase.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy