1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
45 #include "OSGConfig.h"
47 #include "OSGComputeElement.h"
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 /*-------------------------------------------------------------------------*/
59 void ComputeElement::changed(ConstFieldMaskArg whichField
,
63 Inherited::changed(whichField
, origin
, details
);
66 /*-------------------------------------------------------------------------*/
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 /*-------------------------------------------------------------------------*/
78 ComputeElement::ComputeElement(void) :
83 ComputeElement::ComputeElement(const ComputeElement
&source
) :
88 /*-------------------------------------------------------------------------*/
91 ComputeElement::~ComputeElement(void)
95 /*-------------------------------------------------------------------------*/
99 Draw loaded geometry. If nothing was loaded until now, start
100 loading. If loading is not finished, draw the children of
104 Action::ResultE
ComputeElement::renderEnter(Action
*action
)
106 return Action::Continue
;
109 Action::ResultE
ComputeElement::renderLeave(Action
*action
)
111 return Action::Continue
;
114 /*-------------------------------------------------------------------------*/
117 /*-------------------------------------------------------------------------*/
120 void ComputeElement::initMethod(InitPhase ePhase
)
122 Inherited::initMethod(ePhase
);
124 if(ePhase
== TypeObject::SystemPost
)