fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Contrib / ComputeBase / Base / OSGComputeElement.cpp
bloba73983ca6b7774880a6abdc10b7593c04800c891
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 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 #include <cstdlib>
40 #include <cstdio>
42 #include <sstream>
43 #include <fstream>
45 #include "OSGConfig.h"
47 #include "OSGComputeElement.h"
49 OSG_USING_NAMESPACE
51 // Documentation for this class is emited in the
52 // OSGComputeElementBase.cpp file.
53 // To modify it, please change the .fcd file (OSGComputeElement.fcd) and
54 // regenerate the base file.
56 /*-------------------------------------------------------------------------*/
57 /* Sync */
59 void ComputeElement::changed(ConstFieldMaskArg whichField,
60 UInt32 origin,
61 BitVector details)
63 Inherited::changed(whichField, origin, details);
66 /*-------------------------------------------------------------------------*/
67 /* Dump */
69 void ComputeElement::dump( UInt32 OSG_CHECK_ARG(uiIndent),
70 const BitVector OSG_CHECK_ARG(bvFlags )) const
72 SLOG << "Dump VisitSubTree NI" << std::endl;
75 /*-------------------------------------------------------------------------*/
76 /* Constructors */
78 ComputeElement::ComputeElement(void) :
79 Inherited()
83 ComputeElement::ComputeElement(const ComputeElement &source) :
84 Inherited(source)
88 /*-------------------------------------------------------------------------*/
89 /* Destructor */
91 ComputeElement::~ComputeElement(void)
95 /*-------------------------------------------------------------------------*/
96 /* Draw */
98 /*!
99 Draw loaded geometry. If nothing was loaded until now, start
100 loading. If loading is not finished, draw the children of
101 thid group.
104 Action::ResultE ComputeElement::renderEnter(Action *action)
106 return Action::Continue;
109 Action::ResultE ComputeElement::renderLeave(Action *action)
111 return Action::Continue;
114 /*-------------------------------------------------------------------------*/
115 /* loading */
117 /*-------------------------------------------------------------------------*/
118 /* Init */
120 void ComputeElement::initMethod(InitPhase ePhase)
122 Inherited::initMethod(ePhase);
124 if(ePhase == TypeObject::SystemPost)