Back to index

salome-gui  6.5.0
Defines | Functions
OCCViewer_VService.cxx File Reference
#include "OCCViewer_VService.h"
#include <V3d_Viewer.hxx>
#include <V3d_View.hxx>
#include <Viewer_Viewer.hxx>
#include <V2d_Viewer.hxx>
#include <V2d_View.hxx>
#include <Xw_Window.hxx>
#include <Graphic3d_GraphicDevice.hxx>
#include <Xw_Driver.hxx>
#include <Xw_TypeOfMapping.hxx>

Go to the source code of this file.

Defines

#define LOPTIM
#define XServiceDefault2dDevice   _XServiceImageDevice()
#define XServiceImageDevice   _XServiceImageDevice()

Functions

static Handle (Xw_GraphicDevice)&_XServiceDefault2dDevice()
 Handle (Aspect_Window) OCCViewer_VService
 Create native view window for CasCade view [ static ].
 Handle (V3d_Viewer) OCCViewer_VService
 Creates viewer 3d [ static ].
 Handle (Aspect_WindowDriver) OCCViewer_VService
 Creates view 2D and maps it to the window [ static ].

Define Documentation

#define LOPTIM

Definition at line 47 of file OCCViewer_VService.cxx.

#define XServiceDefault2dDevice   _XServiceImageDevice()

Definition at line 74 of file OCCViewer_VService.cxx.

#define XServiceImageDevice   _XServiceImageDevice()

Definition at line 80 of file OCCViewer_VService.cxx.


Function Documentation

static Handle ( Xw_GraphicDevice  ) [static]

Definition at line 70 of file OCCViewer_VService.cxx.

                                                            {
static Handle(Xw_GraphicDevice) XServiceDefault2dDevice;
return XServiceDefault2dDevice;
}

Here is the call graph for this function:

Handle ( Aspect_Window  )

Create native view window for CasCade view [ static ].

Definition at line 87 of file OCCViewer_VService.cxx.

{
#ifdef WNT
  Handle(WNT_Window) viewWindow = new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin );
  // Prevent flickering
  viewWindow->SetFlags( WDF_NOERASEBKGRND );
#else
  Handle(Xw_Window) viewWindow = new Xw_Window( Handle(Graphic3d_GraphicDevice)::DownCast(view->Viewer()->Device()), hiwin, lowin, quality );
#endif
  return viewWindow;
}

Here is the call graph for this function:

Handle ( V3d_Viewer  )

Creates viewer 3d [ static ].

Returns CasCade 3D viewer [ public ].

Definition at line 139 of file OCCViewer_VService.cxx.

{
#ifndef WNT
    static Handle(Graphic3d_GraphicDevice) defaultdevice;
    if ( defaultdevice.IsNull() )
        defaultdevice = new Graphic3d_GraphicDevice( aDisplay );
    return new V3d_Viewer( defaultdevice, aName, aDomain, ViewSize, ViewProj,
                           Quantity_NOC_GRAY30, V3d_ZBUFFER, V3d_GOURAUD, V3d_WAIT,
                           ComputedMode, aDefaultComputedMode, V3d_TEX_NONE );
#else
    static Handle(Graphic3d_WNTGraphicDevice) defaultdevice;
    if ( defaultdevice.IsNull() )
        defaultdevice = new Graphic3d_WNTGraphicDevice();
    return new V3d_Viewer( defaultdevice, aName, aDomain, ViewSize, ViewProj,
                           Quantity_NOC_GRAY30, V3d_ZBUFFER, V3d_GOURAUD, V3d_WAIT,
                           ComputedMode, aDefaultComputedMode, V3d_TEX_NONE);
#endif  // WNT
}

Here is the call graph for this function:

Handle ( Aspect_WindowDriver  )

Creates view 2D and maps it to the window [ static ].

Creates Xdps window driver [ static ] On Win32 the same as OCCViewer_VService::WindowDriver()

Creates view 2D and maps it to the window [ static ]
Creates viewer 2D [ static ]
Creates viewer 2D [ static ]
Creates window driver [ static ]

Creates Xw window driver [ static ] On Win32 the same as OCCViewer_VService::WindowDriver()

Definition at line 253 of file OCCViewer_VService.cxx.

{
#ifdef WNT
    if ( XServiceDefault2dDevice.IsNull() )
        XServiceDefault2dDevice = new WNT_GraphicDevice();
    Handle(WNT_Window) W = new WNT_Window( XServiceDefault2dDevice, ahiwin, alowin, aColor );
    return new WNT_WDriver( W );
#else
    if ( XServiceDefault2dDevice.IsNull() )
        XServiceDefault2dDevice = new Xw_GraphicDevice( aDisplay, Xw_TOM_READONLY );
    Handle(Xw_Window) W = new Xw_Window( XServiceDefault2dDevice, ahiwin, alowin, Xw_WQ_DRAWINGQUALITY , aColor );
    return new Xw_Driver( W );
#endif
}

Here is the call graph for this function: