ATLAS Offline Software
SoTransparency.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Implementation of class SoTransparency //
9 // //
10 // Author: Troels Kofoed Jacobsen //
11 // Initial version: July 2008 //
12 // //
14 
15 #include <Inventor/C/errors/debugerror.h>
16 #include <Inventor/fields/SoSFFloat.h>
17 #include <Inventor/fields/SoSFBool.h>
18 #include <Inventor/nodes/SoSubNode.h>
19 
20 class SoTransparency : public SoNode {
21 
23 
24  public:
25 
26  // Fields:
27  SoSFFloat transparency; // Amount of transparency (0-1).
28  SoSFBool relative; // Relative to previous transparency?
29  static void initClass();
30 
31  // Constructor
33 
34  protected:
35 
36  // These implement supported actions. The only actions that
37  // deal with materials are the callback and GL render
38  // actions. We will inherit all other action methods from
39  // SoNode.
40  virtual void GLRender(SoGLRenderAction *action);
41  virtual void callback(SoCallbackAction *action);
42  virtual void doAction(SoAction *action);
43 
44  private:
45 
46  // Destructor.
47  virtual ~SoTransparency();
48 };
SoTransparency::doAction
virtual void doAction(SoAction *action)
Definition: SoTransparency.cxx:70
SoTransparency::~SoTransparency
virtual ~SoTransparency()
Definition: SoTransparency.cxx:49
SoTransparency
Definition: SoTransparency.h:20
SoTransparency::relative
SoSFBool relative
Definition: SoTransparency.h:28
SoTransparency::SoTransparency
SoTransparency()
Definition: SoTransparency.cxx:38
SoTransparency::callback
virtual void callback(SoCallbackAction *action)
Definition: SoTransparency.cxx:64
SoTransparency::transparency
SoSFFloat transparency
Definition: SoTransparency.h:27
SoTransparency::initClass
static void initClass()
Definition: SoTransparency.cxx:29
SoTransparency::SO_NODE_HEADER
SO_NODE_HEADER(SoTransparency)
SoTransparency::GLRender
virtual void GLRender(SoGLRenderAction *action)
Definition: SoTransparency.cxx:55
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77