|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.cnes.sirius.patrius.assembly.MainPart
public class MainPart
-Class to manage the assembly's main part.
-Contains the assembly's main frame and the main part's properties.
IPart
Constructor Summary | |
---|---|
MainPart(String inName)
Constructor of the main part. |
Method Summary | |
---|---|
void |
addProperty(IPartProperty property)
Adds a property to the part. |
Frame |
getFrame()
|
String |
getName()
|
IPart |
getParent()
Returns null : this part has no parent. |
int |
getPartLevel()
|
IPartProperty |
getProperty(PropertyType propertyType)
Returns a property of the part : if in this part, one exists of the given type. |
boolean |
hasProperty(PropertyType propertyType)
Checks if a property of the given type exists in this part. |
boolean |
isLinkedToOrekitTree()
|
void |
reinitializeFrame()
This method implements no action for the main part. |
void |
setFrame(UpdatableFrame inFrame)
Method to modify the frame of the main part. |
void |
updateFrame(Transform inTransform)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MainPart(String inName)
inName
- the name of the main partMethod Detail |
---|
public final String getName()
getName
in interface IPart
public final IPart getParent()
getParent
in interface IPart
public final Frame getFrame()
getFrame
in interface IPart
public final IPartProperty getProperty(PropertyType propertyType)
IPart
getProperty
in interface IPart
propertyType
- the type of the wanted property
public final void addProperty(IPartProperty property)
IPart
addProperty
in interface IPart
property
- the propertypublic final boolean hasProperty(PropertyType propertyType)
IPart
hasProperty
in interface IPart
propertyType
- the type
public final int getPartLevel()
getPartLevel
in interface IPart
public void reinitializeFrame()
reinitializeFrame
in interface IPart
public final void updateFrame(Transform inTransform) throws OrekitException
updateFrame
in interface IPart
inTransform
- new transformation to be applied
Updates the part's frame with a new definition of its Transform.
OrekitException
- if update failspublic final void setFrame(UpdatableFrame inFrame)
inFrame
- the new frame of the main partpublic final boolean isLinkedToOrekitTree()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |