Merge "Combine Internal::ProxyObject & Internal::Object" into tizen
[platform/core/uifw/dali-core.git] / dali / internal / event / modeling / model-logger.h
1 #ifndef __DALI_INTERNAL_MODEL_LOGGER_H__
2 #define __DALI_INTERNAL_MODEL_LOGGER_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include "model-impl.h"
23
24 namespace Dali
25 {
26 class Entity;
27
28 namespace Internal
29 {
30 class ModelData;
31
32 /**
33  * This class writes the model data to standard output.
34  */
35 class ModelLogger
36 {
37 public:
38   ModelLogger(ModelData& model) : mModel(model), mWriteVertices(false) {}
39   ~ModelLogger() {}
40
41   /**
42    * Write the mesh data. Note that vertex data will only be written
43    * if the mWriteVertices attribute is set to true.
44    */
45   void WriteMeshes();
46
47   /**
48    * Write the material data.
49    */
50   void WriteMaterials();
51
52   /**
53    * Write the lighting data.
54    */
55   void WriteLights();
56
57   /**
58    * Write an entity and all its children.
59    * @param[in] entity - the entity to write.
60    * @param[in] indentLevel - the current indent level to use.
61    */
62   void WriteEntity(Dali::Entity entity, int indentLevel);
63
64   /**
65    * write the animation data.
66    */
67   void WriteAnimations();
68
69   /**
70    * Write the model.
71    */
72   void Write();
73
74 private:
75   ModelData& mModel; ///< The model data to write
76
77 public:
78   bool   mWriteVertices; ///< Set to true if the vertex data should be written
79 }; // class ModelLogger
80
81 } // namespace Internal
82
83 } // namespace Dali
84
85 #endif // ndef __DALI_INTERNAL_MODEL_LOGGER_H