Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoViewport.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2017 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (May 2011)
22**=======================================================================*/
23#ifndef _SO_VIEWPORT_H_
24#define _SO_VIEWPORT_H_
25
28
30
31
34class SoPickAction;
38
39
40//@TOBEWRAPPED
102class SoViewport : public SoNode
103{
105
106public:
107
114
121
124
125private:
126
128 virtual void doAction(SoAction *action);
129
131 virtual void pick(SoPickAction *action);
132
134 virtual void callback(SoCallbackAction* action);
135
137 virtual void GLRender(SoGLRenderAction * action);
138
140 virtual void getBoundingBox(SoGetBoundingBoxAction* action);
141
143 virtual void getMatrix(SoGetMatrixAction* action);
144
146 virtual void handleEvent(SoHandleEventAction* action);
147
148private:
150 static void initClass();
151
153 static void exitClass();
154
159 SbVec2i32 windowSize;
160
161private:
163 virtual ~SoViewport();
164};
165
166#endif /* _SO_VIEWPORT_H_ */
167
168
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
2D vector class.
Definition SbVec.h:517
Abstract base class for all actions.
Definition SoAction.h:132
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
Computes transformation matrix for a subgraph.
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
Definition SoNode.h:145
Abstract base class for picking objects in a scene.
Field containing a two-dimensional vector.
Definition SoSFVec2f.h:78
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Viewport paramet...
Definition SoViewport.h:103
SoViewport()
Constructor.
SoSFVec2f origin
Specifies the position of the viewport in pixels.
Definition SoViewport.h:113
SoSFVec2f size
Specifies the size of the viewport in pixels.
Definition SoViewport.h:120