changed: gcc8 base update
[opensg.git] / Source / Contrib / ComputeBase / Base / OSGAlgorithmComputeElementData.cpp
blob5300fe6f55b670e7d041500dc541e651c0406e52
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 //---------------------------------------------------------------------------
40 // Includes
41 //---------------------------------------------------------------------------
43 #include <cstdlib>
44 #include <cstdio>
46 #include "OSGConfig.h"
48 #include "OSGChunkMaterial.h"
49 #include "OSGFrameBufferObject.h"
50 #include "OSGSimpleSHLChunk.h"
51 #include "OSGAlgorithmComputeElementData.h"
52 #include "OSGAlgorithmComputeElement.h"
54 OSG_BEGIN_NAMESPACE
56 // Documentation for this class is emitted in the
57 // OSGAlgorithmComputeElementDataBase.cpp file.
58 // To modify it, please change the .fcd file
59 // (OSGAlgorithmComputeElementData.fcd) and regenerate the base file.
61 /***************************************************************************\
62 * Class variables *
63 \***************************************************************************/
65 /***************************************************************************\
66 * Class methods *
67 \***************************************************************************/
69 void AlgorithmComputeElementData::initMethod(InitPhase ePhase)
71 Inherited::initMethod(ePhase);
73 if(ePhase == TypeObject::SystemPost)
79 /***************************************************************************\
80 * Instance methods *
81 \***************************************************************************/
83 /*-------------------------------------------------------------------------*\
84 - private -
85 \*-------------------------------------------------------------------------*/
87 /*----------------------- constructors & destructors ----------------------*/
89 AlgorithmComputeElementData::AlgorithmComputeElementData(void) :
90 Inherited( ),
91 _pTask (NULL)
95 AlgorithmComputeElementData::AlgorithmComputeElementData(
96 const AlgorithmComputeElementData &source) :
98 Inherited(source),
99 _pTask (NULL )
103 AlgorithmComputeElementData::~AlgorithmComputeElementData(void)
107 void AlgorithmComputeElementData::setTask(ComputeAlgorithmDrawTask *pTask)
109 _pTask = pTask;
112 ComputeAlgorithmDrawTask *AlgorithmComputeElementData::getTask(void)
114 return _pTask;
117 void AlgorithmComputeElementData::resolveLinks(void)
119 Inherited::resolveLinks();
121 _pTask = NULL;
124 /*----------------------------- class specific ----------------------------*/
126 void AlgorithmComputeElementData::changed(ConstFieldMaskArg whichField,
127 UInt32 origin,
128 BitVector details)
130 Inherited::changed(whichField, origin, details);
133 void AlgorithmComputeElementData::dump( UInt32 ,
134 const BitVector ) const
136 SLOG << "Dump AlgorithmComputeElementData NI" << std::endl;
139 #if 0
140 void VolumeCoreData::updateData(FieldContainer *pCore,
141 BitVector whichField,
142 UInt32 origin )
145 #endif
147 OSG_END_NAMESPACE