Class StackPanel3D
Hierarchy (View Summary)
- Container3D
- StackPanel3D
Index
Constructors
Properties
Accessors
Methods
Properties
margin
Gets or sets the distance between elements
Optionalname
Defines the control name
on Pointer Click Observable
An event triggered when a control is clicked on (with a mouse)
on Pointer Down Observable
An event triggered when the pointer taps the control
on Pointer Enter Observable
An event triggered when pointer enters the control
on Pointer Move Observable
An event triggered when the pointer moves over the control
on Pointer Out Observable
An event triggered when the pointer moves out of the control
on Pointer Up Observable
An event triggered when pointer is up
parent
Gets or sets the parent container
pointer Down Animation
Callback used to start pointer down animation
pointer Enter Animation
Callback used to start pointer enter animation
pointer Out Animation
Callback used to start pointer out animation
pointer Up Animation
Callback used to start pointer up animation
Static ReadonlyFACEFORWARD_ ORIENTATION
Control will rotate to look at z axis (0, 0, 1)
Static ReadonlyFACEFORWARDREVERSED_ ORIENTATION
Control will rotate to look at negative z axis (0, 0, -1)
Static ReadonlyFACEORIGIN_ ORIENTATION
Control will rotate to make it look at sphere central axis
Static ReadonlyFACEORIGINREVERSED_ ORIENTATION
Control will rotate to make it look back at sphere central axis
Static ReadonlyUNSET_ ORIENTATION
Control rotation will remain unchanged
Accessors
behaviors
-
Gets the list of attached behaviors
Returns Behavior<Control3D>[]
block Layout
-
get blockLayout(): boolean
Gets or sets a boolean indicating if the layout must be blocked (default is false). This is helpful to optimize layout operation when adding multiple children in a row
Returns boolean
-
set blockLayout(value: boolean): void
Parameters
- value: boolean
Returns void
children
-
Gets the list of child controls
Returns Control3D[]
is Vertical
-
get isVertical(): boolean
Gets or sets a boolean indicating if the stack panel is vertical or horizontal (horizontal by default)
Returns boolean
-
set isVertical(value: boolean): void
Parameters
- value: boolean
Returns void
is Visible
-
get isVisible(): boolean
Gets or sets a boolean indicating if the control is visible
Returns boolean
-
set isVisible(value: boolean): void
Parameters
- value: boolean
Returns void
mesh
-
get mesh(): Nullable<AbstractMesh>
Gets the mesh used to render this control
Returns Nullable<AbstractMesh>
node
-
get node(): Nullable<TransformNode>
Gets the transform node used by this control
Returns Nullable<TransformNode>
position
-
get position(): Vector3
Gets or sets the control position in world space
Returns Vector3
-
set position(value: Vector3): void
Parameters
- value: Vector3
Returns void
scaling
-
get scaling(): Vector3
Gets or sets the control scaling in world space
Returns Vector3
-
set scaling(value: Vector3): void
Parameters
- value: Vector3
Returns void
type Name
-
get typeName(): string
Gets a string representing the class name
Returns string
Methods
add Behavior
add Control
-
Adds a control to the children of this control
Parameters
- control: Control3D
defines the control to add
Returns Container3D
the current container
- control: Control3D
contains Control
-
Gets a boolean indicating if the given control is in the children of this control
Parameters
- control: Control3D
defines the control to check
Returns boolean
true if the control is in the child list
- control: Control3D
dispose
-
Releases all associated resources
Returns void
get Behavior By Name
-
Gets an attached behavior by name
Parameters
- name: string
defines the name of the behavior to look for
Returns Nullable<Behavior<Control3D>>
null if behavior was not found else the requested behavior
- name: string
get Class Name
-
Get the current class name of the control.
Returns string
current class name
link To Transform Node
-
Link the control as child of the given node
Parameters
- node: Nullable<TransformNode>
defines the node to link to. Use null to unlink the control
Returns Control3D
the current control
- node: Nullable<TransformNode>
remove Behavior
remove Control
-
Removes a control from the children of this control
Parameters
- control: Control3D
defines the control to remove
Returns Container3D
the current container
- control: Control3D
update Layout
-
Force the container to update the layout. Please note that it will not take blockLayout property in account
Returns Container3D
the current container
Class used to create a stack panel in 3D on XY plane