Blender
V2.93
source
blender
freestyle
intern
scene_graph
NodeViewLayer.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
17
#pragma once
18
24
#include "
Node.h
"
25
26
#include "
DNA_scene_types.h
"
/* for Scene and ViewLayer */
27
28
using namespace
std
;
29
30
namespace
Freestyle
{
31
32
class
NodeViewLayer
:
public
Node
{
33
public
:
34
inline
NodeViewLayer
(
Scene
&
scene
,
ViewLayer
&view_layer)
35
:
Node
(), _Scene(
scene
), _ViewLayer(view_layer)
36
{
37
}
38
virtual
~NodeViewLayer
()
39
{
40
}
41
42
inline
struct
Scene
&
scene
()
const
43
{
44
return
_Scene;
45
}
46
47
inline
struct
ViewLayer
&
sceneLayer
()
const
48
{
49
return
_ViewLayer;
50
}
51
53
virtual
void
accept(
SceneVisitor
&
v
);
54
55
protected
:
56
Scene
&
_Scene
;
57
ViewLayer
&
_ViewLayer
;
58
};
59
60
}
/* namespace Freestyle */
DNA_scene_types.h
Node.h
Abstract class for scene graph nodes. Inherits from BaseObject which defines the addRef release mecha...
v
ATTR_WARN_UNUSED_RESULT const BMVert * v
Definition:
bmesh_query_inline.h:29
Freestyle::NodeViewLayer
Definition:
NodeViewLayer.h:32
Freestyle::NodeViewLayer::sceneLayer
struct ViewLayer & sceneLayer() const
Definition:
NodeViewLayer.h:47
Freestyle::NodeViewLayer::scene
struct Scene & scene() const
Definition:
NodeViewLayer.h:42
Freestyle::NodeViewLayer::_ViewLayer
ViewLayer & _ViewLayer
Definition:
NodeViewLayer.h:57
Freestyle::NodeViewLayer::NodeViewLayer
NodeViewLayer(Scene &scene, ViewLayer &view_layer)
Definition:
NodeViewLayer.h:34
Freestyle::NodeViewLayer::_Scene
Scene & _Scene
Definition:
NodeViewLayer.h:56
Freestyle::NodeViewLayer::~NodeViewLayer
virtual ~NodeViewLayer()
Definition:
NodeViewLayer.h:38
Freestyle::Node
Definition:
Node.h:40
Freestyle::SceneVisitor
Definition:
SceneVisitor.h:68
scene
Scene scene
Definition:
deg_eval_copy_on_write.cc:120
Freestyle
inherits from class Rep
Definition:
AppCanvas.cpp:32
std
Definition:
cycles_cubin_cc.cpp:35
Scene
Definition:
DNA_scene_types.h:1684
ViewLayer
Definition:
DNA_layer_types.h:141
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1