Runtime for z-sort object source. More...
#include <kanzi/core.ui/graphics3d/sort_by_z_object_source_runtime.hpp>
Public Member Functions | |
CameraSharedPtr | getCamera () const |
Gets the filtering camera. | |
optional< Matrix4x4 > | getCameraMatrix () const |
Calculates the camera matrix from the assigned camera. | |
bool | isSortNearestLast () const |
Is sort nearest first enabled? | |
Public Member Functions inherited from kanzi::ObjectSourceRuntime | |
void | filter (NodeList &outputNodes) |
Runs the filter on a given node. | |
NodeListSharedPtr | getInputNodeList () |
Gets the input node list for this particular object source. | |
ObjectSourceRuntimeSharedPtr | getParentRuntime () const |
Gets the parent runtime. | |
NodeListSharedPtr | getRootNodeList () |
Gets the root node list, parents included. | |
bool | isDirty () |
Tells if the node filter considers itself dirty and needs re-executing. | |
bool | matches (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter) |
Tells if this filter runtime matches the given node list and filter. | |
void | setCamera (CameraSharedPtr camera) |
Sets the camera for this object source runtime. | |
void | update (NodeList &nodes) |
Perform implementation-dependent per-frame update for internal data of the filter. | |
virtual | ~ObjectSourceRuntime ()=default |
Destructor. | |
Static Public Member Functions | |
static SortByZObjectSourceRuntimeSharedPtr | create (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter) |
Creates z-sort object source runtime. | |
static SortByZObjectSourceRuntimeSharedPtr | create (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter, bool nearestLast) |
Creates z-sort object source runtime. | |
Protected Member Functions | |
bool | isDirtyOverride () override |
ObjectSourceRuntime::isDirtyOverride() implementation. | |
void | setCameraOverride (CameraSharedPtr camera) override |
ObjectSourceRuntime::setCameraOverride() implementation. | |
SortByZObjectSourceRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter, bool nearestFirst) | |
Constructor. | |
void | updateOverride (NodeList &nodes) override |
ObjectSourceRuntime::filterOverride() implementation. | |
Protected Member Functions inherited from kanzi::SortObjectSourceRuntime | |
void | filterOverride (NodeList &inputNodes, NodeList &outputNodes) override |
ObjectSourceRuntime::filterOverride() implementation. | |
SortObjectSourceRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr filter) | |
Constructor. | |
Protected Member Functions inherited from kanzi::ObjectSourceRuntime | |
ObjectSourceRuntime (NodeListSharedPtr nodeList, ObjectSourceSharedPtr objectSource) | |
Constructor. | |
Protected Attributes | |
CameraWeakPtr | m_camera |
Camera to use for sorting. | |
bool | m_nearestLast |
Indicates whether nearest objects should be sorted last. | |
Protected Attributes inherited from kanzi::ObjectSourceRuntime | |
NodeListWeakPtr | m_inputNodes |
Input node list. | |
ObjectSourceWeakPtr | m_objectSource |
Parent object source. | |
NodeListSharedPtr | m_parentNodeList |
Node list that is the result of the parent runtime being executed. | |
ObjectSourceRuntimeSharedPtr | m_parentRuntime |
Runtime for the object source chain. | |
Runtime for z-sort object source.
|
inlineexplicitprotected |
Constructor.
nodeList | Node list to filter. |
filter | Parent filter. |
nearestFirst | Indicates whether nearest objects should be ordered first. |
|
static |
Creates z-sort object source runtime.
nodeList | Node list to filter. |
filter | Parent filter. |
nearestLast | Indicates whether nearest objects should be ordered last. |
|
inlinestatic |
Creates z-sort object source runtime.
Sorts nearest objects first.
nodeList | Node list to filter. |
filter | Parent filter. |
optional< Matrix4x4 > kanzi::SortByZObjectSourceRuntime::getCameraMatrix | ( | ) | const |
Calculates the camera matrix from the assigned camera.
|
inline |
Gets the filtering camera.
|
inline |
Is sort nearest first enabled?
ObjectSourceRuntime::filterOverride() implementation.
Reimplemented from kanzi::ObjectSourceRuntime.
|
overrideprotectedvirtual |
ObjectSourceRuntime::isDirtyOverride() implementation.
Reimplemented from kanzi::ObjectSourceRuntime.
|
overrideprotectedvirtual |
ObjectSourceRuntime::setCameraOverride() implementation.
Reimplemented from kanzi::ObjectSourceRuntime.
|
protected |
Camera to use for sorting.
|
protected |
Indicates whether nearest objects should be sorted last.
Assumption is, that this is false (the default), and the nearest objects are sorted first.