Class Cake

    • Method Detail

      • getLayers

        public java.util.List<Cake.Layer> getLayers()
        Returns the partial cylinders comprising the shape.
        Returns:
        the cylinders comprising the shape, or an empty list if the shape contains no layers.
      • setLayers

        public void setLayers​(java.util.Collection<Cake.Layer> layers)
        Set the partial cylinders comprising the shape.
        Parameters:
        layers - the cylinders comprising the shape. May be an empty list.
        Throws:
        java.lang.IllegalArgumentException - if the list reference is null.
      • addLayers

        protected void addLayers​(java.lang.Iterable<Cake.Layer> newLayers)
      • setEnableCaps

        public void setEnableCaps​(boolean enable)
      • setEnableDepthOffset

        public void setEnableDepthOffset​(boolean enable)
        Description copied from class: AbstractAirspace
        Specifies whether the filled sides of this shape should be offset towards the viewer to help eliminate artifacts when two or more faces of this or other filled shapes are coincident.
        Specified by:
        setEnableDepthOffset in interface Airspace
        Overrides:
        setEnableDepthOffset in class AbstractAirspace
        Parameters:
        enable - true if depth offset is applied, otherwise false.
      • setTerrainConforming

        public void setTerrainConforming​(boolean lowerTerrainConformant,
                                         boolean upperTerrainConformant)
        Description copied from interface: Airspace
        Sets the altitude datum, which indicates whether airspace altitudes are relative to mean sea level, ground level or a single ground reference location. The datum is normally set via Airspace.setAltitudeDatum(String, String), but this method is provided for backwards compatibility with the means of originally setting the datum. See the argument descriptions below for the mapping of the boolean values of this method to the altitude-datum values.
        Specified by:
        setTerrainConforming in interface Airspace
        Overrides:
        setTerrainConforming in class AbstractAirspace
        Parameters:
        lowerTerrainConformant - the lower altitude datum. A value of true indicates a lower altitude datum of AVKey.ABOVE_GROUND_LEVEL (terrain conforming), a value of false indicates a lower altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain conforming). the terrain-conforming, a value of false indicates that it's not.
        upperTerrainConformant - the upper altitude datum. A value of true indicates an upper altitude datum of AVKey.ABOVE_GROUND_LEVEL (terrain conforming), a value of false indicates an upper altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain conforming. the terrain-conforming, a value of false indicates that it's not.
        See Also:
        Airspace.setAltitudeDatum(String, String)
      • isAirspaceVisible

        public boolean isAirspaceVisible​(DrawContext dc)
        Description copied from class: AbstractAirspace
        Test if this airspace is visible in the specified draw context. During picking mode, this tests intersection against all of the draw context's pick frustums. During rendering mode, this tests intersection against the draw context's viewing frustum.
        Specified by:
        isAirspaceVisible in interface Airspace
        Overrides:
        isAirspaceVisible in class AbstractAirspace
        Parameters:
        dc - the draw context the airspace is related to.
        Returns:
        true if this airspace is visible; false otherwise.
      • getReferencePosition

        public Position getReferencePosition()
        Description copied from interface: Movable
        A position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.
        Returns:
        the object's reference position, or null if no reference position is available.