Class Slider3D
Hierarchy (View Summary)
- Control3D
- Slider3D
Constructors
constructor
-
Creates a new slider
Parameters
Optionalname: stringdefines the control name
OptionalsliderBackplateVisible: booleandefines if the control has a backplate, default is false
Returns Slider3D
Properties
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
on Value Changed Observable
Observable raised when the sldier value changes
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
StaticMODEL_ BASE_ URL
Base Url for the models.
StaticMODEL_ FILENAME
File name for the 8x4 model.
Accessors
behaviors
-
Gets the list of attached behaviors
Returns Behavior<Control3D>[]
is Visible
-
set isVisible(value: boolean): void
Sets a boolean indicating if the control is visible
Parameters
- value: boolean
Returns void
maximum
-
get maximum(): number
Gets or sets maximum value
Returns number
-
set maximum(value: number): void
Parameters
- value: number
Returns void
mesh
-
get mesh(): Nullable<AbstractMesh>
Gets the mesh used to render this control
Returns Nullable<AbstractMesh>
minimum
-
get minimum(): number
Gets or sets minimum value
Returns number
-
set minimum(value: number): void
Parameters
- value: number
Returns void
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
slider Backplate
-
get sliderBackplate(): AbstractMesh
Gets the slider backplate mesh used by this control
Returns AbstractMesh
slider Backplate Material
-
Gets the slider backplate material used by this control
Returns MRDLBackplateMaterial
slider Bar
-
get sliderBar(): AbstractMesh
Gets the slider bar mesh used by this control
Returns AbstractMesh
slider Bar Material
-
Gets the slider bar material used by this control
Returns MRDLSliderBarMaterial
slider Thumb
-
get sliderThumb(): AbstractMesh
Gets the slider thumb mesh used by this control
Returns AbstractMesh
slider Thumb Material
-
Gets the slider thumb material used by this control
Returns MRDLSliderThumbMaterial
step
-
get step(): number
Gets or sets step value
Returns number
-
set step(value: number): void
Parameters
- value: number
Returns void
type Name
-
get typeName(): string
Gets a string representing the class name
Returns string
value
-
get value(): number
Gets or sets current value
Returns number
-
set value(value: number): void
Parameters
- value: number
Returns void
Methods
add Behavior
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>
Class used to create a slider in 3D