 | CVVUOffsetRectangles Method |
Get non-overlapping offset location for rectangular symbols.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void OffsetRectangles(
CVV vv_xi,
CVV vv_yi,
double offset,
double size_x,
double size_y,
CVV vv_xo,
CVV vv_yo
)
public static void OffsetRectangles(
CVV vv_xi,
CVV vv_yi,
double offset,
double size_x,
double size_y,
CVV vv_xo,
CVV vv_yo
)
Public Shared Sub OffsetRectangles (
vv_xi As CVV,
vv_yi As CVV,
offset As Double,
size_x As Double,
size_y As Double,
vv_xo As CVV,
vv_yo As CVV
)
Public Shared Sub OffsetRectangles (
vv_xi As CVV,
vv_yi As CVV,
offset As Double,
size_x As Double,
size_y As Double,
vv_xo As CVV,
vv_yo As CVV
)
public:
static void OffsetRectangles(
CVV^ vv_xi,
CVV^ vv_yi,
double offset,
double size_x,
double size_y,
CVV^ vv_xo,
CVV^ vv_yo
)
public:
static void OffsetRectangles(
CVV^ vv_xi,
CVV^ vv_yi,
double offset,
double size_x,
double size_y,
CVV^ vv_xo,
CVV^ vv_yo
)
static member OffsetRectangles :
vv_xi : CVV *
vv_yi : CVV *
offset : float *
size_x : float *
size_y : float *
vv_xo : CVV *
vv_yo : CVV -> unit
static member OffsetRectangles :
vv_xi : CVV *
vv_yi : CVV *
offset : float *
size_x : float *
size_y : 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 - size_x
- Type: SystemDouble
Symbol X size (width) - size_y
- Type: SystemDouble
Symbol Y size (height) - 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
X or Y size. This is to ensure that the original location is
never covered by the offset symbol. In addition, the offset
symbol is never place directly below the original location,
to make it easier to draw a connecting line.
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