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

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

- File List
- File Members

SoOutputData.h
1 /**************************************************************************\
2 *
3 * This file is part of the Coin 3D visualization library.
4 * Copyright (C) by Kongsberg Oil & Gas Technologies.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * ("GPL") version 2 as published by the Free Software Foundation.
9 * See the file LICENSE.GPL at the root directory of this source
10 * distribution for additional information about the GNU GPL.
11 *
12 * For using Coin with software that can not be combined with the GNU
13 * GPL, and for taking advantage of the additional benefits of our
14 * support services, please contact Kongsberg Oil & Gas Technologies
15 * about acquiring a Coin Professional Edition License.
16 *
17 * See http://www.coin3d.org/ for more information.
18 *
19 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
20 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
21 *
22 \**************************************************************************/
23
24 #ifndef COIN_OUTPUTDATA_H
25 #define COIN_OUTPUTDATA_H
26
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/lists/SbList.h>
29
30 class SoEngine;
31 class SoNodeEngine;
32 class SoFieldContainer;
33 class SoEngineOutput;
34 class SbName;
35 class SoInput;
36 class SoOutput;
37 class SoOutputDataEntry;
38 class SoType;
39
40 class COIN_DLL_API SoEngineOutputData {
41 public:
42 SoEngineOutputData(void);
43 SoEngineOutputData(const SoEngineOutputData * data);
44 SoEngineOutputData(int approxnum);
45 ~SoEngineOutputData(void);
46
47 void addOutput(const SoEngine * base, const char *name,
48 const SoEngineOutput * output, SoType type);
49 void addOutput(const SoNodeEngine * base, const char *name,
50 const SoEngineOutput * output, SoType type);
51
52 int getNumOutputs(void) const;
53 const SbName & getOutputName(int index) const;
54 SoEngineOutput * getOutput(const SoEngine * engine, int index) const;
55 SoEngineOutput * getOutput(const SoNodeEngine * engine, int index) const;
56 int getIndex(const SoEngine * engine, const SoEngineOutput * output) const;
57 int getIndex(const SoNodeEngine * engine, const SoEngineOutput * output) const;
58 const SoType & getType(int index) const;
59 SbBool readDescriptions(SoInput * input, SoEngine * engine) const;
60 void writeDescriptions(SoOutput * out, SoEngine * engine) const;
61
62 private:
63 SbBool hasOutput(const char * name) const;
64 void addOutputInternal(const SoFieldContainer * base, const char *name,
65 const SoEngineOutput * output, SoType type);
66 SoEngineOutput * getOutputInternal(const SoFieldContainer * base, int index) const;
67 int getIndexInternal(const SoFieldContainer * base, const SoEngineOutput * output) const;
68
69 SbList <SoOutputDataEntry*> outputlist;
70 };
71
72 #endif // !COIN_OUTPUTDATA_H

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