MeVisLab Toolbox Reference
SoGroundplaneVerticesElement.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 _SoGroundplaneVerticesElement_H
19#define _SoGroundplaneVerticesElement_H
20
21#include "SoShadowSystem.h"
23
25
26class SOSHADOW_CLASS_SPEC SoGroundplaneVerticesElement : public SoReplacedElement
27{
28 typedef SoReplacedElement inherited;
29
30 SO_ELEMENT_HEADER(SoGroundplaneVerticesElement);
31
32 protected:
34
36
37 public:
39 void init(SoState *state) override;
40
42 static void set(SoState *state, SoNode *node,
43 const SbGroundplane &plane);
44
46 static const SbGroundplane &get(SoState *state);
47
50
52 SbBool matches(const SoElement *elt) const override;
53
55 SoElement *copyMatchInfo() const override;
56
58 void print(FILE *fp) const override;
59
60 SoINTERNAL public:
62 static void initClass();
63};
64
66
67#endif // _SoGroundplaneVerticesElement_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.
static const SbGroundplane & get(SoState *state)
Returns from the state.
void init(SoState *state) override
Initializes element.
static void initClass()
Initializes the SoGroundplaneVerticesElement class.
static SbGroundplane getDefault()
Returns the default.
void print(FILE *fp) const override
Prints element (for debugging).
static void set(SoState *state, SoNode *node, const SbGroundplane &plane)
Sets in the state.
SbBool matches(const SoElement *elt) const override
Returns TRUE if the stored SbShadow matches the given element.
SoElement * copyMatchInfo() const override
Create and return a copy of this element.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.