ZOSAPI.SystemData.IFields Interface Reference
Last update: 17.07.2025System Explorer - Fields Data. This interface can be accessed via the ISystemData interface. More...
Public Member Functions | |
| IField | GetField (int position) |
| Gets the specified field. | |
| IField | AddField (double X, double Y, double Weight) |
| Add a new field, after all the current fields. | |
| bool | RemoveField (int position) |
| Removes the specified field. | |
| void | SetVignetting () |
| void | ClearVignetting () |
| FieldType | GetFieldType () |
| void | SetFieldType (FieldType type) |
| Sets the field type definition for all fields. | |
| bool | MakeEqualAreaFields (int numberOfFields, double maximumField) |
| Replaces the existing system fields with new fields spread over an equal area. | |
| IMessage | ApplyFieldWizard (FieldPattern pattern, int numberOfYFields, double maxFieldY, int numberOfXFields, double maxFieldX, int startAt, bool overwrite, bool includePickups) |
| Adds new system fields with specified in the specified pattern. | |
| IField | InsertFieldAt (int fieldNumber) |
| bool | DeleteFieldAt (int fieldNumber) |
| int | DeleteFieldsAt (int fieldNumber, int numberOfFields) |
| int | DeleteAllFields () |
| IMessage | ConvertToFieldType (FieldType type) |
Properties | |
| int | NumberOfFields [get] |
| Gets the number of fields currently defined in the system. | |
| FieldNormalizationType | Normalization [get, set] |
Detailed Description
System Explorer - Fields Data. This interface can be accessed via the ISystemData interface.
Member Function Documentation
◆ AddField()
| IField ZOSAPI.SystemData.IFields.AddField | ( | double | X, |
| double | Y, | ||
| double | Weight | ||
| ) |
Add a new field, after all the current fields.
Usage (see Example 01 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
X The field X value. Y The field Y value. Weight The field weight.
- Returns
- The new IField if there were less than twelve fields; otherwise, .null
◆ ApplyFieldWizard()
| IMessage ZOSAPI.SystemData.IFields.ApplyFieldWizard | ( | FieldPattern | pattern, |
| int | numberOfYFields, | ||
| double | maxFieldY, | ||
| int | numberOfXFields, | ||
| double | maxFieldX, | ||
| int | startAt, | ||
| bool | overwrite, | ||
| bool | includePickups | ||
| ) |
Adds new system fields with specified in the specified pattern.
- Parameters
-
pattern The new field pattern to use pattern. numberOfYFields The number of y fields or arms. maxFieldY The maximum field in the y-direction. numberOfXFields The number of x fields or radii. maxFieldX The maximum field in the x-direction. startAt The field # to start inserting or overwriting at. overwrite if set to trueoverwrite the fields data, else insert new fields.includePickups if set to trueadd pickups after the maximum field values.
- Returns
nullif successful, otherwise an error message
◆ ClearVignetting()
| void ZOSAPI.SystemData.IFields.ClearVignetting | ( | ) |
◆ ConvertToFieldType()
◆ DeleteAllFields()
| int ZOSAPI.SystemData.IFields.DeleteAllFields | ( | ) |
◆ DeleteFieldAt()
| bool ZOSAPI.SystemData.IFields.DeleteFieldAt | ( | int | fieldNumber | ) |
◆ DeleteFieldsAt()
| int ZOSAPI.SystemData.IFields.DeleteFieldsAt | ( | int | fieldNumber, |
| int | numberOfFields | ||
| ) |
◆ GetField()
| IField ZOSAPI.SystemData.IFields.GetField | ( | int | position | ) |
Gets the specified field.
Usage (see Example 12 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
position The field # to retrieve (1-MAX_FIELDS).
- Returns
- The specified IField, if the position is valid; otherwise,
null.
◆ GetFieldType()
| FieldType ZOSAPI.SystemData.IFields.GetFieldType | ( | ) |
◆ InsertFieldAt()
| IField ZOSAPI.SystemData.IFields.InsertFieldAt | ( | int | fieldNumber | ) |
◆ MakeEqualAreaFields()
| bool ZOSAPI.SystemData.IFields.MakeEqualAreaFields | ( | int | numberOfFields, |
| double | maximumField | ||
| ) |
Replaces the existing system fields with new fields spread over an equal area.
Usage (see Example 15 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
numberOfFields The number of fields. maximumField The maximum field.
- Returns
◆ RemoveField()
| bool ZOSAPI.SystemData.IFields.RemoveField | ( | int | position | ) |
Removes the specified field.
- Parameters
-
position The field # to remove (1-MAX_FIELDS).
- Returns
- if the position is valid and there was at least two fields in the system; otherwise,true.false
◆ SetFieldType()
| void ZOSAPI.SystemData.IFields.SetFieldType | ( | FieldType | type | ) |
Sets the field type definition for all fields.
Usage (see Example 12 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
type The new fields type.
◆ SetVignetting()
| void ZOSAPI.SystemData.IFields.SetVignetting | ( | ) |
Property Documentation
◆ Normalization
|
getset |
◆ NumberOfFields
|
get |
Gets the number of fields currently defined in the system.
Usage (see Example 22 for a full sample)
C#
C++
Matlab
Python
The number of fields.