Open CASCADE Technology
6.5.4
|
This class defines a view.
#include <Viewer_View.hxx>
Public Member Functions | |
virtual void | Update () const =0 |
Clears the window and redraws all primitives. | |
Standard_Boolean | SetImmediateUpdate (const Standard_Boolean onoff) |
sets the immediate update mode and returns the previous one. | |
virtual void | WindowFit (const Standard_Integer Xmin, const Standard_Integer Ymin, const Standard_Integer Xmax, const Standard_Integer Ymax)=0 |
Centres the defined pixel window defined by the minimum and maximum pixels Xmin, Ymin, Xmax, Ymax so that it occupies the largest possible space while maintaining the initial height/width ratio. Exceptions Viewer_BadValue if the size of the defined projection window is equal to 0. | |
virtual void | Place (const Standard_Integer x, const Standard_Integer y, const Quantity_Factor aZoomFactor=1)=0 |
Sets the center of the object space defined by x, y and the zoom factor aZoomFactor. The view is updated. | |
Protected Member Functions | |
Viewer_View () | |
void | ImmediateUpdate () const |
Protected Attributes | |
Standard_Boolean | myImmediateUpdate |
Viewer_View::Viewer_View | ( | ) | [protected] |
void Viewer_View::ImmediateUpdate | ( | ) | const [protected] |
virtual void Viewer_View::Place | ( | const Standard_Integer | x, |
const Standard_Integer | y, | ||
const Quantity_Factor | aZoomFactor = 1 |
||
) | [pure virtual] |
virtual void Viewer_View::Update | ( | ) | const [pure virtual] |
virtual void Viewer_View::WindowFit | ( | const Standard_Integer | Xmin, |
const Standard_Integer | Ymin, | ||
const Standard_Integer | Xmax, | ||
const Standard_Integer | Ymax | ||
) | [pure virtual] |
Standard_Boolean Viewer_View::myImmediateUpdate [protected] |