![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CConsoleBase.h>
Public Types | |
enum class | FittingMode { Reset , ScaleToFit , ScaleToFitH , ScaleToFitV , Stretch , PropFill } |
Control fitting mode, to fit area of interest (AOI) to display. More... | |
enum class | ExtraMode { None , FullScreenView , ZoomToFit } |
Public Member Functions | |
CConsoleBase (QWidget *parent) | |
bool | IsZoomToFit () const |
void | SetZoomToFit (bool state=true) |
FittingMode | GetFitMode () const |
void | SetFitMode (FittingMode mode) |
bool | IsGridVisible () const |
void | SetGridVisible (bool state=true) |
bool | IsRulerVisible () const |
void | SetRulerVisible (bool state=true) |
bool | IsDistanceMeasureToolActive () const |
void | SetDistanceMeasureToolActive (bool state=true) |
bool | IsPointMeasureToolActive () const |
void | SetPointMeasureToolActive (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 | IsDistanceMeasureButtonVisible () const |
void | SetDistanceMeasureButtonVisible (bool state=true) |
bool | IsPointMeasureButtonVisible () const |
void | SetPointMeasureButtonVisible (bool state=true) |
ExtraMode | GetDoubleClickMode () const |
void | SetDoubleClickMode (ExtraMode mode) |
bool | IsFitReleaseAllowed () const |
void | SetFitReleaseAllowed (bool state=true) |
bool | IsBackgroundActive () const |
Check if background object is present and active. | |
void | UpdateView () |
virtual const CViewport & | GetView () const =0 |
Get access to internal view implementation. | |
virtual CViewport & | GetViewRef ()=0 |
Get access to internal view implementation. | |
virtual void | UpdateEditModeButtons ()=0 |
Update state of edit mode buttons. | |
virtual void | UpdateButtonsState ()=0 |
Recalculates enabling flags for buttons. | |
virtual void | UpdateComponentsPosition ()=0 |
Recalculates position of all components. | |
virtual void | UpdateCommands ()=0 |
Recalculate menu commands. | |
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 |
Definition at line 29 of file CConsoleBase.h.
|
strong |
Enumerator | |
---|---|
None | |
FullScreenView | |
ZoomToFit |
Definition at line 68 of file CConsoleBase.h.
|
strong |
Control fitting mode, to fit area of interest (AOI) to display.
Definition at line 35 of file CConsoleBase.h.
|
explicit |
bool iview::CConsoleBase::ArePolylineButtonsVisible | ( | ) | const |
bool iview::CConsoleBase::AreScrollbarsVisible | ( | ) | const |
bool iview::CConsoleBase::AreUserModeButtonsVisible | ( | ) | const |
bool iview::CConsoleBase::AreZoomsVisible | ( | ) | const |
ExtraMode iview::CConsoleBase::GetDoubleClickMode | ( | ) | const |
FittingMode iview::CConsoleBase::GetFitMode | ( | ) | const |
|
pure virtual |
Get access to internal view implementation.
Implemented in iview::CConsoleGui.
|
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::IsDistanceMeasureButtonVisible | ( | ) | const |
bool iview::CConsoleBase::IsDistanceMeasureToolActive | ( | ) | const |
bool iview::CConsoleBase::IsFitReleaseAllowed | ( | ) | const |
bool iview::CConsoleBase::IsGridButtonVisible | ( | ) | const |
bool iview::CConsoleBase::IsGridInMm | ( | ) | const |
bool iview::CConsoleBase::IsGridVisible | ( | ) | const |
bool iview::CConsoleBase::IsMmButtonVisible | ( | ) | const |
bool iview::CConsoleBase::IsPointMeasureButtonVisible | ( | ) | const |
bool iview::CConsoleBase::IsPointMeasureToolActive | ( | ) | 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 |
|
protectedpure virtual |
Implemented in iview::CConsoleGui.
|
protectedpure virtual |
Implemented in iview::CConsoleGui.
|
protectedpure virtual |
Implemented in iview::CConsoleGui.
void iview::CConsoleBase::SetButtonsPanelVertical | ( | bool | state = true | ) |
void iview::CConsoleBase::SetButtonsPanelVisible | ( | bool | state = true | ) |
void iview::CConsoleBase::SetDistanceMeasureButtonVisible | ( | bool | state = true | ) |
void iview::CConsoleBase::SetDistanceMeasureToolActive | ( | bool | state = true | ) |
void iview::CConsoleBase::SetDoubleClickMode | ( | ExtraMode | mode | ) |
void iview::CConsoleBase::SetFitMode | ( | FittingMode | mode | ) |
void iview::CConsoleBase::SetFitReleaseAllowed | ( | bool | state = 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::SetPointMeasureButtonVisible | ( | bool | state = true | ) |
void iview::CConsoleBase::SetPointMeasureToolActive | ( | 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 | ) |
|
pure virtual |
Recalculates enabling flags for buttons.
Implemented in iview::CConsoleGui.
|
pure virtual |
Recalculate menu commands.
Implemented in iview::CConsoleGui.
|
pure virtual |
Recalculates position of all components.
Implemented in iview::CConsoleGui.
|
pure virtual |
Implemented in iview::CConsoleGui.
|
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.
Implemented in iview::CConsoleGui.
void iview::CConsoleBase::UpdateView | ( | ) |
© Witold Gantzke and Kirill Lepskiy