Class CappedCylinder

    • Constructor Detail

      • CappedCylinder

        public CappedCylinder​(LatLon location,
                              double radius)
      • CappedCylinder

        public CappedCylinder()
    • Method Detail

      • getCenter

        public LatLon getCenter()
        Returns the geographic location of the cylinder's center.
        Returns:
        the cylinder's center
      • setCenter

        public void setCenter​(LatLon location)
        Sets the cylinder's center.
        Parameters:
        location - the geographic position (latitude and longitude) of the cylinder's center.
        Throws:
        java.lang.IllegalArgumentException - if the location is null.
      • getRadii

        public double[] getRadii()
        Returns the cylinder's inner and outer radius, in meters.
        Returns:
        the cylinder's inner and outer radius, in meters.
      • setRadii

        public void setRadii​(double innerRadius,
                             double outerRadius)
        Sets the cylinder's inner and outer radius.
        Parameters:
        innerRadius - the cylinder's inner radius, in meters.
        outerRadius - the cylinder's inner radius, in meters.
        Throws:
        java.lang.IllegalArgumentException - if either radius is less than zero.
      • setRadius

        public void setRadius​(double radius)
        Sets the cylinder's radius.
        Parameters:
        radius - the cylinder's radius, in meters.
        Throws:
        java.lang.IllegalArgumentException - if the radius is less than zero.
      • isEnableCaps

        public boolean isEnableCaps()
      • setEnableCaps

        public void setEnableCaps​(boolean enable)
      • 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.
      • updateSurfaceShape

        protected void updateSurfaceShape​(DrawContext dc,
                                          SurfaceShape shape)
        Description copied from class: AbstractAirspace
        Sets surface shape parameters prior to picking and rendering the 2D shape used to represent this Airspace on 2D globes. Subclasses should override this method if they need to update more than the attributes and the delegate owner.
        Overrides:
        updateSurfaceShape in class AbstractAirspace
        Parameters:
        dc - the current drawing context.
        shape - the surface shape to update.
      • regenerateSurfaceShape

        protected void regenerateSurfaceShape​(DrawContext dc,
                                              SurfaceShape shape)
        Description copied from class: AbstractAirspace
        Regenerates surface shape geometry prior to picking and rendering the 2D shape used to represent this Airspace on 2D globes.
        Overrides:
        regenerateSurfaceShape in class AbstractAirspace
        Parameters:
        dc - the current drawing context.
        shape - the surface shape to regenerate.
      • getSlices

        protected int getSlices()
      • setSlices

        protected void setSlices​(int slices)
      • getStacks

        protected int getStacks()
      • getLoops

        protected int getLoops()
      • setLoops

        protected void setLoops​(int loops)
      • computeReferenceCenter

        protected Vec4 computeReferenceCenter​(DrawContext dc)
      • computeEllipsoidalTransform

        protected Matrix computeEllipsoidalTransform​(Globe globe,
                                                     double verticalExaggeration)