-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoGuiSnapshotViewer.h
80 lines (62 loc) · 2.43 KB
/
SoGuiSnapshotViewer.h
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* This file is part of a set of example programs for the Coin library.
* Copyright (C) 2000-2003 by Systems in Motion. All rights reserved.
*
* <URL:http://www.coin3d.org>
*
* This sourcecode can be redistributed and/or modified under the
* terms of the GNU General Public License version 2 as published by
* the Free Software Foundation. See the file COPYING at the root
* directory of the distribution for more details.
*
* As a special exception, all sourcecode of the demo examples can be
* used for any purpose for licensees of the Coin Professional
* Edition License, without the restrictions of the GNU GPL. See our
* web pages for information about how to acquire a Professional Edition
* License.
*
* Systems in Motion, <URL:http://www.sim.no>, <mailto:[email protected]>
*
\**************************************************************************/
/*
* gl3dv - 3D mesh viewer based on COIN3D examples (snapshotviewer)
*
* George Litos ([email protected])
*
\**************************************************************************/
#ifndef COIN_SOWINSNAPSHOTVIEWER_H
#define COIN_SOWINSNAPSHOTVIEWER_H
#include <Inventor/Win/viewers/SoWinExaminerViewer.h>
class SoGuiSnapshotViewerP;
class SoWinSnapshotViewer : public SoWinExaminerViewer
{
SOWIN_OBJECT_HEADER(SoWinSnapshotViewer, SoWinExaminerViewer);
public:
SoWinSnapshotViewer(HWND parent = NULL,
const char * name = NULL,
SbBool embed = TRUE);
~SoWinSnapshotViewer(void);
void setAntialiasingEnabled(SbBool enable);
SbBool isAntialiasingEnabled(void) const;
void setTransparencyEnabled(SbBool enable);
SbBool isTransparencyEnabled(void) const;
void setAutoCroppingEnabled(SbBool enable);
SbBool isAutoCroppingEnabled(void) const;
void setCropBorderSize(int size);
int getCropBorderSize(void) const;
void setBackgroundColor(SbColor background);
SbColor getBackgroundColor(void) const;
void setDefaultSnapshotFilename(const char * filename);
const char * getDefaultSnapshotFilename(void) const;
void showInfo(float seconds = 10);
void hideInfo(void);
void createSnapshot(const char * filename);
virtual void setSceneGraph(SoNode * root);
virtual SoNode * getSceneGraph(void);
protected:
virtual SbBool processSoEvent(const SoEvent * const event);
virtual void sizeChanged(const SbVec2s & size);
private:
SoGuiSnapshotViewerP * pimpl;
};
#endif // !COIN_SOWINSNAPSHOTVIEWER_H