Class Ellipse

java.lang.Object
org.ivoa.dm.adqlgeom.Shape
org.ivoa.dm.adqlgeom.Ellipse
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="adqlgeom:Ellipse", role=dataType) public class Ellipse extends Shape implements org.ivoa.vodml.jpa.JPAManipulations
an elliptical region on the sky. dataType: Ellipse
  • Field Details

    • major_axis

      @VoDml(id="adqlgeom:Ellipse.major_axis", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double major_axis
      major axis size in radians. : Attribute major_axis : multiplicity 1
    • minor_axis

      @VoDml(id="adqlgeom:Ellipse.minor_axis", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double minor_axis
      minor axis size in radians. : Attribute minor_axis : multiplicity 1
    • center

      @VoDml(id="adqlgeom:Ellipse.center", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point center
      the centre of the circle. : Attribute center : multiplicity 1
    • pos_angle

      @VoDml(id="adqlgeom:Ellipse.pos_angle", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double pos_angle
      The position angle pos is defined as a counterclockwise rotation around the ellipse center and is zero, if the ellipse is “parallel to the equator”. : Attribute pos_angle : multiplicity 1
  • Constructor Details

    • Ellipse

      public Ellipse()
      Creates a new Ellipse
    • Ellipse

      public Ellipse(Double major_axis, Double minor_axis, org.javastro.ivoacore.pgsphere.types.Point center, Double pos_angle)
      full parameter constructor.
      Parameters:
      major_axis - major axis size in radians.
      minor_axis - minor axis size in radians.
      center - the centre of the circle.
      pos_angle - The position angle pos is defined as a counterclockwise rotation around the ellipse center and is zero, if the ellipse is “parallel to the equator”.
    • Ellipse

      public Ellipse(Ellipse other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • Ellipse

      public Ellipse(Shape superinstance, Double major_axis, Double minor_axis, org.javastro.ivoacore.pgsphere.types.Point center, Double pos_angle)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      major_axis - major axis size in radians.
      minor_axis - minor axis size in radians.
      center - the centre of the circle.
      pos_angle - The position angle pos is defined as a counterclockwise rotation around the ellipse center and is zero, if the ellipse is “parallel to the equator”.
  • Method Details

    • copyMe

      public Shape copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class Shape
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(Ellipse other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getMajor_axis

      public Double getMajor_axis()
      Returns major_axis Attribute.
      Returns:
      major_axis Attribute
    • setMajor_axis

      public void setMajor_axis(Double pMajor_axis)
      Set major_axis Attribute.
      Parameters:
      pMajor_axis - value to set
    • withMajor_axis

      public Ellipse withMajor_axis(Double pMajor_axis)
      fluent setter for major_axis Attribute.
      Parameters:
      pMajor_axis - value to set
      Returns:
      Ellipse
    • getMinor_axis

      public Double getMinor_axis()
      Returns minor_axis Attribute.
      Returns:
      minor_axis Attribute
    • setMinor_axis

      public void setMinor_axis(Double pMinor_axis)
      Set minor_axis Attribute.
      Parameters:
      pMinor_axis - value to set
    • withMinor_axis

      public Ellipse withMinor_axis(Double pMinor_axis)
      fluent setter for minor_axis Attribute.
      Parameters:
      pMinor_axis - value to set
      Returns:
      Ellipse
    • getCenter

      public org.javastro.ivoacore.pgsphere.types.Point getCenter()
      Returns center Attribute.
      Returns:
      center Attribute
    • setCenter

      public void setCenter(org.javastro.ivoacore.pgsphere.types.Point pCenter)
      Set center Attribute.
      Parameters:
      pCenter - value to set
    • withCenter

      public Ellipse withCenter(org.javastro.ivoacore.pgsphere.types.Point pCenter)
      fluent setter for center Attribute.
      Parameters:
      pCenter - value to set
      Returns:
      Ellipse
    • getPos_angle

      public Double getPos_angle()
      Returns pos_angle Attribute.
      Returns:
      pos_angle Attribute
    • setPos_angle

      public void setPos_angle(Double pPos_angle)
      Set pos_angle Attribute.
      Parameters:
      pPos_angle - value to set
    • withPos_angle

      public Ellipse withPos_angle(Double pPos_angle)
      fluent setter for pos_angle Attribute.
      Parameters:
      pPos_angle - value to set
      Returns:
      Ellipse
    • createEllipse

      public static Ellipse createEllipse(Consumer<Ellipse.EllipseBuilder> f)
      create a Ellipse in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class Shape
    • equals

      public boolean equals(Object o_)
      Overrides:
      equals in class Shape
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Shape