| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

SoScrollingGraphKit.h
1 #ifndef COIN_SOSCROLLINGGRAPHKIT_H
2 #define COIN_SOSCROLLINGGRAPHKIT_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/nodekits/SoBaseKit.h>
28 #include <Inventor/nodekits/SoSubKit.h>
29
30 #include <Inventor/tools/SbPimplPtr.h>
31 #include <Inventor/fields/SoSFVec3f.h>
32 #include <Inventor/fields/SoSFEnum.h>
33 #include <Inventor/fields/SoSFTime.h>
34 #include <Inventor/fields/SoMFFloat.h>
35 #include <Inventor/fields/SoMFColor.h>
36 #include <Inventor/fields/SoMFName.h>
37
38 class SoSensor;
39 class SoScrollingGraphKitP;
40
41 class SoScrollingGraphKit : public SoBaseKit {
42 typedef SoBaseKit inherited;
43 SO_KIT_HEADER(SoScrollingGraphKit);
44 SO_KIT_CATALOG_ENTRY_HEADER(scene);
45
46 public:
47 static void initClass(void);
48
49 SoScrollingGraphKit(void);
50
51 enum GraphicsType {
52 LINES,
53 STACKED_BARS,
54 DEFAULT_GRAPHICS = STACKED_BARS
55 };
56
57 enum RangeType {
58 ABSOLUTE_ACCUMULATIVE,
59 //ABSOLUTE_OVERWRITE,
60 //RELATIVE_ACCUMULATIVE,
61 //RELATIVE_OVERWRITE,
62 DEFAULT_RANGETYPE = ABSOLUTE_ACCUMULATIVE
63 };
64
65 // config
66 SoSFEnum graphicsType;
67 SoSFEnum rangeType;
68 SoSFTime seconds; // seconds to pass over graph area (20)
69 SoMFColor colors; // rotating color list
70
71 // geometry
72 SoSFVec3f viewportSize; // input
73 SoSFVec3f position; // input
74 SoSFVec3f size; // input
75
76 // the dynamic inputs
77 SoMFName addKeys;
78 SoMFFloat addValues; // input
79
80 protected:
81 virtual ~SoScrollingGraphKit(void);
82
83 static void addValuesCB(void * closure, SoSensor * sensor);
84
85 private:
86 SbPimplPtr<SoScrollingGraphKitP> pimpl;
87
88 // NOT IMPLEMENTED
89 SoScrollingGraphKit(const SoScrollingGraphKit &);
90 SoScrollingGraphKit & operator = (const SoScrollingGraphKit &);
91
92 }; // SoScrollingGraphKit
93
94 #endif // !COIN_SOSCROLLINGGRAPHKIT_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.