Avogadro::Rendering::TextLabel3D#

class TextLabel3D : public TextLabelBase#

The TextLabel3D class renders billboarded text that is anchored to a point in world coordinates.

Unnamed Group

void setAnchor(const Vector3f &position)#

The anchor position in world coordinates.

Vector3f anchor() const#

The anchor position in world coordinates.

Unnamed Group

void setRadius(float r)#

The distance to project the label towards the camera from the anchor point. Useful for moving the label on top of, e.g. atom spheres. 0.f by default.

float radius() const#

The distance to project the label towards the camera from the anchor point. Useful for moving the label on top of, e.g. atom spheres. 0.f by default.

Public Functions

TextLabel3D()#
~TextLabel3D() override#
virtual void accept(Visitor&) override#

Accept a visit from our friendly visitor.