Back to index

salome-gui  6.5.0
Functions | Variables
OCCViewer_ViewPort3d.cxx File Reference
#include "OCCViewer_ViewPort3d.h"
#include "OCCViewer_VService.h"
#include "OCCViewer_ViewWindow.h"
#include "OCCViewer_ViewModel.h"
#include <Basics_OCCTVersion.hxx>
#include <SUIT_ViewManager.h>
#include <SUIT_ViewModel.h>
#include <QColor>
#include <QFileInfo>
#include <QString>
#include <QRect>
#include <QPaintEvent>
#include <QResizeEvent>
#include <QApplication>
#include <Visual3d_View.hxx>
#include <V3d_Viewer.hxx>
#include <V3d_PerspectiveView.hxx>
#include <V3d_OrthographicView.hxx>
#include "utilities.h"
#include <Xw_Window.hxx>

Go to the source code of this file.

Functions

 Handle (V3d_View) OCCViewer_ViewPort3d
 Sets new CASCADE view on viewport.
 Handle (V3d_Viewer) OCCViewer_ViewPort3d
 Returns CasCade 3D viewer [ public ].

Variables

static double rx = 0.
static double ry = 0.
static int sx = 0
static int sy = 0
static Standard_Boolean zRotation = Standard_False

Function Documentation

Handle ( V3d_View  )

Sets new CASCADE view on viewport.

Returns the current active view.

Returns CasCade 3D view.

Returns the previous active view. [ public ]

[ public ]

[ private ]

Definition at line 149 of file OCCViewer_ViewPort3d.cxx.

{
  /* map the new view */
  if ( view == activeView() || !mapView( view ) )
    return activeView();

  /* activate the new view*/
  Handle( V3d_View ) oldView = activeView();
  if ( !oldView.IsNull() ) {
    if (oldView->View()->IsDefined())
      oldView->View()->Deactivate();
    view->SetBackgroundColor( oldView->BackgroundColor() );
  }

  if ( myDegenerated )
    view->SetDegenerateModeOn();
  else
    view->SetDegenerateModeOff();

  view->View()->Activate();
  activeView() = view;
  return oldView;
}

Here is the call graph for this function:

Handle ( V3d_Viewer  )

Returns CasCade 3D viewer [ public ].

Definition at line 184 of file OCCViewer_ViewPort3d.cxx.

{
  Handle(V3d_Viewer) viewer;
  if ( !activeView().IsNull() )
    viewer = activeView()->Viewer();
  return viewer;
}

Variable Documentation

double rx = 0. [static]

Definition at line 55 of file OCCViewer_ViewPort3d.cxx.

double ry = 0. [static]

Definition at line 56 of file OCCViewer_ViewPort3d.cxx.

int sx = 0 [static]

Definition at line 57 of file OCCViewer_ViewPort3d.cxx.

int sy = 0 [static]

Definition at line 58 of file OCCViewer_ViewPort3d.cxx.

Standard_Boolean zRotation = Standard_False [static]

Definition at line 59 of file OCCViewer_ViewPort3d.cxx.