The functionalities of OCC viewer are available via its Viewer Toolbar. Buttons marked with small downward triangles have extended functionality which can be accessed by locking on them with left mouse button.
Dump View - exports an object from the viewer in bmp, png or jpeg image format.
Interaction style switch - allows to switch between standard and "keyboard free" interaction styles. "Keyboard free" style allows to process all view transformations without using keyboard (only by mouse) and perform selection in view by pressing "S" key. By default, rotation in this mode is performed by left mouse button, panning - by middle mouse button, zooming - by left and middle mouse buttons pressed simultaneously.
Zooming style switch - allows to switch between standard (zooming at the center of the view) and advanced (zooming at the current cursor position) zooming styles.
Show/Hide Trihedron - shows or hides coordinate axes.
Fit all - allows to select a point to be the center of a scene representing all displayed objects in the visible area.
Fit area - resizes the view to place in the visible area only the contents of a frame drawn with pressed left mouse button.
Zoom - allows to zoom in and out.
Panning - if the represented objects are greater that the visible area and you don't wish to use Fit all functionality, click on this button and you'll be able to drag the scene to see its remote parts.
Global panning - represents all displayed objects in the visible area.
Change rotation point - allows to to choose the point around which the rotation is performed.
By default the rotation point is located in the Center of the bounding box of an object.
Unchecking Use Bounding Box Center checkbox allows you to define the coordinates of the rotation point manually.
Rotation - allows to rotate the selected object using the mouse.
These buttons orientate the scene strictly about coordinate axes: Front, Back, Top, Bottom, Left or Right side.
Rotate counterclockwise - rotates view 90° counterclockwise.
Rotate clockwise - rotates view 90° clockwise.
Reset - restores the default position (isometric) of objects in the scene.
Memorise view - saves the current position of objects in the scene.
Restore view - restores the saved position of objects in the scene.
Clone view - opens a new duplicate scene.
Clipping - allows to create cross-section views (clipping planes) of geometrical objects.
Base point - allows to define the coordinates of the base point for the clipping plane.
Direction - allows to define the orientation of the clipping plane.
Scaling - represents objects deformed (stretched or stuffed) along the axes of coordinates.
Graduated axes - allows to define axes parameters and graduate them.
Axis name - if checked the axis name is displayed in the viewer.
Labels - if checked the labels are displayed in the viewer.
Tick marks - if checked the tick marks are displayed in the viewer.
Toggle ambient light - toggle "keep only ambient light" flag on/off.
Minimize/Maximize - these buttons allow switching the current view area to the minimized / maximized state.
Synchronize view - allows to synchronize 3d view parameters. This button has two states - checked and unchecked. Clicking on this button opens a drop-down menu listing the compatible 3d views. As soon as the user selects any view from the list, the parameters (view point, position, zoom coefficient, etc.) of the current view are synchronized with the selected view (static synchronization).
In addition, when this button is in the "checked" state, the dynamic synchronization of the views is performed, i.e. any zoom, pan, rotate or other view operation done in one view is automatically applied to the other view.
OCC Viewer background can be customized using the "Change background" popup menu command that opens the following dialog box:
The following types of the background are supported:
Gradient background: the background is gradiently colored according to two colors and the gradient type specified in the dialog box. The following types of background are supported:
Image: allows to set image as viewer background and define filling type:
Default background for the viewer is specified via the application preferences.
OCC Viewer features a special Polyline Selection mechanism, which allows selecting an arbitraty part of the graphic area using a polygon frame (rubber band), instead of the usual selection with a rectangular frame.
To produce a Polyline Selection, lock the right mouse button and draw the first side of the polygon, then change the direction by clicking the left mouse button add draw another side, etc. The whole selection frame is drawn with the locked right mouse button.
As a result, only the nodes within the frame are selected.