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

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
30class SoEngine;
31class SoNodeEngine;
33class SoEngineOutput;
34class SbName;
35class SoInput;
36class SoOutput;
37class SoOutputDataEntry;
38class SoType;
39
40class COIN_DLL_API SoEngineOutputData {
41public:
44 SoEngineOutputData(int approxnum);
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
62private:
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
The SbName class stores strings by reference.
Definition SbName.h:31
The SoEngineOutputData class is a container for a prototype set of outputs.
Definition SoOutputData.h:40
The SoEngineOutput class is the output slots in SoEngine instances.
Definition SoEngineOutput.h:36
SoEngine is the base class for Coin engines.
Definition SoEngine.h:34
The SoFieldContainer class is a base class for all classes that contain fields.
Definition SoFieldContainer.h:34
The SoInput class is an abstraction of file import functionality.
Definition SoInput.h:52
SoNodeEngine is the base class for Coin node engines.
Definition SoNodeEngine.h:33
The SoOutput class is an abstraction of an output stream.
Definition SoOutput.h:42
The SoType class is the basis for the run-time type system in Coin.
Definition SoType.h:50

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

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.