CM3LayerGraticule
This class required a level of complexity beyond what I initially expected.
The problem is that we have to:
- Draw graticule lines based on the zoom level, projection, and area viewed
- Paint coordinates along the border based on where the graticules intersect with the border
- Paint coordinates along the outside of the graticule grid if it is visible (i.e. does not
intersect with the border.
Graticles are made visible by setting the overall style to transparent. The graticules must be drawn to get the intersections for the exterior and border
Settings Group: Graticule3D
Settings Group: Text3D
Setting |
Name |
Type |
Options |
Default |
Comments |
Color |
Color |
CMTYPE_COLOR |
|
0xffffff |
size of the text |
opacity |
Opacity |
CMTYPE_FLOAT |
|
1 |
1 for opaque, 0 for tranparent |
size |
Size |
CMTYPE_FLOAT |
|
1 |
size of the text |
HaloSize |
Halo Size |
CMTYPE_FLOAT |
|
10 |
size of the text |
GlobalFontIndex |
Global Font Index |
CMTYPE_INTEGER |
|
2 |
global font to use |
height |
height |
CMTYPE_FLOAT |
|
2 |
amount to extrude the object |
curveSegments |
curveSegments |
CMTYPE_FLOAT |
|
4 |
number of points on the curve |
bevelEnabled |
bevelEnabled |
CMTYPE_BOOLEAN |
|
true |
beveled instead of 90 degree change, keep true for good looking text |
bevelSegments |
bevelSegments |
CMTYPE_FLOAT |
|
3 |
number of bevel layers (more makes a smoother bevel but draws slower |
bevelSize |
bevelSize |
CMTYPE_FLOAT |
|
0.1 |
width of bevel (distance from shape outline), keep > 0 |
bevelThickness |
bevelThickness |
CMTYPE_FLOAT |
|
0.1 |
how deep the bevel goes into the extrusion ,keep > 0 |
Color |
Color |
CMTYPE_COLOR |
|
rgb(128,128,128) |
must be set before the OGL object is created (or recreate on set) |
opacity |
opacity |
CMTYPE_FLOAT |
|
1 |
must be set before the OGL object is created (or recreate on set) |
Object Functions
Object Functions
SetLineMaterial()
Set a custom material for the line