Coin Logo http://www.sim.no/
http://www.coin3d.org/

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
The SoMFFloat class is a container for floating point values.This field is used where nodes...
Definition: SoMFFloat.h:30
The SoBaseKit class is the toplevel superclass for nodekits.Node kits are collections of nodes and ot...
Definition: SoBaseKit.h:57
The SoMFColor class is a container for SbColor values.This field is used where nodes, engines or other field containers needs to store multiple color values (i.e. "Red Green Blue" triplets).
Definition: SoMFColor.h:31
The SoSFEnum class is a container for an enum value.This field is used where nodes, engines or other field containers needs to store one particular value out of an enumerated set.
Definition: SoSFEnum.h:31
The SoSensor class is the abstract base class for all sensors.Sensors is a mechanism in Coin for sche...
Definition: SoSensor.h:34
The SoSFTime class is a container for an SbTime value.This field is used where nodes, engines or other field containers needs to store a single time representation.
Definition: SoSFTime.h:31
The SoMFName class is a container for SbName values.This field is used where nodes, engines or other field containers needs to store arrays of names.
Definition: SoMFName.h:31
The SoSFVec3f class is a container for an SbVec3f vector.This field is used where nodes...
Definition: SoSFVec3f.h:31

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

Generated on Wed Feb 7 2018 for Coin by Doxygen 1.8.14.