Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/scene_graph/NodeSceneLayer.h
- This file was moved from source/blender/freestyle/intern/scene_graph/NodeSceneRenderLayer.h.
| Show All 12 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| #ifndef __FREESTYLE_NODE_SCENE_RENDER_LAYER_H__ | #ifndef __FREESTYLE_NODE_SCENE_LAYER_H__ | ||||
| #define __FREESTYLE_NODE_SCENE_RENDER_LAYER_H__ | #define __FREESTYLE_NODE_SCENE_LAYER_H__ | ||||
| /** \file blender/freestyle/intern/scene_graph/NodeSceneRenderLayer.h | /** \file blender/freestyle/intern/scene_graph/NodeSceneLayer.h | ||||
| * \ingroup freestyle | * \ingroup freestyle | ||||
| * \brief Class to represent a scene render layer in Blender. | * \brief Class to represent a scene render layer in Blender. | ||||
| */ | */ | ||||
| #include "Node.h" | #include "Node.h" | ||||
| extern "C" { | extern "C" { | ||||
| #include "DNA_scene_types.h" /* for Scene and SceneRenderLayer */ | #include "DNA_scene_types.h" /* for Scene and SceneRenderLayer */ | ||||
| } | } | ||||
| using namespace std; | using namespace std; | ||||
| namespace Freestyle { | namespace Freestyle { | ||||
| class NodeSceneRenderLayer : public Node | class NodeSceneLayer : public Node | ||||
| { | { | ||||
| public: | public: | ||||
| inline NodeSceneRenderLayer(Scene& scene, SceneRenderLayer& srl) : Node(), _Scene(scene), _SceneRenderLayer(srl) {} | inline NodeSceneLayer(Scene& scene, SceneLayer& scene_layer) : Node(), _Scene(scene), _SceneLayer(scene_layer) {} | ||||
| virtual ~NodeSceneRenderLayer() {} | virtual ~NodeSceneLayer() {} | ||||
| inline struct Scene& scene() const | inline struct Scene& scene() const | ||||
| { | { | ||||
| return _Scene; | return _Scene; | ||||
| } | } | ||||
| inline struct SceneRenderLayer& sceneRenderLayer() const | inline struct SceneLayer& sceneLayer() const | ||||
| { | { | ||||
| return _SceneRenderLayer; | return _SceneLayer; | ||||
| } | } | ||||
| /*! Accept the corresponding visitor */ | /*! Accept the corresponding visitor */ | ||||
| virtual void accept(SceneVisitor& v); | virtual void accept(SceneVisitor& v); | ||||
| protected: | protected: | ||||
| Scene& _Scene; | Scene& _Scene; | ||||
| SceneRenderLayer& _SceneRenderLayer; | SceneLayer& _SceneLayer; | ||||
| }; | }; | ||||
| } /* namespace Freestyle */ | } /* namespace Freestyle */ | ||||
| #endif // __FREESTYLE_NODE_SCENE_RENDER_LAYER_H__ | #endif // __FREESTYLE_NODE_SCENE_LAYER_H__ | ||||