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

SoNodeEngine.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_SONODEENGINE_H
25#define COIN_SONODEENGINE_H
26
27#include <Inventor/nodes/SoNode.h>
28
29class SoEngineOutput;
32
33class COIN_DLL_API SoNodeEngine : public SoNode {
34 typedef SoNode inherited;
35
36public:
37 static void initClass(void);
38 static SoType getClassTypeId(void);
39
40 void evaluateWrapper(void);
41
42 virtual int getOutputs(SoEngineOutputList & l) const;
43 SoEngineOutput * getOutput(const SbName & outputname) const;
44 SbBool getOutputName(const SoEngineOutput * output, SbName & outputname) const;
45 virtual const SoEngineOutputData * getOutputData(void) const = 0;
46
47 SbBool isNotifying(void) const;
48 virtual void notify(SoNotList * nl);
49
50 virtual void writeInstance(SoOutput * out);
51
52protected:
53 SoNodeEngine(void);
54 virtual ~SoNodeEngine(void);
55 virtual void evaluate(void) = 0;
56
57 virtual SbBool readInstance(SoInput * in, unsigned short flags);
58 virtual void inputChanged(SoField * which);
59
60 static const SoFieldData ** getFieldDataPtr(void);
61 static const SoEngineOutputData ** getOutputDataPtr(void);
62
63 void writeOutputTypes(SoOutput * out);
64
65private:
66 virtual void destroy(void); // overrides SoBase::destroy()
67
68 static SoType classTypeId;
69 unsigned int flags;
70};
71
72#endif // !COIN_SONODEENGINE_H
The SbName class stores strings by reference.
Definition SbName.h:31
virtual void destroy(void)
Definition SoBase.cpp:286
The SoEngineOutputData class is a container for a prototype set of outputs.
Definition SoOutputData.h:40
The SoEngineOutputList class is a container for SoEngineOutput objects.
Definition SoEngineOutputList.h:31
The SoEngineOutput class is the output slots in SoEngine instances.
Definition SoEngineOutput.h:36
The SoFieldData class is a container for a prototype set of fields.
Definition SoFieldData.h:39
The SoField class is the top-level abstract base class for fields.
Definition SoField.h:38
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
virtual void evaluate(void)=0
virtual const SoEngineOutputData * getOutputData(void) const =0
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:47
virtual void notify(SoNotList *l)
Definition SoNode.cpp:439
virtual void writeInstance(SoOutput *out)
Definition SoNode.cpp:1339
static const SoFieldData ** getFieldDataPtr(void)
Definition SoNode.cpp:1459
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition SoNode.cpp:1466
The SoNotList class is a list of SoNotRec notification records.
Definition SoNotification.h:34
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.