My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef _CascadeDocument_h_
#define _CascadeDocument_h_

#include <Core/Core.h>

#include <OCE/OCE.h>

#ifdef WIN32
#include <WNT_Window.hxx>
#include <Graphic3d_WNTGraphicDevice.hxx>
#else
#include <Xw_Window.hxx>
#include <Graphic3d_GraphicDevice.hxx>
#endif

#include <V3d_Viewer.hxx>
#include <AIS_InteractiveContext.hxx>

class CascadeDocument
{
private:
// THE GRAPHIC DEVICE -- STATIC, COMMON TO ALL CascadeDocuments
#ifndef WIN32
static Handle(Graphic3d_GraphicDevice) GraphicDevice;
#else
static Handle(Graphic3d_WNTGraphicDevice) GraphicDevice;
#endif

// THE VIEWER
Handle(V3d_Viewer) Viewer;

// THE INTERACTIVE CONTEXT
Handle(AIS_InteractiveContext) Context;

// NUMBER OF CREATED INSTANCES
static int Instances;

public:

// Constructor
CascadeDocument();

// Destructor
~CascadeDocument();

// Graphic device property
#ifndef WIN32
Handle(Graphic3d_GraphicDevice) const &GetGraphicDevice() {return GraphicDevice; };
#else
Handle(Graphic3d_WNTGraphicDevice) const &GetGraphicDevice() {return GraphicDevice; };
#endif

// Viewer property
Handle(V3d_Viewer) const &GetViewer() { return Viewer; };

// Interactive context property
Handle(AIS_InteractiveContext) const &GetContext() { return Context; };


}; // END Class CascadeDocument

#endif

Change log

r4424 by micio on Jan 15, 2012   Diff
Bazaar/OCE : OpenCascade Community Edition
3d modeling kernel added
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1369 bytes, 62 lines
Powered by Google Project Hosting