The IAnchor graph node interface. More...

#include "murl_graph_i_anchor.h"

Inheritance diagram for Murl::Graph::IAnchor:

Public Member Functions

virtual INodeGetNodeInterface ()=0
 Get the mutable Graph::INode interface. More...
 
virtual const INodeGetNodeInterface () const =0
 Get the constant Graph::INode interface. More...
 
virtual const MatrixGetWorldTransform () const =0
 Get the world transform stored during logic traversal. More...
 
virtual const VectorGetWorldPosition () const =0
 Get the world position stored during logic traversal. More...
 
virtual SInt32 GetWorldDepthOrder () const =0
 Get the world depth order stored during logic traversal. More...
 
virtual const VectorGetWorldScaleFactor () const =0
 Get the world scale factor stored during logic traversal. More...
 

Detailed Description

The IAnchor graph node interface.

Anchor nodes may be used to temporarily "store" the current world transform and depth order during logic traversal, to be later retrieved by e.g. a node that implements the Graph::ICloneTransform interface.

See Graph::ICloneTransform for accessing the anchor's transform.

Member Function Documentation

◆ GetNodeInterface() [1/2]

virtual INode* Murl::Graph::IAnchor::GetNodeInterface ( )
pure virtual

Get the mutable Graph::INode interface.

This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.

Returns
The mutable Graph::INode interface, or null if not available

◆ GetNodeInterface() [2/2]

virtual const INode* Murl::Graph::IAnchor::GetNodeInterface ( ) const
pure virtual

Get the constant Graph::INode interface.

This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Returns
The constant Graph::INode interface, or null if not available

◆ GetWorldTransform()

virtual const Matrix& Murl::Graph::IAnchor::GetWorldTransform ( ) const
pure virtual

Get the world transform stored during logic traversal.

This returns a constant reference to the world transform calculated and stored during the most recent logic traversal. The returned transform is only valid until the next logic tick.

Returns
The most recent world transform.

◆ GetWorldPosition()

virtual const Vector& Murl::Graph::IAnchor::GetWorldPosition ( ) const
pure virtual

Get the world position stored during logic traversal.

This returns a constant reference to the world positon calculated and stored during the most recent logic traversal. The returned position is only valid until the next logic tick.

Returns
The most recent world position.

◆ GetWorldDepthOrder()

virtual SInt32 Murl::Graph::IAnchor::GetWorldDepthOrder ( ) const
pure virtual

Get the world depth order stored during logic traversal.

This returns the absolute depth order calculated and stored during the most recent logic traversal. The returned value is only valid until the next logic tick.

Returns
The most recent absolute depth order.

◆ GetWorldScaleFactor()

virtual const Vector& Murl::Graph::IAnchor::GetWorldScaleFactor ( ) const
pure virtual

Get the world scale factor stored during logic traversal.

This returns a constant reference to the world scale factor calculated and stored during the most recent logic traversal. The returned scale factor is only valid until the next logic tick.

Returns
The most recent world position.

The documentation for this interface was generated from the following file:
  • murl_graph_i_anchor.h


Copyright © 2011-2024 Spraylight GmbH.