ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer Interface Reference
Last update: 17.07.2025
Inheritance diagram for ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer:

Public Member Functions | |
| string | GetNonSequentialSurfaceName (int index) |
| int | GetNonSequentialSurfaceNumber (int index) |
| string | GetDetectorName (int index) |
| int | GetDetectorObjectNumber (int index) |
| string | GetShowAsTypeNameAt (int idx) |
| bool | IsValidDetector (int N) |
Public Member Functions inherited from ZOSAPI.Analysis.Settings.IAS_ | |
| IMessages | Verify () |
| void | Save () |
| Saves the current settings to the default CFG file. | |
| void | Load () |
| Loads settings from the default CFG file. | |
| void | Reset () |
| Resets the settings back to the defaults for the current analysis. | |
| bool | SaveTo (string settingsFile) |
| Saves the current settings to the specified file. | |
| bool | LoadFrom (string settingsFile) |
| Replaces the current settings with settings read from the specified file. | |
| bool | ModifySettings (string settingsFile, string typeCode, string newValue) |
| Changes a single setting in the specified file. See the MODIFYSETTINGS DDE command help documentation for more information. | |
Properties | |
| IAS_Surface | Surface [get] |
| IAS_Detector | Detector [get] |
| DetectorViewerShowAsTypes | ShowAs [get, set] |
| DetectorViewerScaleTypes | Scale [get, set] |
| DetectorViewerShowDataTypes | DataType [get, set] |
| int | SymbolType [get, set] |
| int | Configuration [get, set] |
| int | ExtraProperty [get, set] |
| int | Smoothing [get, set] |
| int | RowCol [get, set] |
| int | Zplane [get, set] |
| UInt16 | Contrast [get, set] |
| UInt16[] | AngleList [get, set] |
| double | PlotScaleMinimum [get, set] |
| double | PlotScaleMaximum [get, set] |
| String | RayDatabaseFilename [get, set] |
| String | Filter [get, set] |
| String | OutFile [get, set] |
| bool | SuppressFrame [get, set] |
| int | NumberOfNonSequentialSurfaces [get] |
| int | NumberOfDetectorsOnSurface [get] |
| int | NumberOfShowAsTypes [get] |
| double | MaxSpatialFrequency [get, set] |
Detailed Description
Usage (see Example 10 for a full sample)
C#
// Open Detector Viewer, view previously saved .zrd file
IA_ DetectorView = TheSystem.Analyses.New_DetectorViewer();
DetectorView_Settings.RayDatabaseFilename = "e10_API_RayTrace.ZRD";
DetectorView_Settings.ShowAs = DetectorViewerShowAsTypes.FalseColor;
DetectorView_Settings.Filter = "X_HIT(2, 4)"; // Detector will only display rays which hit object 2 exactly 4 times
DetectorView.ApplyAndWaitForCompletion(); // Apply Settings to Detector Viewer
Base interface for all analysis windows. This interface can be accessed via the I_Analyses interface.
Definition: IA_Base.cs:29
IMessage ApplyAndWaitForCompletion()
Re-runs the analysis with the current settings and waits for it to finish calculating.
Definition: IAS_DetectorViewer.cs:23
C++
// Open Detector Viewer, view previously saved .zrd file
IA_Ptr DetectorView = TheSystem->Analyses->New_DetectorViewer();
IAS_DetectorViewerPtr DetectorView_Settings = DetectorView->GetSettings();
DetectorView_Settings->RayDatabaseFilename = "e10_API_Raytrace.ZRD";
DetectorView_Settings->ShowAs = DetectorViewerShowAsTypes_FalseColor;
// Detector will only display rays which hit object 2 exactly 4 times
DetectorView_Settings->Filter = "X_HIT(2, 4)";
// Apply Settings to Detector Viewer
DetectorView->ApplyAndWaitForCompletion();
Matlab
% Open Detector Viewer, view previously saved .zrd file
DetectorView = TheSystem.Analyses.New_DetectorViewer();
DetectorView_Settings = DetectorView.GetSettings();
DetectorView_Settings.RayDatabaseFilename = 'e10_API_Raytrace.ZRD';
DetectorView_Settings.Filter = 'X_HIT(2, 4)'; % Detector will only display rays which hit object 2 exactly 4 times
DetectorView.ApplyAndWaitForCompletion(); % Apply Settings to Detector Viewer
Definition: IAS_FieldCurvatureAndDistortion.cs:5
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5
Python
# Open Detector Viewer, view previously saved .zrd file
DetectorView = TheSystem.Analyses.New_DetectorViewer()
DetectorView_Settings = DetectorView.GetSettings()
DetectorView_Settings.RayDatabaseFilename = "e10_API_Raytrace.ZRD"
DetectorView_Settings.ShowAs = ZOSAPI.Analysis.DetectorViewerShowAsTypes.FalseColor
DetectorView_Settings.Filter = "X_HIT(2, 4)" # Detector will only display rays which hit object 2 exactly 4 times
DetectorView.ApplyAndWaitForCompletion() # Apply Settings to Detector Viewer
Member Function Documentation
◆ GetDetectorName()
| string ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.GetDetectorName | ( | int | index | ) |
◆ GetDetectorObjectNumber()
| int ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.GetDetectorObjectNumber | ( | int | index | ) |
◆ GetNonSequentialSurfaceName()
| string ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.GetNonSequentialSurfaceName | ( | int | index | ) |
◆ GetNonSequentialSurfaceNumber()
| int ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.GetNonSequentialSurfaceNumber | ( | int | index | ) |
◆ GetShowAsTypeNameAt()
| string ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.GetShowAsTypeNameAt | ( | int | idx | ) |
◆ IsValidDetector()
| bool ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer.IsValidDetector | ( | int | N | ) |
Property Documentation
◆ AngleList
|
getset |
◆ Configuration
|
getset |
◆ Contrast
|
getset |
◆ DataType
|
getset |
◆ Detector
|
get |
- Examples
- CSharpStandalone_24_nsc_detectors.cs.
◆ ExtraProperty
|
getset |
◆ Filter
|
getset |
◆ MaxSpatialFrequency
|
getset |
◆ NumberOfDetectorsOnSurface
|
get |
◆ NumberOfNonSequentialSurfaces
|
get |
◆ NumberOfShowAsTypes
|
get |
◆ OutFile
|
getset |
◆ PlotScaleMaximum
|
getset |
◆ PlotScaleMinimum
|
getset |
◆ RayDatabaseFilename
|
getset |
◆ RowCol
|
getset |
◆ Scale
|
getset |
◆ ShowAs
|
getset |
Usage (see Example 24 for a full sample)
C#
// Creates a new detector viewer analysis reference
ZOSAPI.Analysis.IA_ d4 = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.DetectorViewer);
ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer d4_settings = d4.GetSettings() as ZOSAPI.Analysis.Settings.RayTracing.IAS_DetectorViewer;
d4_settings.Detector.SetDetectorNumber(4);
ZOSAPI.Analysis.Data.IAR_ d4_Results = d4.GetResults();
ZOSAPI.Analysis.Data.IAR_DataGridRgb d4_raw = d4_Results.GetDataGridRgb(0) as ZOSAPI.Analysis.Data.IAR_DataGridRgb;
Definition: IAR_Base.cs:286
Properties and methods for retrieving analysis window data. This interface can be accessed via the IA...
Definition: IAR_Base.cs:21
IAR_DataGridRgb GetDataGridRgb(int index)
IAR_ GetResults()
Gets the result data (if available) for the current analysis.
IMessage SetDetectorNumber(int N)
IAS_Detector Detector
Definition: IAS_DetectorViewer.cs:25
Definition: IAR_Base.cs:11
Definition: IAS_DetectorViewer.cs:6
Definition: IAS_FieldCurvatureAndDistortion.cs:5
C++
// Creates a new detector viewer analysis reference
IA_Ptr d4 = TheSystem->Analyses->New_Analysis(AnalysisIDM::AnalysisIDM_DetectorViewer);
IAS_DetectorViewerPtr d4_settings = d4->GetSettings();
d4_settings->Detector->SetDetectorNumber(4);
d4_settings->ShowAs = DetectorViewerShowAsTypes_TrueColor;
d4->ApplyAndWaitForCompletion();
IAR_Ptr d4_results = d4->GetResults();
IAR_DataGridRgbPtr d4_raw = d4_results->GetDataGridRgb(0);
Matlab
d4_settings = d4.GetSettings();
d4_settings.Detector.SetDetectorNumber(4);
d4.ApplyAndWaitForCompletion();
d4_Results = d4.GetResults();
d4_raw = d4_Results.DataGridsRgb.Get(0);
Python
# Creates a new detector viewer analysis reference, changes to TrueColor for RGB extraction
d4 = TheSystem.Analyses.New_Analysis(ZOSAPI.Analysis.AnalysisIDM.DetectorViewer)
det_settings = d4.GetSettings()
det_settings.ShowAs = ZOSAPI.Analysis.DetectorViewerShowAsTypes.TrueColor
det_settings.Detector.SetDetectorNumber(4);
d4.ApplyAndWaitForCompletion()
d4_Results = d4.GetResults()
d4_raw = d4_Results.GetDataGridRgb(0)
◆ Smoothing
|
getset |
◆ SuppressFrame
|
getset |
◆ Surface
|
get |
◆ SymbolType
|
getset |
◆ Zplane
|
getset |
Public Member Functions inherited from