Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoLineHighlightRenderAction.h
Go to the documentation of this file.
1/*=======================================================================
2 * Copyright 1991-1996, Silicon Graphics, Inc.
3 * ALL RIGHTS RESERVED
4 *
5 * UNPUBLISHED -- Rights reserved under the copyright laws of the United
6 * States. Use of a copyright notice is precautionary only and does not
7 * imply publication or disclosure.
8 *
9 * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
10 * Use, duplication or disclosure by the Government is subject to restrictions
11 * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
12 * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
13 * in similar or successor clauses in the FAR, or the DOD or NASA FAR
14 * Supplement. Contractor/manufacturer is Silicon Graphics, Inc.,
15 * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
16 *
17 * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
18 * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
19 * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
20 * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
21 * GRAPHICS, INC.
22**=======================================================================*/
23/*=======================================================================
24** Author : David Mott (MMM yyyy)
25**=======================================================================*/
26/*=======================================================================
27 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
28 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
29 *** ***
30 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
31 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
32 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
33 *** ***
34 *** RESTRICTED RIGHTS LEGEND ***
35 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
36 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
37 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
38 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
39 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
40 *** ***
41 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, ***
42 *** BORDEAUX, FRANCE ***
43 *** ALL RIGHTS RESERVED ***
44**=======================================================================*/
45/*=======================================================================
46** Modified by : VSG (MMM YYYY)
47**=======================================================================*/
48
49
50
51#ifndef _SO_LINE_HIGHLIGHT_RENDER_ACTION_
52#define _SO_LINE_HIGHLIGHT_RENDER_ACTION_
53
56
57class SbColor;
58class SoSeparator;
59class SoLightModel;
60class SoBaseColor;
61class SoDrawStyle;
62class SoTexture2;
64class SoTextProperty;
65class SoSelection;
66
68//
69// Line highlight - a subclass of SoGLRenderAction which renders the
70// scene graph, then renders wireframe boxes surrounding each selected object.
71//
73
172{
174 public:
179
184
185
186#ifndef HIDDEN_FROM_DOC
188#endif // HIDDEN_FROM_DOC
189
195 void setColor( const SbColor &c );
199 const SbColor & getColor();
206 void setLinePattern( unsigned short pattern );
210 unsigned short getLinePattern();
215 void setLineWidth( float width );
224 void setPointSize( float size );
229
230 private:
231 static void initClass();
232 static void exitClass();
233
234private:
236 virtual SoNode* getPreTraversalNode();
237
238#if 1 SoDEPRECATED
240 // Nodes which comprise the local highlight graph
241 SoSeparator *localRoot;SoDEPRECATED
243 SoLightModel *lightModel;SoDEPRECATED
245 SoBaseColor *baseColor;SoDEPRECATED
247 SoDrawStyle *drawStyle;SoDEPRECATED
249 SoTexture2 *texture;SoDEPRECATED
251 SoTextProperty *textProperties;SoDEPRECATED
254#endif
256 private:
257
258 // Copy Constructor Forbidden
260
261 void constructorCommon();
262
263 SoRef<SoGroup> m_preTraversalNode;
264 SoBaseColor* m_baseColor;
265 SoDrawStyle* m_drawStyle;
266};
267
268#endif /* _SO_LINE_HIGHLIGHT_RENDER_ACTION_ */
#define SO_ACTION_HEADER(className)
Definition SoSubAction.h:69
Color vector class.
Definition SbColor.h:82
Class for representing a viewport.
Node that defines an object's base color.
Definition SoBaseColor.h:95
Node that defines the style to use when rendering.
Abstract base class for Highlight Render Actions.
Node that defines the lighting model to use when rendering.
void setColor(const SbColor &c)
Sets the color of the highlight.
void setLineWidth(float width)
Sets the line width of the highlight.
SoLineHighlightRenderAction()
Constructor.
float getPointSize()
Gets the point size of the highlight.
void setPointSize(float size)
Sets the size of points (diameter in pixels) rendered by the highlight.
unsigned short getLinePattern()
Gets the line pattern of the highlight.
const SbColor & getColor()
Gets the color of the highlight.
SoLineHighlightRenderAction(const SbViewportRegion &viewportRegion)
Constructor which takes the normal SoGLRenderAction parameters.
void setLinePattern(unsigned short pattern)
Sets the line pattern of the highlight.
float getLineWidth()
Gets the line width of the highlight.
Node that specifies how multiple materials are bound to shapes.
Abstract base class for all database nodes.
Definition SoNode.h:145
Smart pointer for any class inheriting SoRefCounter.
Definition SoRef.h:90
Manages a list of selected objects.
Group node that saves and restores traversal state.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Text property no...
2D texture mapping node.
Definition SoTexture2.h:261
size_t size() const