Skip to main content

ZOS-API interface 2024 R2 SP02

ZOSAPI.Editors.NCE.IObjectSourcePoint Interface Reference

Last update: 17.07.2025
Inheritance diagram for ZOSAPI.Editors.NCE.IObjectSourcePoint:

Properties

IEditorCell ConeAngleCell [get]
 
double ConeAngle [get, set]
 
- Properties inherited from ZOSAPI.Editors.NCE.IObjectSources
IEditorCell NumberOfLayoutRaysCell [get]
 
IEditorCell NumberOfAnalysisRaysCell [get]
 
IEditorCell PowerCell [get]
 
IEditorCell WaveNumberCell [get]
 
IEditorCell ColorNumberCell [get]
 
int NumberOfLayoutRays [get, set]
 
int NumberOfAnalysisRays [get, set]
 
double Power [get, set]
 
int WaveNumber [get, set]
 
int ColorNumber [get, set]
 
- Properties inherited from ZOSAPI.Editors.NCE.IObject
ObjectType Type [get]
 
INCERow Row [get]
 
bool IsValid [get]
 
long Id [get]
 

Detailed Description

Usage (see Example 06 for a full sample)

C#

// modify object's cell values in the NCE
((IObjectSources)o1.ObjectData).NumberOfAnalysisRays = (int)1e6;
((IObjectSources)o1.ObjectData).NumberOfLayoutRays = 10;
((IObjectSourcePoint)o1.ObjectData).ConeAngle = 2.5;
o2.ZPosition = 1;
((IObjectDetectorRectangle)o2.ObjectData).XHalfWidth = 0.1;
((IObjectDetectorRectangle)o2.ObjectData).YHalfWidth = 0.1;
((IObjectDetectorRectangle)o2.ObjectData).NumberXPixels = 100;
((IObjectDetectorRectangle)o2.ObjectData).NumberYPixels = 100;
Definition: InterfacesNCE.cs:3274
Definition: InterfacesNCE.cs:4937
Definition: InterfacesNCE.cs:4712

C++

// modify object's cell values in the NCE
((IObjectSourcesPtr)o1->ObjectData)->NumberOfAnalysisRays = (int)1e6;
((IObjectSourcesPtr)o1->ObjectData)->NumberOfLayoutRays = 10;
((IObjectSourcePointPtr)o1->ObjectData)->ConeAngle = 2.5;
o2->ZPosition = 1;
((IObjectDetectorRectanglePtr)o2->ObjectData)->XHalfWidth = 0.1;
((IObjectDetectorRectanglePtr)o2->ObjectData)->YHalfWidth = 0.1;
((IObjectDetectorRectanglePtr)o2->ObjectData)->NumberXPixels = 100;
((IObjectDetectorRectanglePtr)o2->ObjectData)->NumberYPixels = 100;

Matlab

% modify object's cell values in the NCE
o1.ObjectData.NumberOfAnalysisRays = 1e6;
o1.ObjectData.NumberOfLayoutRays = 10;
o1.ObjectData.ConeAngle = 2.5;
o2.ZPosition = 1;
o2.ObjectData.XHalfWidth = 0.1;
o2.ObjectData.YHalfWidth = 0.1;
o2.ObjectData.NumberXPixels = 100;
o2.ObjectData.NumberYPixels = 100;

Python

# modify object's cell values in the NCE
o1.ObjectData.NumberOfAnalysisRays = 1e6
o1.ObjectData.NumberOfLayoutRays = 10
o1.ObjectData.ConeAngle = 2.5
o2.ZPosition = 1
o2.ObjectData.XHalfWidth = 0.1
o2.ObjectData.YHalfWidth = 0.1
o2.ObjectData.NumberXPixels = 100
o2.ObjectData.NumberYPixels = 100
Examples
CSharpStandalone_06_nsc_phase.cs, and CSharpStandalone_17_NSC_BulkScatter.cs.

Property Documentation

◆ ConeAngle

double ZOSAPI.Editors.NCE.IObjectSourcePoint.ConeAngle
getset

◆ ConeAngleCell

IEditorCell ZOSAPI.Editors.NCE.IObjectSourcePoint.ConeAngleCell
get

Connect with Ansys