Class PolygonDataAccessor


  • public final class PolygonDataAccessor
    extends NativeBase

    Polygon data accessor used for manipulating polygons that are part of a PolygonDataSource.

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

    • Method Detail

      • getGeometry

        @NonNull
        public GeoPolygon getGeometry()

        Gets polygon geometry.

        Returns:

        The polygon geometry.

      • getAttributes

        @NonNull
        public DataAttributesAccessor getAttributes()

        Gets polygon attributes accessor.

        Returns:

        The polygon attributes accessor.

      • setGeometry

        public void setGeometry​(@NonNull
                                GeoPolygon geometry)

        Replaces polygon geometry. The outer boundary has to be ordered clockwise and closed.

        Altitude of the vertices is ignored.

        The visual behaviour for self-intersecting outer boundary is undefined.

        Parameters:
        geometry -

        Geometry of the polygon. The outer boundary has to be ordered clockwise and closed. Altitude of the vertices is ignored. The visual behaviour for self-intersecting outer boundary is undefined.

      • setAttributes

        public void setAttributes​(@NonNull
                                  DataAttributes attributes)

        Replaces polygon attributes.

        Parameters:
        attributes -

        The attributes.