Blender  V3.3
OrientedLineRep.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 #include "OrientedLineRep.h"
9 
10 #include "../system/BaseObject.h"
11 
12 namespace Freestyle {
13 
15 {
16  Rep::accept(v); // NOLINT(bugprone-parent-virtual-call), this seems to intentionally *not* call
17  // the parent class' accept() function, but rather the grandparent's. The
18  // v.visitLineRep(*this); call below is actually what the parent class would do.
19  if (!frs_material()) {
20  v.visitOrientedLineRep(*this);
21  }
22  else {
23  v.visitLineRep(*this);
24  }
25 }
26 
27 } /* namespace Freestyle */
Class to display an oriented line representation.
ATTR_WARN_UNUSED_RESULT const BMVert * v
virtual void accept(SceneVisitor &v)
virtual void accept(SceneVisitor &v)
Definition: Rep.h:94
const FrsMaterial * frs_material() const
Definition: Rep.h:129
inherits from class Rep
Definition: AppCanvas.cpp:18