Debian Codegraph @

avogadro/rendering/textlabel3d.cpp

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #include "textlabel3d.h"
7
8 #include "visitor.h"
9
10 namespace Avogadro::Rendering {
11
12 TextLabel3D::TextLabel3D()
13 {
14 setRenderPass(TranslucentPass);
15 }
16
17 TextLabel3D::~TextLabel3D() {}
18
19 void TextLabel3D::accept(Visitor& visitor)
20 {
21 visitor.visit(*this);
22 }
23
24 void TextLabel3D::setAnchor(const Vector3f& position)
25 {
26 setAnchorInternal(position);
27 }
28
29 Vector3f TextLabel3D::anchor() const
30 {
31 return getAnchorInternal();
32 }
33
34 void TextLabel3D::setRadius(float r)
35 {
36 setRadiusInternal(r);
37 }
38
39 float TextLabel3D::radius() const
40 {
41 return getRadiusInternal();
42 }
43
44 } // namespace Avogadro::Rendering