SHAPER
9.13.0
|
A Base object for definition of connector object to Salome Viewer. More...
Public Types | |
typedef std::list< std::pair< std::wstring, std::vector< int > > > | TextColor |
Type for mapping from text to color to display the names lines in different colors. More... | |
Signals | |
void | lastViewClosed () |
Signal emited when last view window is closed. More... | |
void | tryCloseView (ModuleBase_IViewWindow *theWnd) |
Signal emited before view window is closed. More... | |
void | deleteView (ModuleBase_IViewWindow *theWnd) |
Signal emited on delete view window. More... | |
void | viewCreated (ModuleBase_IViewWindow *theWnd) |
Signal emited on creation of view window. More... | |
void | activated (ModuleBase_IViewWindow *theWnd) |
Signal emited on key release. More... | |
void | mousePress (ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent) |
Signal emited on mouse press. More... | |
void | mouseRelease (ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent) |
Signal emited on mouse release. More... | |
void | mouseDoubleClick (ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent) |
Signal emited on mouse double click. More... | |
void | mouseMove (ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent) |
Signal emited on mouse move. More... | |
void | keyPress (ModuleBase_IViewWindow *theWnd, QKeyEvent *theEvent) |
Signal emited on key press. More... | |
void | keyRelease (ModuleBase_IViewWindow *theWnd, QKeyEvent *theEvent) |
Signal emited on key release. More... | |
void | selectionChanged () |
Signal emited on selection changed. More... | |
void | contextMenuRequested (QContextMenuEvent *) |
Signal emited on selection changed. More... | |
void | viewTransformed (int theTransformation) |
Signal emitted on transformation of view point in view window. More... | |
void | trihedronVisibilityChanged (bool theState) |
Signal emited on selection changed. More... | |
Public Member Functions | |
ModuleBase_IViewer (QObject *theParent) | |
Constructor. More... | |
virtual | HandleAAISContext () const =0 |
Returns AIS_InteractiveContext from current OCCViewer. More... | |
virtual | Handlettrihedron () const =0 |
Trihedron 3d object shown in the viewer. More... | |
virtual | Handlevv3dViewer () const =0 |
Retrurns V3d_Vioewer from current viewer. More... | |
virtual | HandleaactiveView () const =0 |
Returns Vsd_View object from currently active view window. More... | |
virtual QWidget * | activeViewPort () const =0 |
Returns currently active view port widget. More... | |
virtual void | enableSelection (bool isEnabled)=0 |
Enable or disable selection in the viewer. More... | |
virtual bool | isSelectionEnabled () const =0 |
Returns true if selection is enabled. More... | |
virtual void | enableMultiselection (bool isEnable)=0 |
Enable or disable multiselection in the viewer. More... | |
virtual bool | isMultiSelectionEnabled () const =0 |
Returns true if multiselection is enabled. More... | |
virtual bool | enableDrawMode (bool isEnabled)=0 |
Enable or disable draw mode in the viewer. More... | |
virtual void | fitAll ()=0 |
Perfroms the fit all for the active view. More... | |
virtual void | eraseAll ()=0 |
Erases all presentations from the viewer. More... | |
virtual void | setViewProjection (double theX, double theY, double theZ, double theTwist)=0 |
Sets the view projection. More... | |
virtual void | addSelectionFilter (const Handle &&theFilter)=0 |
Add selection filter to the viewer. More... | |
virtual void | removeSelectionFilter (const Handle &&theFilter)=0 |
Remove selection filter from the viewer. More... | |
virtual bool | hasSelectionFilter (const Handle &&theFilter)=0 |
Returns true if the selection filter is set to the viewer. More... | |
virtual void | update ()=0 |
Update current viewer. More... | |
const double | Scale (const Handle &&theView) |
Returns a scale factor of the given view. More... | |
void | SetScale (const Handle &&theView, const double theVal) |
Remember a scale factor for the view object. More... | |
virtual bool | canDragByMouse () const |
Method returns True if the viewer can process editing objects by mouse drugging. More... | |
virtual void | updateHighlight () |
Fit all along Z (perpendicular to display) More... | |
void | set2dMode (bool is2d) |
Set flag which indicates that viewer is used for 2d operations. More... | |
bool | is2dMode () const |
Returns current state of 2d mode flag. More... | |
virtual bool | isColorScaleVisible () const =0 |
Returns True if ColorScale is visible. More... | |
virtual void | setColorScaleShown (bool on)=0 |
Show/Hide ColorScale object. More... | |
virtual void | setColorScalePosition (double theX, double theY)=0 |
Set position of color scale. More... | |
virtual void | setColorScaleSize (double theW, double theH)=0 |
Set size of color scale. More... | |
virtual void | setColorScaleRange (double theMin, double theMax)=0 |
Set range of color scale. More... | |
virtual void | setColorScaleIntervals (int theNb)=0 |
Set number of intervals of color scale. More... | |
virtual void | setColorScaleTextHeigth (int theH)=0 |
Set text heigth of color scale. More... | |
virtual void | setColorScaleTextColor (const QColor &theColor)=0 |
Set color of text of color scale. More... | |
virtual void | setColorScaleTitle (const QString &theText)=0 |
Set title of color scale. More... | |
virtual void | setText (const TextColor &theText, const int theSize)=0 |
Sets the text displayed in right-top corner of the 3D view. More... | |
void | showSelectionHighlight () |
Switches On additional highlight for objects preselection. More... | |
void | hideSelectionHighlight () |
Switches Off additional highlight for objects preselection. More... | |
virtual void | setFitter (AppElements_Fitter *theFitter)=0 |
virtual AppElements_Fitter * | fitter () const =0 |
Static Public Attributes | |
static | HandleDDefaultHighlightDrawer |
Protected Attributes | |
QMap< Handle,, double > | myWindowScale |
A map for storing a scale factors dependent on view object. More... | |
bool | myIs2dMode |
bool | myShowHighlight |
A Base object for definition of connector object to Salome Viewer.
Reimplemented in SHAPERGUI_SalomeViewer class
typedef std::list<std::pair<std::wstring, std::vector<int> > > ModuleBase_IViewer::TextColor |
Type for mapping from text to color to display the names lines in different colors.
ModuleBase_IViewer::ModuleBase_IViewer | ( | QObject * | theParent | ) |
Constructor.
theParent | a parent object |
|
pure virtual |
Returns AIS_InteractiveContext from current OCCViewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Trihedron 3d object shown in the viewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Retrurns V3d_Vioewer from current viewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Returns Vsd_View object from currently active view window.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Returns currently active view port widget.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Enable or disable selection in the viewer.
isEnabled | is enable or disable flag |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Returns true if selection is enabled.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Enable or disable multiselection in the viewer.
isEnable | is enable or disable flag |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Returns true if multiselection is enabled.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Enable or disable draw mode in the viewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Perfroms the fit all for the active view.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Erases all presentations from the viewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Sets the view projection.
theX | the X projection value |
theY | the Y projection value |
theZ | the Z projection value |
theTwist | the twist angle in radians |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Add selection filter to the viewer.
theFilter | a selection filter |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Remove selection filter from the viewer.
theFilter | a selection filter |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Returns true if the selection filter is set to the viewer.
theFilter | a selection filter |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Update current viewer.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
inline |
Returns a scale factor of the given view.
theView | a view object |
|
inline |
Remember a scale factor for the view object.
theView | a view object |
theVal | a scale factor |
|
inlinevirtual |
Method returns True if the viewer can process editing objects by mouse drugging.
If this is impossible thet it has to return False.
Reimplemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
inlinevirtual |
Fit all along Z (perpendicular to display)
Show highlight for pre-highlighted sub-shape
Reimplemented in XGUI_ViewerProxy.
|
inline |
Set flag which indicates that viewer is used for 2d operations.
is2d | a new 2d mode state |
|
inline |
Returns current state of 2d mode flag.
|
pure virtual |
Returns True if ColorScale is visible.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Show/Hide ColorScale object.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set position of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set size of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set range of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set number of intervals of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set text heigth of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set color of text of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Set title of color scale.
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
pure virtual |
Sets the text displayed in right-top corner of the 3D view.
theText | the text to display, or empty string to erase presentation; the first item is the font name and text color |
theSize | size of the text font |
Implemented in XGUI_ViewerProxy, and SHAPERGUI_SalomeViewer.
|
inline |
Switches On additional highlight for objects preselection.
|
inline |
Switches Off additional highlight for objects preselection.
|
signal |
Signal emited when last view window is closed.
|
signal |
Signal emited before view window is closed.
|
signal |
Signal emited on delete view window.
|
signal |
Signal emited on creation of view window.
|
signal |
Signal emited on key release.
|
signal |
Signal emited on mouse press.
|
signal |
Signal emited on mouse release.
|
signal |
Signal emited on mouse double click.
|
signal |
Signal emited on mouse move.
|
signal |
Signal emited on key press.
|
signal |
Signal emited on key release.
|
signal |
Signal emited on selection changed.
|
signal |
Signal emited on selection changed.
|
signal |
Signal emitted on transformation of view point in view window.
theTransformation | type of transformation (see AppElements_ViewWindow::OperationType) |
|
signal |
Signal emited on selection changed.
|
protected |
A map for storing a scale factors dependent on view object.