Base class for TrajectoryLayout classes.
More...
#include <kanzi/ui/node/concept/trajectory_layout.hpp>
Base class for TrajectoryLayout classes.
This class defines common properties for the TrajectoryLayout2D and TrajectoryLayout3D classes.
◆ makeEditorInfo()
◆ getItemOffset()
static float kanzi::TrajectoryLayoutConcept::getItemOffset |
( |
const Node & |
item | ) |
|
|
static |
Gets the offset of an item in a Trajectory Layout node.
- Parameters
-
item | A node that is an item in a Trajectory Layout node. |
- Returns
- The last offset calculated for the item by the Trajectory Layout.
◆ getOverrideOffset()
static optional<float> kanzi::TrajectoryLayoutConcept::getOverrideOffset |
( |
const Node & |
item | ) |
|
|
static |
Gets the fixed offset of an item on the trajectory.
- Parameters
-
item | A node that is an item in a Trajectory Layout node. |
- Returns
- The value of the OverrideOffsetProperty in the item, or if the property is not set, an empty optional.
◆ setOverrideOffset()
static void kanzi::TrajectoryLayoutConcept::setOverrideOffset |
( |
Node & |
item, |
|
|
float |
staticOffset |
|
) |
| |
|
static |
Sets the fixed offset of an item on the trajectory.
- Parameters
-
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. |
Examples
To manually position items in a Trajectory Layout node:
trajectoryLayout->setOverrideDistance(0.3f);
◆ TrajectoryProperty
◆ ItemAreaBeginProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::ItemAreaBeginProperty |
|
static |
◆ ItemAreaEndProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::ItemAreaEndProperty |
|
static |
◆ OverrideDistanceProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::OverrideDistanceProperty |
|
static |
◆ StartOffsetProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::StartOffsetProperty |
|
static |
◆ AlignToTangentProperty
PropertyType<bool> kanzi::TrajectoryLayoutConcept::AlignToTangentProperty |
|
static |
◆ CalculatedOffsetProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::CalculatedOffsetProperty |
|
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.
- See also
- TrajectoryLayoutConceptImpl::getCalculatedOffset()
◆ OverrideOffsetProperty
PropertyType<float> kanzi::TrajectoryLayoutConcept::OverrideOffsetProperty |
|
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.
- See also
- setOverrideOffset(), getOverrideOffset()
◆ StretchProperty
PropertyType<bool> kanzi::TrajectoryLayoutConcept::StretchProperty |
|
static |
The documentation for this class was generated from the following file: