Version: 9.15.0
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)
 
static bool computeSceneBBCenter (const Handle(V3d_View) theView, double &theX, double &theY, double &theZ)
 

Member Function Documentation

◆ computeSceneBBCenter()

bool OCCViewer_Utilities::computeSceneBBCenter ( const Handle(V3d_View)  theView,
double &  theX,
double &  theY,
double &  theZ 
)
static

◆ computeVisibleBBCenter()

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().

◆ 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().

◆ Handle()

static OCCViewer_Utilities::Handle ( Image_PixMap  ) const &
static

Convert Qt image to OCCT pixmap

Parameters
theImageQt source image
Returns
resulting OCCT pixmap

◆ isDialogOpened()

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

◆ setViewer2DMode()


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