Командная строка

Материал из CAMaaS preliminary wiki
Перейти к навигации Перейти к поиску

Designations in this description:

   <string> - required string
   [string] - optional string
   -string - command

Commands:

   '<string_message> - string_message is a text message that is not have to be translated.
   -rotate <object_id> <athimuth> <zenith> - sets direction angles of a scene object with object_id identifier.
               The identifier is a DWORD number or one of possible reserved identifiers below. Angles are floating point values.
   -scale <object_id> <coeff> - sets a scaling coefficient of a scene object identified by object_id. Scaling coefficient coeff is a
               floating point value specifying a number of times a size of the object is to be changed. The coefficient must be
               a positive value.
   -setsize <object_id> <cx> <cy> <cz> - sets a size of an object with the specified ID. If the object is a view, an applicate must not be
               specified.
   -move <object_id> <x> <y> <z> - moves a pivot point of a scene object with object_id identifier to the specified
               position of the scene. If the object is a view than the view pane is moved but its pivot point is not moved. Coordinates 
               are floating point values.
   -reset [view_id_1] [view_id_2] ... [view_id_n] [-rotate] [-move] [-scale] - resets position, rotation angles and/or scaling
               of views with view_id identifiers. If there are no identifiers specified, all views of the scene reset 
               appropriate parameters. If no parameters are specified, the views reset there directions, scaling and pivot points.
   -setaxesmask [view_id_1] [view_id_2] ... [view_id_n] [X andor Y andor Z] - specifies what axes are to be displayed in specified views.
               If no axes are specified, no axes would be displayed.
               If no view identifiers are specified than the operation would be applied to all views of the scene.
   -setgridmask [view_id_1] [view_id_2] ... [view_id_n] [XOY andor XOZ andor YOZ] - specifies what coordinate planes are filled
               with metric grids. 
               If no planes are specified, no grids would be displayed.
               If no view identifiers are specified than the operation would be applied to all views of the scene.
   -setgridsteps [view_id_1] [view_id_2] ... [view_id_n] <X x_axis_step andor Y y_axis_step andor Z z_axis_step> - specifies steps
               for coordinate grids.
   -setdirectionpoint <view_id_1> [view_id_2] ... [view_id_n] <x> <y> <z> - sets a pivot point for the specified views.
   -setfocus <view_id_1> [view_id_2] ... [view_id_n] <focus_value|infinity> - sets a new focus value for the specified views.


   -getscenesize - returns a size of the scene
   -expandview [LT|RT|LB|RB] - expands view to fullscreen mode. If a view identifier is not specified the layout is returned to normal.
   -showobject <object_id_1> [object_id_2] ... [object_id_n] - makes the specified object visible.
   -hideobject <object_id_1> [object_id_2] ... [object_id_n] - makes the specified object hidden.
   -create view <name> <Xpos Ypos Zpos> <Xpvt Ypvt Zpvt>
   -create cube <name> <Xpos Ypos Zpos> <cx cy cz>
   -create cone <name> <Xpos Ypos Zpos> <radius height>
   -create cylinder <name> <Xpos Ypos Zpos> <radius height>
   -create sphere <name> <Xpos Ypos Zpos> <radius>
   -create face_extruded <name> <length> <"x1 y1 z1"> <"x2 y2 z2"> ... <"xn yn zn">
   [view | cube | cylinder | cone | sphere]

VIEW WINDOW IDENTIFIERS

   LT - left-top
   RT - right-top
   LB - left-bottom
   RB - right-bottom