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) 1998-2007 by Systems in Motion. All rights reserved.
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 Systems in Motion about acquiring
15  * a Coin Professional Edition License.
16  *
17  * See http://www.coin3d.org/ for more information.
18  *
19  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, 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();
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
static const SoFieldData ** getFieldDataPtr(void)
Definition: SoNode.cpp:1431
virtual void notify(SoNotList *l)
Definition: SoNode.cpp:423
The SoOutput class is an abstraction of an output stream.SoOutput offers the ability to write basic t...
Definition: SoOutput.h:42
SoNodeEngine is the base class for Coin node engines.Node engines have the same functionality as norm...
Definition: SoNodeEngine.h:33
The SoField class is the top-level abstract base class for fields.Fields is the mechanism used throug...
Definition: SoField.h:38
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
The SoEngineOutputList class is a container for SoEngineOutput objects.
Definition: SoEngineOutputList.h:31
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNode.cpp:1438
virtual void destroy(void)
Definition: SoBase.cpp:405
The SoEngineOutput class is the output slots in SoEngine instances.SoEngineOutput has methods for con...
Definition: SoEngineOutput.h:36
The SoInput class is an abstraction of file import functionality.This class takes care of most of the...
Definition: SoInput.h:55
The SoFieldData class is a container for a prototype set of fields.This class is instantiated once fo...
Definition: SoFieldData.h:39
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
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
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:31
virtual void writeInstance(SoOutput *out)
Definition: SoNode.cpp:1311

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Fri Feb 17 2017 for Coin by Doxygen. 1.8.13