Module View
See also
opals::IView

Aim of module

Provides an interactive 3d viewer for points (including arbitrary attributes) and lines.

Requirements for usage of opalsView

This module requires the installation of the Option: Matlab Runtime.

General description

The main purpose of this module is the visualization of point clouds in the ODM or LAS format. The main features of opalsView are:

  • simultaneuos visualization of multiple point clouds
  • color coding of point clouds based on coordinates or point attributes
  • independent visualization parameters (e.g. unique color, point size or visibility) for each point cloud
  • easy mouse navigation within the point clouds
  • query coordinates and attribute values for single points using the Data Cursor
  • histogram of coordinates or point attributes
  • export of high resolution screen shots
  • visualization of normal vectors (if present in the ODM)
  • visualization of profiles
  • visualization of 3d shapefiles
  • visualization of DEMs in GeoTiff format
Figure 1: Color-coding of point clouds using Z coordinate and point attributes from data cursor.

Navigation Mode

The user can navigate through the point clouds with the mouse in the following way:

  • Pan with the left mouse button
  • Zoom with the middle mouse button (i.e. wheel)
  • Rotate with the right mouse button

The point around which the rotation is performed is highlighted with a red-green-blue axis tripod while pressing the right mouse button. It can be repositioned by additionally clicking r on the keyboard.

In the options, accessible with the button in the toolbar, the navigation actions of the left and right mouse button can be swapped, as well as the direction of zooming with the wheel (i.e., in and out). Note, the options are accessible also in the main configuration file opals.cfg.

Data Limits

Because of memory limitations not all points of all opened point clouds can be displayed at once. Therefore, for each point cloud only a certain number of points MaxPoints is shown. The user can control the displayed point clouds in the following way:

  • setting MaxPoints for each point cloud individually, or for all at once (menue All PCs)
  • turning on or off the visibility of individual point clouds in their respective menue entry (Visible and Visible Only)
  • defining a region of interest by specifing User Limits for each point cloud individually, or for all at once

The interface for defining User Limits allows to adopt the current view as new User Limits. If the current view is oblique the view is automatically changed to the closest main view. The coordinate limits in this main viewing direction are taken from the respective extents of the individual or all point clouds (called File Limits). For example, if a zoomed in area shall serve as new User Limits and this area is currently visible in the ground view (showing X and Y), then the X and Y extent of the User Limits are defined by the visible extent in the opalsView window, and the Z extent is taken from the respective File Limits of the active point cloud(s). The interface also cooperates with the clipboard to copy/paste coordinate limits.

By pressing the button Apply (instead of OK) the interface does not close. Instead, the user could change the main view, e.g. switching from XY to XZ view, turn on the coordinate axis display , read off meaningfull Z limits, key these in the respective fields of the interface, and then close it with OK. This way, all three coordinate limits can be defined easily.

The interface for setting new user limits is accessible by the button in the toolbar, or the shortcut Ctrl+L. Pressing the key u on the keyboard bypasses the interface and immediately sets the current view to the new User Limits for all point clouds.

The user can select the displayed points according to the current User Limits or the original File Limits for each opened point cloud individually or all at once using the respective menus. Additionally, the following buttons in the toolbar can be used for setting them for all point clouds: and

Data Cursor

The data cursor (button in the toolbar) can be used to show and compare point attributes of multiple point clouds. If a point is selected in the point cloud, the corresponding attributes are displayed in a new window. The attributes to be analysed, can be selected in the menues by DataCursor --> Select attributes. To show or hide point clouds in the attribute table click DataCursor --> Show PC attributes. If multiple point clouds are opened, the closest points from different point clouds can be selected using a snap radius, which can be specified in the Options dialog in the toolbar.

During Data Cursor mode, the normal navigation (rotation, pan, zoom) with the mouse is not possible. Closing the attribute window or clicking the toolbar button again, exits Data Cursor mode.

Profile Modi

Two profile modi are supported and triggered by clicking in the toolbar:

  • the normal profile, which is defined by two points
  • the profile sliding along a polyline for which more than two points must be digitized

The digitization of the respective points is done by clicking the left mouse button, and then a click with the right mouse button ends it. The number of digitized points triggers the respective profile mode. The user is asked for the width of the profile (orthogonal to the profile plane) and, in case of the sliding mode, the length of the profile (orthogonal to the polyline).

After definition of the profile points, the profile can be interactively changed by pressing the keyboard:

  • Page Up/Down: shifts the profile orthogonal the profile plane (in the normal mode), or in direction of the polyline (in the sliding mode)
  • +/- keys: increase/decrease the profile width
  • Home/End keys: rotate the profile plane (only in normal mode)

Holding down the Cntrl key accelerates the respective changes.

Note that during any profile mode, the user still can perform the normal navigation actions (pan, zoom, rotation). In order to return to the respective (frontal) profile view, just press the button View last profile on the toolbar. During sliding mode, everytime the ground view (XY) is selected, the polyline becomes visible. Particularly, clicking the View last profile button while a profile is actually visible in frontal view, returns to the exact ground view when the polyline was defined.

Clicking on the toolbar button Reset View all PCs exits the profile mode.

Figure 2: Defining a normal profile and its appearance in (frontal) profile view.
Figure 3: Defining a polyline and, after sliding along it, a profile location that roughly corresponds to the one in Fig. 2.

The Toolbar

The toolbar contains the following buttons. Any action triggered there affects all point clouds.

Figure 4: The opalsView toolbar.

Parameter description

-inFileinput files
Type: opals::Vector<opals::Path>
Remarks: mandatory
The specified input file while be loaded into the viewer
-filtermodify the input using a (tree of) filter(s)
Type: opals::String
Remarks: optional
A filter string in EBNF syntax as described in section 'Filter syntax' can be passed to restrict the input data set (e.g. to consider last echoes only)
-swapMouseButtonsswap left right mouse buttons
Type: bool
Remarks: default=0
When enabled, the left and right mouse button functions are swapped for 3D navigation.
-invertMouseWheelinvert mouse wheel for zooming
Type: bool
Remarks: default=0
When enabled, the mouse wheel's zoom direction is reversed in the 3D View.
-textColortext color
Type: opals::RGBColor
Remarks: default=RGB(179,179,179)
color of text within the 3d view
RGBColor: Defines an RGB color values with three integer values (0-255), three normalized floating point values in square brakets or in hexadecimal color notation.
Syntax: RGB(0-255,0-255,0-255) | 0-255,0-255,0-255 | [0-1,0-1,0-1] | #RRGGBB
-backgroundColorbackground color
Type: opals::RGBColor
Remarks: default=RGB(0,0,0)
background color wihtin the 3d view
RGBColor: Defines an RGB color values with three integer values (0-255), three normalized floating point values in square brakets or in hexadecimal color notation.
Syntax: RGB(0-255,0-255,0-255) | 0-255,0-255,0-255 | [0-1,0-1,0-1] | #RRGGBB
-normalsColornormals color
Type: opals::RGBColor
Remarks: default=RGB(255,0,255)
color for plotting normals within the 3d view
RGBColor: Defines an RGB color values with three integer values (0-255), three normalized floating point values in square brakets or in hexadecimal color notation.
Syntax: RGB(0-255,0-255,0-255) | 0-255,0-255,0-255 | [0-1,0-1,0-1] | #RRGGBB
-maxPointsDisplayedmaximum points displayed per point cloud
Type: uint32
Remarks: default=1000000
To ensure responsive 3D navigation, each point cloud is reduced to the specified maximum number of points
-profileWidthdefault profile width
Type: double
Remarks: default=1
Default profile width in the along-profile direction for the profile viewing feature.
-profileLengthdefault profile length
Type: double
Remarks: default=30
Default profile length in the across-profile direction for the profile viewing feature.
-colorStretchPercentperecentage for stretching the color palette
Type: double
Remarks: default=5
To achieve appropriate colorization without being affected by extreme outliers, the selected color bar is stretched between the specified lower and upper percentiles of the attribute value distribution. For example, a value of 5 means that the 5th and 95th percentiles are used as the lower and upper limits for the color mapping, respectively.
-snapRadiussnap radius for the data cursor
Type: double
Remarks: default=0.1
This 3D distance defines the snapping radius for point selection using the data cursor. If points fromother point clouds fall within the specified radius, they are also selected for attribute inspection.
-normalsScalescaling for displaying normals
Type: double
Remarks: default=1
Allows scaling the length of the displayed normal vectors.
-screenShotResolutionResolution for screen shots in DPI
Type: uint32
Remarks: default=150
This option allows screenshots to be captured at a higher resolution than the native screen resolution.
-nbAttributesPerMenumaximum entries for attribute menus
Type: uint32
Remarks: default=30
To improve menu organization and accessibility, large numbers of point cloud attributes are distributed across multiple attribute menus. This value specifies the maximum number of attributes displayed per menu.

Examples

The data used in the following examples can be found in the $OPALS_ROOT/demo/ directory.

Visualization of multiple point clouds

In this example three ALS strips are visualized using opalsView. As a first step, we have to import the strips, which are given in las format, using Module Import :

opalsImport -inFile G111.las -outFile G111.odm
opalsImport -inFile G112.las -outFile G112.odm
opalsImport -inFile G113.las -outFile G113.odm

Now opalsView can be called:

opalsView -inFile G111.odm G112.odm G113.odm

Using the menue entry All PCs --> Color --> Unicolor --> by PC, or simplying clicking in the toolbar, colorizes each point cloud with a unique color.

Figure 5: Visualization of multiple point clouds.

Visualization of normal vectors and histogram

If the ODM file contains informations about the normal vectors, they can be visualized with opalsView. First, let's import the point cloud and estimate the normal vectors:

opalsImport -inFile G111.las -outFile G111.odm
opalsNormals -inFile G111.odm

Now opalsView can be called to visualize the point cloud together with the normal vectors:

opalsView -inFile G111.odm
Figure 6: Visualization of normal vectors.

Coloring and lenght of the normal vectors can be adjusted in the options. A histogram of the currently displayed points can be opened with the histogram button in the toolbar of opalsView. Here the horizontal range of the histogram ist limited by the 1. and 99. percentile (which is also the default) to not waste space with possible outliers:

Figure 7: Histogram of NormalSigma0.

Visualization of DEM

In opalsView a DEM (in GeoTiff format) can be visualized together with the point clouds. First, the DEM is estimated using Module Grid :

opalsImport -inFile G111.las -outFile G111.odm
opalsGrid -inFile G111.odm -interpolation movingPlanes

After opening the file in opalsView, the DEM can be added with the "DEM" button in the toolbar:

opalsView -inFile G111.odm
Figure 8: DEM visualization.

References

Author
pg, car, jo
Date
10.10.2026
opalsNormals is the executable file of Module Normals
Definition: ModuleExecutables.hpp:168
@ movingPlanes
moving (tilted) plane interpolation
opalsImport is the executable file of Module Import
Definition: ModuleExecutables.hpp:128
opalsView is the executable file of Module View
Definition: ModuleExecutables.hpp:273
opalsGrid is the executable file of Module Grid
Definition: ModuleExecutables.hpp:103