SoNodeEngine.h Source File

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

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

- File List
- File Members

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
29 class SoEngineOutput;
30 class SoEngineOutputList;
31 class SoEngineOutputData;
32
33 class COIN_DLL_API SoNodeEngine : public SoNode {
34 typedef SoNode inherited;
35
36 public:
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
52 protected:
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
65 private:
66 virtual void destroy(void); // overrides SoBase::destroy()
67
68 static SoType classTypeId;
69 unsigned int flags;
70 };
71
72 #endif // !COIN_SONODEENGINE_H
SoNode::getFieldDataPtr
static const SoFieldData ** getFieldDataPtr(void)
Definition: SoNode.cpp:1459
SoNode::notify
virtual void notify(SoNotList *l)
Definition: SoNode.cpp:439
SoOutput
The SoOutput class is an abstraction of an output stream.SoOutput offers the ability to write basic t...
Definition: SoOutput.h:42
SoNodeEngine
SoNodeEngine is the base class for Coin node engines.Node engines have the same functionality as norm...
Definition: SoNodeEngine.h:33
SoField
The SoField class is the top-level abstract base class for fields.Fields is the mechanism used throug...
Definition: SoField.h:38
SoNode
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
SoEngineOutputList
The SoEngineOutputList class is a container for SoEngineOutput objects.
Definition: SoEngineOutputList.h:31
SoNode::readInstance
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNode.cpp:1466
SoBase::destroy
virtual void destroy(void)
Definition: SoBase.cpp:286
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
SoFieldData
The SoFieldData class is a container for a prototype set of fields.This class is instantiated once fo...
Definition: SoFieldData.h:39
SoNotList
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
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
SoNode::writeInstance
virtual void writeInstance(SoOutput *out)
Definition: SoNode.cpp:1339

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