#include <OCCViewer_ViewPort3d.h>
|
| OCCViewer_ViewPort3d (QWidget *, const Handle(V3d_Viewer)&, V3d_TypeOfView=V3d_ORTHOGRAPHIC) |
|
virtual | ~OCCViewer_ViewPort3d () |
|
| Handle (V3d_View) getView() const |
|
| Handle (V3d_View) setView(const Handle(V3d_View)&) |
|
| Handle (V3d_Viewer) getViewer() const |
|
virtual void | setBackgroundColor (const QColor &color) |
|
virtual QColor | backgroundColor () const |
|
void | setBackground (const Qtx::BackgroundData &color) |
|
Qtx::BackgroundData | background () const |
|
virtual int | getBgImgHeight () |
|
virtual int | getBgImgWidth () |
|
virtual bool | syncronize (const OCCViewer_ViewPort3d *) |
|
double | getZSize () const |
|
void | setZSize (double) |
|
void | getAxialScale (double &, double &, double &) |
|
virtual void | onUpdate () |
|
virtual void | reset () |
|
virtual void | pan (int, int) |
|
virtual void | setCenter (int, int) |
|
virtual void | fitRect (const QRect &) |
|
virtual void | startZoomAtPoint (int, int) |
|
virtual void | zoom (int, int, int, int) |
|
virtual void | fitAll (bool keepScale=false, bool withZ=true, bool upd=true) |
|
virtual void | rotateXY (double) |
|
virtual void | setAxialScale (double, double, double) |
|
virtual void | startRotation (int, int, int, const gp_Pnt &) |
|
virtual void | rotate (int, int, int, const gp_Pnt &) |
|
virtual void | endRotation () |
|
bool | isBusy () |
|
void | setAdvancedZoomingEnabled (const bool theState) |
|
bool | isAdvancedZoomingEnabled () const |
|
void | showStaticTrihedron (bool) |
|
void | setDefaultCursor (Qt::CursorShape theCursorShape) |
|
QCursor * | getDefaultCursor () const |
|
| OCCViewer_ViewPort (QWidget *parent) |
|
virtual | ~OCCViewer_ViewPort () |
|
void | setSketchingEnabled (bool) |
|
bool | isSketchingEnabled () const |
|
void | setTransformEnabled (bool) |
|
bool | isTransformEnabled () const |
|
void | redrawPainters () |
|
virtual QPaintEngine * | paintEngine () const |
|
OCCViewer_ViewPort3d::OCCViewer_ViewPort3d |
( |
QWidget * |
parent, |
|
|
const Handle(V3d_Viewer)& |
viewer, |
|
|
V3d_TypeOfView |
type = V3d_ORTHOGRAPHIC |
|
) |
| |
OCCViewer_ViewPort3d::~OCCViewer_ViewPort3d |
( |
| ) |
|
|
virtual |
QColor OCCViewer_ViewPort3d::backgroundColor |
( |
| ) |
const |
|
virtual |
void OCCViewer_ViewPort3d::endRotation |
( |
| ) |
|
|
virtual |
void OCCViewer_ViewPort3d::fitAll |
( |
bool |
keepScale = false , |
|
|
bool |
withZ = true , |
|
|
bool |
upd = true |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::fitRect |
( |
const QRect & |
rect | ) |
|
|
virtual |
void OCCViewer_ViewPort3d::getAxialScale |
( |
double & |
xScale, |
|
|
double & |
yScale, |
|
|
double & |
zScale |
|
) |
| |
Get axial scale to the view
virtual int OCCViewer_ViewPort3d::getBgImgHeight |
( |
| ) |
|
|
inlinevirtual |
virtual int OCCViewer_ViewPort3d::getBgImgWidth |
( |
| ) |
|
|
inlinevirtual |
QCursor * OCCViewer_ViewPort3d::getDefaultCursor |
( |
| ) |
const |
double OCCViewer_ViewPort3d::getZSize |
( |
| ) |
const |
Returns Z-size of this view. [ public ]
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
const |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
const |
OCCViewer_ViewPort3d::Handle |
( |
V3d_Viewer |
| ) |
const |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
const |
|
private |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
const |
|
private |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
|
|
private |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
|
|
private |
OCCViewer_ViewPort3d::Handle |
( |
V3d_View |
| ) |
|
|
private |
bool OCCViewer_ViewPort3d::isAdvancedZoomingEnabled |
( |
| ) |
const |
|
inline |
bool OCCViewer_ViewPort3d::isBusy |
( |
| ) |
|
|
inline |
bool OCCViewer_ViewPort3d::mapped |
( |
const Handle(V3d_View)& |
| ) |
const |
|
private |
bool OCCViewer_ViewPort3d::mapView |
( |
const Handle(V3d_View)& |
view | ) |
|
|
private |
Activates the desired 'type' of view in the viewer ( view of 'type' is created if it doesn't exist ). [ public ]
Maps CasCade 'view' to this viewport. [ private ]
References mapped(), setWindow(), and vpMapped().
void OCCViewer_ViewPort3d::onUpdate |
( |
| ) |
|
|
virtual |
void OCCViewer_ViewPort3d::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protectedvirtual |
void OCCViewer_ViewPort3d::pan |
( |
int |
dx, |
|
|
int |
dy |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::repaintViewAfterMove |
( |
| ) |
|
|
privateslot |
void OCCViewer_ViewPort3d::reset |
( |
| ) |
|
|
virtual |
void OCCViewer_ViewPort3d::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
void OCCViewer_ViewPort3d::rotate |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
theRotationPointType, |
|
|
const gp_Pnt & |
theSelectedPoint |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::rotateXY |
( |
double |
degrees | ) |
|
|
virtual |
void OCCViewer_ViewPort3d::setAdvancedZoomingEnabled |
( |
const bool |
theState | ) |
|
|
inline |
void OCCViewer_ViewPort3d::setAxialScale |
( |
double |
xScale, |
|
|
double |
yScale, |
|
|
double |
zScale |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::setBackgroundColor |
( |
const QColor & |
color | ) |
|
|
virtual |
void OCCViewer_ViewPort3d::setCenter |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::setDefaultCursor |
( |
Qt::CursorShape |
theCursorShape | ) |
|
void OCCViewer_ViewPort3d::setDefaultParams |
( |
| ) |
|
|
private |
bool OCCViewer_ViewPort3d::setWindow |
( |
const Handle(V3d_View)& |
view | ) |
|
|
private |
Passed the handle of native window of the component to CASCADE view. [ private ]
References attachWindow().
void OCCViewer_ViewPort3d::setZSize |
( |
double |
zsize | ) |
|
Sets Z-size of this view ( for both orthographic and perspective ). [ public ]
void OCCViewer_ViewPort3d::showStaticTrihedron |
( |
bool |
on | ) |
|
void OCCViewer_ViewPort3d::startRotation |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
theRotationPointType, |
|
|
const gp_Pnt & |
theSelectedPoint |
|
) |
| |
|
virtual |
void OCCViewer_ViewPort3d::startZoomAtPoint |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
Performs synchronization of view parameters with the specified view. Returns true
if synchronization is done successfully or false
otherwise. Default implementation does nothing (return false
)
References Handle().
Syncronizes visual state of this viewport with 'ref' ( scale, projection, eye etc ) Returns 'true' if copied OK, 'false' otherwise. [ virtual public ]
References Handle().
void OCCViewer_ViewPort3d::updateBackground |
( |
| ) |
|
|
private |
References Qtx::CenterTexture, Qtx::BackgroundData::color(), Qtx::ColorBackground, OCCViewer_Viewer::Corner1Gradient, OCCViewer_Viewer::Corner2Gradient, OCCViewer_Viewer::Corner3Gradient, OCCViewer_Viewer::Corner4Gradient, Qtx::CustomGradientBackground, OCCViewer_Viewer::Diagonal1Gradient, OCCViewer_Viewer::Diagonal2Gradient, Qtx::BackgroundData::gradient(), OCCViewer_Viewer::HorizontalGradient, Qtx::BackgroundData::isTextureShown(), Qtx::BackgroundData::isValid(), OCCViewer_Viewer::LastGradient, Qtx::BackgroundData::mode(), myBackground, Qtx::SimpleGradientBackground, Qtx::StretchTexture, Qtx::BackgroundData::texture(), Qtx::TileTexture, OCCViewer_ViewSketcher::type(), and OCCViewer_Viewer::VerticalGradient.
void OCCViewer_ViewPort3d::zoom |
( |
int |
x0, |
|
|
int |
y0, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
friend class OCCViewer_ViewTransformer |
|
friend |
int OCCViewer_ViewPort3d::myBgImgHeight |
|
private |
int OCCViewer_ViewPort3d::myBgImgWidth |
|
private |
bool OCCViewer_ViewPort3d::myBusy |
|
private |
QCursor* OCCViewer_ViewPort3d::myCursor |
|
private |
bool OCCViewer_ViewPort3d::myIsAdvancedZoomingEnabled |
|
private |
double OCCViewer_ViewPort3d::myScale |
|
private |
The documentation for this class was generated from the following files: