MeVisLab Toolbox Reference
SoGroundplaneElement.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 _SoGroundplaneElement_H
19#define _SoGroundplaneElement_H
20
21#include "SoShadowSystem.h"
22
24
25class SOSHADOW_CLASS_SPEC SoGroundplaneElement : public SoReplacedElement
26{
27 typedef SoReplacedElement inherited;
28
29 SO_ELEMENT_HEADER(SoGroundplaneElement);
30
31 protected:
33
35
36 public:
38 void init(SoState *state) override;
39
41 static void set(SoState *state, SoNode *node,
42 const SbPlane &plane);
43
45 static const SbPlane &get(SoState *state);
46
49
51 SbBool matches(const SoElement *elt) const override;
52
54 SoElement *copyMatchInfo() const override;
55
57 void print(FILE *fp) const override;
58
59 SoINTERNAL public:
61 static void initClass();
62};
63
65
66#endif // _SoGroundplaneElement_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.
SbBool matches(const SoElement *elt) const override
Returns TRUE if the stored SbShadow matches the given element.
static void set(SoState *state, SoNode *node, const SbPlane &plane)
Sets in the state.
static const SbPlane & get(SoState *state)
Returns from the state.
void print(FILE *fp) const override
Prints element (for debugging).
virtual ~SoGroundplaneElement()
static SbPlane getDefault()
Returns the default.
void init(SoState *state) override
Initializes element.
SoElement * copyMatchInfo() const override
Create and return a copy of this element.
static void initClass()
Initializes the SoGroundplaneElement class.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.