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
SoNodeEngine::writeOutputTypes
void writeOutputTypes(SoOutput *out)
Definition: SoNodeEngine.cpp:325
SoBase::destroy
virtual void destroy(void)
Definition: SoBase.cpp:405
SoNodeEngine::getOutputName
SbBool getOutputName(const SoEngineOutput *output, SbName &outputname) const
Definition: SoNodeEngine.cpp:198
SbName
The SbName class stores strings by reference.
Definition: SbName.h:31
SoNode::writeInstance
virtual void writeInstance(SoOutput *out)
Definition: SoNode.cpp:1311
SoNodeEngine::readInstance
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNodeEngine.cpp:306
SoNodeEngine::notify
virtual void notify(SoNotList *nl)
Definition: SoNodeEngine.cpp:226
SoNodeEngine::SoNodeEngine
SoNodeEngine(void)
Definition: SoNodeEngine.cpp:87
SoNodeEngine::getOutputDataPtr
static const SoEngineOutputData ** getOutputDataPtr(void)
Definition: SoNodeEngine.cpp:299
SoNotList::getLastRec
SoNotRec * getLastRec(void) const
Definition: SoNotification.cpp:149
SoNode::notify
virtual void notify(SoNotList *l)
Definition: SoNode.cpp:423
SoOutput
The SoOutput class is an abstraction of an output stream.
Definition: SoOutput.h:42
SoEngineOutput
The SoEngineOutput class is the output slots in SoEngine instances.
Definition: SoEngineOutput.h:36
SoNodeEngine::~SoNodeEngine
virtual ~SoNodeEngine()
Definition: SoNodeEngine.cpp:95
SoBase::getName
virtual SbName getName(void) const
Definition: SoBase.cpp:730
SoNotRec::setType
void setType(const SoNotRec::Type type)
Definition: SoNotRec.cpp:62
SoNodeEngine::evaluate
virtual void evaluate(void)=0
SoNode::readInstance
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNode.cpp:1438
SoNotRec
The SoNotRec class specifies records for notification lists.
Definition: SoNotRec.h:33
SoNodeEngine::getOutputs
virtual int getOutputs(SoEngineOutputList &l) const
Definition: SoNodeEngine.cpp:164
SoFieldContainer::isNotifyEnabled
SbBool isNotifyEnabled(void) const
Definition: SoFieldContainer.cpp:459
SoNodeEngine::getOutputData
virtual const SoEngineOutputData * getOutputData(void) const =0
SoField
The SoField class is the top-level abstract base class for fields.
Definition: SoField.h:38
SoType
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:50
SbName::getString
const char * getString(void) const
Definition: SbName.cpp:278
SoDebugError::postInfo
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
SoNotList::append
void append(SoNotRec *const rec)
Definition: SoNotification.cpp:66
SoNodeEngine::writeInstance
virtual void writeInstance(SoOutput *out)
Definition: SoNodeEngine.cpp:315
SoFieldData
The SoFieldData class is a container for a prototype set of fields.
Definition: SoFieldData.h:39
SoNodeEngine::getFieldDataPtr
static const SoFieldData ** getFieldDataPtr(void)
Definition: SoNodeEngine.cpp:289
SoNodeEngine
SoNodeEngine is the base class for Coin node engines.
Definition: SoNodeEngine.h:33
SoNodeEngine::isNotifying
SbBool isNotifying(void) const
Definition: SoNodeEngine.cpp:336
SoBase::getTypeId
virtual SoType getTypeId(void) const =0
SoType::createType
static const SoType createType(const SoType parent, const SbName name, const instantiationMethod method=(instantiationMethod) NULL, const uint16_t data=0)
Definition: SoType.cpp:256
SoEngineOutputList
The SoEngineOutputList class is a container for SoEngineOutput objects.
Definition: SoEngineOutputList.h:31
SoNodeEngine::getOutput
SoEngineOutput * getOutput(const SbName &outputname) const
Definition: SoNodeEngine.cpp:181
SoNotList::getLastField
SoField * getLastField(void) const
Definition: SoNotification.cpp:167
SoInput
The SoInput class is an abstraction of file import functionality.
Definition: SoInput.h:55
SoNodeEngine::inputChanged
virtual void inputChanged(SoField *which)
Definition: SoNodeEngine.cpp:220
SoNodeEngine::evaluateWrapper
void evaluateWrapper(void)
Definition: SoNodeEngine.cpp:271
SoNode
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
SoType::getName
SbName getName(void) const
Definition: SoType.cpp:628
SoNode::getFieldDataPtr
static const SoFieldData ** getFieldDataPtr(void)
Definition: SoNode.cpp:1431
SoNotList
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
SoNotRec::getType
SoNotRec::Type getType(void) const
Definition: SoNotRec.cpp:80

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

Generated on Mon Jul 27 2020 for Coin by Doxygen. 1.8.18