API / geotoolkit / schematics / builder / KeepAspectRatioViewModeBuilder / KeepAspectRatioViewModeBuilder
builder.KeepAspectRatioViewModeBuilder.KeepAspectRatioViewModeBuilder
Builder for schematics "KeepAspectRatio" view mode
↳
KeepAspectRatioViewModeBuilder
Constructors
Methods
Constructors
• new KeepAspectRatioViewModeBuilder(options?)
| Name | Type |
|---|---|
Optional options | Options |
AbstractViewModeBuilder.constructor
Methods
▸ build(it, modelLimits?): Object
Builds view mode
| Name | Type | Description |
|---|---|---|
it | Iterator<ComponentNode> | component nodes iterator |
Optional modelLimits | Rect | limits to layout components within |
Object
| Name | Type | Description |
|---|---|---|
boundsdepths | number[] | bounds depths |
modellimitsdepths | number[] | model limits depths |
▸ getAssignedAspectRatio(name): number
Gets AspectRatio for the component; or "NoAspectRatio"-value
| Name | Type | Description |
|---|---|---|
name | string | component name |
number
▸ getClassName(): string
string
AbstractViewModeBuilder.getClassName
▸ Protected getContentModelLimits(it): Rect
| Name | Type |
|---|---|
it | Iterator<ComponentNode> |
AbstractViewModeBuilder.getContentModelLimits
▸ getOptions(): Required<Options>
Gets builder options
Required<Options>
builder options
AbstractViewModeBuilder.getOptions
▸ Protected prepareSetupComponentNodesBounds(srcDepths, dstDepths): void
| Name | Type |
|---|---|
srcDepths | number[] |
dstDepths | number[] |
void
AbstractViewModeBuilder.prepareSetupComponentNodesBounds
▸ setOptions(options): KeepAspectRatioViewModeBuilder
Sets builder options
| Name | Type | Description |
|---|---|---|
options | Options | builder options |
KeepAspectRatioViewModeBuilder
this
AbstractViewModeBuilder.setOptions
▸ setupComponentNodesBounds(srcDepths, dstDepths, it, markerValueMin, markerValueMax): void
Sets up components bounds
Throws
if arrays are not defined or not equal in length
| Name | Type | Description |
|---|---|---|
srcDepths | number[] | srcDepths |
dstDepths | number[] | dstDepths |
it | Iterator<ComponentNode> | component nodes iterator |
markerValueMin | number | min marker value (for drawing) |
markerValueMax | number | max marker value (for drawing) |
void
AbstractViewModeBuilder.setupComponentNodesBounds
▸ Protected setupMarkersBounds(it, markerValueMin, markerValueMax): void
| Name | Type | Description |
|---|---|---|
it | Iterator<ComponentNode> | component nodes iterator |
markerValueMin | number | min marker value (for drawing) |
markerValueMax | number | max marker value (for drawing) |
void
AbstractViewModeBuilder.setupMarkersBounds
▸ Protected setupNonMarkersBounds(it): void
| Name | Type |
|---|---|
it | Iterator<ComponentNode> |
void
AbstractViewModeBuilder.setupNonMarkersBounds
▸ Static getClassName(): string
string