In this tutorial we will look at some of the types of render views that exist. We will also explore some of the properties of render views, such as resizing, how to switch windows, and how to link cameras.
- From the Demo folder, load the Drifts.vtp, Lens..vtp and Stopes.vtu datasets.
- Color all three datasets using solid colors and make sure they are all visible in the render view, and change the orientation to look along the positive X axis.
- By default, the render view uses the 3D View type.
- Each render view has a menu bar with nine icons; Undo Interaction, Redo Interaction, Edit View Options, Lookmark, Adjust Camera, Split Horizontal, Split Vertical, Maximize and Close.
- If the render view is maximized, a Restore icon appears.
Adding Render Views
- To add a render view to the View Manager, you need to split the view.
- Click on the Split Vertical icon; splitting vertically will always create a render view below.
- The new render view will always be half the size of the original view.
- The second render view that was added underneath now shows a menu to select the type of render view to create.
- Select the 3D View type; a blank 3D view appears.
- When multiple render views exist, changes that are made in the pipeline or the Object Inspector apply to the currently active render view.
- As of version 1.4.14, the word Active appears in the menu bar to identify the currently active view.
- For earlier versions, click in the view you want to use as the active view before you make changes.
- Click in the new render view, then change the visibility of the Drifts dataset in the pipeline and color it by risklevels.
- Although both render views show the Drifts dataset, it is colored differently in each view, and shown from different angles.
- You can add as many render views as you want by using the split icons.
- When a view is split horizontally, the new render view always appears to the right.
- In the lower view, click on the Split Horizontal icon and again select the 3D View type.
- While this is the active view, make the Stopes dataset visible and color it by s1.
- If you wanted to delete a view, you would click on the Close icon on the menu bar, but we won't do that yet.
Switching Render Views
- The render views don't have to remain where they are, we can switch two images with each other so they trade spaces.
- Move the cursor to the menu bar of the view containing the Stopes dataset, then click and drag it into the top render view; the cursor changes to show a window and a plus icon.
- When you let go of the mouse button, the two windows trade places.
Resizing the Views
- When a new view is created, the original view is always reduced by half, but we can manually change the sizing of a window.
- Since we switched the two windows above, the bottom right view is not large enough to show the whole image.
- Move the cursor to the edge between the two bottom images until the cursor changes to a double-arrow, then click and drag the window to the left; note that you need to do this with the inside edges of the view, not edges that are shared with the View Manager.
- You can hide a view completely by dragging the edge all the way to the edge of the View Manager window; the render view disappears, and the edge appears slightly thicker.
- To make the view re-appear, move the cursor to the edge until you get the double-arrow, then pull the window back out; be careful, sometimes you may grab the edge of the View Manager instead.
- When multiple render views exist, it is possible to link them so that changing the camera angle in one view will cause the same change in another (or several) views.
- Note that right now, the axes showing in the bottom left corners of the views are not all the same.
- Right-click in the bottom left render view and then click on the Link Camera option; if the option doesn't appear immediately, it's because this wasn't your active view; left click and then right-click again.
- A small window appears where you can change the name of the link or cancel the link creation.
- Accept the default name, and click on the bottom right view; the cameras in these two views are now linked.
- Rotate the left view and notice that the right view also rotates, though the top view still remains the same.
- A linkage is always between two render views, so to also link the top view, we need to link it with one of the other views; it doesn't matter which one.
- Right-click in the top window and create the camera link with the bottom left.
- Rotate or zoom one of the views and note that all the others change as well.
Converting a View
- Even though all our views were created as 3D views, this can be changed at any time with the Convert To option.
- Right-click on the menu bar of the bottom right view, click on Convert To, and select the 2D View option.
- The window updates and we now have a blank render view, and looking in the pipeline, none of the objects have an eye icon available; this is because they are 3D objects that cannot be viewed in a 2D view.
- Let's delete the 2D View window by clicking on the Close button on the menu bar; the view disappears, and the bottom left view resizes to cover the whole area.
The Spreadsheet View
- We can also use other types of render views.
- Right-click on the menu bar in the bottom view and choose the Convert To option again.
- Select the Spreadsheet View type from the list; the render view now shows rows and columns of information.
- The top of the spreadsheet has two drop-downs, Showing and Attribute.
- The Showing drop-down contains the names of the objects in the pipeline; selecting an object displays that object's information in the view.
- Select the Stopes dataset in the drop-down (or whichever dataset you currently have showing in the top view).
- The Attribute drop-down allows you to select if you want to see Cell Data, Point Data or Field Data.
- Clicking on a cell in the spreadsheet view will highlight that row, and holding down the Ctrl key allows you to select multiple rows.
- When one or more rows are selected, the data that corresponds with those rows is highlighted in pink in all other render views; you may have to rotate or zoom the view to see the highlighted section.
- This also relates to the Select Data options; when cells, points or blocks are selected using the selection icons, the corresponding rows will highlight in the spreadsheet.
- The Display section of the Object Inspector also changes when the Spreadsheet is the active view.
- Note that there are only 3 sections; one to Show Data which toggles the visibility of all data in the spreadsheet, one to Show only selected elements which narrows down the rows to show only those that are highlighted and removes all others, and one to Select Attributes to Show which is the same as the Attribute drop-down in the Spreadsheet.
- The mouse functions are also slightly different, as you've already noticed; clicking in the view will select a row, and scrolling with the mouse wheel will scroll the rows up and down.
- Try out the different options to see their effects.
The Bar Chart View
- We can also use a bar chart to show information about a dataset.
- Select the Stopes dataset in the pipeline, and then click on Filters > Data Analysis > Histogram.
- For now, apply the default settings; a new render view is created using the Bar Chart type view.
- Click on the Display tab in the Object Inspector; note that these display options are specific to the bar chart.
- With the X Axis section you can choose which array is used on the x axis, and which color map is used to color the bars.
- The Y Axis section controls the array used on the y axis.
- If you use the scroll-wheel in the bar chart view, the chart is zoomed in and out; while zoomed in, if you click and drag, you can change the area of the bar chart that is visible.
- Pressing the Reset button on the toolbar will show the whole bar chart again.
- Play with the settings and try out the different options.
The XY Plot View
- Another charting option is an XY Plot.
- Right-click on the menu bar of the bar chart view and convert the view to XY Plot; you may have to make the Histogram visible again.
- Right now, all we see is a single line in the graph; switch to the Display tab, which now shows options specific to XY plots.
- Change the Attribute Mode to Cell Data instead; the plot updates to show the cell data information.
- The Line Series section allows you to control what the plot looks like; we can turn variables on and off using the checkboxes, and we can change the line properties.
- Select one of the variables to highlight the row; once a row is selected, the Line Properties section underneath is activated and the color, thickness, style and axis location can be changed.
- Double-clicking on a row also allows you to change the color.
- You can change the name of the Legend by clicking on a row and then clicking on the Legend Name and entering the new name.
- There are two plot types that can be used, Line Plot which is the default, and Scatter Plot; this dataset looks better using the Line Plot setting.
- The X Axis Data section allows you to select the scale used on the X axis, either by using an array index based on the Y Axis data, or by specifying a data array to use.
- The mouse functions in the XY Plot view are similar to those of the Bar Chart view.
- The scroll-wheel will zoom in and out.
- While zoomed in on a section of the plot, clicking and dragging the mouse changes the section of the plot that is visible.
- Click the Reset button on the toolbar to revert to seeing the full XY Plot.
- Try out the different options to get familiar with the plot properties; remove some of the datasets being plotted to see how the graph changes.
Removing the Menu Bars
- Sometimes the menu bars are in the way if several views are open, since they take up space that could be used to enlarge the viewing area.
- To toggle the visibility of the menu bar in the active view, press the F9 key.
- To toggle the visibility of the menu bars in all views, press the F10 key.
- Notice that in the image below, the whole View Manager is shown, but no menu bars are visible.
We have now looked at how we can add render views to the View Manager, how to switch and resize windows, and about some of the different types of views that exist. We've also seen that the Display options may differ depending on the view type.
Click on the Disconnect icon and choose Discard to clear the pipeline.