setClutteringLimits()

This function is used for defining the zoom factor to show/hide layers (cluttering/decluttering) in individual panels.

Synopsis

int setClutteringLimits(dyn_int lowerLimits, dyn_int upperLimits, [string moduleName, [string panelName]]);

Parameters

Parameter Description
lowerLimits Lower Limits
upperLimits Upper Limits
moduleName Module name
panelName Panel name

Return value

If OK 1, in the event of an error 0.

Description

Sets the zoom range for each layer in individual panels. These zoom ranges are essential parts of cluttering/decluttering. Central settings for cluttering/decluttering are ignored (see also chapter Cluttering/Decluttering). If the variable dyn_int lowerLimits/upperLimits contains no values, the central settings for cluttering/decluttering are used. For making sense the function has to be used in the Initialize script of a panel.

Example

Shows Layer1 if the zoom factor is in range 0-150%, the Layer2 if the factor is in range 200-400% for the current panel.

main()
{
  dyn_int lower
  dyn_int upper
  lower=makeDynInt(0, 200);
  upper=makeDynInt(150, 400);
  setClutteringLimits(lower, upper, "WinCC OA",
  "TestPanel");
}

Assignment

Administration of managers ...

Availability

UI