SoOutputData.h Source File

| 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
SoOutput
The SoOutput class is an abstraction of an output stream.SoOutput offers the ability to write basic t...
Definition: SoOutput.h:42
SoEngine
SoEngine is the base class for Coin engines.Engines enables the application programmers to make compl...
Definition: SoEngine.h:34
SoFieldContainer
The SoFieldContainer class is a base class for all classes that contain fields.The classes containing...
Definition: SoFieldContainer.h:34
SoNodeEngine
SoNodeEngine is the base class for Coin node engines.Node engines have the same functionality as norm...
Definition: SoNodeEngine.h:33
SbList< SoOutputDataEntry * >
SoEngineOutput
The SoEngineOutput class is the output slots in SoEngine instances.SoEngineOutput has methods for con...
Definition: SoEngineOutput.h:36
SoEngineOutputData
The SoEngineOutputData class is a container for a prototype set of outputs.This class is instantiated...
Definition: SoOutputData.h:40
SoInput
The SoInput class is an abstraction of file import functionality.This class takes care of most of the...
Definition: SoInput.h:52
SoType
The SoType class is the basis for the run-time type system in Coin.Many of the classes in the Coin li...
Definition: SoType.h:50
SbName
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:31

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