Package com.luciad.view
Class TLcdModelQueryConfiguration.Builder
java.lang.Object
com.luciad.view.TLcdModelQueryConfiguration.Builder
- Enclosing class:
TLcdModelQueryConfiguration
Builder for
TLcdModelQueryConfiguration
instances.
Consult the class javadoc of TLcdModelQueryConfiguration
for more information.- Since:
- 2017.0
-
Method Summary
Modifier and TypeMethodDescriptionaddContent
(double aMinScale, double aMaxScale, ILcdOGCCondition aCondition) Adds a condition for the specified scale range.addContent
(TLcdDimensionInterval<TLcdMapScale> aScaleRange, ILcdOGCCondition aCondition) Adds a condition for the specified scale range.build()
Returns a newTLcdModelQueryConfiguration
instance.Specifies that all data must be loaded for scales for which no filter information is specified.Specifies that no data must be loaded for scales for which no filter information is specified.nonDefinedScales
(ILcdOGCCondition aCondition) Defines the data loading condition used for scales for which no filter information is specified.
-
Method Details
-
addContent
public TLcdModelQueryConfiguration.Builder addContent(double aMinScale, double aMaxScale, ILcdOGCCondition aCondition) Adds a condition for the specified scale range. Scale ranges are allowed to overlap with previously specified scale ranges. Consult the class javadoc ofTLcdModelQueryConfiguration
for more information on how overlapping scale ranges are interpreted. The scales are expressed as a unitless scale. For example specifying a scale of "1/5000" means that one centimetre on the map equals 5000 centimetres in reality. Valid scale values go fromTLcdModelQueryConfiguration.FULLY_ZOOMED_OUT
(=0.0) toTLcdModelQueryConfiguration.FULLY_ZOOMED_IN
(=Double.MAX_VALUE
). No modifications should be made to theaCondition
instance afterwards.- Parameters:
aMinScale
- The minimum scale (inclusive).aMaxScale
- The maximum scale (exclusive).aCondition
- The condition. Anull
instance means that all data should be loaded andTLcdModelQueryConfiguration.LOAD_NOTHING_CONDITION
means that no data should be loaded.- Returns:
- this builder
-
addContent
public TLcdModelQueryConfiguration.Builder addContent(TLcdDimensionInterval<TLcdMapScale> aScaleRange, ILcdOGCCondition aCondition) Adds a condition for the specified scale range. Scale ranges are allowed to overlap with previously specified scale ranges. Consult the class javadoc ofTLcdModelQueryConfiguration
for more information on how overlapping scale ranges are interpreted. The scales are expressed as a unitless scale. For example specifying a scale of "1/5000" means that one centimetre on the map equals 5000 centimetres in reality. No modifications should be made to theaCondition
instance afterwards.- Parameters:
aScaleRange
- The minimum (inclusive) and maximum scale (exclusive).aCondition
- The condition, ornull
to load all data, orTLcdModelQueryConfiguration.LOAD_NOTHING_CONDITION
to load no data.- Returns:
- this builder
- Since:
- 2021.0
-
nonDefinedScales
Defines the data loading condition used for scales for which no filter information is specified. Default value of this condition isTLcdModelQueryConfiguration.LOAD_NOTHING_CONDITION
, indicating that no data should be loaded. No modifications should be made to theaCondition
instance afterwards.- Parameters:
aCondition
- The condition. Anull
instance means that all data should be loaded andTLcdModelQueryConfiguration.LOAD_NOTHING_CONDITION
means that no data should be loaded.- Returns:
- this builder
-
loadNothingForUndefinedScales
Specifies that no data must be loaded for scales for which no filter information is specified. This method is short fornonDefinedScales(LOAD_NOTHING_CONDITION);
- Returns:
- this builder
-
loadEverythingForUndefinedScales
Specifies that all data must be loaded for scales for which no filter information is specified. This method is short fornonDefinedScales(null);
- Returns:
- this builder
-
build
Returns a newTLcdModelQueryConfiguration
instance. After calling this method, this builder can no longer be used- Returns:
- a new
TLcdModelQueryConfiguration
instance.
-