fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Action / Base / OSGRenderActionBase.inl
blob915dae0b25af950769cee4f33ea22412609d6e01
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 //---------------------------------------------------------------------------
40 //  Includes
41 //---------------------------------------------------------------------------
43 OSG_BEGIN_NAMESPACE
45 /***************************************************************************\
46  *                               Types                                     *
47 \***************************************************************************/
50 /***************************************************************************\
51  *                           Class variables                               *
52 \***************************************************************************/
55 /***************************************************************************\
56  *                           Class methods                                 *
57 \***************************************************************************/
60 /*-------------------------------------------------------------------------*\
61  -  public                                                                 -
62 \*-------------------------------------------------------------------------*/
64 /*-------------------------------------------------------------------------*\
65  -  protected                                                              -
66 \*-------------------------------------------------------------------------*/
69 /*-------------------------------------------------------------------------*\
70  -  private                                                                -
71 \*-------------------------------------------------------------------------*/
74 /***************************************************************************\
75  *                           Instance methods                              *
76 \***************************************************************************/
78 /*-------------------------------------------------------------------------*\
79  -  public                                                                 -
80 \*-------------------------------------------------------------------------*/
82 inline    
83 Camera *RenderActionBase::getCamera(void) const
85     return _pCamera;
88 inline
89 Background *RenderActionBase::getBackground(void) const
91     return _pBackground;
93     
94 inline
95 Window *RenderActionBase::getWindow(void) const
97     return _pWindow;
99     
100 inline
101 Viewarea *RenderActionBase::getViewarea(void) const
103     return _pViewarea;
105     
106 inline
107 Node *RenderActionBase::getTraversalRoot(void) const
109     return _pTraversalRoot;
112 inline
113 bool RenderActionBase::getFrustumCulling(void) const
115     return _bFrustumCulling;
117     
118 inline
119 bool RenderActionBase::getVolumeDrawing(void) const
121     return _bVolumeDrawing;
124 inline
125 bool RenderActionBase::getZWriteTrans(void) const
127     return _bZWriteTrans;
129     
130 inline
131 bool RenderActionBase::getAutoFrustum(void) const
133     return _bAutoFrustum;
135     
136 inline
137 const FrustumVolume& RenderActionBase::getFrustum(void) const
139     return _oFrustum;
141     
142 inline
143 bool RenderActionBase::getCorrectTwoSidedLighting(void) const
145     return _bCorrectTwoSidedLighting;
148 inline
149 StatCollector* RenderActionBase::getStatCollector(void) const
151     return _pStatistics;
154 inline
155 Material *RenderActionBase::getGlobalOverride(void) const
157     return _pGlobalOverride;
160 inline
161 bool RenderActionBase::getResetStatistics(void) const
163     return _bResetStatistics;
166 inline
167 void RenderActionBase::setResetStatistics(bool value)
169     _bResetStatistics = value;
172 inline
173 TraversalValidator *RenderActionBase::getTravValidator(void)
175     return _pTravValidator;
178 inline
179 UInt16 RenderActionBase::getFrameTravCount(void)
181     return _uiFrameTravCount;
184 inline
185 void RenderActionBase::setDrawerId(Int32 iId)
187     _iDrawerId = iId;
190 inline
191 Int32 RenderActionBase::getDrawerId(void)
193     return _iDrawerId;
196 inline
197 void RenderActionBase::setDrawableId(Int32 iId)
199     _iDrawableId = iId;
202 inline
203 Int32 RenderActionBase::getDrawableId(void)
205     return _iDrawableId;
208 inline
209 RenderActionBase::RenderPropType RenderActionBase::getRenderProperties(void)
211     return _oCurrentRenderProp;
214 inline
215 void RenderActionBase::setRenderProperties(RenderPropType oProp)
217     _oCurrentRenderProp = oProp;
220 inline
221 void RenderActionBase::resetRenderProperties(void)
223     _oCurrentRenderProp = 0x0000;
226 inline
227 void RenderActionBase::addRenderProperties(RenderPropType oProp)
229     _oCurrentRenderProp |= oProp;
232 inline
233 void RenderActionBase::subRenderProperties(RenderPropType oProp)
235     _oCurrentRenderProp &= ~oProp;
238 inline
239 void RenderActionBase::setDrawPartPar(bool bVal)
241     _bDrawPartPar = bVal;
244 inline
245 bool RenderActionBase::getDrawPartPar(void)
247     return _bDrawPartPar;
250 inline
251 void RenderActionBase::setUseGLFinish(bool bVal)
253     _bUseGLFinish = bVal;
256 inline
257 bool RenderActionBase::getUseGLFinish(void)
259     return _bUseGLFinish;
262 /*-------------------------------------------------------------------------*\
263  -  protected                                                              -
264 \*-------------------------------------------------------------------------*/
266 /*-------------------------------------------------------------------------*\
267  -  private                                                                -
268 \*-------------------------------------------------------------------------*/
270 OSG_END_NAMESPACE