Base class for TrajectoryLayout classes. More...
#include <kanzi/ui/node/concept/trajectory_layout.hpp>
Static Public Member Functions | |
static float | getItemOffset (const Node &item) |
Gets the offset of an item in a Trajectory Layout node. | |
static optional< float > | getOverrideOffset (const Node &item) |
Gets the fixed offset of an item on the trajectory. | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
static void | setOverrideOffset (Node &item, float staticOffset) |
Sets the fixed offset of an item on the trajectory. | |
Static Public Attributes | |
Properties | |
static PropertyType< ResourceSharedPtr > | TrajectoryProperty |
Defines the Trajectory resource used by a Trajectory Layout node. | |
static PropertyType< float > | ItemAreaBeginProperty |
Defines the starting point of the trajectory segment in which the layout items are considered fully visible. | |
static PropertyType< float > | ItemAreaEndProperty |
Defines the ending point of the trajectory segment in which the layout items are considered fully visible. | |
static PropertyType< float > | OverrideDistanceProperty |
Defines the fixed distance between items in the trajectory layout. | |
static PropertyType< float > | StartOffsetProperty |
Defines the starting offset on the trajectory from where the items are laid out. | |
static PropertyType< bool > | AlignToTangentProperty |
Sets whether the items in the trajectory layout are aligned to the tangent of the trajectory. | |
static PropertyType< float > | CalculatedOffsetProperty |
Defines the value where the layout stores the current calculated offset along the trajectory calculated for an item. | |
static PropertyType< float > | OverrideOffsetProperty |
Defines the fixed offset on the trajectory, which the trajectory layout uses to position an item. | |
static PropertyType< bool > | StretchProperty |
If true, scale the trajectory to match layout size. | |
Base class for TrajectoryLayout classes.
This class defines common properties for the TrajectoryLayout2D and TrajectoryLayout3D classes.
|
static |
Gets the offset of an item in a Trajectory Layout node.
item | A node that is an item in a Trajectory Layout node. |
|
static |
Gets the fixed offset of an item on the trajectory.
item | A node that is an item in a Trajectory Layout node. |
|
static |
Sets the fixed offset of an item on the trajectory.
item | A node that is an item in a Trajectory Layout node. |
staticOffset | The fixed offset on the trajectory, which the Trajectory Layout uses to position the item. |
To manually position items in a Trajectory Layout node:
|
static |
Defines the Trajectory resource used by a Trajectory Layout node.
The default value is ResourceSharedPtr().
|
static |
Defines the starting point of the trajectory segment in which the layout items are considered fully visible.
The value is in [0, 1] range where 0 is the beginning and 1 is the end of the trajectory. See Node::VisibleAmountInParentProperty. The default value is 0.0f.
|
static |
Defines the ending point of the trajectory segment in which the layout items are considered fully visible.
The value is in [0, 1] range where 0 is the beginning and 1 is the end of the trajectory. See Node::VisibleAmountInParentProperty. The default value is 1.0f.
|
static |
Defines the fixed distance between items in the trajectory layout.
If not set, the trajectory layout calculates the distance and provides equal spacing between the items. The default value is 1.0f.
|
static |
Defines the starting offset on the trajectory from where the items are laid out.
The value is in [0, 1] range, where 0 is the beginning and 1 is the end of the trajectory. The default value is 0.0f.
|
static |
Sets whether the items in the trajectory layout are aligned to the tangent of the trajectory.
The default value is false.
|
static |
Defines the value where the layout stores the current calculated offset along the trajectory calculated for an item.
The value is in [0, 1] range, where 0 is the beginning and 1 is the end of the trajectory. The default value is 0.0f.
|
static |
Defines the fixed offset on the trajectory, which the trajectory layout uses to position an item.
If not set, the trajectory layout calculates the offset automatically. The value is in [0, 1] range, where 0 is the beginning and 1 is the end of the trajectory. The default value is 0.0f.
|
static |
If true, scale the trajectory to match layout size.
The default value is false.