DrawSCPlanPlugIn:

Path: AerospaceUtils/CAD

% Draw a spacecraft CAD model in a plain 3D box with Gouraud lighting.
 Components will be grouped by subsystem. Sun and Earth vectors may be added.
 To initialize:

   tag = DrawSCPlanPlugIn( 'initialize', g, hFig, position ), or
   tag = DrawSCPlanPlugIn( g )

 * g        is the spacecraft CAD data structure. 
 * hFig     is the handle to the figure window
 * position is an array [left bottom width height] which gives the position
            of the plugin in the window

 If hFig is not entered it will create a new window 450 pixels square. 
 You need to save tag for subsequent calls.

 To pass new information to the plugin (erase/update/draw) use:

     DrawSCPlanPlugIn( 'update', tag, g )

 To display Sun and Earth vectors use the 'vectors' action. The rECI and vECI
 fields of g must be set. The Earth vector is green, the Sun vector is yellow,
 and the velocity vector is red.

     DrawSCPlanPlugIn( 'vectors', tag, g, jD ),  -or-
     DrawSCPlanPlugIn( 'vectors', tag, g, uSun )
 
 To erase:

     DrawSCPlanPlugIn( 'erase', tag )

 To move components away from the center:

     DrawSCPlanPlugIn( 'scale', tag, scaleFactor )

 To redraw:

     DrawSCPlanPlugIn( 'draw', tag )

 To close the display, type:

     DrawSCPlanPlugIn( 'quit', tag )

 Type DrawSCPlanPlugIn for demo.

--------------------------------------------------------------------------
   Form:
   DrawSCPlanPlugIn( action, modifier, hFig, position )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action      (1,:)  Action
   modifier    (1,:)  Modifier to the action
   hFig        (1,1)  Handle to the figure or if 'update' is jD
   position    (1,4)  [left bottom width height]

   -------
   Outputs
   -------
   tag         (1,:)  The tag that identifies the display   

   See also DrawSpacecraftPatches.

--------------------------------------------------------------------------

Children:

AerospaceUtils: CAD/BHinge
AerospaceUtils: CAD/Dim
AerospaceUtils: CAD/DrawSpacecraftPatches
SC: Ephem/Eclipse
SC: Ephem/SunV1
SC: SCModels/SCForImaging
SC: SCModels/SimpleSat
SC: SCModels/TwoArraySC
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/CloseFigure
Common: General/DeBlankLT
Common: General/IsValidField
Common: General/IsVersionAfter
Common: General/MatToCell
Common: General/StringToTokens
Common: General/Watermark
Common: Graphics/NPlot
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/AU2Q
Common: Quaternion/Q2Mat
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the AerospaceUtils Module page