Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoScrollingGraphKit.h
1#ifndef COIN_SOSCROLLINGGRAPHKIT_H
2#define COIN_SOSCROLLINGGRAPHKIT_H
3
4/**************************************************************************\
5 * Copyright (c) Kongsberg Oil & Gas Technologies AS
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
10 * met:
11 *
12 * Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 *
19 * Neither the name of the copyright holder nor the names of its
20 * contributors may be used to endorse or promote products derived from
21 * this software without specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34\**************************************************************************/
35
36#include <Inventor/nodekits/SoBaseKit.h>
37#include <Inventor/nodekits/SoSubKit.h>
38
39#include <Inventor/tools/SbPimplPtr.h>
40#include <Inventor/fields/SoSFVec3f.h>
41#include <Inventor/fields/SoSFEnum.h>
42#include <Inventor/fields/SoSFTime.h>
43#include <Inventor/fields/SoMFFloat.h>
44#include <Inventor/fields/SoMFColor.h>
45#include <Inventor/fields/SoMFName.h>
46
47class SoSensor;
48class SoScrollingGraphKitP;
49
51 typedef SoBaseKit inherited;
52 SO_KIT_HEADER(SoScrollingGraphKit);
53 SO_KIT_CATALOG_ENTRY_HEADER(scene);
54
55public:
56 static void initClass(void);
57
59
60 enum GraphicsType {
61 LINES,
62 STACKED_BARS,
63 DEFAULT_GRAPHICS = STACKED_BARS
64 };
65
66 enum RangeType {
67 ABSOLUTE_ACCUMULATIVE,
68 //ABSOLUTE_OVERWRITE,
69 //RELATIVE_ACCUMULATIVE,
70 //RELATIVE_OVERWRITE,
71 DEFAULT_RANGETYPE = ABSOLUTE_ACCUMULATIVE
72 };
73
74 // config
75 SoSFEnum graphicsType;
76 SoSFEnum rangeType;
77 SoSFTime seconds; // seconds to pass over graph area (20)
78 SoMFColor colors; // rotating color list
79
80 // geometry
81 SoSFVec3f viewportSize; // input
82 SoSFVec3f position; // input
83 SoSFVec3f size; // input
84
85 // the dynamic inputs
86 SoMFName addKeys;
87 SoMFFloat addValues; // input
88
89protected:
90 virtual ~SoScrollingGraphKit(void);
91
92 static void addValuesCB(void * closure, SoSensor * sensor);
93
94private:
96
97 // NOT IMPLEMENTED
99 SoScrollingGraphKit & operator = (const SoScrollingGraphKit &);
100
101}; // SoScrollingGraphKit
102
103#endif // !COIN_SOSCROLLINGGRAPHKIT_H
Definition SbPimplPtr.h:55
The SoBaseKit class is the top level superclass for nodekits.
Definition SoBaseKit.h:66
The SoMFColor class is a container for SbColor values.
Definition SoMFColor.h:40
The SoMFFloat class is a container for floating point values.
Definition SoMFFloat.h:39
The SoMFName class is a container for SbName values.
Definition SoMFName.h:40
The SoSFEnum class is a container for an enum value.
Definition SoSFEnum.h:40
The SoSFTime class is a container for an SbTime value.
Definition SoSFTime.h:40
The SoSFVec3f class is a container for an SbVec3f vector.
Definition SoSFVec3f.h:40
The SoScrollingGraphKit element class is yet to be documented.
Definition SoScrollingGraphKit.h:50
The SoSensor class is the abstract base class for all sensors.
Definition SoSensor.h:43