Blender
V4.3
source
blender
freestyle
intern
scene_graph
OrientedLineRep.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2008-2022 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
#include "
OrientedLineRep.h
"
11
12
#include "
../system/BaseObject.h
"
13
14
namespace
Freestyle
{
15
16
void
OrientedLineRep::accept
(
SceneVisitor
&
v
)
17
{
18
Rep::accept
(
v
);
// NOLINT(bugprone-parent-virtual-call), this seems to intentionally *not* call
19
// the parent class' accept() function, but rather the grandparent's. The
20
// v.visitLineRep(*this); call below is actually what the parent class would do.
21
if
(!
frs_material
()) {
22
v
.visitOrientedLineRep(*
this
);
23
}
24
else
{
25
v
.visitLineRep(*
this
);
26
}
27
}
28
29
}
/* namespace Freestyle */
BaseObject.h
Base Class for most shared objects (Node, Rep). Defines the addRef, release system.
OrientedLineRep.h
Class to display an oriented line representation.
v
ATTR_WARN_UNUSED_RESULT const BMVert * v
Definition
bmesh_query_inline.hh:17
Freestyle::OrientedLineRep::accept
virtual void accept(SceneVisitor &v)
Definition
OrientedLineRep.cpp:16
Freestyle::Rep::frs_material
const FrsMaterial * frs_material() const
Definition
Rep.h:131
Freestyle::Rep::accept
virtual void accept(SceneVisitor &v)
Definition
Rep.h:96
Freestyle::SceneVisitor
Definition
SceneVisitor.h:50
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0