PixelLightAPI  .
SQEnumerate.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: SQEnumerate.h                                  *
00003  *
00004  *  Copyright (C) 2002-2011 The PixelLight Team (http://www.pixellight.org/)
00005  *
00006  *  This file is part of PixelLight.
00007  *
00008  *  PixelLight is free software: you can redistribute it and/or modify
00009  *  it under the terms of the GNU Lesser General Public License as published by
00010  *  the Free Software Foundation, either version 3 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  PixelLight is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  *  GNU Lesser General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU Lesser General Public License
00019  *  along with PixelLight. If not, see <http://www.gnu.org/licenses/>.
00020 \*********************************************************/
00021 
00022 
00023 #ifndef __PLSCENE_SCENEQUERY_ENUMERATE_H__
00024 #define __PLSCENE_SCENEQUERY_ENUMERATE_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLScene/Scene/SceneQuery.h"
00032 
00033 
00034 //[-------------------------------------------------------]
00035 //[ Namespace                                             ]
00036 //[-------------------------------------------------------]
00037 namespace PLScene {
00038 
00039 
00040 //[-------------------------------------------------------]
00041 //[ Classes                                               ]
00042 //[-------------------------------------------------------]
00043 /**
00044 *  @brief
00045 *    Scene node enumeration scene query class
00046 *
00047 *  @remarks
00048 *    This scene query will enumerate all scene nodes of the scene graph.
00049 *
00050 *  @note
00051 *    - Cell portal recursion is not performed
00052 */
00053 class SQEnumerate : public SceneQuery {
00054 
00055 
00056     //[-------------------------------------------------------]
00057     //[ RTTI interface                                        ]
00058     //[-------------------------------------------------------]
00059     pl_class(PLS_RTTI_EXPORT, SQEnumerate, "PLScene", PLScene::SceneQuery, "Scene node enumeration scene query class")
00060         // Constructors
00061         pl_constructor_0(DefaultConstructor,    "Default constructor",  "")
00062     pl_class_end
00063 
00064 
00065     //[-------------------------------------------------------]
00066     //[ Public functions                                      ]
00067     //[-------------------------------------------------------]
00068     public:
00069         /**
00070         *  @brief
00071         *    Default constructor
00072         */
00073         PLS_API SQEnumerate();
00074 
00075         /**
00076         *  @brief
00077         *    Destructor
00078         */
00079         PLS_API virtual ~SQEnumerate();
00080 
00081 
00082     //[-------------------------------------------------------]
00083     //[ Private functions                                     ]
00084     //[-------------------------------------------------------]
00085     private:
00086         /**
00087         *  @brief
00088         *    Recursive part of PerformQuery()
00089         *
00090         *  @param[in] cContainer
00091         *    Current scene container we work on
00092         *
00093         *  @return
00094         *    'true' to continue the query, 'false' if stop it right now
00095         */
00096         bool PerformQueryRec(const SceneContainer &cContainer);
00097 
00098 
00099     //[-------------------------------------------------------]
00100     //[ Public virtual SceneQuery functions                   ]
00101     //[-------------------------------------------------------]
00102     public:
00103         PLS_API virtual bool PerformQuery() override;
00104 
00105 
00106 };
00107 
00108 
00109 //[-------------------------------------------------------]
00110 //[ Namespace                                             ]
00111 //[-------------------------------------------------------]
00112 } // PLScene
00113 
00114 
00115 #endif // __PLSCENE_SCENEQUERY_ENUMERATE_H__


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:03
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported