 | CVVUOffsetCircles Method |
Get non-overlapping offset location for circular symbols.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void OffsetCircles(
CVV vv_xi,
CVV vv_yi,
double offset,
double radius,
CVV vv_xo,
CVV vv_yo
)
public static void OffsetCircles(
CVV vv_xi,
CVV vv_yi,
double offset,
double radius,
CVV vv_xo,
CVV vv_yo
)
Public Shared Sub OffsetCircles (
vv_xi As CVV,
vv_yi As CVV,
offset As Double,
radius As Double,
vv_xo As CVV,
vv_yo As CVV
)
Public Shared Sub OffsetCircles (
vv_xi As CVV,
vv_yi As CVV,
offset As Double,
radius As Double,
vv_xo As CVV,
vv_yo As CVV
)
public:
static void OffsetCircles(
CVV^ vv_xi,
CVV^ vv_yi,
double offset,
double radius,
CVV^ vv_xo,
CVV^ vv_yo
)
public:
static void OffsetCircles(
CVV^ vv_xi,
CVV^ vv_yi,
double offset,
double radius,
CVV^ vv_xo,
CVV^ vv_yo
)
static member OffsetCircles :
vv_xi : CVV *
vv_yi : CVV *
offset : float *
radius : float *
vv_xo : CVV *
vv_yo : CVV -> unit
static member OffsetCircles :
vv_xi : CVV *
vv_yi : CVV *
offset : float *
radius : float *
vv_xo : CVV *
vv_yo : CVV -> unit
Parameters
- vv_xi
- Type: GeoEngine.Core.GXNetCVV
Input X locations - vv_yi
- Type: GeoEngine.Core.GXNetCVV
Input Y locations - offset
- Type: SystemDouble
Minimum offset distance - radius
- Type: SystemDouble
Symbol radius - vv_xo
- Type: GeoEngine.Core.GXNetCVV
Output (offset) X locations - vv_yo
- Type: GeoEngine.Core.GXNetCVV
Output (offset) Y locations
Remarks
Often on maps plotted symbols and text overlap each other.
This routine accepts of VV of locations and returns a new
set of locations offset from the originals, and guaranteed
not to overlap, given the size of the original symbols.
The returned offset X, Y
locations are offset from the original locations by
the minimum of a) the input offset, b) the input symbol
radius. This is to ensure that the original location is
never covered by the offset symbol.
Care should be taken when choosing the symbol size, because
if the point density is too high, all the points will get
pushed to the outside edge and your plot will look like a
hedgehog (it also takes a lot longer!).
See Also