User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.recalcextent_void

Table of Contents

TGIS_LayerVector.RecalcExtent method

DK11 for Delphi | GisLayerVector.TGIS_LayerVector.RecalcExtent | Constructors | Fields | Methods | Properties | Events

Recalculate extent.

Available also on: .NET | Java.

Overrides TGIS_Layer.RecalcExtent.

Syntax

// Delphi
public
  procedure RecalcExtent; override;
// C++ Builder
public:
  virtual void RecalcExtent(void);

Remarks

Use this method to recalculate extent based on real shapes. Can be extremely costly. Internally it iterates all not deleted shapes checking their extent and calculating the maximum extent.

To improve performance a layer section visibility can be used to choose layer.

When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope etc.).

See RevertAll for example.

References

2017/09/04 11:16