| 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.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.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!).
Syntax public static void OffsetRectangles(
CVV oVV1,
CVV oVV2,
double d3,
double d4,
double d5,
CVV oVV6,
CVV oVV7
)
Public Shared Sub OffsetRectangles (
oVV1 As CVV,
oVV2 As CVV,
d3 As Double,
d4 As Double,
d5 As Double,
oVV6 As CVV,
oVV7 As CVV
)
public:
static void OffsetRectangles(
CVV^ oVV1,
CVV^ oVV2,
double d3,
double d4,
double d5,
CVV^ oVV6,
CVV^ oVV7
)
static member OffsetRectangles :
oVV1 : CVV *
oVV2 : CVV *
d3 : float *
d4 : float *
d5 : float *
oVV6 : CVV *
oVV7 : CVV -> unit
Parameters
- oVV1
- Type: GeoEngine.Core.GXNetCVV
Input X locations - oVV2
- Type: GeoEngine.Core.GXNetCVV
Input Y locations - d3
- Type: SystemDouble
minimum offset distance - d4
- Type: SystemDouble
symbol X size (width) - d5
- Type: SystemDouble
symbol Y size (height) - oVV6
- Type: GeoEngine.Core.GXNetCVV
Output (offset) X locations - oVV7
- Type: GeoEngine.Core.GXNetCVV
Output (offset) Y locations
See Also