Base class handling position for Graph::ITransform node. More...
#include "murl_logic_graph_position_object.h"
Public Member Functions | |
GraphPositionObject (SInt32 baseDepth=0) | |
The default constructor. More... | |
virtual | ~GraphPositionObject () |
The destructor. | |
virtual Bool | Init (INodeObserver *nodeObserver, const Graph::IRoot *root, const String &nodeIdPath, SInt32 baseDepth) |
Initialize the object. More... | |
virtual Bool | Init (INodeObserver *nodeObserver, Graph::INamespace *namespaceNode, const String &nodeIdPath, SInt32 baseDepth) |
Initialize the object. More... | |
virtual Bool | DeInit () |
Deinitialize the object. More... | |
virtual const Vector & | GetPosition () const |
Get the position vector. More... | |
virtual void | SetPosition (const Vector &position) |
Set the position vector. More... | |
virtual void | SetPosition (Real x, Real y) |
Set the x/y positionr. More... | |
virtual void | SetPosition (Real x, Real y, Real z) |
Set the x/y/z positionr. More... | |
virtual void | AddPosition (const Vector &position) |
Add a vector to the position. More... | |
virtual void | SetSortDepth (SInt32 sortDepth) |
Set the current depth sort order. More... | |
virtual SInt32 | GetSortDepth () const |
Get the current depth sort order. More... | |
virtual void | SetBaseSortDepth (SInt32 sortDepth) |
Set the base depth sort order. More... | |
virtual SInt32 | GetBaseSortDepth () const |
Get the base depth sort order. More... | |
Protected Member Functions | |
virtual void | ApplySortDepth () |
Apply the depth sort order to the transformation. More... | |
virtual void | ApplyPosition () |
Apply the position vector to the transformation. More... | |
Detailed Description
Base class handling position for Graph::ITransform node.
Constructor & Destructor Documentation
◆ GraphPositionObject()
|
inline |
The default constructor.
- Parameters
-
baseDepth The base depth order.
Member Function Documentation
◆ Init() [1/2]
|
inlinevirtual |
Initialize the object.
- Parameters
-
nodeObserver The INodeObserver object. root The graph root node. nodeIdPath The full path to the graph transform node instance. baseDepth The base depth order.
- Returns
- true if successful.
Reimplemented in Murl::Logic::GraphPositionInstance.
References Murl::Graph::IRoot::GetRootNamespace().
Referenced by Murl::Logic::GraphPositionInstance::Init().
◆ Init() [2/2]
|
inlinevirtual |
Initialize the object.
- Parameters
-
nodeObserver The INodeObserver object. namespaceNode The graph namespace node. nodeIdPath The relative path to the graph transform node instance. baseDepth The base depth order.
- Returns
- true if successful.
References Murl::Logic::INodeObserver::Add(), ApplyPosition(), ApplySortDepth(), Murl::Graph::ITransformable::GetDepthOrder(), Murl::Graph::ITransformable::GetPosition(), and Murl::Logic::GraphNodeT< NodeType >::GetReference().
◆ DeInit()
|
inlinevirtual |
Deinitialize the object.
- Returns
- true if successful.
Reimplemented in Murl::Logic::GraphPositionInstance.
Referenced by Murl::Logic::GraphPositionInstance::DeInit().
◆ GetPosition()
|
inlinevirtual |
Get the position vector.
- Returns
- The position vector.
◆ SetPosition() [1/3]
|
inlinevirtual |
Set the position vector.
- Parameters
-
position The position vector.
References ApplyPosition().
Referenced by Murl::Logic::GraphPositionInstance::OnReset().
◆ SetPosition() [2/3]
Set the x/y positionr.
- Parameters
-
x The x-position. y The y-position.
References ApplyPosition(), Murl::Math::Vector< DataType >::x, and Murl::Math::Vector< DataType >::y.
◆ SetPosition() [3/3]
Set the x/y/z positionr.
- Parameters
-
x The x-position. y The y-position. z The z-position.
References ApplyPosition(), Murl::Math::Vector< DataType >::x, Murl::Math::Vector< DataType >::y, and Murl::Math::Vector< DataType >::z.
◆ AddPosition()
|
inlinevirtual |
◆ SetSortDepth()
|
inlinevirtual |
Set the current depth sort order.
- Parameters
-
sortDepth The current depth sort order.
References ApplySortDepth().
Referenced by Murl::Logic::GraphPositionInstance::OnReset().
◆ GetSortDepth()
|
inlinevirtual |
Get the current depth sort order.
- Returns
- The current depth sort order.
◆ SetBaseSortDepth()
|
inlinevirtual |
Set the base depth sort order.
The base depth order is added to the current depht sort order when applying the depth sort order to the transformation.
- Parameters
-
sortDepth The base depth sort order.
References ApplySortDepth().
◆ GetBaseSortDepth()
|
inlinevirtual |
Get the base depth sort order.
- Returns
- The base depth sort order.
◆ ApplySortDepth()
|
inlineprotectedvirtual |
Apply the depth sort order to the transformation.
This method can be overwritten for custom behaviour.
References Murl::Graph::ITransformable::SetDepthOrder().
Referenced by Init(), SetBaseSortDepth(), and SetSortDepth().
◆ ApplyPosition()
|
inlineprotectedvirtual |
Apply the position vector to the transformation.
This method can be overwritten for custom behaviour.
References Murl::Graph::ITransformable::SetPosition().
Referenced by AddPosition(), Init(), and SetPosition().
The documentation for this class was generated from the following file:
- murl_logic_graph_position_object.h