Package org.ivoa.dm.adqlgeom
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Ellipse, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.javastro.ivoacore.pgsphere.types.Pointthe centre of the circle.protected Doublemajor axis size in radians.protected Doubleminor axis size in radians.protected DoubleThe position angle pos is defined as a counterclockwise rotation around the ellipse center and is zero, if the ellipse is “parallel to the equator”. -
Constructor Summary
ConstructorsConstructorDescriptionEllipse()Creates a new EllipseEllipse(Double major_axis, Double minor_axis, org.javastro.ivoacore.pgsphere.types.Point center, Double pos_angle) full parameter constructor.Copy Constructor.Ellipse(Shape superinstance, Double major_axis, Double minor_axis, org.javastro.ivoacore.pgsphere.types.Point center, Double pos_angle) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Ellipsecreate a Ellipse in functional builder style.booleanvoidorg.javastro.ivoacore.pgsphere.types.PointReturns center Attribute.Returns major_axis Attribute.Returns minor_axis Attribute.Returns pos_angle Attribute.inthashCode()voidsetCenter(org.javastro.ivoacore.pgsphere.types.Point pCenter) Set center Attribute.voidsetMajor_axis(Double pMajor_axis) Set major_axis Attribute.voidsetMinor_axis(Double pMinor_axis) Set minor_axis Attribute.voidsetPos_angle(Double pPos_angle) Set pos_angle Attribute.voidupdateUsing(Ellipse other) Update this object with the content of the given object.withCenter(org.javastro.ivoacore.pgsphere.types.Point pCenter) fluent setter for center Attribute.withMajor_axis(Double pMajor_axis) fluent setter for major_axis Attribute.withMinor_axis(Double pMinor_axis) fluent setter for minor_axis Attribute.withPos_angle(Double pPos_angle) fluent setter for pos_angle Attribute.Methods inherited from class org.ivoa.dm.adqlgeom.Shape
updateUsing
-
Field Details
-
major_axis
@VoDml(id="adqlgeom:Ellipse.major_axis", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double major_axismajor 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_axisminor 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 centerthe 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_angleThe 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
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
make a clone of the object taking into account current polymorhic type. -
updateUsing
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
Returns major_axis Attribute.- Returns:
- major_axis Attribute
-
setMajor_axis
Set major_axis Attribute.- Parameters:
pMajor_axis- value to set
-
withMajor_axis
fluent setter for major_axis Attribute.- Parameters:
pMajor_axis- value to set- Returns:
- Ellipse
-
getMinor_axis
Returns minor_axis Attribute.- Returns:
- minor_axis Attribute
-
setMinor_axis
Set minor_axis Attribute.- Parameters:
pMinor_axis- value to set
-
withMinor_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
fluent setter for center Attribute.- Parameters:
pCenter- value to set- Returns:
- Ellipse
-
getPos_angle
Returns pos_angle Attribute.- Returns:
- pos_angle Attribute
-
setPos_angle
Set pos_angle Attribute.- Parameters:
pPos_angle- value to set
-
withPos_angle
fluent setter for pos_angle Attribute.- Parameters:
pPos_angle- value to set- Returns:
- Ellipse
-
createEllipse
create a Ellipse in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
equals
-
hashCode
public int hashCode()
-