Hi all,
I would like to write a java file to plot out a stripe/dash line for my path through the use of StripeMaterialGrahpics AGI.
https://www.agi.com/resources/help/online/AGIComponentsJava/Javadoc/agi/foundation/cesium/StripeMaterialGraphics.html
I can use PathGraphics and PolylineOutlineMaterialGraphics AGI to plot out a solid color line, however I cant implement it with StripeMaterialGraphics.
Do anyone know how to implement StripeMaterialGraphics as my material instead of PolylineOutlineMaterialGraphics?
Here is part of an example of my code(some other settings are omitted):
Code 1:
final PolyOutlineMaterialGraphics pathMaterial = new PolylineOutlineMaterialGraphics();
pathMaterial.setColor(new ConstantCesiumProperty<Color>(Color.Blue));
final PathGraphics path = new PathGraphics();
path.setMaterial(new ConstantCesiumProperty<IPolylineMaterialGraphics>(pathMaterial));
object.getExtensions().add(new PathGraphicsExtension(path);
The above code works when I use CzmlDocument to write it.
However, when I tried to use StripeMaterialGraphics instead, it wont work.
Code 2:
final StripeMaterialGraphics pathMaterial = new StripeMaterialGraphics();
pathMaterial.setEvenColor(new ConstantCesiumProperty<Color>(Color.Blue));
final PathGraphics path = new PathGraphics();
path.setMaterial(new ConstantCesiumProperty<IPolylineMaterialGraphics>(pathMaterial));
object.getExtensions().add(new PathGraphicsExtension(path);
This code 2 wont work as StripeMaterialGrahipcs is not under IPolylineMaterialGraphics, but for PathGraphics uses this.
So I would appreciate your help in implementing StripeMaterialGraphics. What are the extensions, etc that I can use to plot the dashed/stripe line path out.
Thanks