Академический Документы
Профессиональный Документы
Культура Документы
Contents
1 Document historic 2 Take 5 minutes to manipulate the interface 2.1 Step 1: Locate Cavok program . . . . . . . . 2.2 Step 2: Run the application . . . . . . . . . . 2.3 Step 3: Get familiar with the interface menus 2.4 Step 4: Learn how to use the mouse . . . . . 3 Take 5 minutes for your rst example 3.1 Step 1: Running the script . . . . . 3.2 Step 2: Just after . . . . . . . . . . 3.3 Step 3: The Figure Bag . . . . . . 3.4 Step 4: Your rst view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 2 2 2 4 5 5 5 6 6 7 7 8 8 8 9 10 10 11 11
4 Take 5 minutes more to get ride of this example 4.1 Step 1: The Data model . . . . . . . . . . . 4.2 Step 2: The Scalar elds . . . . . . . . . . 4.3 Step 3: The Vectorial elds . . . . . . . . . 4.4 Step 4: The Animations . . . . . . . . . . . 4.5 Step 5: The Curves . . . . . . . . . . . . .
5 Miscellaneous 5.1 Step 1: The Tx window . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 More scripts to run . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Comming soon . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 DOCUMENT HISTORIC
A List of functions A.1 Cavok main window . . A.2 Data model window . . . A.3 Figure window . . . . . A.4 Script command window A.5 Field window . . . . . . A.6 Tx window . . . . . . . A.7 Curves window . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
11 11 11 11 12 12 12 12
1 Document historic
1. First version: July 28, 2012, 2. Revision 1: July 31, 2012, minor changes.
Figure 1 Main window tools bar 1. The StdFRAME (Standard Frame) and the StdOff (Standard Frame Off) buttons allow us to rapidly restore the standard frame, nor, at the opposite, to move to a full screen mode, 2. the Script window is devoted to scripts running, 3. the Data window is the hierarchical tree of Cavok data base (used in particular to select items to be shown), 4. the Fig window gathers entities drawn and created on-the-y when running script les. Try the buttons... Now it becomes clear that the application is built around a central frame and some decorated widgets. Lets continue our description with the buttons of group 2. The group 2 buttons launch context windows. 1. The FIELD, CURVE and TX buttons are on/off buttons which launch dialog windows, 2. the Field window allow us to select what to be shown for the current selected object, as group of elements, 3. the CURVE button launches the curve environment, 4. the Tx window allows us to move the position of the current selected object for viewing purpose. Just play few seconds with the on/off buttons. We will use them later-on. Ready? So lets continue with group 4 and 5. To do this, open the Data model window and push the 2_Cone button. A nice cone should appeared. If not, push the Fit button of group 4 ( see gure 1). Now, you should see a cone resized at the scale of the central window. The group 4 buttons are devoted to camera viewing facilities. 1. The Fit button changes the camera position for the objects to t the view, Fit FIELD
StdFRAME
2. the XYZ, XY, YZ buttons move the camera position to some standard camera points of view, (note that the perspective is not isometric, it is an originality that we may suppressed). 3. the Rep0 and RepC buttons show trihedral cartesian axes, respectively, at the origin and at the current picked position in an object. The latter is used as the center of rotation when rotating the object with the mouse. Have a try. Now you are almost ready to use the mouse to move and go around viewed objects. But before, lets introduce the buttons of group 5. The group 5 buttons are related to the mouse behavior modes in the central window. 1. Fly is a selectable/de-selectable button. If selected you are in the y mode which is the standard mode to go around the object. For instance, select the Fly mode and do a right-click on the cone. The cone will be centered (where you had clicked) with a little zoom. This new position is ideal to apply rotation (drag the mouse with the left-button pushed). 2. Pick is a mode devoted to selections but at present it isnt used. Instead, while being in the y mode, we use the Ctrl + right-click to select an object. Do a Ctrl + right-click on the cone, a red bounding box should appeared. To de-select the object, just do a Ctrl + right-clicked in a free area. 3. If both, the y mode and the Pick mode, are deselected. A right-click will launch a context menu to change the background color. In particular, the white background is useful when saving an image. We let you nd the image button. Did you nd it? If you already want to use the image button, press it. An image was generated. But now, you have to go the default Cavok folder to nd the image. This folder is located in: user_default_folder \CavokV6 \Bag_Anime. When you will run a script, the default folder will be substituted by the current folder of the script path location. Fly
Image
Mouse
Update
Eye
clicking in the column 2 in front of the item. Dont forget to used the Fit button, if needed, to rescale the view. For instance: 1. Select the entity named 3 GROUP_1 in the bag list clicking in the column 2 position. The eye icon should appear, 2. Press the Fit button to t the object to the frame, 3. go to the eld dialog, push the button color and select a color. The element mesh color should change. Color
4. Play also with the Zap buttons: ZapSh(Shrink), ZapA(Anotations), ZapOpa(Opacity) and ZapE(Edges). If you reached this phase, your training is merely nished. It means that you known how works the interface. What is coming next, is further explanation on how to access and view more sophisticated data.
Modulus
Scale bar
Real part
ScaleDef
DoScal
automatically release at the end of the process. Go to the Bag_Anim folder to nd the .avi lm.
Film
Plot
Legends
5 MISCELLANEOUS
10
5 Miscellaneous
5.1 Step 1: The Tx window
Among the objectives of this new version of Cavok is the analysis of the model through visualization facilities. The Plan, Pnx... and Cute_on_plane buttons (in application tool bar) will allow to see inside tri-dimensional objects doing sectional views. However, the programming of these functions is actually under revision. Another interesting tool which already works well is the Tx tool. It allows to translate an object. That is to say, it allows to do cut-away views. Recalling our example, lets us the Tx tool. Please do the following: 1. Clear all the views using the clear button of the Data model window, 2. Recall the current data model using the update button of the Data model window, 3. Expand the RefEleList of the Data model tree view, normally should have tow items: Q4PLAQQRMCT and Q4PLAQRM which are reference nite elements, 4. Click in column named 2 in front the rst element, a draw should appeared on the screen, 5. Use the Fit button, to resize it, 6. Use the opacity function directly from the application tool bar, or if you prefer from Field Dialog (using the ZapOpa button) to get a better view, The rst method apply for all the objects in the view, the second method apply to the selected object. 7. Now view the second item. This is merely the end of the training. So we hope you that you know how to this. (Answer: click in column named 2 in front the second item). As you can see, the objects are superimposed. So lets translate one of these objects. 1. Open the Tx Dialog window using the TX button in the main application tool bar. 2. Select one of the two object in the list, 3. Calculate an automatic coefcient using the Coef button of the Tx Dialog window, 4. Set Tx to 1 from Tx Dialog window, 5. Finally apply the transformation pushing the TxTyTz button. The object will translate of 1xCoef in the X direction. 6. Use the Fit button if you want, 7. you can apply again transformations, 8. you can reverse the last transformation using the Inv button (and next TxTyTz), 9. you can also, and in every case, return to the initial position using the PosI(Initial) button.
Cut-away
A LIST OF FUNCTIONS
11
MatLab
List of functions
1. Cavok menu: no need to use, 2. Cavok tool bar functions: Size: widget showing the size of an object, JumpFied: unnecessary, JumPWire: wire-frame representation, Cut_on_Plane: under development.
A LIST OF FUNCTIONS
12
A.6 Tx window
As presented in the document.