![](../icons/Help.png) | CVVUOffsetRectangles Method |
Get non-overlapping offset location for rectangular symbols.
Available since Oasis montaj version: 5.0.7
License: Available to anyone with an Oasis Montaj license.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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!).
Syntaxpublic static void OffsetRectangles(
CGXNETCore gxNetShared,
CVV vv_xi,
CVV vv_yi,
double offset,
double size_x,
double size_y,
CVV vv_xo,
CVV vv_yo
)
Public Shared Sub OffsetRectangles (
gxNetShared As CGXNETCore,
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(
CGXNETCore^ gxNetShared,
CVV^ vv_xi,
CVV^ vv_yi,
double offset,
double size_x,
double size_y,
CVV^ vv_xo,
CVV^ vv_yo
)
static member OffsetRectangles :
gxNetShared : CGXNETCore *
vv_xi : CVV *
vv_yi : CVV *
offset : float *
size_x : float *
size_y : float *
vv_xo : CVV *
vv_yo : CVV -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - vv_xi
- Type: GeoEngine.Core.GXNetXCVV
Input X locations - vv_yi
- Type: GeoEngine.Core.GXNetXCVV
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.GXNetXCVV
Output (offset) X locations - vv_yo
- Type: GeoEngine.Core.GXNetXCVV
Output (offset) Y locations
See Also