API / geotoolkit / scene / RestrictVisibleModelLimitsStrategy / RestrictVisibleModelLimitsStrategy
scene.RestrictVisibleModelLimitsStrategy.RestrictVisibleModelLimitsStrategy
RestrictVisibleModelLimitsStrategy input transformation adjustment is restricted based on the options supplied.
RestrictVisibleModelLimitsStrategy adjust transformation the way data model's visible model limits do not go beyond entire model limits. When either of the options is set to "true" on the strategy, additional corresponding (horizontal or vertical) transformation suppression is performed.
↳
RestrictVisibleModelLimitsStrategy
Constructors
Css Properties
| Name | Type | Description |
|---|---|---|
enabled | boolean | Enable flag |
minvisiblehorizontalpart | number | Minimum visible horizontal part of model [0;1] |
minvisibleverticalpart | number | Minimum visible vertical part of model [0;1] |
nohorizontalscalescroll | boolean | Flag to set nohorizontalscalescroll |
noverticalscalescroll | boolean | Flag to set noverticalscalescroll |
Constructors
• new RestrictVisibleModelLimitsStrategy(options?)
| Name | Type |
|---|---|
Optional options | Options |
ScaleScrollStrategy.constructor
Methods
▸ adjustTransformation(model, newTr): Transformation
Adjusts input transformation
| Name | Type | Description |
|---|---|---|
model | Group<Node> | model |
newTr | Transformation | transformation to adjust |
adjusted transformation
ScaleScrollStrategy.adjustTransformation
▸ getClassName(): string
string
ScaleScrollStrategy.getClassName
▸ getProperties(): OptionsOut
Gets properties
properties
ScaleScrollStrategy.getProperties
▸ isEnabled(): boolean
Returns enable state
boolean
enable state
▸ setEnabled(enabled): RestrictVisibleModelLimitsStrategy
Set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
RestrictVisibleModelLimitsStrategy
this
ScaleScrollStrategy.setEnabled
▸ setProperties(properties): RestrictVisibleModelLimitsStrategy
Sets the projection properties
| Name | Type | Description |
|---|---|---|
properties | Options | properties |
RestrictVisibleModelLimitsStrategy
this
ScaleScrollStrategy.setProperties
▸ Static getClassName(): string
string