Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
Viewer_View Class Reference

This class defines a view.

#include <Viewer_View.hxx>

Inheritance diagram for Viewer_View:
Inheritance graph
[legend]

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

Constructor & Destructor Documentation

Viewer_View::Viewer_View ( ) [protected]

Member Function Documentation

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]

Implemented in V3d_View, and V2d_View.

virtual void Viewer_View::Update ( ) const [pure virtual]

Implemented in V3d_View, and V2d_View.

Implemented in V3d_View, and V2d_View.


Field Documentation


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