public class Surface extends PointingElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SURFACE_TAG
surface
|
Constructor and Description |
---|
Surface()
Creates a surface referenced to the CG surface
|
Surface(PointingElement org) |
Surface(java.lang.String ref)
Creates a surface referenced to another surface
|
Surface(java.lang.String frame,
java.lang.String origin,
java.lang.String units,
float a,
float b,
float c,
float axisAX,
float axisAY,
float axisAZ,
float axisBX,
float axisBY,
float axisBZ,
float axisCX,
float axisCY,
float axisCZ)
Creates a ellipsoid surface.
|
Surface(java.lang.String frame,
java.lang.String origin,
java.lang.String unitsA,
float a,
java.lang.String unitsB,
float b,
java.lang.String unitsC,
float c,
java.lang.String axisAFrame,
float axisAX,
float axisAY,
float axisAZ,
java.lang.String axisBFrame,
float axisBX,
float axisBY,
float axisBZ,
java.lang.String axisCFrame,
float axisCX,
float axisCY,
float axisCZ)
Creates a ellipsoid surface.
|
Modifier and Type | Method and Description |
---|---|
Surface |
copy() |
float |
getA() |
float |
getA(java.lang.String unit) |
float |
getB() |
float |
getB(java.lang.String unit) |
float |
getC() |
float |
getC(java.lang.String unit) |
float |
getFloatField(java.lang.String field) |
java.lang.String |
getFrame()
Return the frame to which the Surface is relative
|
java.lang.String |
getOrigin()
Get the origin component of this surface
|
java.lang.String |
getRef()
Get the name of the other surface this surface refers to
|
java.lang.String |
getUnit(java.lang.String field) |
java.lang.String |
getUnitA() |
java.lang.String |
getUnitB() |
java.lang.String |
getUnitC() |
void |
setA(java.lang.String units,
float value)
Set the A semi axe component of this surface with units
|
void |
setAAxis(java.lang.String frame,
float x,
float y,
float z)
Set the A axis of this surface, with the frame it refers to
|
void |
setAxis(java.lang.String name,
java.lang.String frame,
float x,
float y,
float z)
Set the a axis of this surface, with the frame it refers to
|
void |
setB(java.lang.String units,
float value)
Set the B semi axe component of this surface with units
|
void |
setBAxis(java.lang.String frame,
float x,
float y,
float z)
Set the B axis of this surface, with the frame it refers to
|
void |
setC(java.lang.String units,
float value)
Set the C semi axe component of this surface with units
|
void |
setCAxis(java.lang.String frame,
float x,
float y,
float z)
Set the C axis of this surface, with the frame it refers to
|
void |
setFloatField(java.lang.String field,
float value) |
void |
setFrame(java.lang.String frame)
Set the frame that this surface is relative to.
|
void |
setOrigin(java.lang.String origin)
Set the origin component of this surface
|
void |
setRef(java.lang.String ref)
Set the name of the other surface this surface refers to
|
void |
setUnit(java.lang.String field,
java.lang.String unit) |
addAttribute, addChild, asDataset, copyFrom, equals, getAttribute, getAttributes, getChild, getChildren, getDescription, getFirstLevelTextContent, getName, getValue, hasAttributtes, hasChildren, readFrom, regenerate, removeAttribute, removeAttribute, setDescription, setValue, toString, toStringParameter, toXml, validate
public Surface(PointingElement org)
public Surface()
public Surface(java.lang.String frame, java.lang.String origin, java.lang.String unitsA, float a, java.lang.String unitsB, float b, java.lang.String unitsC, float c, java.lang.String axisAFrame, float axisAX, float axisAY, float axisAZ, java.lang.String axisBFrame, float axisBX, float axisBY, float axisBZ, java.lang.String axisCFrame, float axisCX, float axisCY, float axisCZ)
frame
- Frame that this surface is relative toorigin
- Origin of the surfaceunitsA
- Units where the semi axe A is expresseda
- semi axe AunitsB
- Units where the semi axe B is expressedb
- semi axe BunitsC
- Units where the semi axe C is expressedc
- semi axe CaxisAFrame
- Frame of the axe AaxisAX
- X Component of the axe AaxisAY
- Y Component of the axe AaxisAZ
- Z Component of the axe AaxisBFrame
- Frame of the axe BaxisBX
- X Component of the axe BaxisBY
- Y Component of the axe BaxisBZ
- Z Component of the axe BaxisCFrame
- Frame of the axe CaxisCX
- X Component of the axe CaxisCY
- Y Component of the axe CaxisCZ
- Z Component of the axe Cpublic Surface(java.lang.String frame, java.lang.String origin, java.lang.String units, float a, float b, float c, float axisAX, float axisAY, float axisAZ, float axisBX, float axisBY, float axisBZ, float axisCX, float axisCY, float axisCZ)
frame
- Frame that this surface is relative to (And the axis A, B and C)origin
- Origin of the surfaceunits
- Units where the semi axes A,B and C is expresseda
- semi axe Ab
- semi axe Bc
- semi axe CaxisAX
- X Component of the axe AaxisAY
- Y Component of the axe AaxisAZ
- Z Component of the axe AaxisBX
- X Component of the axe BaxisBY
- Y Component of the axe BaxisBZ
- Z Component of the axe BaxisCX
- X Component of the axe CaxisCY
- Y Component of the axe CaxisCZ
- Z Component of the axe Cpublic Surface(java.lang.String ref)
ref
- Name of the other surfacepublic Surface copy()
copy
in class PointingElement
public void setFrame(java.lang.String frame)
frame
- public void setOrigin(java.lang.String origin)
origin
- public java.lang.String getOrigin()
origin
- public void setA(java.lang.String units, float value)
origin
- public float getA()
public float getA(java.lang.String unit)
public java.lang.String getUnitA()
public void setB(java.lang.String units, float value)
origin
- public float getB()
public float getB(java.lang.String unit)
public java.lang.String getUnitB()
public void setC(java.lang.String units, float value)
origin
- public float getC()
public float getC(java.lang.String unit)
public java.lang.String getUnitC()
public void setAxis(java.lang.String name, java.lang.String frame, float x, float y, float z)
name
- frame
- x
- y
- z
- public void setAAxis(java.lang.String frame, float x, float y, float z)
frame
- x
- y
- z
- public void setBAxis(java.lang.String frame, float x, float y, float z)
frame
- x
- y
- z
- public void setCAxis(java.lang.String frame, float x, float y, float z)
frame
- x
- y
- z
- public void setFloatField(java.lang.String field, float value)
public float getFloatField(java.lang.String field)
public java.lang.String getUnit(java.lang.String field)
public void setUnit(java.lang.String field, java.lang.String unit)
public java.lang.String getFrame()
public void setRef(java.lang.String ref)
ref
- public java.lang.String getRef()
ref
-