"primarySubViewport"

Allows to define the position and size of the primary sub viewport.

Synopsis

shape.primarySubViewport(dyn_int viewport);

Parameter

Parameter Description
viewport Position and size of the viewport as dyn_int [x position, y position, width, height]

Rückgabewert

Position und Größe des primären Viewports als dyn_int.

Description

If the selection mode is combined with the SelectionSlice flag (see "barSelectionMode") which means the 2D is shown, the primary sub viewport (the 3D graph in a small window) is displayed. The size and position of this window can be defined with this attribute.

Example

This example sets the viewport to position 0,0 (the upper left corner) and to a size of 100x100.

main()
{
  dyn_int i = makeDynInt(0,0,100,100);
  BarChart3D_ewo1.primarySubViewport(i);
}

Assignment

BarChart3D EWO