MeVisLab Toolbox Reference
SoShadowRenderElement.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 /*
4  *
5  _______________________________________________________________________
6  ____________ W W W . A W A K E I D E A S . C O M ______________
7  |
8  |
9  | Description:
10  | ...
11  |
12  | Author(s) : Felix Ritter
13  |
14  ____________ W W W . A W A K E I D E A S . C O M ______________
15  _______________________________________________________________________
16  */
17 
18 #ifndef _SoShadowRenderElement_H
19 #define _SoShadowRenderElement_H
20 
21 #include "SoShadowSystem.h"
22 
24 
25 class SOSHADOW_CLASS_SPEC SoShadowRenderElement : public SoInt32Element
26 {
27  typedef SoInt32Element inherited;
28 
29  SO_ELEMENT_HEADER(SoShadowRenderElement);
30 
31  protected:
33 
34  public:
36  void init(SoState *state) override;
37 
39  static void set(SoState *state, SbBool shadowRender)
40  { SoInt32Element::set(classStackIndex, state, shadowRender); }
41 
43  static SbBool get(SoState *state)
44  { return SoInt32Element::get(classStackIndex, state); }
45 
47  static SbBool getDefault() { return FALSE; }
48 
49  SoINTERNAL public:
51  static void initClass();
52 };
53 
55 
56 #endif // _SoShadowRenderElement_H
#define __MEVIS_IV_END_NAMESPACE
Definition: OIVConfig.h:40
#define __MEVIS_IV_BEGIN_NAMESPACE
Definition: OIVConfig.h:39
#define SOSHADOW_CLASS_SPEC
Define a class export specifier needed to make the class exportable in dll's.
void init(SoState *state) override
Initializes element.
static SbBool get(SoState *state)
Returns from the state whether or not this pass is for shadowing.
static SbBool getDefault()
Returns the default rendering pass purpose.
static void initClass()
Initializes the SoShadowRenderElement class.
static void set(SoState *state, SbBool shadowRender)
Sets in the state whether or not this pass is for shadowing.
virtual ~SoShadowRenderElement()
ml_vertex_id_map get(vertex_index_t, ml_graph_ptr g)
get() function for vertex id property map vertex_index_t just necessary for overloading