GenerateTestData
Synopsis
Generates two kinds of uniform test datasets.
Parameters
| Name |
Type |
Description |
UI Control |
|
| pattern |
int |
The pattern of the output field |
Toggle |
| Width |
int |
The Width of the output field |
Slider |
| Height |
int |
The height of the output field |
Slider |
| Num_frames |
int |
The number of frames in the output field |
Slider |
|
Output Ports
| Name |
Type |
Description |
|
| out |
Mesh+Data |
Uniform field of test data |
|
Description
GenerateTestData can generate two kinds of uniform fields. The Field is constructed by a number of frames that have their size defined by the Width and Height parameters.
The pattern parameter decides the types of output field. If pattern is 0, the frames in the ouput field are assigned a uniform value. The value of each frame is increased progressively from the bottom frame to the top frame. If pattern is 1, each frame has linear increasing node data values from one side to the other side,
Note: The data type of the output field is integer.
Parameters
Pattern
Pattern has two possible values 0 or 1. Value 0 generates progressively increasing uniform field from bottom to top. Value 1 generates progressively increasing node data in each frame.
Width
The width of output field and also the width of each frame.
Height
The height of output field and also the height of each frame.
Num_frames
The number of frames in the output field
Outputs
out
The output field contains uniform mesh data and progressively increasing node data.
Utility Modules
The User Macro GenerateTestData makes use of the Functional Macro GenerateTestDataFunc and the UI Macro GenerateTestDataUI.
Example
An example application GenerateTestDataEg is provided, which demonstrates the structure of test data field using both orthoslice and isosurface.
Files
iac_proj/gentest/gtstmods.v contains the V definitions of the GenerateTestDataParams parameter block and the Generate_Test_Data module.
iac_proj/gentest/gtstmacs.v contains the V definitions of the GenerateTestDataFunc Functional Macro, the GenerateTestDataUI User Interface Macro, and the GenerateTestData User Macro.
iac_proj/gentest/gtstapps.v contains the V definition of the example application GenerateTestDataEg.
Author
Dave Goughnour
Advanced Visual Systems, Inc.
Modifications
MA YingLiang
Manchester Visualization Centre
Contact
International AVS Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL
|