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

SoEngineOutput.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_SOENGINEOUTPUT_H
25 #define COIN_SOENGINEOUTPUT_H
26 
27 #include <Inventor/SoType.h>
28 #include <Inventor/lists/SoFieldList.h>
29 #include <Inventor/lists/SbList.h>
30 
31 class SoNotList;
32 class SoFieldContainer;
33 class SoEngine;
34 class SoNodeEngine;
35 
36 class COIN_DLL_API SoEngineOutput {
37 public:
38  SoEngineOutput(void);
39  virtual ~SoEngineOutput();
40 
41  SoType getConnectionType(void) const;
42  int getForwardConnections(SoFieldList & fl) const;
43  void enable(const SbBool flag);
44  SbBool isEnabled(void) const;
45  SoEngine * getContainer(void) const;
46  SoNodeEngine * getNodeContainer(void) const;
47  SbBool isNodeEngineOutput(void) const;
48 
49  void setContainer(SoEngine * engine);
50  void setNodeContainer(SoNodeEngine * nodeengine);
51  void addConnection(SoField * f);
52  void removeConnection(SoField * f);
53  int getNumConnections(void) const;
54  SoField * operator[](int i) const;
55 
56  void prepareToWrite(void) const;
57  void doneWriting(void) const;
58 
59  void touchSlaves(SoNotList * nl, SbBool donotify);
60 
61  SoFieldContainer * getFieldContainer(void);
62 
63 private:
64  SbBool enabled;
65  SoEngine * container;
66  SoFieldList slaves;
67  SbList<SbBool> fieldnotiflist;
68 };
69 
70 #endif // !COIN_SOENGINEOUTPUT_H
SbPList::getLength
int getLength(void) const
Definition: SbPList.h:94
SoFieldConverter::getForwardConnections
int getForwardConnections(SoFieldList &l) const
Definition: SoFieldConverter.cpp:130
SoEngineOutput::touchSlaves
void touchSlaves(SoNotList *nl, SbBool donotify)
Definition: SoEngineOutput.cpp:390
SoFieldConverter
The SoFieldConverter class is the abstract base class for field converters.
Definition: SoFieldConverter.h:32
SoField::setDirty
void setDirty(SbBool dirty)
Definition: SoField.cpp:2126
SbList::getArrayPtr
const Type * getArrayPtr(const int start=0) const
Definition: SbList.h:168
SoEngineOutput::addConnection
void addConnection(SoField *f)
Definition: SoEngineOutput.cpp:247
SoEngineOutput::enable
void enable(const SbBool flag)
Definition: SoEngineOutput.cpp:136
SoEngineOutput::prepareToWrite
void prepareToWrite(void) const
Definition: SoEngineOutput.cpp:342
SoEngineOutput
The SoEngineOutput class is the output slots in SoEngine instances.
Definition: SoEngineOutput.h:36
SbList::truncate
void truncate(const int length, const int dofit=0)
Definition: SbList.h:149
SoEngineOutput::isEnabled
SbBool isEnabled(void) const
Definition: SoEngineOutput.cpp:148
SoEngineOutput::operator[]
SoField * operator[](int i) const
Definition: SoEngineOutput.cpp:329
SoEngineOutput::getNumConnections
int getNumConnections(void) const
Definition: SoEngineOutput.cpp:314
SoDebugError::postWarning
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
SoEngine::getOutputData
virtual const SoEngineOutputData * getOutputData(void) const =0
SoEngineOutput::getForwardConnections
int getForwardConnections(SoFieldList &fl) const
Definition: SoEngineOutput.cpp:109
SbList::append
void append(const Type item)
Definition: SbList.h:98
SoEngineOutput::setContainer
void setContainer(SoEngine *engine)
Definition: SoEngineOutput.cpp:217
SoField::isNotifyEnabled
SbBool isNotifyEnabled(void) const
Definition: SoField.cpp:1499
SoField::getContainer
SoFieldContainer * getContainer(void) const
Definition: SoField.cpp:1253
SoType::isDerivedFrom
SbBool isDerivedFrom(const SoType type) const
Definition: SoType.cpp:687
SoNodeEngine::getOutputData
virtual const SoEngineOutputData * getOutputData(void) const =0
SoBase::unref
void unref(void) const
Definition: SoBase.cpp:627
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
SoEngineOutput::SoEngineOutput
SoEngineOutput(void)
Definition: SoEngineOutput.cpp:53
SbList< SbBool >
SoDebugError::postInfo
static void postInfo(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:334
SbList::getLength
int getLength(void) const
Definition: SbList.h:145
SoFieldList
The SoFieldList class is a container for pointers to SoField objects.
Definition: SoFieldList.h:31
SoEngineOutput::getConnectionType
SoType getConnectionType(void) const
Definition: SoEngineOutput.cpp:88
SoField::enableNotify
SbBool enableNotify(SbBool on)
Definition: SoField.cpp:1485
SoFieldContainer
The SoFieldContainer class is a base class for all classes that contain fields.
Definition: SoFieldContainer.h:35
SoBase::ref
void ref(void) const
Definition: SoBase.cpp:574
SoNodeEngine
SoNodeEngine is the base class for Coin node engines.
Definition: SoNodeEngine.h:33
SoEngineOutput::getNodeContainer
SoNodeEngine * getNodeContainer(void) const
Definition: SoEngineOutput.cpp:184
SoEngineOutput::isNodeEngineOutput
SbBool isNodeEngineOutput(void) const
Definition: SoEngineOutput.cpp:205
SbPList::remove
void remove(const int index)
Definition: SbPList.cpp:259
SoFieldList::append
void append(SoField *field)
Definition: SoFieldList.h:37
SoEngineOutput::~SoEngineOutput
virtual ~SoEngineOutput()
Definition: SoEngineOutput.cpp:62
SoBase::getTypeId
virtual SoType getTypeId(void) const =0
SoEngineOutput::getContainer
SoEngine * getContainer(void) const
Definition: SoEngineOutput.cpp:160
SoEngineOutput::removeConnection
void removeConnection(SoField *f)
Definition: SoEngineOutput.cpp:287
SoField::notify
virtual void notify(SoNotList *nlist)
Definition: SoField.cpp:1382
SoEngineOutput::doneWriting
void doneWriting(void) const
Definition: SoEngineOutput.cpp:362
SbPList::find
int find(void *item) const
Definition: SbPList.cpp:212
SoEngineOutput::getFieldContainer
SoFieldContainer * getFieldContainer(void)
Definition: SoEngineOutput.cpp:420
SoBase::isOfType
SbBool isOfType(SoType type) const
Definition: SoBase.cpp:710
SoEngineOutput::setNodeContainer
void setNodeContainer(SoNodeEngine *nodeengine)
Definition: SoEngineOutput.cpp:233
SoNotList
The SoNotList class is a list of SoNotRec notification records.
Definition: SoNotification.h:34
SoEngine
SoEngine is the base class for Coin engines.
Definition: SoEngine.h:34

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

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