Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoHaloHighlightRenderAction.h
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-2022 BY FEI S.A.S, **
17** BORDEAUX, FRANCE **
18** ALL RIGHTS RESERVED **
19=============================================================================*/
20
21#pragma once
22
23#include <Inventor/actions/SoHighlightRenderAction.h>
24
25SO_PIMPL_PUBLIC_DECLARATION( SoHaloHighlightRenderAction )
26
27
148{
149 SO_ACTION_HEADER( SoHaloHighlightRenderAction );
150 SO_PIMPL_PUBLIC_HEADER( SoHaloHighlightRenderAction )
151
152public:
155
157
169 void setHaloColor( const SbColor& color );
170
174 const SbColor& getHaloColor() const;
175
194 void setHaloWidth( int width );
195
199 int getHaloWidth() const;
200
214 void setHaloAlwaysVisible( bool alwaysVisible );
215
220
237 void setHaloSmoothFactor( float smoothFactor );
238
242 float getHaloSmoothFactor() const;
243
244 static void initClass();
245 static void exitClass();
246
247private:
249 virtual bool shouldTraverseHighlightPass() const;
250
251private:
253 virtual SoNode* getPreTraversalNode();
254
256 virtual SoNode* getPostTraversalNode();
257
258private:
259 // Copy Constructor Forbidden
261
262 void commonConstructor();
263};
Color vector class.
Definition SbColor.h:82
Class for representing a viewport.
void setHaloColor(const SbColor &color)
Defines the color of the highlight.
bool isHaloAlwaysVisible() const
See setHaloAlwaysVisible()
void setHaloWidth(int width)
Defines the width of the halo in pixels.
const SbColor & getHaloColor() const
See setHaloColor()
int getHaloWidth() const
See setHaloWidth()
virtual ~SoHaloHighlightRenderAction()
SoHaloHighlightRenderAction(const SbViewportRegion &viewportRegion)
void setHaloSmoothFactor(float smoothFactor)
Defines the amount of alpha attenuation of the halo contour.
float getHaloSmoothFactor() const
See setHaloSmoothFactor()
void setHaloAlwaysVisible(bool alwaysVisible)
Defines whether or not the halo can be seen through objects that are placed in front of selected shap...
Abstract base class for Highlight Render Actions.
Abstract base class for all database nodes.
Definition SoNode.h:145