![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 /**************************************************************************\ 00002 * 00003 * This file is part of the Coin 3D visualization library. 00004 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * ("GPL") version 2 as published by the Free Software Foundation. 00009 * See the file LICENSE.GPL at the root directory of this source 00010 * distribution for additional information about the GNU GPL. 00011 * 00012 * For using Coin with software that can not be combined with the GNU 00013 * GPL, and for taking advantage of the additional benefits of our 00014 * support services, please contact Kongsberg Oil & Gas Technologies 00015 * about acquiring a Coin Professional Edition License. 00016 * 00017 * See http://www.coin3d.org/ for more information. 00018 * 00019 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00020 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00021 * 00022 \**************************************************************************/ 00023 00024 #ifndef COIN_OUTPUTDATA_H 00025 #define COIN_OUTPUTDATA_H 00026 00027 #include <Inventor/SbBasic.h> 00028 #include <Inventor/lists/SbList.h> 00029 00030 class SoEngine; 00031 class SoNodeEngine; 00032 class SoFieldContainer; 00033 class SoEngineOutput; 00034 class SbName; 00035 class SoInput; 00036 class SoOutput; 00037 class SoOutputDataEntry; 00038 class SoType; 00039 00040 class COIN_DLL_API SoEngineOutputData { 00041 public: 00042 SoEngineOutputData(void); 00043 SoEngineOutputData(const SoEngineOutputData * data); 00044 SoEngineOutputData(int approxnum); 00045 ~SoEngineOutputData(void); 00046 00047 void addOutput(const SoEngine * base, const char *name, 00048 const SoEngineOutput * output, SoType type); 00049 void addOutput(const SoNodeEngine * base, const char *name, 00050 const SoEngineOutput * output, SoType type); 00051 00052 int getNumOutputs(void) const; 00053 const SbName & getOutputName(int index) const; 00054 SoEngineOutput * getOutput(const SoEngine * engine, int index) const; 00055 SoEngineOutput * getOutput(const SoNodeEngine * engine, int index) const; 00056 int getIndex(const SoEngine * engine, const SoEngineOutput * output) const; 00057 int getIndex(const SoNodeEngine * engine, const SoEngineOutput * output) const; 00058 const SoType & getType(int index) const; 00059 SbBool readDescriptions(SoInput * input, SoEngine * engine) const; 00060 void writeDescriptions(SoOutput * out, SoEngine * engine) const; 00061 00062 private: 00063 SbBool hasOutput(const char * name) const; 00064 void addOutputInternal(const SoFieldContainer * base, const char *name, 00065 const SoEngineOutput * output, SoType type); 00066 SoEngineOutput * getOutputInternal(const SoFieldContainer * base, int index) const; 00067 int getIndexInternal(const SoFieldContainer * base, const SoEngineOutput * output) const; 00068 00069 SbList <SoOutputDataEntry*> outputlist; 00070 }; 00071 00072 #endif // !COIN_OUTPUTDATA_H
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.7.5.1.