Kanzi 4.1.0
kanzi::TrajectoryListBox3D Class Reference

Use the Trajectory List Box 3D node to create scrollable lists of items arranged along a Trajectory. More...

#include <kanzi/ui/node/trajectory_list_box3d.hpp>

Inheritance diagram for kanzi::TrajectoryListBox3D:
[legend]

Static Public Member Functions

static TrajectoryListBox3DSharedPtr create (Domain *domain, string_view name)
 Creates a TrajectoryListBox3D node.
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::TrajectoryListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >
static Vector2 doMeasure (Node2D &node)
 
static Vector3 doMeasure (Node3D &node)
 
- Static Public Member Functions inherited from kanzi::ListBoxConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ListBoxScrollingConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::TrajectoryListBoxConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Protected Member Functions

 TrajectoryListBox3D (Domain *domain, string_view name)
 
- Protected Member Functions inherited from kanzi::TrajectoryListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >
TrajectoryListBox3DgetThisObject ()
 
const TrajectoryListBox3DgetThisObject () const
 
void initialize ()
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged() implementation.
 
 TrajectoryListBoxConceptImpl (Domain *domain, string_view name)
 
- Protected Member Functions inherited from kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >
void applySelectionBehavior (size_t itemIndex, bool smooth)
 Applies selection behavior to the selected item.
 
void assignItemContainerGenerator (ItemContainerGeneratorSharedPtr itemContainerGenerator)
 Assigns list box item container generator to list box.
 
void assignItemGenerator (ItemGeneratorSharedPtr itemGenerator)
 Assigns list box item generator to list box.
 
void initialize (PresenterSharedPtr presenter)
 
 ListBoxConceptImpl (Domain *domain, string_view name)
 
bool listBoxContainsKeyFocus () const
 Returns whether the key focus is on the List Box node or on one of the list items.
 
void onAboutToGainFocus (FocusManager::PreFocusMessageArguments &messageArguments)
 Handles FocusManager::AboutToGainFocusMessage.
 
void onAttached () override
 Node::onAttached() implementation.
 
void onClicked (ClickManipulator::ClickMessageArguments &messageArguments)
 Handles ClickManipulator::ClickMessage.
 
void onDetached () override
 Node::onDetached() implementation.
 
void onFocusGained (FocusManager::PostFocusMessageArguments &messageArguments)
 Handles FocusManager::FocusGainedMessage.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged() implementation.
 
void setItemContainerGeneratorByProperty ()
 Creates and assigns item container generator by ItemGeneratorTypeName property value.
 
void setItemGeneratorByProperty ()
 Creates and assigns item generator by ItemGeneratorTypeName property value.
 
void synchronizeFocusAndSelection (Node &selectedItemContainer)
 ListBoxConcept uses this function to update the focus in the List Box to the selected item.
 
void synchronizeItemCountProperty ()
 Updates the ItemCountProperty.
 
void synchronizeSelectedItemIndexProperty ()
 Updates the SelectedItemIndexProperty after the List Box internally changes the selected item index.
 
void tryMoveFocusToListBox ()
 Tries to move focus to List Box node itself.
 
void trySetInitialFocus ()
 Tries to move the focus to the first visible and focusable item in a List Box node that holds the key focus and has no item selected.
 
void updateFocusScopeInfo (FocusScopePtr &nodeScopeInfo) override
 Overrides Node::updateFocusScopeInfo().
 
void updateGenerators (ItemGeneratorSharedPtr itemGenerator, ItemContainerGeneratorSharedPtr itemContainerGenerator)
 Replaces item and item container generators with new objects. Updates items and layout accordingly.
 
 ~ListBoxConceptImpl () override
 

Additional Inherited Members

- Public Types inherited from kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >
typedef shared_ptr< DefaultListBoxItemGenerator< ItemGeneratorClass > > DefaultItemGeneratorSharedPtr
 
typedef ListBoxTraits::TItemClass ItemClass
 
typedef ListBoxTraits::TItemContainerClass ItemContainerClass
 
typedef ListBoxTraits::TItemContainerGeneratorClass ItemContainerGeneratorClass
 
typedef shared_ptr< ItemContainerGeneratorClassItemContainerGeneratorSharedPtr
 
typedef shared_ptr< ItemContainerClassItemContainerSharedPtr
 
typedef ListBoxTraits::TItemGeneratorClass ItemGeneratorClass
 
typedef shared_ptr< ItemGeneratorClassItemGeneratorSharedPtr
 
typedef shared_ptr< ItemClassItemSharedPtr
 
typedef TBaseClass::LayoutVectorType LayoutVectorType
 
typedef ListBoxTraits::TPresenterClass PresenterClass
 
typedef shared_ptr< PresenterClassPresenterSharedPtr
 
- Public Types inherited from kanzi::ListBoxConcept
enum class  FocusMoveTarget {
  NextItem , PreviousItem , NextPage , PreviousPage ,
  LastItem , FirstItem
}
 Specifies the targets to which the focus can move in a List Box. More...
 
enum  SelectionBehavior { SelectionBehaviorNone , SelectionBehaviorBringToCenter }
 Behaviors for the List Box when an item in the List Box is selected. More...
 
- Public Member Functions inherited from kanzi::TrajectoryListBoxConceptImpl< Node3D, TrajectoryListBox3D, TrajectoryListBox3DTraits >
ScrollViewSharedPtr getScrollView () const
 Returns the Scroll View that scrolls the Trajectory List Box.
 
ResourceSharedPtr getTrajectory () const
 Gets the value of the TrajectoryProperty.
 
void setTrajectory (ResourceSharedPtr value)
 Sets the value of the TrajectoryProperty.
 
float getItemAreaBegin () const
 Gets the value of the ItemAreaBeginProperty.
 
void setItemAreaBegin (float value)
 Sets the value of the ItemAreaBeginProperty.
 
float getItemAreaEnd () const
 Gets the value of the ItemAreaEndProperty.
 
void setItemAreaEnd (float value)
 Sets the value of the ItemAreaEndProperty.
 
Vector2 getScrollPosition () const
 Returns the value of the ScrollPositionProperty.
 
void setScrollPosition (Vector2 scrollPosition)
 Sets the value of the ScrollPositionProperty.
 
bool isAlignToTangent () const
 Gets the value of the AlignToTangentProperty.
 
void setAlignToTangent (bool value)
 Sets the value of the AlignToTangentProperty.
 
float getSpacing () const
 Gets the value of the SpacingProperty.
 
void setSpacing (float value)
 Sets the value of the SpacingProperty.
 
float getCursorOffset () const
 Gets the value of the CursorOffsetProperty.
 
void setCursorOffset (float value)
 Sets the value of the CursorOffsetProperty.
 
float getRecognitionThreshold () const
 Gets the value of the RecognitionThresholdProperty.
 
void setRecognitionThreshold (float value)
 Sets the value of the RecognitionThresholdProperty.
 
int getMinimumNumberOfTouches () const
 Gets the value of the MinimumNumberOfTouchesProperty.
 
void setMinimumNumberOfTouches (int value)
 Sets the value of the MinimumNumberOfTouchesProperty.
 
int getMaximumNumberOfTouches () const
 Gets the value of the MaximumNumberOfTouchesProperty.
 
void setMaximumNumberOfTouches (int value)
 Sets the value of the MaximumNumberOfTouchesProperty.
 
float getSensitivity () const
 Gets the value of the SensitivityProperty.
 
void setSensitivity (float value)
 Sets the value of the SensitivityProperty.
 
float getSlidingAccelerationCoefficient () const
 Gets the value of the SlidingAccelerationCoefficientProperty.
 
void setSlidingAccelerationCoefficient (float value)
 Sets the value of the SlidingAccelerationCoefficientProperty.
 
float getSlidingDragCoefficient () const
 Gets the value of the SlidingDragCoefficientProperty.
 
void setSlidingDragCoefficient (float value)
 Sets the value of the SlidingDragCoefficientProperty.
 
float getDraggingAccelerationCoefficient () const
 Gets the value of the DraggingAccelerationCoefficientProperty.
 
void setDraggingAccelerationCoefficient (float value)
 Sets the value of the DraggingAccelerationCoefficientProperty.
 
float getDraggingDragCoefficient () const
 Gets the value of the DraggingDragCoefficientProperty.
 
void setDraggingDragCoefficient (float value)
 Sets the value of the DraggingDragCoefficientProperty.
 
float getDraggingImpulseFactor () const
 Gets the value of the DraggingImpulseFactorProperty.
 
void setDraggingImpulseFactor (float value)
 Sets the value of the DraggingImpulseFactorProperty.
 
float getSwipeDistance () const
 Gets the value of the SwipeDistanceProperty.
 
void setSwipeDistance (float value)
 Sets the value of the SwipeDistanceProperty.
 
bool isLooping () const
 Gets the value of the LoopingProperty.
 
void setLooping (bool value)
 Sets the value of the LoopingProperty.
 
ScrollViewConcept::AllowedScrollAxis getAllowedScrollAxis () const
 Returns the value of the AllowedScrollAxisProperty.
 
void setAllowedScrollAxis (ScrollViewConcept::AllowedScrollAxis axis)
 Sets the AllowedScrollAxisProperty value.
 
bool isReversedScrolling () const
 Returns the value of the ReversedScrollingProperty.
 
void setReversedScrolling (bool enable)
 Sets the value of the ReversedScrollingProperty.
 
- Public Member Functions inherited from kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >
bool addContentItem (NodeSharedPtr abstractItem) override
 
void addItem (ItemSharedPtr item)
 Adds an item at the end of a List Box when using the default object generator.
 
void arrangeOverride (LayoutVectorType actualSize) override
 
void bringItemCenter (size_t itemIndex, bool smooth)
 Requests the List Box to bring the item in the passed itemIndex to the center of the list box area.
 
void enableKeyNavigation (bool enabled)
 Enables directional key navigation between focusable items in a List Box.
 
void extendAliveItemsRangeToItemIndex (size_t itemIndex)
 Extends the alive items range to contain the item at a given index.
 
optional< pair< size_t, size_t > > getAliveItemsRange ()
 Returns the range of list items that are alive.
 
NodeSharedPtr getContentItem (size_t index) override
 
size_t getContentItemCount () override
 
optional< size_t > getFocusedItemIndex () const
 Returns the index of the item that holds the focus in the List Box.
 
ItemSharedPtr getItem (size_t index)
 Gets the item at the given index in a List Box.
 
string getItemContainerGeneratorTypeName () const
 Gets the value of ItemContainerGeneratorTypeNameProperty.
 
PrefabTemplateSharedPtr getItemContainerTemplate () const
 Gets the value of ItemContainerTemplateProperty.
 
size_t getItemCount () const
 Returns the value of the ItemCountProperty.
 
string getItemGeneratorTypeName () const
 Gets the value of ItemGeneratorTypeNameProperty.
 
optional< size_t > getItemIndex (ItemSharedPtr item)
 Returns the index of the given item. If the item does not exist, returns empty.
 
LayoutVectorType getItemSize (size_t index)
 Returns the size of the item at the given index.
 
PrefabTemplateSharedPtr getItemTemplate () const
 Gets the value of ItemTemplateProperty.
 
int getKeepAliveItemCount () const
 Gets the value of KeepAliveItemCountProperty.
 
PresenterSharedPtr getPresenter () const
 
int getSelectedItemIndex () const
 Gets the value of SelectedItemIndexProperty.
 
SelectionBehavior getSelectionBehavior () const
 Gets the value of SelectionBehavior.
 
void insertItem (size_t index, ItemSharedPtr item)
 Inserts an item at the given index in a List Box when using the default object generator.
 
bool isEmpty ()
 Indicates whether a List Box has no items.
 
LayoutVectorType measureOverride (LayoutVectorType availableSize) override
 
void notifyItemAdded (size_t index) override
 Virtual functions for notifying item changes to list.
 
void notifyItemContainerChanged ()
 
void notifyItemCountChanged () override
 
void notifyItemRemoved (size_t index) override
 
void notifyItemReplaced (size_t index) override
 
void removeAllContentItems () override
 
void removeAllItems ()
 Removes all items from a List Box when using the default object generator.
 
bool removeContentItem (NodeSharedPtr abstractItem) override
 
void removeItem (size_t index)
 Removes the item at the given index from a List Box when using the default object generator.
 
void removeLastItem ()
 Removes the last item from a List Box when using the default object generator.
 
void replaceItem (size_t index, ItemSharedPtr item)
 Replaces the item at the given index in a List Box when using the default object generator.
 
void selectItem (optional< size_t > itemIndex)
 Requests the List Box to select the item at the given index.
 
void setItemContainerGenerator (ItemContainerGeneratorSharedPtr itemContainerGenerator)
 Sets the list box item container generator.
 
void setItemContainerGeneratorTypeName (string_view value)
 Sets the value of ItemContainerGeneratorTypeNameProperty.
 
void setItemContainerTemplate (PrefabTemplateSharedPtr value)
 Sets the value of ItemContainerTemplateProperty.
 
void setItemGenerator (ItemGeneratorSharedPtr itemGenerator)
 Sets the list box item generator.
 
void setItemGeneratorTypeName (string_view value)
 Sets the value of ItemGeneratorTypeNameProperty.
 
void setItemTemplate (PrefabTemplateSharedPtr value)
 Sets the value of ItemTemplateProperty.
 
void setKeepAliveItemCount (int value)
 Sets the value of KeepAliveItemCountProperty.
 
void setSelectedItemIndex (int value)
 Sets the value of SelectedItemIndexProperty.
 
void setSelectionBehavior (SelectionBehavior value)
 Sets the value of SelectionBehavior.
 
bool trySetFocusItem (size_t itemIndex, bool fallback)
 Tries to set the application focus to an item at a given index and brings the item alive.
 
void updateAliveItemsRange (size_t beginIndex, size_t itemCount, bool sendMessages=true)
 Requests items from the item generator.
 
void updateAliveItemsRangeQuiet (size_t beginIndex, size_t itemCount)
 Requests items from the item generator.
 
- Public Member Functions inherited from kanzi::ContentItemCollectionModel
virtual ~ContentItemCollectionModel ()
 
- Static Public Attributes inherited from kanzi::ListBoxConcept
static MessageType< ItemLoadedMessageArgumentsItemLoadedMessage
 List Box node dispatches this message whenever the List Box loads one of its items.
 
static MessageType< ItemSelectedMessageArgumentsItemSelectedMessage
 List Box node dispatches this message whenever an item in the List Box is selected.
 
static MessageType< ItemUnloadedMessageArgumentsItemUnloadedMessage
 List Box node dispatches this message whenever the List Box unloads one of its items.
 
static PropertyType< intItemCountProperty
 Reports the number of items in a List Box, including virtual items.
 
static PropertyType< intKeepAliveItemCountProperty
 Sets the size of the buffer for invisible List Box items.
 
static PropertyType< ListBoxConcept::SelectionBehaviorSelectionBehaviorProperty
 Sets how a List Box node behaves when the user selects an item.
 
static PropertyType< string > ItemGeneratorTypeNameProperty
 Sets the name of the item generator type to use to provide items dynamically for a List Box node.
 
static PropertyType< string > ItemContainerGeneratorTypeNameProperty
 Sets the name of the item container generator type to use to provide item containers dynamically for a List Box node.
 
static PropertyType< ResourceSharedPtrItemTemplateProperty
 Sets the prefab template to use for the List Box items.
 
static PropertyType< ResourceSharedPtrItemContainerTemplateProperty
 Sets the ListBoxItemContainer prefab that sets the appearance and behavior of the List Box items.
 
static PropertyType< intSelectedItemIndexProperty
 Sets and reports the index of the item that is currently selected in a List Box node.
 
static MessageType< TrySetFocusToItemMessageArgumentsTrySetFocusToListItemMessage
 Dispatch this message to set the focus to the list item at a given index.
 
static MessageType< MoveFocusMessageArgumentsMoveFocusMessage
 Dispatch this message to move the focus between List Box items to a given target.
 
- Static Public Attributes inherited from kanzi::ListBoxScrollingConcept
static MessageType< ScrolledMessageArgumentsScrolledMessage
 List Box node dispatches this message whenever the List Box node scrolls.
 
static MessageType< ScrollFinishedMessageArgumentsScrollFinishedMessage
 List Box node dispatches this message whenever the List Box stops scrolling.
 
static MessageType< ScrollStartedMessageArgumentsScrollStartedMessage
 List Box node dispatches this message whenever the List Box starts to scroll.
 
static MessageType< TargetChangedMessageArgumentsTargetChangedMessage
 List Box node dispatches this message whenever there is a change in scroll target item in List Box.
 
static MessageType< UserScrollFinishedMessageArgumentsUserScrollFinishedMessage
 List Box node dispatches this message when the user stops scrolling the List Box content.
 
static MessageType< UserScrollStartedMessageArgumentsUserScrollStartedMessage
 List Box node dispatches this message when the user starts to scroll the List Box content.
 
- Static Public Attributes inherited from kanzi::TrajectoryListBoxConcept
static PropertyType< ResourceSharedPtrTrajectoryProperty
 Sets the resource ID of the Trajectory along which the Trajectory List Box 3D arranges its items.
 
static PropertyType< floatItemAreaBeginProperty
 Defines the starting point of the Trajectory segment meant for the fully visible Trajectory List Box 3D items.
 
static PropertyType< floatItemAreaEndProperty
 Defines the ending point of the Trajectory segment meant for the fully visible Trajectory List Box 3D items.
 
static PropertyType< Vector2ScrollPositionProperty
 Reports the scroll position of a Trajectory List Box 3D node along the x and y axes as a relative position within the Trajectory List Box 3D area.
 
static PropertyType< boolAlignToTangentProperty
 Indicates whether to align the Trajectory List Box 3D items to match the tangent of the Trajectory.
 
static PropertyType< floatSpacingProperty
 Sets the distance between the items in the Trajectory List Box 3D node.
 
static PropertyType< floatCursorOffsetProperty
 Sets the offset of the position to use to select the active item, in proportional range [0,1].
 
static PropertyType< floatRecognitionThresholdProperty
 Sets the distance in pixels that the pointer has to move for the scrolling to start in the Trajectory List Box 3D node.
 
static PropertyType< intMinimumNumberOfTouchesProperty
 Sets the minimum number of touch points required on the Trajectory List Box 3D area for scrolling.
 
static PropertyType< intMaximumNumberOfTouchesProperty
 Sets the maximum number of touch points allowed on the Trajectory List Box 3D area for scrolling.
 
static PropertyType< floatSensitivityProperty
 Sets the amount that the scroll value changes relative to the movement of the pointer on the scroll view plane of a Trajectory List Box 3D node.
 
static PropertyType< floatSlidingAccelerationCoefficientProperty
 Sets the acceleration of a Trajectory List Box 3D node after the user releases the pointer with which they scroll the Trajectory List Box 3D.
 
static PropertyType< floatSlidingDragCoefficientProperty
 Sets the amount that drag affects the movement of a Trajectory List Box 3D node after the user releases the pointer with which they scroll the Trajectory List Box 3D.
 
static PropertyType< floatDraggingAccelerationCoefficientProperty
 Sets the acceleration of a Trajectory List Box 3D node when the user scrolls the Trajectory List Box 3D by dragging the pointer.
 
static PropertyType< floatDraggingDragCoefficientProperty
 Sets the amount that drag affects the movement of a Trajectory List Box 3D node when the user scrolls the Trajectory List Box 3D by dragging the pointer.
 
static PropertyType< floatDraggingImpulseFactorProperty
 Sets the amount of impulse to generate from the pointer movement when the user scrolls a Trajectory List Box 3D node by dragging the pointer.
 
static PropertyType< floatSwipeDistanceProperty
 Sets the distance that a swipe sends the scroll value in a Trajectory List Box 3D node, relative to the speed of the pointer.
 
static PropertyType< boolLoopingProperty
 Indicates whether to show items in a Trajectory List Box 3D from the beginning after reaching the last item, and the other way around.
 
static PropertyType< ScrollViewConcept::AllowedScrollAxisAllowedScrollAxisProperty
 Sets the axis on which you want to allow a Trajectory List Box 3D node to scroll.
 
static PropertyType< boolReversedScrollingProperty
 Indicates whether the change in the scroll position is reversed in relation to the direction of the pan gesture.
 
- Static Protected Member Functions inherited from kanzi::ListBoxConceptImpl< TBaseClass, TDerivedClass, ListBoxTraits >
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Detailed Description

Use the Trajectory List Box 3D node to create scrollable lists of items arranged along a Trajectory.

Trajectory List Box 3D measures the width of its items and shows those items that fit on the trajectory. To add space between the list items use the SpacingProperty or make the list items artificially wider. If the list is looping and all items fit on the trajectory, Kanzi increases the spacing automatically to distribute the items evenly on the trajectory.

Trajectory List Box 3D has a cursor that is by default positioned in the middle of the trajectory. To move the cursor, use the CursorOffsetProperty. When the user is not giving input to the Trajectory List Box 3D and the scrolling has slowed down, the Trajectory List Box 3D selects the nearest item and snaps it to the cursor.

To handle input, the Trajectory List Box 3D internally uses ScrollView3D. To make the input work:

  1. Position the Trajectory List Box 3D in front of the camera oriented so that the scroll plane is perpendicular to the camera view ray.
  2. Set the size of the Trajectory List Box 3D. The scroll view uses that area to collect input.

To configure the scroll view, Kanzi forwards to the scroll view those scroll view properties that you set in the Trajectory List Box 3D.

See also
TrajectoryListBoxConceptImpl ListBoxConceptImpl

Examples

To create a Trajectory List Box 3D node:

// Create a Trajectory List Box 3D named MyListBox.
TrajectoryListBox3DSharedPtr trajectoryListBox = TrajectoryListBox3D::create(domain, "MyListBox");

To set the trajectory that you want the list box to use:

// Create a circle trajectory named Circle with radius of 4 device independent units.
TrajectorySharedPtr trajectory = Trajectory::createCircle(Vector3(), Vector3::positiveY(), 0.0f, 4.0f, domain, "Circle");
// Set the list box to use the trajectory.
trajectoryListBox->setTrajectory(trajectory);
// Increase the layout size to cover the whole trajectory.
trajectoryListBox->setWidth(10.0f);
trajectoryListBox->setDepth(10.0f);
trajectoryListBox->setHeight(3.0f);

To add items to the list box:

// Create cube meshes and add them as items of the Trajectory List Box 3D node.
// Items on the trajectory appear in the order that you add them to the Trajectory List Box 3D node.
Model3DSharedPtr item1 = Model3D::createCube(domain, "item1", 1.0f, ThemeRed);
Model3DSharedPtr item2 = Model3D::createCube(domain, "item2", 1.0f, ThemeGreen);
Model3DSharedPtr item3 = Model3D::createCube(domain, "item3", 1.0f, ThemeBlue);
Model3DSharedPtr item4 = Model3D::createCube(domain, "item4", 1.0f, ThemeOrange);
Model3DSharedPtr item5 = Model3D::createCube(domain, "item5", 1.0f, ThemeYellow);
trajectoryListBox->addItem(item1);
trajectoryListBox->addItem(item2);
trajectoryListBox->addItem(item3);
trajectoryListBox->addItem(item4);
trajectoryListBox->addItem(item5);

To make the list box loop:

// Make the Trajectory List Box 3D node to loop. All items fit to the trajectory so that they are positioned evenly.
trajectoryListBox->setLooping(true);

To set the selection behavior:

// Make clicking items bring them to the center of the trajectory.
trajectoryListBox->setSelectionBehavior(ListBoxConcept::SelectionBehaviorBringToCenter);
// Change the position where the clicked items are brought to be one quarter from the beginning of the trajectory.
trajectoryListBox->setCursorOffset(0.25f);

Constructor & Destructor Documentation

◆ TrajectoryListBox3D()

kanzi::TrajectoryListBox3D::TrajectoryListBox3D ( Domain * domain,
string_view name )
explicitprotected

Member Function Documentation

◆ create()

static TrajectoryListBox3DSharedPtr kanzi::TrajectoryListBox3D::create ( Domain * domain,
string_view name )
static

Creates a TrajectoryListBox3D node.

Parameters
domainThe UI domain to which the node belongs.
nameThe name of the node.

◆ makeEditorInfo()

static PropertyTypeEditorInfoSharedPtr kanzi::TrajectoryListBox3D::makeEditorInfo ( )
static

The documentation for this class was generated from the following file: