Visit Gigasoft's Web Site
 ProEssentials v9 Help

SubsetByPoint

Scope

Pego, Pesgo, Pepso, Pe3do, Pepco

Type

Boolean/Int32

Default

TRUE

.NET

PeData.SubsetByPoint

Ocx|Vcl

SubsetByPoint

DLL

PEP_bSUBSETBYPOINT

 

Purpose

This property controls how two dimensional property arrays (example, YData, XData) are stored internally. Two dimensional arrays are really stored as a series of bytes. This property controls how that series of bytes is structured.

 

Setting

Description

TRUE

Two dimensional data stored Subset by Point.

FALSE

Two dimensional data stored Point by Subset.

 

Comments

PeData.SubsetByPoint members of Pego.PeData, Pesgo.PeData, Pepso.PeData, Pe3do.PeData, Pepco.PeData

 

This property is only of consequence under two situations: 1) When you do not know either the number of subsets or points being graphed and want to incrementally add/subtract data to the graph in one pass (example, gathering data from an SQL statement), and 2) You need to adjust the number of subsets or points being graphed and also need to preserve the existing data already in the control.

 

This property facilitates the structuring of data so that additions and subtractions in data can be accomplished without mangling the existing data format and also allows optimizing performance in adding or subtracting data.

 

If this property is TRUE, 2d data is stored subset by point.

 

Subset by Point Data Format   

s1p1 s1p2 s1p3 s1p4 ... s1pj

s2p1 s2p2 s2p3 s2p4 ... s2pj

s3p1 s3p2 s3p3 s3p4 ... s3pj

... ... ... ... ... ...

sip1 sip2 sip3 sip4 ... sipj

 

This form allows for quick additions and subtractions of a subset(s) worth of data. In other words, adding/subtracting all points for a particular subset(s).

 

For example, your user can run from 1 to 10 equipment tests (1-10 subset) each consisting of 500 samples (500 points). You need to add test run results (increasing Subsets) without effecting the format of existing data.

 

When using the WinForm, OCX or VCL interfaces, or when using the PEvsetcellEx and PEvgetcellEx functions, the one dimensional offset is automatically calculated from the given subset and point indices. However, when using PEvsetcell or PEvgetcell, with two dimensional property arrays (like YData) calculating the zero based single dimensional index is as follows:

offset = (TargetSubset X Points) + TargetPoint

 

If this property is FALSE, 2d data is stored point by subset.

 

Point by Subset Data Format   

p1s1 p1s2 p1s3 p1s4 ... p1sj

p2s1 p2s2 p2s3 p2s4 ... p2sj

p3s1 p3s2 p3s3 p3s4 ... p3sj

... ... ... ... ... ...

pis1 pis2 pis3 pis4 ... pisj

 

This form allows for quick additions and subtractions of a point(s) worth of data. In other words, adding/subtracting all subsets for a particular point(s).

 

For example, you are executing an SQL statement gathering 5 fields of data (5 subsets) but you do not know how many records are contained in the database until after the SQL executes. In this form, you can efficiently increase the Points property with each new record read.

 

When using the WinForm, OCX or VCL interfaces, or when using the PEvsetcellEx and PEvgetcellEx functions, the one dimensional offset is automatically calculated from the given subset and point indices. However, when using PEvsetcell or PEvgetcell with two dimensional property arrays (like YData) calculating the zero based single dimensional index is as follows:

offset = (TargetPoint X Subsets) + TargetSubset