#include <OCCViewer_Utilities.h>
bool OCCViewer_Utilities::computeVisibleBBCenter |
( |
const Handle(V3d_View) |
theView, |
|
|
double & |
theX, |
|
|
double & |
theY, |
|
|
double & |
theZ |
|
) |
| |
|
static |
Compute the bounding box center of visible objects.
- Parameters
-
theView | defined occ view |
theX | used to return X coordinate of the bounding box center |
theY | used to return Y coordinate of the bounding box center |
theZ | used to return Z coordinate of the bounding box center |
- Returns
true
if the bounding box center is computed
References computeVisibleBounds().
bool OCCViewer_Utilities::computeVisibleBounds |
( |
const Handle(V3d_View) |
theView, |
|
|
double |
theBounds[6] |
|
) |
| |
|
static |
Get bounding box of visible objects.
- Parameters
-
theView | defined occ view |
theBounds | used to return bounds of the bounding box |
- Returns
true
if the bounding box is computed
References Handle().
static OCCViewer_Utilities::Handle |
( |
Image_PixMap |
| ) |
const |
|
static |
Convert Qt image to OCCT pixmap
- Parameters
-
- Returns
- resulting OCCT pixmap
Find dialog in the current view frame by name
- Parameters
-
theView | an OCC view |
theName | name of dialog |
- Returns
- true/false if dialog is opened/isn't opened
References isFound().
Set 2D mode for the viewer. Hide or show 3D actions.
- Parameters
-
theViewer | an OCC viewer |
theMode | OCC view window mode |
- Returns
- the old 2d mode.
References QtxActionMgr::action(), OCCViewer_ViewWindow::AntiClockWiseId, OCCViewer_ViewWindow::BackId, OCCViewer_ViewWindow::BottomId, OCCViewer_ViewWindow::ChangeRotationPointId, OCCViewer_ViewWindow::ClockWiseId, OCCViewer_ViewWindow::FrontId, OCCViewer_ViewWindow::get2dMode(), SUIT_ViewManager::getActiveView(), OCCViewer_ViewFrame::getView(), SUIT_ViewModel::getViewManager(), OCCViewer_ViewWindow::getViewPort(), Handle(), OCCViewer_ViewWindow::LeftId, OCCViewer_ViewFrame::MAIN_VIEW, OCCViewer_ViewWindow::No2dMode, OCCViewer_ViewWindow::OrthographicId, OCCViewer_ViewWindow::PerspectiveId, OCCViewer_ViewWindow::ResetId, OCCViewer_ViewWindow::RightId, OCCViewer_ViewWindow::RotationId, OCCViewer_ViewWindow::set2dMode(), QtxMultiAction::setActiveAction(), SUIT_ViewWindow::toolMgr(), OCCViewer_ViewWindow::TopId, OCCViewer_ViewWindow::XYPlane, OCCViewer_ViewWindow::XZPlane, and OCCViewer_ViewWindow::YZPlane.
The documentation for this class was generated from the following files: