Blender V4.3
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
13
14namespace Freestyle {
15
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 */
Base Class for most shared objects (Node, Rep). Defines the addRef, release system.
Class to display an oriented line representation.
ATTR_WARN_UNUSED_RESULT const BMVert * v
virtual void accept(SceneVisitor &v)
const FrsMaterial * frs_material() const
Definition Rep.h:131
virtual void accept(SceneVisitor &v)
Definition Rep.h:96
inherits from class Rep
Definition AppCanvas.cpp:20