scimesh 0.3.4
Headless CPU-only 3D software renderer for scientific mesh visualization
Loading...
Searching...
No Matches
scimesh::TextNodeRef Struct Reference

A non-owning reference to one text layer in a scene, together with its placement transform (and optional name). More...

#include <text.h>

Collaboration diagram for scimesh::TextNodeRef:

Public Attributes

const TextLayer * layer = nullptr
 Pointer to the owned layer (never null for a valid node).
 
Mat4 transform = Mat4(1.0f)
 Model matrix applied to the anchor positions.
 
std::string name
 Optional node name (used by exporters / debugging).
 

Detailed Description

A non-owning reference to one text layer in a scene, together with its placement transform (and optional name).

The text layer counterpart of SceneNodeRef and LineNodeRef. The transform is applied to the anchor positions; it is ignored for screen-space layers.

See also
Scene::text_nodes(), Scene::add_texts()

Definition at line 323 of file text.h.

Member Data Documentation

◆ layer

const TextLayer* scimesh::TextNodeRef::layer = nullptr

Pointer to the owned layer (never null for a valid node).

Definition at line 324 of file text.h.

◆ name

std::string scimesh::TextNodeRef::name

Optional node name (used by exporters / debugging).

Definition at line 326 of file text.h.

◆ transform

Mat4 scimesh::TextNodeRef::transform = Mat4(1.0f)

Model matrix applied to the anchor positions.

Definition at line 325 of file text.h.


The documentation for this struct was generated from the following file: