mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023670: Support for multiple 3D views: edited commands: vinit; added commands: vclose, vactivate, vviewlist
bugs/end script was edited to dump results from all opened views; duplicated vinit was deleted from bug625. QABugs::OCC280() was edited to work with multiviews;ViewerInit() method was corrected. vviewlist command was modificated to output string. Small corrections Compile errors were corrected
This commit is contained in:
@@ -338,7 +338,22 @@ Quantity_Ratio Xw_Window::Ratio() const
|
||||
void Xw_Window::Position (Standard_Integer& X1, Standard_Integer& Y1,
|
||||
Standard_Integer& X2, Standard_Integer& Y2) const
|
||||
{
|
||||
//
|
||||
if (myXWindow == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
XFlush (myDisplay->GetDisplay());
|
||||
XWindowAttributes anAttributes;
|
||||
XGetWindowAttributes (myDisplay->GetDisplay(), myXWindow, &anAttributes);
|
||||
Window aChild;
|
||||
XTranslateCoordinates (myDisplay->GetDisplay(), anAttributes.root, myXWindow,
|
||||
0, 0, &anAttributes.x, &anAttributes.y, &aChild);
|
||||
|
||||
X1 = -anAttributes.x;
|
||||
X2 = X1 + anAttributes.width;
|
||||
Y1 = -anAttributes.y;
|
||||
Y2 = Y1 + anAttributes.height;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
Reference in New Issue
Block a user