ATLAS Offline Software
Loading...
Searching...
No Matches
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
20class 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};
virtual void callback(SoCallbackAction *action)
static void initClass()
virtual ~SoTransparency()
virtual void doAction(SoAction *action)
SO_NODE_HEADER(SoTransparency)
SoSFFloat transparency
virtual void GLRender(SoGLRenderAction *action)