NoesisGUI
 

🔹 VisualTreeHelper Class

namespace Noesis | MSDN

Provides utility methods that perform common tasks involving nodes in a visual tree.

Inheritance Hierarchy

VisualTreeHelper

📚 Class Hierarchy Index

Properties

VisualTreeHelper has no properties

Attached Properties

VisualTreeHelper has no attached properties

Methods

Name Description
 GetChild(const Visual*, uint32_t) Returns the child visual object of a parent at the specified index
 GetChildrenCount(const Visual*) Returns the number of children that a parent visual contains
 GetClip(const Visual*) Returns the clip geometry of the visual
 GetContentBounds(const Visual*) Returns the cached bounding box rectangle for the visual
 GetDescendantBounds(const Visual*) Returns the union of all the content bounding boxes for all visual object descendants, which includes the content bounding box of the visual itself
 GetDescendantBoundsMaxZ(const Visual*) Returns the maximum z value of the union of all the content bounding boxes for all visual object descendants, which includes the content bounding box of the visual itself
 GetDescendantBoundsMinZ(const Visual*) Returns the minimum z value of the union of all the content bounding boxes for all visual object descendants, which includes the content bounding box of the visual itself
 GetOffset(const Visual*) Returns the offset of the visual
 GetParent(const Visual*) Returns the parent of the visual object
 GetRoot(const Visual*) Returns the root of the visual tree where the specified visual is connected to
 GetSize(const Visual*) Returns the size of the visual
 HitTest(Visual*, const Point&) Returns the top-most visual object of a hit test. The coordinate value you pass as the point parameter has to be relative to the coordinate space of the visual object
 HitTest(Visual*, const Point&, Noesis::HitTestFilterCallback, Noesis::HitTestResultCallback) Returns the top-most visual object of a hit test. The coordinate value you pass as the point parameter has to be relative to the coordinate space of the visual object. The specified callback will be called each time a visual is hit while traversing the tree
 HitTest3D(Visual*, const Point3D&, const Point3D&) Returns the top-most visual object of a hit test. The coordinate values you pass as the point and direction parameters have to be relative to the coordinate space of the visual object
 HitTest3D(Visual*, const Point3D&, const Point3D&, Noesis::HitTestFilterCallback, Noesis::HitTest3DResultCallback) Returns the top-most visual object of a hit test. The coordinate values you pass as the point and direction parameters have to be relative to the coordinate space of the visual object. The specified callback will be called each time a visual is hit while traversing the tree
 IntersectPlane(Visual*, const Point3D&, const Point3D&, Point3D&) Returns the intersection of the given ray with the plane corresponding to the passed visual Input and output coordinates are expressed in world-space False is returned if there is no intersection

Events

VisualTreeHelper has no events

 
© 2017 Noesis Technologies