OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
nodeanimscene.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef NODEANIMSCENE_H
19 #define NODEANIMSCENE_H
20 
21 #include "index.h"
22 #include "nodeanim.h"
23 
24 namespace Engine
25 {
26 
27  /* List of Nodes */
28  using NodeAnims = std::list< NodeAnim * >;
29 
37 {
38  public:
39 
40  explicit NodeAnimScene();
41  ~NodeAnimScene(){}
42 
48  void addNode( NodeAnim * node );
49 
55  void setMaxFrames( int frames );
56 
62  bool hasNodes(void) const;
63 
69  int getNumNodes(void) const;
70 
76  int getNumFrames(void) const;
77 
82  void clear(void) const;
83 
89  const NodeAnims & getConstNodes( void ) const;
90 
96  NodeAnims getNodes(void);
97 
98  private:
99 
100  NodeAnims mNodeAnims;
101  int mNumFrames;
102 };
103 
104 }
105 
106 #endif // NODEANIMSCENE_H
void addNode(NodeAnim *node)
addNode
Definition: NodeAnimScene.cpp:29
Definition: element.h:23
int getNumFrames(void) const
getNumFrames
Definition: NodeAnimScene.cpp:52
bool hasNodes(void) const
hasNodes
Definition: NodeAnimScene.cpp:39
The NodeAnim class.
Definition: nodeanim.h:32
const NodeAnims & getConstNodes(void) const
getNodes
Definition: NodeAnimScene.cpp:70
void setMaxFrames(int frames)
setMaxFrames
Definition: NodeAnimScene.cpp:34
void clear(void) const
clear
Definition: NodeAnimScene.cpp:57
NodeAnims getNodes(void)
getNodes
Definition: NodeAnimScene.cpp:65
The NodeAnimScene class.
Definition: nodeanimscene.h:36
int getNumNodes(void) const
getNumNodes
Definition: NodeAnimScene.cpp:47