Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Graphical Views

  • Last UpdatedNov 13, 2025
  • 3 minute read

There are two types of Graphical view , namely 2D and 3D.

Different applications use 2D and 3D graphical views in different ways so each specific view gadget must be qualified by a view subtype which identifies its usage (or application).

The Forms and Menus system supports a standard 2D view subtype PLOT view, which is a non-interactive view capable of displaying Marine PLOT files.

Specific Marine applications support their own view subtypes, for example:

  • Design uses 3D view subtype VOLUME and 2D view subtype COMPARE

  • Draft uses 2D view subtype AREA and 3D view subtype VOLUME.

    Both 2D and 3D view types support a set of common members and methods. Some key ones are described below, before each subtype is dealt with.

For a full list of View members and methods, see the Software customization Reference Manual.

View Borders

Graphical views have optional sliders or scrollbars which allow modification of the view’s geometric transformation. They can be turned on or off using the .borders( !Boolean) method. If the border is switched off, the actual display area expands to fill the available space.

Aspect Ratio and View Gadgets

Note: When specifying the aspect ratio for a view that the corresponding ratios for ISO drawing sheet sizes are 0.7071 for portrait format and 1.414 for landscape format.

View Colours

Graphical views have two colours associated with them, namely the background colour and the highlight colour.

Setting Background and Highlight Colours

These can be set using the Background and Highlight members, either as integer colour indices or as colourname text strings:

!view.Background = ‘black’

!view.Background = 2

The highlight colour is the colour used to highlight selected items in the view. You can set it by

!view.Highlight = ‘white’

!view.Highlight = 1

Some view subtypes ignore this attribute.

Getting Background and Highlight Colours

You can get the background and highlight colour indices from the member variables or you can use the Highlight() and Background() methods that return the value of the respective property as a name string.

For instance, using the example above:

!colourname = !view.Background()

Would give us the string "black", and

!colourindex = !view.background

Would give us the integer colour index value 2.

Cursor Types

When the mouse cursor enters a graphical view, the View gadget determines what cursor type should be displayed for the user, or the representation to be assumed during a graphical interaction.

Some of he types of cursor available are:

Figure 20:4. Available Cursor Types

Note: The initial cursor type for VOLUME views is a Pointer, and you cannot re-define this.

You can specify the initial setting for the cursor type in a 2D view when you define the view gadget.

The default values for initial cursor types for Marine 2D view types are:

2D View Gadget

Cursor Type

PLOT

CROSSHAIR

Draft

CROSSHAIR

COMPARATOR

POINTER

You may use the CURSortype attribute command to set an initial cursor type within the gadget definition. For example:

Cursor POINTER

Related Links
TitleResults for “How to create a CRG?”Also Available in