class SemanticTransform
Defined at line 19 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.h
A SemanticTransform represents a chain of local transformations from all of the
nodes in a specific path from the root of the SemanticTree. If ChainLocalTransform
is invoked on each node's transform starting from a target node and moving up to the
root, the resulting transform will represent a transform from the target node's coordinate
space to the root node's.
Public Methods
void ChainLocalTransform (const fuchsia::ui::gfx::mat4 & local_transform)
Takes a matrix from fuchsia.accessibility.semantics.Node's |transform| field
and logically appends it to the list of transforms to apply (left-multiplying it with
the already applied transforms).
Defined at line 9 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.cc
fuchsia::ui::gfx::vec3 Apply (const fuchsia::ui::gfx::vec3 & point)
Transform the given point using the accumulated transforms.
Defined at line 32 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.cc
const std::array<float, 3> & scale_vector ()
Return a vector with the resulting scale factors for each component
Defined at line 33 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.h
const std::array<float, 3> & translation_vector ()
Return a vector with the resulting translation values for each component
Defined at line 36 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.h
SemanticTransform Invert ()
Return a new SemanticTransform that represents the inverse transformation of this one.
Defined at line 40 of file ../../src/ui/a11y/lib/semantics/util/semantic_transform.cc