70000073 Multi view Layout

Article 70000073
Type Wish
Product Engine
Date Added 9/20/2014 12:00:00 AM
Fixed (10/14/2014 12:00:00 AM)
Submitted by Peter Chanios

Summary

Multi view Layout

Solution

In version 7002 we added the ability to have a layout with multiple viewports.

A new class has been created derived form vdLayout and is called vdLayoutSplit.
This class is a layout but has some functionalities to enable multiview of a Document , easy for the user and the developer.
Important properties of this class are the following :
1)SplitStyle based on the following enum

The type of the LayoutSplit that determines the number and the position of the viewports.
public enum SplitStyleEnum
--One maximized viewport that covers all the LayoutSplit.
Single,

--Two vertical viewports.
Two_Vertical,

--Two horizontal viewports.
Two_Horizontal,

--One big viewport on the left and two viewports right.
Three_Right,

--One big viewport on the right and two viewports left.
Three_Left,

--One big viewport on the bottom and two viewports above.
Three_Above,

--One big viewport above and two viewports below.
Three_Below,

--Three vertical equal viewports.
Three_Vertical,

--Three horizontal equal viewports.
Three_Horizontal,

--Four equal viewports.
Four_Equal,

--Four viewports , three on the right.
Four_Right,

--Four viewports , three on the left.
Four_Left,

The type of the SplitStyle determines the number and the orientation of the viewed viewports.
2)Entities
The entities property will always return 4 viewports , the user cannot add or remove from this collection any entities. The viewports will always show the model's entities.

Also a new form has been added to the VectorDraw forms to help the user create or modify an existing vdLayoutSplit , like below.


A preview of this vdLayoutSplit

Send comments on this topic.