#include <exotkAF_View.hxx>
Collaboration diagram for exotkAF_View:

Public Methods | |
| void * | operator new (size_t, void *anAddress) |
| OCC new. More... | |
| void * | operator new (size_t size) |
| OCC new. More... | |
| void | operator delete (void *anAddress) |
| OCC delete. More... | |
| Standard_EXPORT | exotkAF_View () |
| Constructor. More... | |
| virtual Standard_EXPORT | ~exotkAF_View () |
| Destructor. More... | |
| virtual Standard_EXPORT void | SetDocument (const Handle_exotkAF_Document &aDocument) |
| Set aDocument as associated document. More... | |
| virtual Standard_EXPORT Standard_Boolean | IsValid () |
| Return true if the view is valid. More... | |
| virtual Standard_EXPORT void | SetNothingMode () |
| Set the current action mode to nothing. More... | |
| virtual Standard_EXPORT void | SetDynamicRotationMode () |
| Set the current action mode to Dynamic Rotation. More... | |
| virtual Standard_EXPORT void | SetDynamicPanningMode () |
| Set the current action mode to Panning. More... | |
| virtual Standard_EXPORT void | SetWindowZoomingMode () |
| Set the current action mode to Window Zooming. More... | |
| virtual Standard_EXPORT void | SetDynamicZoomingMode () |
| Set the current action mode to Dynamic Zooming. More... | |
| virtual Standard_EXPORT void | SetCurrentActionMode (const enum exotkAF_CurrentActionMode aMode) |
| Set aMode as current action mode. More... | |
| virtual Standard_EXPORT exotkAF_CurrentActionMode | CurrentActionMode () |
| Return the current Action Mode. More... | |
| virtual Standard_EXPORT void | SetCurrentMouseButton (const enum exotkAF_MouseButton aButton) |
| Set aButton as current mouse button. More... | |
| virtual Standard_EXPORT exotkAF_MouseButton | CurrentMouseButton () |
| Return the current mouse button. More... | |
| virtual Standard_EXPORT void | CurrentMousePosition (Standard_Integer &aX, Standard_Integer &aY) |
| Return the current mouse position. More... | |
| virtual Standard_EXPORT void | SetShiftKey (const Standard_Boolean On=Standard_True) |
| Set the status of the Shift key ( pushed or not ). More... | |
| virtual Standard_EXPORT void | SetCtrlKey (const Standard_Boolean On=Standard_True) |
| Set the status of the Ctrl key ( pushed or not ). More... | |
| virtual Standard_EXPORT void | Pick (const exotkAF_MouseButton aButton) |
| To call when the user click on a mouse button. More... | |
| virtual Standard_EXPORT void | Release () |
| To call when the user release a mouse button. More... | |
| virtual Standard_EXPORT exotkAF_CurrentActionMode | Move (const Standard_Integer x, const Standard_Integer y) |
| To call when the user mouve the mouse. More... | |
| virtual Standard_EXPORT Standard_Boolean | IsPopup () |
| Return true if the view is in popup mode ( usually right mouse button ). More... | |
| virtual Standard_EXPORT Standard_Boolean | PopupMenu (Handle_exotkTree_Menu &aMenu) |
| Return the computed popup menu. More... | |
| virtual Standard_EXPORT Standard_Boolean | IsDragging () |
| Return true if the mouse is in dragging mode. More... | |
| Standard_EXPORT Handle_V3d_View & | V3dView () |
| Return the associated 3d view from OpenCASCADE. More... | |
| virtual Standard_EXPORT void | Redraw () |
| Redraw the view. More... | |
| virtual Standard_EXPORT void | FitAll () |
| Fit all the view ( all the objects are visible ). More... | |
| virtual Standard_EXPORT void | Reset () |
| Reset the view to its creation settings. More... | |
| virtual Standard_EXPORT void | SetViewType (const enum exotkAF_ViewType aType) |
| Set aType as current view type. More... | |
| virtual Standard_EXPORT void | Back () |
| set the view orientation as back. More... | |
| virtual Standard_EXPORT void | Front () |
| set the view orientation as front. More... | |
| virtual Standard_EXPORT void | Top () |
| set the view orientation as top. More... | |
| virtual Standard_EXPORT void | Bottom () |
| set the view orientation as bottom. More... | |
| virtual Standard_EXPORT void | Left () |
| set the view orientation as left. More... | |
| virtual Standard_EXPORT void | Right () |
| set the view orientation as right. More... | |
| virtual Standard_EXPORT void | Axo () |
| set the view orientation as axo. More... | |
| virtual Standard_EXPORT void | Pan (const Standard_Integer dX, const Standard_Integer dY) |
| Pan the view. More... | |
| virtual Standard_EXPORT void | Rotate (const Standard_Real Ax, const Standard_Real Ay, const Standard_Real Az) |
| Rotate the view along the axis (Ax,Ay,Az). More... | |
| virtual Standard_EXPORT void | WindowFitAll (const Standard_Integer Xmin, const Standard_Integer Ymin, const Standard_Integer Xmax, const Standard_Integer Ymax) |
| Zoom the view. More... | |
| virtual Standard_EXPORT Standard_Boolean | Size (Standard_Integer &aWidth, Standard_Integer &aHeight) |
| Return the size of the view. More... | |
| virtual Standard_EXPORT void | ZoomOut () |
| zoom out the view. More... | |
| virtual Standard_EXPORT void | ZoomIn () |
| zoom in the view. More... | |
| virtual Standard_EXPORT Standard_Boolean | SetBackgroundColor (const Quantity_Color &aColor) |
| Set aColor as background color. More... | |
| virtual Standard_EXPORT Standard_Boolean | SetBackgroundColor (const Standard_Real R=0.5, const Standard_Real G=0.5, const Standard_Real B=0.5, const Standard_Real Base=1.0) |
| Set the background color. More... | |
| virtual Standard_EXPORT Standard_Boolean | BackgroundColor (Standard_Real &R, Standard_Real &G, Standard_Real &B, const Standard_Real &aBase=1.0) |
| Return the background color. More... | |
| virtual Standard_EXPORT Standard_Boolean | BackgroundColor (Quantity_Color &aColor) |
| Return the background color. More... | |
| virtual Standard_EXPORT void | Resize () |
| To call when the view size change. More... | |
| virtual Standard_EXPORT void | SetHiddenLine (const Standard_Boolean On=Standard_True) |
| Set the hidden line removal status. More... | |
| virtual Standard_EXPORT Standard_Boolean | HiddenLine () |
| Return the hidden line removal status. More... | |
| virtual Standard_EXPORT void | SetAntialiasing (const Standard_Boolean On=Standard_True) |
| Set the antialiasing status. More... | |
| virtual Standard_EXPORT Standard_Boolean | Antialiasing () |
| Return the antialiasing status. More... | |
| Standard_EXPORT const Handle_Standard_Type & | DynamicType () const |
| Type management. More... | |
| Standard_EXPORT Standard_Boolean | IsKind (const Handle_Standard_Type &) const |
| Type management. More... | |
Public Attributes | |
| Standard_Integer | myCurrentXMousePosition |
| Standard_Integer | myCurrentYMousePosition |
| Standard_Integer | mySavedXMousePosition |
| Standard_Integer | mySavedYMousePosition |
Protected Methods | |
| virtual Standard_EXPORT Standard_Boolean | CreateView (const Handle_V3d_Viewer &aViewer, const Aspect_Handle &anHandle) |
| Create the view. More... | |
| virtual Standard_EXPORT void | MoveTo (const Standard_Integer x, const Standard_Integer y) |
| Manage the move. More... | |
| virtual Standard_EXPORT exotkAF_CurrentActionMode | CtrlMove (const Standard_Integer x, const Standard_Integer y) |
| Manage the move when Ctrl is pushed. More... | |
| virtual Standard_EXPORT exotkAF_CurrentActionMode | ShiftMove (const Standard_Integer x, const Standard_Integer y) |
| Manage the move when Shift is pushed. More... | |
Protected Attributes | |
| Handle_exotkAF_Document | myDocument |
| exotkAF_CurrentActionMode | myCurrentActionMode |
| exotkAF_MouseButton | myCurrentMouseButton |
| Standard_Boolean | myCtrlPushed |
| Standard_Boolean | myShiftPushed |
| Standard_Boolean | myIsDragging |
| Standard_Integer | myInitialXMousePosition |
| Standard_Integer | myInitialYMousePosition |
| Handle_V3d_View | myView |
| Standard_Boolean | myAntialiasingIsOn |
| Standard_Boolean | myIsHiddenLine |
Friends | |
| class | exotkAF_Document |
| Standard_EXPORT friend Handle_Standard_Type & | exotkAF_View_Type_ () |
| Type management. More... | |
Definition at line 65 of file exotkAF_View.hxx.
|
|
Constructor.
Definition at line 100 of file exotkAF_View.cxx. References exotkAF_camNothing, and exotkAF_mbNone. |
|
|
Destructor.
Definition at line 125 of file exotkAF_View.cxx. References myView. |
|
|
Return the antialiasing status.
Definition at line 1089 of file exotkAF_View.cxx. References myAntialiasingIsOn. |
|
|
set the view orientation as axo.
Definition at line 796 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
|
set the view orientation as back.
Definition at line 700 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
|
Return the background color.
Definition at line 961 of file exotkAF_View.cxx. References BackgroundColor(). |
|
||||||||||||||||||||
|
Return the background color.
Definition at line 937 of file exotkAF_View.cxx. References myView. Referenced by BackgroundColor(). |
|
|
set the view orientation as bottom.
Definition at line 748 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
||||||||||||
|
Create the view.
Definition at line 624 of file exotkAF_View.cxx. References FitAll(), exotkAIS_GraphicDevice::Instance(), and myView. |
|
||||||||||||
|
Manage the move when Ctrl is pushed.
Definition at line 524 of file exotkAF_View.cxx. References exotkAF_camDynamicPanning, exotkAF_camDynamicRotation, exotkAF_camDynamicZooming, exotkAF_camMoving, exotkAF_camNothing, exotkAF_mbLeft, exotkAF_mbMiddle, exotkAF_mbNone, exotkAF_mbRight, MoveTo(), myCurrentActionMode, mySavedXMousePosition, mySavedYMousePosition, and myView. Referenced by Move(). |
|
|
Return the current Action Mode.
Definition at line 184 of file exotkAF_View.cxx. References myCurrentActionMode. |
|
|
Return the current mouse button.
Definition at line 1114 of file exotkAF_View.cxx. References exotkAF_MouseButton, and myCurrentMouseButton. |
|
||||||||||||
|
Return the current mouse position.
Definition at line 1128 of file exotkAF_View.cxx. References myCurrentXMousePosition, and myCurrentYMousePosition. |
|
|
Type management.
|
|
|
Fit all the view ( all the objects are visible ).
Definition at line 827 of file exotkAF_View.cxx. References myView. Referenced by CreateView(). |
|
|
set the view orientation as front.
Definition at line 716 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
|
Return the hidden line removal status.
Definition at line 1056 of file exotkAF_View.cxx. References myIsHiddenLine. |
|
|
Return true if the mouse is in dragging mode.
Definition at line 307 of file exotkAF_View.cxx. References myIsDragging. |
|
|
Type management.
|
|
|
Return true if the view is in popup mode ( usually right mouse button ).
Definition at line 295 of file exotkAF_View.cxx. References exotkAF_mbRight, myCtrlPushed, myCurrentMouseButton, and myShiftPushed. Referenced by PopupMenu(). |
|
|
Return true if the view is valid.
Definition at line 1102 of file exotkAF_View.cxx. References myView. |
|
|
set the view orientation as left.
Definition at line 764 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
||||||||||||
|
To call when the user mouve the mouse.
Definition at line 419 of file exotkAF_View.cxx. References CtrlMove(), exotkAF_camDynamicPanning, exotkAF_camDynamicRotation, exotkAF_camDynamicZooming, exotkAF_camMoving, exotkAF_camNothing, exotkAF_camWindowZooming, exotkAF_mbLeft, exotkAF_mbMiddle, exotkAF_mbNone, exotkAF_mbRight, MoveTo(), myCurrentActionMode, myCurrentXMousePosition, myCurrentYMousePosition, myDocument, myInitialXMousePosition, myInitialYMousePosition, myIsDragging, mySavedXMousePosition, mySavedYMousePosition, myView, and ShiftMove(). |
|
||||||||||||
|
Manage the move.
Definition at line 591 of file exotkAF_View.cxx. References myDocument, and myView. |
|
|
OCC delete.
Definition at line 99 of file exotkAF_View.hxx. References exotkAF_CurrentActionMode, exotkAF_MouseButton, and exotkAF_ViewType. |
|
|
OCC new.
Definition at line 88 of file exotkAF_View.hxx. |
|
||||||||||||
|
OCC new.
Definition at line 77 of file exotkAF_View.hxx. |
|
||||||||||||
|
Pan the view.
Definition at line 865 of file exotkAF_View.cxx. References myView. |
|
|
To call when the user click on a mouse button.
Definition at line 320 of file exotkAF_View.cxx. References exotkAF_camDynamicRotation, exotkAF_camNothing, exotkAF_mbLeft, exotkAF_mbRight, exotkAF_MouseButton, myCurrentActionMode, myCurrentMouseButton, myCurrentXMousePosition, myCurrentYMousePosition, myDocument, myInitialXMousePosition, myInitialYMousePosition, mySavedXMousePosition, mySavedYMousePosition, and myView. |
|
|
Return the computed popup menu.
Definition at line 1187 of file exotkAF_View.cxx. References IsPopup(), and myDocument. |
|
|
Redraw the view.
Definition at line 812 of file exotkAF_View.cxx. References myView. Referenced by Release(), and SetBackgroundColor(). |
|
|
To call when the user release a mouse button.
Definition at line 374 of file exotkAF_View.cxx. References exotkAF_camWindowZooming, exotkAF_mbNone, myCurrentActionMode, myCurrentMouseButton, myCurrentXMousePosition, myCurrentYMousePosition, myIsDragging, myIsHiddenLine, mySavedXMousePosition, mySavedYMousePosition, myView, Redraw(), SetHiddenLine(), and SetNothingMode(). |
|
|
Reset the view to its creation settings.
Definition at line 847 of file exotkAF_View.cxx. References myView. |
|
|
To call when the view size change.
Definition at line 1023 of file exotkAF_View.cxx. References myView. |
|
|
set the view orientation as right.
Definition at line 780 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
||||||||||||||||
|
Rotate the view along the axis (Ax,Ay,Az).
Definition at line 881 of file exotkAF_View.cxx. References myView. |
|
|
Set the antialiasing status.
Definition at line 1069 of file exotkAF_View.cxx. References myAntialiasingIsOn, and myView. |
|
||||||||||||||||||||
|
Set the background color.
Definition at line 998 of file exotkAF_View.cxx. |
|
|
Set aColor as background color.
Definition at line 982 of file exotkAF_View.cxx. |
|
|
Set the status of the Ctrl key ( pushed or not ).
Definition at line 283 of file exotkAF_View.cxx. References myCtrlPushed. |
|
|
Set aMode as current action mode.
Definition at line 152 of file exotkAF_View.cxx. References exotkAF_camDynamicPanning, exotkAF_camDynamicRotation, exotkAF_camDynamicZooming, exotkAF_camMoving, exotkAF_camNothing, exotkAF_camWindowZooming, SetDynamicPanningMode(), SetDynamicRotationMode(), SetDynamicZoomingMode(), SetNothingMode(), and SetWindowZoomingMode(). |
|
|
Set aButton as current mouse button.
Definition at line 196 of file exotkAF_View.cxx. References exotkAF_MouseButton, and myCurrentMouseButton. |
|
|
Set aDocument as associated document.
Definition at line 139 of file exotkAF_View.cxx. References myDocument. |
|
|
Set the current action mode to Panning.
Definition at line 233 of file exotkAF_View.cxx. References exotkAF_camDynamicPanning, and myCurrentActionMode. Referenced by SetCurrentActionMode(). |
|
|
Set the current action mode to Dynamic Rotation.
Definition at line 221 of file exotkAF_View.cxx. References exotkAF_camDynamicRotation, and myCurrentActionMode. Referenced by SetCurrentActionMode(). |
|
|
Set the current action mode to Dynamic Zooming.
Definition at line 257 of file exotkAF_View.cxx. References exotkAF_camDynamicZooming, and myCurrentActionMode. Referenced by SetCurrentActionMode(). |
|
|
Set the hidden line removal status.
Definition at line 1037 of file exotkAF_View.cxx. References myIsHiddenLine, and myView. Referenced by Release(). |
|
|
Set the current action mode to nothing.
Definition at line 209 of file exotkAF_View.cxx. References exotkAF_camNothing, and myCurrentActionMode. Referenced by Release(), and SetCurrentActionMode(). |
|
|
Set the status of the Shift key ( pushed or not ).
Definition at line 270 of file exotkAF_View.cxx. References myShiftPushed. |
|
|
Set aType as current view type.
Definition at line 663 of file exotkAF_View.cxx. References Axo(), Back(), Bottom(), exotkAF_vtAxo, exotkAF_vtBack, exotkAF_vtBottom, exotkAF_vtFront, exotkAF_vtLeft, exotkAF_vtRight, exotkAF_vtTop, Front(), Left(), Right(), and Top(). |
|
|
Set the current action mode to Window Zooming.
Definition at line 245 of file exotkAF_View.cxx. References exotkAF_camWindowZooming, and myCurrentActionMode. Referenced by SetCurrentActionMode(). |
|
||||||||||||
|
Manage the move when Shift is pushed.
Definition at line 573 of file exotkAF_View.cxx. References exotkAF_camMoving, exotkAF_camNothing, MoveTo(), and myView. Referenced by Move(). |
|
||||||||||||
|
Return the size of the view.
Definition at line 913 of file exotkAF_View.cxx. References myView. |
|
|
set the view orientation as top.
Definition at line 732 of file exotkAF_View.cxx. References myView. Referenced by SetViewType(). |
|
|
Return the associated 3d view from OpenCASCADE.
Definition at line 609 of file exotkAF_View.cxx. References myView. |
|
||||||||||||||||||||
|
Zoom the view.
Definition at line 898 of file exotkAF_View.cxx. References myView. |
|
|
zoom in the view.
Definition at line 1141 of file exotkAF_View.cxx. References Size(), and WindowFitAll(). |
|
|
zoom out the view.
Definition at line 1164 of file exotkAF_View.cxx. References Size(), and WindowFitAll(). |
|
|
Definition at line 67 of file exotkAF_View.hxx. |
|
|
Type management.
|
|
|
true if the Antialiasing is activated Definition at line 552 of file exotkAF_View.hxx. Referenced by Antialiasing(), and SetAntialiasing(). |
|
|
true if Ctrl key is pushed Definition at line 522 of file exotkAF_View.hxx. Referenced by IsPopup(), and SetCtrlKey(). |
|
|
the current action mode Definition at line 516 of file exotkAF_View.hxx. Referenced by CtrlMove(), CurrentActionMode(), Move(), Pick(), Release(), SetDynamicPanningMode(), SetDynamicRotationMode(), SetDynamicZoomingMode(), SetNothingMode(), and SetWindowZoomingMode(). |
|
|
the saved current mouse button Definition at line 519 of file exotkAF_View.hxx. Referenced by CurrentMouseButton(), IsPopup(), Pick(), Release(), and SetCurrentMouseButton(). |
|
|
the current X mouse position Definition at line 531 of file exotkAF_View.hxx. Referenced by CurrentMousePosition(), Move(), Pick(), and Release(). |
|
|
the current Y mouse position Definition at line 534 of file exotkAF_View.hxx. Referenced by CurrentMousePosition(), Move(), Pick(), and Release(). |
|
|
the associated document Definition at line 513 of file exotkAF_View.hxx. Referenced by Move(), MoveTo(), Pick(), PopupMenu(), and SetDocument(). |
|
|
the initial X mouse position when picking Definition at line 544 of file exotkAF_View.hxx. |
|
|
the initial Y mouse position when picking Definition at line 547 of file exotkAF_View.hxx. |
|
|
true if the user drags currently the mouse Definition at line 528 of file exotkAF_View.hxx. Referenced by IsDragging(), Move(), and Release(). |
|
|
true if theView mode is HiddenLine Definition at line 554 of file exotkAF_View.hxx. Referenced by HiddenLine(), Release(), and SetHiddenLine(). |
|
|
the saved(temporary) X mouse position Definition at line 537 of file exotkAF_View.hxx. |
|
|
the saved(temporary) Y mouse position Definition at line 540 of file exotkAF_View.hxx. |
|
|
true if Shift key is pushed Definition at line 525 of file exotkAF_View.hxx. Referenced by IsPopup(), and SetShiftKey(). |
|