Package org.geoforge.worldwind.builder.entry

Source Code of org.geoforge.worldwind.builder.entry.GfrEntryBltObjPikShpOpn

package org.geoforge.worldwind.builder.entry;

import gov.nasa.worldwind.render.BasicShapeAttributes;
import gov.nasa.worldwind.render.Material;
import gov.nasa.worldwind.render.Path;
import gov.nasa.worldwind.render.ShapeAttributes;

/**
* @author bantchao@gmail.com
*/

public class GfrEntryBltObjPikShpOpn extends GfrEntryBltObjPikShpAbs
{
    static private ShapeAttributes _s_getSelectionAttributes_()
    {
        ShapeAttributes attributes = new BasicShapeAttributes();
        attributes.setInteriorMaterial(Material.WHITE);
        //attributes.setInteriorMaterial(Material.YELLOW);
        attributes.setOutlineMaterial(Material.BLACK);
        //attributes.setOutlineMaterial(Material.BLUE);
        attributes.setDrawOutline(true);
        attributes.setInteriorOpacity(0.8);
        attributes.setOutlineOpacity(0.8);
        attributes.setOutlineWidth(2);
        return attributes;
    }
   
    // ---

    // static?singleton?
    public GfrEntryBltObjPikShpOpn(Path polygon)
    {
        super(polygon, _s_getSelectionAttributes_());
       
        super._rndRenderable = polygon;
    }
}
TOP

Related Classes of org.geoforge.worldwind.builder.entry.GfrEntryBltObjPikShpOpn

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.