#include <SOCC_ViewModel.h>

Public Types | |
| enum | HotOperation { PAN, ZOOM, ROTATE, FIT_AREA } |
| enum | InteractionStyle { STANDARD, KEY_FREE } |
| typedef QMap< HotOperation, Qt::KeyboardModifiers > | StatesMap |
| typedef QMap< HotOperation, Qt::MouseButtons > | ButtonsMap |
| typedef QMap< InteractionStyle, StatesMap > | InteractionStyle2StatesMap |
| typedef QMap< InteractionStyle, ButtonsMap > | InteractionStyle2ButtonsMap |
Signals | |
| void | selectionChanged () |
| void | deselection () |
Public Member Functions | |
| SOCC_Viewer (bool DisplayTrihedron=true) | |
| virtual | ~SOCC_Viewer () |
| bool | highlight (const Handle(SALOME_InteractiveObject)&, bool, bool=true) |
| bool | isInViewer (const Handle(SALOME_InteractiveObject)&, bool=false) |
| void | setColor (const Handle(SALOME_InteractiveObject)&, const QColor &, bool=true) |
| void | switchRepresentation (const Handle(SALOME_InteractiveObject)&, int, bool=true) |
| void | setTransparency (const Handle(SALOME_InteractiveObject)&, float, bool=true) |
| void | rename (const Handle(SALOME_InteractiveObject)&, const QString &) |
| virtual OCCViewer_ViewWindow * | createSubWindow () |
| virtual void | Display (const SALOME_OCCPrs *) |
| virtual void | Erase (const SALOME_OCCPrs *, const bool=false) |
| virtual void | EraseAll (const bool=false) |
| virtual SALOME_Prs * | CreatePrs (const char *entry=0) |
| virtual void | LocalSelection (const SALOME_OCCPrs *, const int) |
| virtual void | GlobalSelection (const bool=false) const |
| virtual bool | isVisible (const Handle(SALOME_InteractiveObject)&) |
| virtual void | GetVisible (SALOME_ListIO &) |
| virtual void | Repaint () |
| bool | getTrihedronSize (double &theNewSize, double &theSize) |
| void | update () |
| virtual SUIT_ViewWindow * | createView (SUIT_Desktop *theDesktop) |
| virtual void | setViewManager (SUIT_ViewManager *theViewManager) |
| virtual QString | getType () const |
| virtual void | contextMenuPopup (QMenu *) |
| void | getSelectedObjects (AIS_ListOfInteractive &theList) |
| void | setObjectsSelected (const AIS_ListOfInteractive &theList) |
| void | setSelected (const Handle(AIS_InteractiveObject)&theIO) |
| void | performSelectionChanged () |
| QColor | backgroundColor () const |
| QColor | backgroundColor (int theViewId) const |
| void | setBackgroundColor (const QColor &) |
| void | setBackgroundColor (int theViewId, const QColor &) |
| bool | trihedronActivated () const |
| returns true if 3d Trihedron in viewer was created | |
| void | toggleTrihedron () |
| bool | isTrihedronVisible () const |
| virtual void | setTrihedronShown (const bool) |
| double | trihedronSize () const |
| virtual void | setTrihedronSize (const double) |
| Handle (V3d_Viewer) getViewer3d() const | |
| Handle (V3d_Viewer) getCollector3d() const | |
| Handle (AIS_InteractiveContext) getAISContext() const | |
| Handle (AIS_Trihedron) getTrihedron() const | |
| int | interactionStyle () const |
| void | setInteractionStyle (const int) |
| int | zoomingStyle () const |
| void | setZoomingStyle (const int) |
| void | enableSelection (bool isEnabled) |
| bool | isSelectionEnabled () const |
| void | enableMultiselection (bool isEnable) |
| bool | isMultiSelectionEnabled () const |
| int | getSelectionCount () const |
| bool | isStaticTrihedronDisplayed () |
| bool | highlight (const Handle(AIS_InteractiveObject)&, bool, bool=true) |
| bool | unHighlightAll (bool=true) |
| bool | isInViewer (const Handle(AIS_InteractiveObject)&, bool=false) |
| bool | isVisible (const Handle(AIS_InteractiveObject)&) |
| void | setColor (const Handle(AIS_InteractiveObject)&, const QColor &, bool=true) |
| void | switchRepresentation (const Handle(AIS_InteractiveObject)&, int, bool=true) |
| void | setTransparency (const Handle(AIS_InteractiveObject)&, float, bool=true) |
| void | setIsos (const int u, const int v) |
| void | isos (int &u, int &v) const |
| void | initView (OCCViewer_ViewWindow *view) |
| SUIT_ViewManager * | getViewManager () const |
| void | Display (const SALOME_Prs *) |
| This Display() method should be called to display given presentation created anywhere by anybody. | |
| virtual void | Display (const SALOME_VTKPrs *) |
| Display SALOME_VTKPrs presentation. | |
| virtual void | Display (const SALOME_Prs2d *) |
| Display SALOME_Prs2d presentation. | |
| void | Erase (const SALOME_Prs *, const bool=false) |
| This Erase() method should be called to erase given presentation created anywhere by anybody. | |
| virtual void | Erase (const SALOME_VTKPrs *, const bool=false) |
| Erase SALOME_VTKPrs. | |
| virtual void | Erase (const SALOME_Prs2d *, const bool=false) |
| Erase SALOME_Prs2d. | |
| void | LocalSelection (const SALOME_Prs *, const int) |
| This LocalSelection() method should be called to activate sub-shapes selection created anywhere by anybody. | |
| virtual void | LocalSelection (const SALOME_VTKPrs *, const int) |
| Local selection SALOME_VTKPrs. | |
| virtual void | LocalSelection (const SALOME_Prs2d *, const int) |
| Local selection SALOME_Prs2d. | |
| virtual void | BeforeDisplay (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | AfterDisplay (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | BeforeErase (SALOME_Displayer *, const SALOME_Prs *) |
| virtual void | AfterErase (SALOME_Displayer *, const SALOME_Prs *) |
| virtual bool | isVisible (const Handle_SALOME_InteractiveObject &) |
Static Public Member Functions | |
| static QString | Type () |
| static void | setHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers theState, Qt::MouseButtons theButton) |
| static void | getHotButton (InteractionStyle theInteractionStyle, HotOperation theOper, Qt::KeyboardModifiers &theState, Qt::MouseButtons &theButton) |
Data Fields | |
| std::map< std::string, std::vector< Handle(AIS_InteractiveObject)> > | entry2aisobjects |
Static Public Attributes | |
| static InteractionStyle2StatesMap | myStateMap |
| static InteractionStyle2ButtonsMap | myButtonMap |
Protected Slots | |
| void | onMousePress (SUIT_ViewWindow *, QMouseEvent *) |
| void | onMouseMove (SUIT_ViewWindow *, QMouseEvent *) |
| void | onMouseRelease (SUIT_ViewWindow *, QMouseEvent *) |
| void | onKeyPress (SUIT_ViewWindow *, QKeyEvent *) |
| void | onDumpView () |
| void | onChangeBgColor () |
Protected Attributes | |
| SUIT_ViewManager * | myViewManager |
typedef QMap<HotOperation, Qt::KeyboardModifiers> SUIT_ViewModel.StatesMap [inherited] |
typedef QMap<HotOperation, Qt::MouseButtons> SUIT_ViewModel.ButtonsMap [inherited] |
typedef QMap<InteractionStyle, StatesMap> SUIT_ViewModel.InteractionStyle2StatesMap [inherited] |
typedef QMap<InteractionStyle, ButtonsMap> SUIT_ViewModel.InteractionStyle2ButtonsMap [inherited] |
enum SUIT_ViewModel::HotOperation [inherited] |
enum SUIT_ViewModel::InteractionStyle [inherited] |
| SOCC_Viewer::SOCC_Viewer | ( | bool | DisplayTrihedron = true | ) |
Constructor
| DisplayTrihedron | - is trihedron displayed |
| SOCC_Viewer::~SOCC_Viewer | ( | ) | [virtual] |
Destructor
| bool SOCC_Viewer::highlight | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| bool | hilight, | ||
| bool | upd = true |
||
| ) |
Hilights/unhilights object in viewer
| obj | - object to be updated |
| hilight | - if it is true, object will be hilighted, otherwise it will be unhilighted |
| update | - update current viewer |
References OCCViewer_Viewer.Handle(), and OCCViewer_Viewer.update().
| bool SOCC_Viewer::isInViewer | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| bool | onlyInViewer = false |
||
| ) |
| obj | - object to be checked |
| onlyInViewer | - search object only in viewer (so object must be displayed) |
References OCCViewer_Viewer.Handle().
| void SOCC_Viewer::setColor | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| const QColor & | color, | ||
| bool | update = true |
||
| ) |
Sets color of object
| obj | - object to be updated |
| color | - new color |
| update | - update current viewer |
References entry2aisobjects, SALOME_InteractiveObject.getEntry(), OCCViewer_Viewer.Handle(), SALOME_InteractiveObject.hasEntry(), and OCCViewer_Viewer.setColor().
| void SOCC_Viewer::switchRepresentation | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| int | mode, | ||
| bool | update = true |
||
| ) |
Changes display mode of object
| obj | - object to be processed |
| mode | - new display mode |
| update | - update current viewer |
References entry2aisobjects, SALOME_InteractiveObject.getEntry(), OCCViewer_Viewer.Handle(), SALOME_InteractiveObject.hasEntry(), and OCCViewer_Viewer.switchRepresentation().
| void SOCC_Viewer::setTransparency | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| float | trans, | ||
| bool | update = true |
||
| ) |
Changes transparency of object
| obj | - object to be processed |
| trans | - new transparency |
| update | - update current viewer |
References entry2aisobjects, SALOME_InteractiveObject.getEntry(), OCCViewer_Viewer.Handle(), SALOME_InteractiveObject.hasEntry(), and OCCViewer_Viewer.setTransparency().
| void SOCC_Viewer::rename | ( | const Handle(SALOME_InteractiveObject)& | obj, |
| const QString & | name | ||
| ) |
Changes name of object
| obj | - object to be renamed |
| name | - new name |
References OCCViewer_Viewer.Handle(), and STANDARD_TYPE().
| OCCViewer_ViewWindow * SOCC_Viewer::createSubWindow | ( | ) | [virtual] |
create SOCC_ViewWindow
Reimplemented from OCCViewer_Viewer.
| void SOCC_Viewer::Display | ( | const SALOME_OCCPrs * | prs | ) | [virtual] |
Display presentation
| prs | - presentation |
Reimplemented from SALOME_View.
References entry2aisobjects, SOCC_Prs.GetObjects(), getTrihedronSize(), OCCViewer_Viewer.Handle(), SOCC_Prs.IsNull(), STANDARD_TYPE(), and SOCC_Prs.ToActivate().
| void SOCC_Viewer::Erase | ( | const SALOME_OCCPrs * | prs, |
| const bool | forced = false |
||
| ) | [virtual] |
Erase presentation
| prs | - presentation |
| forced | - removes object from context |
Reimplemented from SALOME_View.
References SOCC_Prs.GetObjects(), OCCViewer_Viewer.Handle(), and SOCC_Prs.IsNull().
| void SOCC_Viewer::EraseAll | ( | const bool | forced = false | ) | [virtual] |
Erase all presentations
| forced | - removes all objects from context |
Reimplemented from SALOME_View.
References OCCViewer_Viewer.Handle(), Repaint(), and STANDARD_TYPE().
| SALOME_Prs * SOCC_Viewer::CreatePrs | ( | const char * | entry = 0 | ) | [virtual] |
Create presentation corresponding to the entry
| entry | - entry |
Reimplemented from SALOME_View.
References SOCC_Prs.AddObject(), entry2aisobjects, and OCCViewer_Viewer.Handle().
| void SOCC_Viewer::LocalSelection | ( | const SALOME_OCCPrs * | thePrs, |
| const int | theMode | ||
| ) | [virtual] |
Activates selection of sub shapes
Reimplemented from SALOME_View.
References SOCC_Prs.GetObjects(), OCCViewer_Viewer.Handle(), SALOME_Prs.IsNull(), and STANDARD_TYPE().
| void SOCC_Viewer::GlobalSelection | ( | const bool | update = false | ) | const [virtual] |
Deactivates selection of sub shapes
Reimplemented from SALOME_View.
References OCCViewer_Viewer.Handle().
| bool SOCC_Viewer::isVisible | ( | const Handle(SALOME_InteractiveObject)& | obj | ) | [virtual] |
| obj | - object to be checked |
References entry2aisobjects, SALOME_InteractiveObject.getEntry(), and OCCViewer_Viewer.Handle().
| void SOCC_Viewer::GetVisible | ( | SALOME_ListIO & | theList | ) | [virtual] |
objects visible in viewer
| theList | - visible objects collection |
Reimplemented from SALOME_View.
References SALOME_ListIO.Append(), and OCCViewer_Viewer.Handle().
| void SOCC_Viewer::Repaint | ( | ) | [virtual] |
Updates current viewer
Reimplemented from SALOME_View.
| bool SOCC_Viewer::getTrihedronSize | ( | double & | theNewSize, |
| double & | theSize | ||
| ) |
Get new and current trihedron size corresponding to the current model size
References QtxResourceMgr.doubleValue(), EPS, OCCViewer_Viewer.Handle(), SUIT_Session.resourceMgr(), and SUIT_Session.session().
| static QString OCCViewer_Viewer.Type | ( | ) | [static, inherited] |
| void OCCViewer_Viewer::update | ( | ) | [inherited] |
Updates OCC 3D viewer
References SUIT_ViewManager.getActiveView(), SUIT_ViewModel.myViewManager, and OCCViewer_ViewWindow.updateGravityCoords().
| SUIT_ViewWindow * OCCViewer_Viewer::createView | ( | SUIT_Desktop * | theDesktop | ) | [virtual, inherited] |
Creates new view window
| theDesktop | - main window of application |
Reimplemented from SUIT_ViewModel.
References OCCViewer_ViewFrame.getView(), OCCViewer_Viewer.initView(), and OCCViewer_ViewFrame.MAIN_VIEW.
| void OCCViewer_Viewer::setViewManager | ( | SUIT_ViewManager * | theViewManager | ) | [virtual, inherited] |
Sets new view manager
| theViewManager | - new view manager |
Reimplemented from SUIT_ViewModel.
References OCCViewer_Viewer.onKeyPress(), OCCViewer_Viewer.onMouseMove(), OCCViewer_Viewer.onMousePress(), and OCCViewer_Viewer.onMouseRelease().
| virtual QString OCCViewer_Viewer.getType | ( | ) | const [virtual, inherited] |
Reimplemented from SUIT_ViewModel.
| void OCCViewer_Viewer::contextMenuPopup | ( | QMenu * | thePopup | ) | [virtual, inherited] |
Builds popup for occ viewer
Reimplemented from SUIT_ViewModel.
References SUIT_ViewManager.getActiveView(), SUIT_ViewModel.myViewManager, OCCViewer_Viewer.onChangeBgColor(), and OCCViewer_Viewer.onDumpView().
| void OCCViewer_Viewer::getSelectedObjects | ( | AIS_ListOfInteractive & | theList | ) | [inherited] |
| theList | - list to be filled with selected objects |
| void OCCViewer_Viewer::setObjectsSelected | ( | const AIS_ListOfInteractive & | theList | ) | [inherited] |
Selects objects in 3D viewer. Other selected objects are left as selected
| theList | - list objects to be selected |
| void OCCViewer_Viewer.setSelected | ( | const Handle(AIS_InteractiveObject)& | theIO | ) | [inherited] |
| void OCCViewer_Viewer::performSelectionChanged | ( | ) | [inherited] |
Auxiliary method to emit signal selectionChanged()
References OCCViewer_Viewer.selectionChanged().
| QColor OCCViewer_Viewer::backgroundColor | ( | ) | const [inherited] |
References OCCViewer_Viewer.myColors.
| QColor OCCViewer_Viewer::backgroundColor | ( | int | theViewId | ) | const [inherited] |
References OCCViewer_Viewer.myColors.
| void OCCViewer_Viewer::setBackgroundColor | ( | const QColor & | c | ) | [inherited] |
Sets background color
| c | - new background color |
| void OCCViewer_Viewer::setBackgroundColor | ( | int | theViewId, |
| const QColor & | theColor | ||
| ) | [inherited] |
References OCCViewer_Viewer.myColors.
| bool OCCViewer_Viewer.trihedronActivated | ( | ) | const [inherited] |
| void OCCViewer_Viewer::toggleTrihedron | ( | ) | [inherited] |
Changes visibility of trihedron to opposite
References OCCViewer_Viewer.isTrihedronVisible(), and OCCViewer_Viewer.setTrihedronShown().
| bool OCCViewer_Viewer::isTrihedronVisible | ( | ) | const [inherited] |
| void OCCViewer_Viewer::setTrihedronShown | ( | const bool | on | ) | [virtual, inherited] |
Sets visibility state of trihedron
| on | - new state |
| double OCCViewer_Viewer::trihedronSize | ( | ) | const [inherited] |
| void OCCViewer_Viewer::setTrihedronSize | ( | const double | sz | ) | [virtual, inherited] |
Changes trihedron size
| sz | - new size |
| OCCViewer_Viewer.Handle | ( | V3d_Viewer | ) | const [inherited] |
| OCCViewer_Viewer.Handle | ( | V3d_Viewer | ) | const [inherited] |
| OCCViewer_Viewer.Handle | ( | AIS_InteractiveContext | ) | const [inherited] |
| OCCViewer_Viewer.Handle | ( | AIS_Trihedron | ) | const [inherited] |
| int OCCViewer_Viewer::interactionStyle | ( | ) | const [inherited] |
References OCCViewer_Viewer.myInteractionStyle.
| void OCCViewer_Viewer::setInteractionStyle | ( | const int | theStyle | ) | [inherited] |
Sets interaction style: 0 - standard, 1 - keyboard free interaction
| theStyle | - new interaction style |
! To be done for view windows
References SUIT_ViewManager.getViews(), OCCViewer_Viewer.myInteractionStyle, SUIT_ViewModel.myViewManager, and OCCViewer_ViewWindow.setInteractionStyle().
| int OCCViewer_Viewer::zoomingStyle | ( | ) | const [inherited] |
References OCCViewer_Viewer.myZoomingStyle.
| void OCCViewer_Viewer::setZoomingStyle | ( | const int | theStyle | ) | [inherited] |
Sets zooming style: 0 - standard, 1 - advanced (at cursor)
| theStyle | - new zooming style |
! To be done for view windows
References SUIT_ViewManager.getViews(), SUIT_ViewModel.myViewManager, OCCViewer_Viewer.myZoomingStyle, and OCCViewer_ViewWindow.setZoomingStyle().
| void OCCViewer_Viewer::enableSelection | ( | bool | isEnabled | ) | [inherited] |
Sets selection enabled status
| isEnabled | - new status |
! To be done for view windows
References SUIT_ViewManager.getViews(), OCCViewer_Viewer.mySelectionEnabled, SUIT_ViewModel.myViewManager, and OCCViewer_ViewWindow.updateEnabledDrawMode().
| bool OCCViewer_Viewer.isSelectionEnabled | ( | ) | const [inherited] |
| void OCCViewer_Viewer::enableMultiselection | ( | bool | isEnable | ) | [inherited] |
Sets multiselection enabled status
| isEnabled | - new status |
! To be done for view windows
References SUIT_ViewManager.getViews(), OCCViewer_Viewer.myMultiSelectionEnabled, SUIT_ViewModel.myViewManager, and OCCViewer_ViewWindow.updateEnabledDrawMode().
| bool OCCViewer_Viewer.isMultiSelectionEnabled | ( | ) | const [inherited] |
| int OCCViewer_Viewer.getSelectionCount | ( | ) | const [inherited] |
| bool OCCViewer_Viewer.isStaticTrihedronDisplayed | ( | ) | [inherited] |
| bool OCCViewer_Viewer::highlight | ( | const Handle(AIS_InteractiveObject)& | obj, |
| bool | hilight, | ||
| bool | update = true |
||
| ) | [inherited] |
Hilights/unhilights object in viewer
| obj | - object to be updated |
| hilight | - if it is true, object will be hilighted, otherwise it will be unhilighted |
| update | - update current viewer |
| bool OCCViewer_Viewer::unHighlightAll | ( | bool | updateviewer = true | ) | [inherited] |
Unhilights all objects in viewer
| updateviewer | - update current viewer |
| bool OCCViewer_Viewer::isInViewer | ( | const Handle(AIS_InteractiveObject)& | obj, |
| bool | onlyInViewer = false |
||
| ) | [inherited] |
| obj | - object to be checked |
| onlyInViewer | - search object only in viewer (so object must be displayed) |
References PyInterp.obj.
| bool OCCViewer_Viewer::isVisible | ( | const Handle(AIS_InteractiveObject)& | obj | ) | [inherited] |
| obj | - object to be checked |
| void OCCViewer_Viewer::setColor | ( | const Handle(AIS_InteractiveObject)& | obj, |
| const QColor & | color, | ||
| bool | update = true |
||
| ) | [inherited] |
Sets color of object
| obj | - object to be updated |
| color | - new color |
| update | - update current viewer |
| void OCCViewer_Viewer::switchRepresentation | ( | const Handle(AIS_InteractiveObject)& | obj, |
| int | mode, | ||
| bool | update = true |
||
| ) | [inherited] |
Changes display mode of object
| obj | - object to be processed |
| mode | - new display mode |
| update | - update current viewer |
| void OCCViewer_Viewer::setTransparency | ( | const Handle(AIS_InteractiveObject)& | obj, |
| float | trans, | ||
| bool | update = true |
||
| ) | [inherited] |
Changes transparency of object
| obj | - object to be processed |
| trans | - new transparency |
| update | - update current viewer |
| void OCCViewer_Viewer::setIsos | ( | const int | u, |
| const int | v | ||
| ) | [inherited] |
Set number of isolines
| u | - u-isolines (first parametric co-ordinate) |
| v | - v-isolines (second parametric co-ordinate) |
References OCCViewer_Viewer.Handle().
| void OCCViewer_Viewer::isos | ( | int & | u, |
| int & | v | ||
| ) | const [inherited] |
| u | - to return u-isolines (first parametric co-ordinate) |
| v | - to return v-isolines (second parametric co-ordinate) |
References OCCViewer_Viewer.Handle().
| void OCCViewer_Viewer::initView | ( | OCCViewer_ViewWindow * | view | ) | [inherited] |
Start initialization of view window
| view | - view window to be initialized |
References OCCViewer_ViewWindow.getViewPort(), OCCViewer_ViewWindow.initLayout(), OCCViewer_ViewWindow.initSketchers(), OCCViewer_Viewer.interactionStyle(), OCCViewer_Viewer.myColors, OCCViewer_ViewPort3d.setBackgroundColor(), OCCViewer_ViewWindow.setInteractionStyle(), OCCViewer_ViewWindow.setZoomingStyle(), and OCCViewer_Viewer.zoomingStyle().
| void OCCViewer_Viewer.selectionChanged | ( | ) | [signal, inherited] |
| void OCCViewer_Viewer.deselection | ( | ) | [signal, inherited] |
| void OCCViewer_Viewer::onMousePress | ( | SUIT_ViewWindow * | theWindow, |
| QMouseEvent * | theEvent | ||
| ) | [protected, slot, inherited] |
SLOT: called on mouse button press, stores current mouse position as start point for transformations
References OCCViewer_Viewer.myStartPnt.
| void OCCViewer_Viewer::onMouseMove | ( | SUIT_ViewWindow * | theWindow, |
| QMouseEvent * | theEvent | ||
| ) | [protected, slot, inherited] |
SLOT: called on mouse move, processes transformation or hilighting
References OCCViewer_ViewWindow.getViewPort(), OCCViewer_Viewer.Handle(), OCCViewer_ViewPort3d.isBusy(), OCCViewer_Viewer.isSelectionEnabled(), and OCCViewer_Viewer.mySelectionEnabled.
| void OCCViewer_Viewer::onMouseRelease | ( | SUIT_ViewWindow * | theWindow, |
| QMouseEvent * | theEvent | ||
| ) | [protected, slot, inherited] |
SLOT: called on mouse button release, finishes transformation or selection
References OCCViewer_Viewer.deselection(), OCCViewer_ViewWindow.getViewPort(), OCCViewer_Viewer.Handle(), OCCViewer_ViewWindow.interactionStyle(), OCCViewer_Viewer.myEndPnt, OCCViewer_Viewer.myMultiSelectionEnabled, OCCViewer_Viewer.mySelectionEnabled, OCCViewer_Viewer.myStartPnt, OCCViewer_Viewer.selectionChanged(), and SUIT_ViewModel.STANDARD.
| void OCCViewer_Viewer::onKeyPress | ( | SUIT_ViewWindow * | theWindow, |
| QKeyEvent * | theEvent | ||
| ) | [protected, slot, inherited] |
SLOT: called on key press, processes selection in "key free" interaction style
References OCCViewer_Viewer.deselection(), OCCViewer_ViewWindow.interactionStyle(), SUIT_ViewModel.KEY_FREE, OCCViewer_Viewer.mySelectionEnabled, and OCCViewer_Viewer.selectionChanged().
| void OCCViewer_Viewer::onDumpView | ( | ) | [protected, slot, inherited] |
SLOT: called on dump view operation is activated, stores scene to raster file
References SUIT_ViewManager.getActiveView(), SUIT_ViewModel.myViewManager, and SUIT_ViewWindow.onDumpView().
| void OCCViewer_Viewer::onChangeBgColor | ( | ) | [protected, slot, inherited] |
SLOT: called if background color is to be changed changed, passes new color to view port
References OCCViewer_ViewWindow.backgroundColor(), SUIT_ViewManager.getActiveView(), SUIT_ViewModel.myViewManager, and OCCViewer_ViewWindow.setBackgroundColor().
| SUIT_ViewManager * SUIT_ViewModel::getViewManager | ( | ) | const [inherited] |
| void SUIT_ViewModel::setHotButton | ( | InteractionStyle | theInteractionStyle, |
| HotOperation | theOper, | ||
| Qt::KeyboardModifiers | theState, | ||
| Qt::MouseButtons | theButton | ||
| ) | [static, inherited] |
Sets hot button
| theOper | - hot operation |
| theState | - adding state to state map operations. |
| theButton | - adding state to button map operations. |
References SUIT_ViewModel.myButtonMap, and SUIT_ViewModel.myStateMap.
| void SUIT_ViewModel::getHotButton | ( | InteractionStyle | theInteractionStyle, |
| HotOperation | theOper, | ||
| Qt::KeyboardModifiers & | theState, | ||
| Qt::MouseButtons & | theButton | ||
| ) | [static, inherited] |
Gets hot button for operation theOper.
| theOper | - input hot operation |
| theState | - output state from state map operations. |
| theButton | - output state from button map operations. |
References SUIT_ViewModel.myButtonMap, and SUIT_ViewModel.myStateMap.
| void SALOME_View::Display | ( | const SALOME_Prs * | prs | ) | [inherited] |
It simply passes control to SALOME_Prs object so that it could perform double dispatch.
Gives control to SALOME_Prs object, so that it could perform double dispatch
References SALOME_Prs.DisplayIn().
| void SALOME_View::Display | ( | const SALOME_VTKPrs * | ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
Reimplemented in SVTK_Viewer.
| void SALOME_View::Display | ( | const SALOME_Prs2d * | ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
Reimplemented in SPlot2d_Viewer.
| void SALOME_View::Erase | ( | const SALOME_Prs * | prs, |
| const bool | forced = false |
||
| ) | [inherited] |
It simply passes control to SALOME_Prs object so that it could perform double dispatch.
Gives control to SALOME_Prs object, so that it could perform double dispatch
References SALOME_Prs.EraseIn().
| void SALOME_View::Erase | ( | const SALOME_VTKPrs * | , |
| const bool | = false |
||
| ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
Reimplemented in SVTK_Viewer.
| void SALOME_View::Erase | ( | const SALOME_Prs2d * | , |
| const bool | = false |
||
| ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
Reimplemented in SPlot2d_Viewer.
| void SALOME_View::LocalSelection | ( | const SALOME_Prs * | prs, |
| const int | mode | ||
| ) | [inherited] |
It simply passes control to SALOME_Prs object so that it could perform double dispatch.
Gives control to SALOME_Prs object, so that it could perform double dispatch
References SALOME_Prs.LocalSelectionIn().
| void SALOME_View::LocalSelection | ( | const SALOME_VTKPrs * | , |
| const int | |||
| ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
| void SALOME_View::LocalSelection | ( | const SALOME_Prs2d * | , |
| const int | |||
| ) | [virtual, inherited] |
Virtual method, should be reimplemented in successors, by default issues a warning and does nothing.
| void SALOME_View::BeforeDisplay | ( | SALOME_Displayer * | d, |
| const SALOME_Prs * | p | ||
| ) | [virtual, inherited] |
References SALOME_Prs.BeforeDisplayIn().
| void SALOME_View::AfterDisplay | ( | SALOME_Displayer * | d, |
| const SALOME_Prs * | p | ||
| ) | [virtual, inherited] |
References SALOME_Prs.AfterDisplayIn().
| void SALOME_View::BeforeErase | ( | SALOME_Displayer * | d, |
| const SALOME_Prs * | p | ||
| ) | [virtual, inherited] |
References SALOME_Prs.BeforeEraseIn().
| void SALOME_View::AfterErase | ( | SALOME_Displayer * | d, |
| const SALOME_Prs * | p | ||
| ) | [virtual, inherited] |
References SALOME_Prs.AfterEraseIn().
| virtual bool SALOME_View.isVisible | ( | const Handle_SALOME_InteractiveObject & | ) | [virtual, inherited] |
| Return | false. |
| std::map< std::string , std::vector<Handle(AIS_InteractiveObject)> > SOCC_Viewer.entry2aisobjects |
SUIT_ViewManager* SUIT_ViewModel.myViewManager [protected, inherited] |
SUIT_ViewModel::InteractionStyle2StatesMap SUIT_ViewModel::myStateMap [static, inherited] |
SUIT_ViewModel::InteractionStyle2ButtonsMap SUIT_ViewModel::myButtonMap [static, inherited] |