Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OCCViewer_Utilities Class Reference

#include <OCCViewer_Utilities.h>

Static Public Member Functions

static Handle (Image_PixMap) imageToPixmap(const QImage &theImage)
 
static
OCCViewer_ViewWindow::Mode2dType 
setViewer2DMode (OCCViewer_Viewer *theViewer, const OCCViewer_ViewWindow::Mode2dType &theMode)
 
static bool isDialogOpened (OCCViewer_ViewWindow *theView, const QString &theName)
 
static bool computeVisibleBounds (const Handle(V3d_View) theView, double theBounds[6])
 
static bool computeVisibleBBCenter (const Handle(V3d_View) theView, double &theX, double &theY, double &theZ)
 

Member Function Documentation

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
theViewdefined occ view
theXused to return X coordinate of the bounding box center
theYused to return Y coordinate of the bounding box center
theZused 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
theViewdefined occ view
theBoundsused 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
theImageQt source image
Returns
resulting OCCT pixmap
bool OCCViewer_Utilities::isDialogOpened ( OCCViewer_ViewWindow theView,
const QString &  theName 
)
static

Find dialog in the current view frame by name

Parameters
theViewan OCC view
theNamename of dialog
Returns
true/false if dialog is opened/isn't opened

References isFound().


The documentation for this class was generated from the following files: