ZOSAPI.Editors.NCE Namespace Reference
Last update: 17.07.2025Classes | |
| interface | IFaceData |
| Contains face vertex, normal, intensity, and power data for all facets of detector objects. More... | |
| interface | IImportanceSamplingSettings |
| interface | IIMS_Birefringent |
| Index Model - Birefringent. This interface can be accessed via the INCEIndexData interface. More... | |
| interface | IIMS_GRIN |
| Index Model - Gradient Index. This interface can be accessed via the INCEIndexData interface. More... | |
| interface | IIMS_Isotropic |
| Index Model - Isotropic. This interface can be accessed via the INCEIndexData interface. More... | |
| interface | IIndexModelSettings |
| Base interface for all specific NCEIndexType settings. This interface can be accessed via the INCEIndexData interface. Note that the "_S_" properties are convenience methods for retrieving the derived interface for the specific index model settings. More... | |
| interface | INCECADData |
| Object properties CAD tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCECoatingPerformanceData |
| interface | INCECoatingPerformanceFaceData |
| interface | INCECoatScatterData |
| Object properties Coat/Scatter tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCECoatScatterFaceData |
| Coat/Scatter settings for a specific face. This interface can be accessed via the INCECoatScatterData interface. More... | |
| interface | INCEDiffractionData |
| Object properties Diffraction tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCEDrawData |
| Object properties Draw tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCEIndexData |
| Object properties Index tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCERow |
| All data for a Non-Sequential Component Editor object. This interface can be accessed via the INonSeqEditor interface. More... | |
| interface | INCEScatterToData |
| Object properties Scatter To tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCESourcesData |
| Object properties Sources tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCETypeData |
| Object properties Type tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INCEVolumePhysicsData |
| Object properties Volume Physics tab. This interface can be accessed via the INCERow interface. More... | |
| interface | INonSeqEditor |
| This interface defines all properties and methods needed to interact with the Non-Sequential Component Editor. This interface can be accessed via the IOpticalSystem interface. More... | |
| interface | IObject |
| interface | IObjectAnnularAsphericLens |
| interface | IObjectAnnularAxialLens |
| interface | IObjectAnnularVolume |
| interface | IObjectAnnulus |
| interface | IObjectArray |
| interface | IObjectArrayRing |
| interface | IObjectAsphericSurface |
| interface | IObjectAsphericSurface2 |
| interface | IObjectAxiconSurface |
| interface | IObjectBiconicLens |
| interface | IObjectBiconicSurface |
| interface | IObjectBiconicZernike |
| interface | IObjectBiconicZernikeSurface |
| interface | IObjectBinary1 |
| interface | IObjectBinary2 |
| interface | IObjectBinary2A |
| interface | IObjectBoolean |
| interface | IObjectBooleanNative |
| interface | IObjectCADAssemblyAutodeskInventor |
| interface | IObjectCADAssemblyCreoParametric |
| interface | IObjectCADAssemblySolidWorks |
| interface | IObjectCADPartAutodeskInventor |
| interface | IObjectCADPartCreoParametric |
| interface | IObjectCADPartSolidWorks |
| interface | IObjectCADPartSTEPIGESSAT |
| interface | IObjectCADPartSTL |
| interface | IObjectCADPartZPD |
| interface | IObjectCompoundLens |
| interface | IObjectCone |
| interface | IObjectCPC |
| interface | IObjectCPCRectangular |
| interface | IObjectCylinder2Pipe |
| interface | IObjectCylinder2Volume |
| interface | IObjectCylinderPipe |
| interface | IObjectCylinderVolume |
| interface | IObjectDetector |
| interface | IObjectDetectorColor |
| interface | IObjectDetectorPolar |
| interface | IObjectDetectorRectangle |
| interface | IObjectDetectorSurface |
| interface | IObjectDetectorVolume |
| interface | IObjectDiffractionGrating |
| interface | IObjectDualBEFSurface |
| interface | IObjectEllipse |
| interface | IObjectEllipticalVolume |
| interface | IObjectEvenAsphereLens |
| interface | IObjectExtendedOddAsphereLens |
| interface | IObjectExtendedPolynomialLens |
| interface | IObjectExtendedPolynomialSurface |
| interface | IObjectExtruded |
| interface | IObjectFacetedSurface |
| interface | IObjectFreeformZ |
| interface | IObjectFresnel1 |
| interface | IObjectFresnel2 |
| interface | IObjectGridSagFrontBack |
| interface | IObjectGridSagLens |
| interface | IObjectGridSagSurface |
| interface | IObjectHexagonalLensletArray |
| interface | IObjectHologramLens |
| interface | IObjectHologramSurface |
| interface | IObjectJonesMatrix |
| interface | IObjectLensletArray1 |
| interface | IObjectLensletArray2 |
| interface | IObjectMEMS |
| interface | IObjectNullObject |
| interface | IObjectOddAsphereLens |
| interface | IObjectOffAxisMirror |
| interface | IObjectParaxialLens |
| interface | IObjectPolygon |
| interface | IObjectQTypeAsphereSurface |
| interface | IObjectRayRotator |
| interface | IObjectRectangle |
| interface | IObjectRectangularCorner |
| interface | IObjectRectangularPipe |
| interface | IObjectRectangularPipeGrating |
| interface | IObjectRectangularRoof |
| interface | IObjectRectangularTorusSurface |
| interface | IObjectRectangularTorusVolume |
| interface | IObjectRectangularVolume |
| interface | IObjectRectangularVolumeGrating |
| interface | IObjectReverseRadianceDetector |
| interface | IObjectReverseRadianceTarget |
| interface | IObjectScatteringSettings |
| Scatter model settings for a specific face. This interface can be accessed via the INCECoatScatterFaceData interface. Note that the "_S_" properties are convenience methods for retrieving the derived interface for the specific scattering type settings. More... | |
| interface | IObjectSlide |
| interface | IObjectSourceDiffractive |
| interface | IObjectSourceDiode |
| interface | IObjectSourceDLL |
| interface | IObjectSourceEllipse |
| interface | IObjectSourceEULUMDATFile |
| interface | IObjectSourceFilament |
| interface | IObjectSourceFile |
| interface | IObjectSourceGaussian |
| interface | IObjectSourceIESNAFile |
| interface | IObjectSourceImported |
| interface | IObjectSourceObject |
| interface | IObjectSourcePoint |
| interface | IObjectSourceRadial |
| interface | IObjectSourceRay |
| interface | IObjectSourceRectangle |
| interface | IObjectSources |
| interface | IObjectSourceTube |
| interface | IObjectSourceTwoAngle |
| interface | IObjectSourceVolumeCylindrical |
| interface | IObjectSourceVolumeElliptical |
| interface | IObjectSourceVolumeRectangular |
| interface | IObjectSphere |
| interface | IObjectStandardLens |
| interface | IObjectStandardSurface |
| interface | IObjectSwept |
| interface | IObjectTabulatedFactedRadial |
| interface | IObjectTabulatedFactedToroid |
| interface | IObjectTabulatedFrenselRadial |
| interface | IObjectToroidalHologram |
| interface | IObjectToroidalLens |
| interface | IObjectToroidalSurface |
| interface | IObjectToroidalSurfaceOddASphere |
| interface | IObjectTorusSurface |
| interface | IObjectTorusVolume |
| interface | IObjectTriangle |
| interface | IObjectTriangularCorner |
| interface | IObjectTypeSettings |
| This interface is used for selecting any files required by a object, and for changing object types. This interface can be accessed via the INCERow interface. More... | |
| interface | IObjectUserDefinedObject |
| interface | IObjectWolterSurface |
| interface | IObjectXYPolynomial |
| interface | IObjectZernikeSurface |
| interface | IOSS_ABg |
| Object Scattering Settings - ABg. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_ABgFile |
| Object Scattering Settings - ABg File. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_BSDF |
| Object Scattering Settings - BSDF. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_Gaussian |
| Object Scattering Settings - Gaussian. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_ISScatterCatalog |
| Object Scattering Settings - IS Scatter Catalog. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_Lambertian |
| Object Scattering Settings - Lambertian. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_None |
| Object Scattering Settings - None. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | IOSS_User |
| Object Scattering Settings - User. This interface can be accessed via the INCECoatScatterFaceData interface. More... | |
| interface | ISCS_BlackBodySpectrum |
| Source Color Mode - Black Body Spectrum. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_CIE1931Chromaticity |
| Source Color Mode - CIE 1931 Chromaticity xy. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_CIE1931RGB |
| Source Color Mode - CIE 1931 RGB (Saturated). This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_CIE1931Tristimulus |
| Source Color Mode - CIE 1931 Tristimulus XYZ. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_CIE1976 |
| Source Color Mode - CIE 1976 Chromaticity u' v'. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_ColorTemperature |
| Source Color Mode - Color Temperature. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_D65White |
| Source Color Mode - D65 White. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_SpectrumFile |
| Source Color Mode - Spectrum File. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_SystemWavelengths |
| Source Color Mode - System Wavelengths. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISCS_UniformPowerSpectrum |
| Source Color Mode - Uniform Power Spectrum. This interface can be accessed via the INCESourcesData interface. More... | |
| interface | ISourceColorSettings |
| Base interface for all specific SourceColorMode settings. This interface can be accessed via the INCESourcesData interface. Note that the "_S_" properties are convenience methods for retrieving the derived interface for the specific source color settings. More... | |
| interface | IVMPS_AngleScattering |
| Volume Physics Model - Angle Scattering. This interface can be accessed via the INCEVolumePhysicsData interface. More... | |
| interface | IVMPS_DLLDefinedScattering |
| Volume Physics Model - DLL Defined Scatering. This interface can be accessed via the INCEVolumePhysicsData interface. More... | |
| interface | IVMPS_PhotoluminscenceModel |
| Volume Physics Model - Phosphors and Fluorescence. This interface can be accessed via the INCEVolumePhysicsData interface. More... | |
| interface | IVolumePhysicsModelSettings |
| Base interface for all specific VolumePhysicsModelType settings. This interface can be accessed via the INCEVolumePhysicsData interface. Note that the "_S_" properties are convenience methods for retrieving the derived interface for the specific volume physics model settings. More... | |
| interface | IVPMS_None |
| Volume Physics Model - None. This interface can be accessed via the INCEVolumePhysicsData interface. More... | |
Detailed Description
Usage (see Example 21 for a full sample)
C#
// Set 4th object as Standard Lens
INCERow Object_4 = TheNCE.GetObjectAt(4);
Object_4.ChangeType(Typeset_StandardLens);
// Set positions
// To set solve for any cell, you need to first create a "ISolveData" by "CreateSolveType()" method.
// And then assign it to the cell.
ISolveData Solve_ObjPick = Object_4.GetObjectCell(ObjectColumn.Material).CreateSolveType(SolveType.ObjectPickup);
Solve_ObjPick._S_ObjectPickup.Object = 3;
// Set parameters
double DoubleValue
Gets or sets the double precision value of this cell. Note that if DataType is not CellDataType....
Definition: InterfacesEditors.cs:340
SolveStatus SetSolveData(ISolveData Data)
Updates the system with the new solve type settings (see also CreateSolveType and GetSolveData).
ISolveData CreateSolveType(SolveType type)
Creates the solve type settings for the specified solve type. Note that SetSolveData must be used to ...
Base interface for all solve types. This interface can be accesed via the IEditorCell interface....
Definition: InterfacesEditors.cs:563
All data for a Non-Sequential Component Editor object. This interface can be accessed via the INonSeq...
Definition: InterfacesNCE.cs:1198
bool ChangeType(IObjectTypeSettings settings)
Changes the current object to the specified type. Use GetObjectTypeSettings to get the relevant setti...
IEditorCell GetObjectCell(ObjectColumn Col)
Gets the specified object cell data.
IObjectTypeSettings GetObjectTypeSettings(ObjectType type)
Create the settings for the specified type. Use this method to specify any extra data required to cha...
This interface is used for selecting any files required by a object, and for changing object types....
Definition: InterfacesNCE.cs:1110
ObjectType
All supported non-sequential object types.
Definition: InterfacesNCE.cs:38
SolveType
All solve types available. Note that only a portion of the types are available for any given IEditorC...
Definition: InterfacesEditors.cs:483
C++
// Set 4th object as Standard Lens
INCERowPtr Object_4 = TheNCE->GetObjectAt(4);
IObjectTypeSettingsPtr Typeset_StandardLens = Object_4->GetObjectTypeSettings(ObjectType_StandardLens);
Object_4->ChangeType(Typeset_StandardLens);
// Set positions
Object_4->GetObjectCell(ObjectColumn_ZPosition)->DoubleValue = 0.9;
// To set solve for any cell, you need to first create a "ISolveData" by "CreateSolveType()" method.
// And then assign it to the cell.
ISolveDataPtr Solve_ObjPick = Object_4->GetObjectCell(ObjectColumn_Material)->CreateSolveType(SolveType_ObjectPickup);
Solve_ObjPick->_S_ObjectPickup->Object = 3;
// Set parameters
Object_4->GetObjectCell(ObjectColumn_Material)->SetSolveData(Solve_ObjPick);
Object_4->GetObjectCell(ObjectColumn_Par3)->DoubleValue = 1.2;
Object_4->GetObjectCell(ObjectColumn_Par4)->DoubleValue = 1.2;
Object_4->GetObjectCell(ObjectColumn_Par5)->DoubleValue = 1.2;
Object_4->GetObjectCell(ObjectColumn_Par6)->DoubleValue = -1.2;
Object_4->GetObjectCell(ObjectColumn_Par8)->DoubleValue = 1.2;
Object_4->GetObjectCell(ObjectColumn_Par9)->DoubleValue = 1.2;
Matlab
% Set 4th object as Standard Lens
Object_4 = TheNCE.GetObjectAt(4);
Object_4.ChangeType(Typeset_StandardLens);
% Set positions
% To set solve for any cell, you need to first create a "ISolveData" by "CreateSolveType()" method.
% And then assign it to the cell.
Solve_ObjPick = Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Material).CreateSolveType(ZOSAPI.Editors.SolveType.ObjectPickup);
Solve_ObjPick.S_ObjectPickup_.Object = 3;
% Set parameters
Definition: InterfacesNCE.cs:19
Definition: InterfacesEditors.cs:12
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5
Python
# Set 4th object as Standard Lens
Object_4 = TheNCE.GetObjectAt(4)
Typeset_StandardLens = Object_4.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.StandardLens)
Object_4.ChangeType(Typeset_StandardLens)
# Set positions
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.ZPosition).DoubleValue = 0.9
# To set solve for any cell, you need to first create a "ISolveData" by "CreateSolveType()" method.
# And then assign it to the cell.
Solve_ObjPick = Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Material).CreateSolveType(ZOSAPI.Editors.SolveType.ObjectPickup)
Solve_ObjPick._S_ObjectPickup.Object = 3
# Set parameters
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Material).SetSolveData(Solve_ObjPick)
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par3).DoubleValue = 1.2
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par4).DoubleValue = 1.2
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par5).DoubleValue = 1.2
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par6).DoubleValue = -1.2
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par8).DoubleValue = 1.2
Object_4.GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par9).DoubleValue = 1.2
Enumeration Type Documentation
◆ ApertureShapes
◆ ArrayMode
◆ BirefringentMode
◆ BirefringentReflections
◆ DetectorDataType
Usage (see Example 24 for a full sample)
C#
// Saves current system in memory
TheSystem.SaveAs(TheApplication.SamplesDir + "\\API\\CS\\e24_nsc_detectors.zos");
C++
// saves current system in memory
TheSystem->SaveAs((_bstr_t)TheApplication->SamplesDir + "\\API\\CPP\\e24_nsc_detectors.zos");
Matlab
% saves current system in memory
TheSystem.Save();
Python
# saves current system in memory
TheSystem.Save()
| Enumerator | |
|---|---|
| Real | |
| Imaginary | |
| Amplitude | |
| Power | |
◆ DetectorShowAsType
◆ DiffractionSplitType
◆ DiffractiveFaceChoices
◆ DrawingResolutionType
◆ EfficiencySpectrumType
◆ EndCapOptions
◆ FaceIsType
◆ HologramTypes
◆ InterpolateChoices
◆ NCEIndexType
◆ ObjectColumn
Usage (see Example 24 for a full sample)
C#
// Sets layout rays based on parameter number
// Sets analysis rays based on object data column
ZOSAPI.Editors.NCE.IObjectSourceEllipse sourcedata = o1.ObjectData as ZOSAPI.Editors.NCE.IObjectSourceEllipse;
sourcedata.NumberOfAnalysisRays = (int)1E6;
Definition: InterfacesNCE.cs:4809
C++
// Sets layout rays based on parameter number
TheNCE->GetObjectAt(1)->GetObjectCell(ObjectColumn_Par1)->IntegerValue = 100;
// Sets analysis rays based on object data column
IObjectSourcesPtr sourcedata = o1->ObjectData;
sourcedata->NumberOfAnalysisRays = (int)1E6;
Matlab
% Sets layout rays based on parameter number
% Sets analysis rays based on object data column
TheNCE.GetObjectAt(1).ObjectData.NumberOfAnalysisRays = 1E6;
Python
# Sets layout rays based on parameter number
TheNCE.GetObjectAt(1).GetObjectCell(ZOSAPI.Editors.NCE.ObjectColumn.Par1).IntegerValue = 100
# Sets analysis rays based on object data column
o1.ObjectData.NumberOfAnalysisRays = 1E6
◆ ObjectScatteringTypes
Usage (see Example 21 for a full sample)
C#
// Make Face 1 of object 3 has Lambertian scattering properties
// To set scatter properties, you need to first create "ScatteringSettings" by "CreateScatterModelSettings()" method.
// And then assign is to object 3 by ChangeScatterModelSettings().
IObjectScatteringSettings ScatType_Lam = Object_3.CoatScatterData.GetFaceData(1).CreateScatterModelSettings(ObjectScatteringTypes.Lambertian);
ScatType_Lam._S_Lambertian.ScatterFraction = 1;
Object_3.CoatScatterData.GetFaceData(1).ChangeScatterModelSettings(ScatType_Lam);
Object_3.CoatScatterData.GetFaceData(1).NumberOfRays = 1;
Scatter model settings for a specific face. This interface can be accessed via the INCECoatScatterFac...
Definition: InterfacesNCE.cs:6323
C++
// Make Face 1 of object 3 has Lambertian scattering properties
// To set scatter properties, you need to first create "ScatteringSettings" by "CreateScatterModelSettings()" method.
// And then assign is to object 3 by ChangeScatterModelSettings().
IObjectScatteringSettingsPtr ScatType_Lam = Object_3->CoatScatterData->GetFaceData(1)->CreateScatterModelSettings(ObjectScatteringTypes_Lambertian);
ScatType_Lam->_S_Lambertian->ScatterFraction = 1;
Object_3->CoatScatterData->GetFaceData(1)->ChangeScatterModelSettings(ScatType_Lam);
Object_3->CoatScatterData->GetFaceData(1)->NumberOfRays = 1;
Matlab
% Make Face 1 of object 3 has Lambertian scattering properties
% To set scatter properties, you need to first create "ScatteringSettings" by "CreateScatterModelSettings()" method.
% And then assign is to object 3 by ChangeScatterModelSettings().
ScatType_Lam = Object_3.CoatScatterData.GetFaceData(1).CreateScatterModelSettings(ZOSAPI.Editors.NCE.ObjectScatteringTypes.Lambertian);
ScatType_Lam.S_Lambertian_.ScatterFraction = 1;
Object_3.CoatScatterData.GetFaceData(1).ChangeScatterModelSettings(ScatType_Lam);
Object_3.CoatScatterData.GetFaceData(1).NumberOfRays = 1;
Python
# Make Face 1 of object 3 has Lambertian scattering properties
# To set scatter properties, you need to first create "ScatteringSettings" by "CreateScatterModelSettings()" method.
# And then assign is to object 3 by ChangeScatterModelSettings().
ScatType_Lam = Object_3.CoatScatterData.GetFaceData(1).CreateScatterModelSettings(ZOSAPI.Editors.NCE.ObjectScatteringTypes.Lambertian)
ScatType_Lam._S_Lambertian.ScatterFraction = 1
Object_3.CoatScatterData.GetFaceData(1).ChangeScatterModelSettings(ScatType_Lam)
Object_3.CoatScatterData.GetFaceData(1).NumberOfRays = 1
| Enumerator | |
|---|---|
| None | |
| Lambertian | |
| Gaussian | |
| ABg | |
| ABgFile | |
| BSDF | |
| ISScatterCatalog | |
| User | |
◆ ObjectType
All supported non-sequential object types.
Usage (see Example 17 for a full sample)
C#
//Source point
IObjectTypeSettings oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint);
Object_1.ChangeType(oType_1);
IObjectSourcePoint Source1_data = Object_1.ObjectData as IObjectSourcePoint;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;
Definition: InterfacesNCE.cs:4937
C++
//Source point
IObjectTypeSettingsPtr oType_1 = Object_1->GetObjectTypeSettings(ObjectType_SourcePoint);
Object_1->ChangeType(oType_1);
IObjectSourcePointPtr Source1_data = Object_1->ObjectData;
// Proterties NumberOfLayoutRays and NumberOfAnalysisRays belong to base interface IObjectSources. To use these properties, cast to IObjectSources first.
IObjectSourcesPtr caseIObjSources = Source1_data;
caseIObjSources->NumberOfLayoutRays = 3;
caseIObjSources->NumberOfAnalysisRays = 1000000;
Matlab
% Source point
Object_1.ChangeType(oType_1);
Source1_data = Object_1.ObjectData;
Source1_data.NumberOfLayoutRays = 3;
Source1_data.NumberOfAnalysisRays = 1000000;
Python
# Source point
oType_1 = Object_1.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.SourcePoint)
Object_1.ChangeType(oType_1)
Source1_data = Object_1.ObjectData
Source1_data.NumberOfLayoutRays = 3
Source1_data.NumberOfAnalysisRays = 1000000
◆ OrderChoices
◆ PixelAddressing
◆ PolarDetectorDataType
◆ RaysIgnoreObjectType
◆ RayTraceModes
◆ ScatterToType
◆ ShapeChoices
◆ SourceBulkScatterMode
◆ SourceColorMode
◆ SourceSamplingMethod
◆ UniformAngleChoices
◆ VolumePhysicsModelType
Usage (see Example 17 for a full sample)
C#
//Rectangular Volume
//Scattering properties
//Draw:opacity set to 50%
IObjectTypeSettings oType_2 = Object_2.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.RectangularVolume);
Object_2.ChangeType(oType_2);
Object_2.ZPosition = 2;
Object_2.Material = "N-BK7";
IObjectRectangularVolume RectVolume2_data = Object_2.ObjectData as IObjectRectangularVolume;
RectVolume2_data.X1HalfWidth = 12;
RectVolume2_data.Y1HalfWidth = 12;
RectVolume2_data.ZLength = 40;
RectVolume2_data.X2HalfWidth = 12;
RectVolume2_data.Y2HalfWidth = 12;
INCEVolumePhysicsData RectVolume2_volphysdata = Object_2.VolumePhysicsData;
RectVolume2_volphysdata.Model = VolumePhysicsModelType.AngleScattering;
RectVolume2_volphysdata.ModelSettings._S_AngleScattering.MeanPath = 5;
RectVolume2_volphysdata.ModelSettings._S_AngleScattering.Angle = 30;
INCEDrawData RectVolume2_Drawdata = Object_2.DrawData;
Object properties Draw tab. This interface can be accessed via the INCERow interface.
Definition: InterfacesNCE.cs:5789
Object properties Volume Physics tab. This interface can be accessed via the INCERow interface.
Definition: InterfacesNCE.cs:6551
Definition: InterfacesNCE.cs:4582
Definition: InterfacesCommon.cs:9
C++
//Rectangular Volume
//Scattering properties
//Draw:opacity set to 50%
IObjectTypeSettingsPtr oType_2 = Object_2->GetObjectTypeSettings(ObjectType_RectangularVolume);
Object_2->ChangeType(oType_2);
Object_2->ZPosition = 2;
Object_2->Material = "N-BK7";
IObjectRectangularVolumePtr RectVolume2_data = Object_2->ObjectData;
RectVolume2_data->X1HalfWidth = 12;
RectVolume2_data->Y1HalfWidth = 12;
RectVolume2_data->ZLength = 40;
RectVolume2_data->X2HalfWidth = 12;
RectVolume2_data->Y2HalfWidth = 12;
INCEVolumePhysicsDataPtr RectVolume2_volphysdata = Object_2->VolumePhysicsData;
RectVolume2_volphysdata->Model = VolumePhysicsModelType_AngleScattering;
RectVolume2_volphysdata->ModelSettings->_S_AngleScattering->MeanPath = 5;
RectVolume2_volphysdata->ModelSettings->_S_AngleScattering->Angle = 30;
INCEDrawDataPtr RectVolume2_Drawdata = Object_2->DrawData;
RectVolume2_Drawdata->Opacity = ZemaxOpacity_P50;
Matlab
% Rectangular Volume
% Scattering Properties
% Draw:opacity set to 50%
Object_2.ChangeType(oType_2);
Object_2.ZPosition = 2;
Object_2.Material = 'N-BK7';
RectVolume2_data = Object_2.ObjectData;
RectVolume2_data.X1HalfWidth = 12;
RectVolume2_data.Y1HalfWidth = 12;
RectVolume2_data.ZLength = 40;
RectVolume2_data.X2HalfWidth = 12;
RectVolume2_data.Y2HalfWidth = 12;
RectVolume2_volphysdata = Object_2.VolumePhysicsData;
RectVolume2_volphysdata.ModelSettings.S_AngleScattering_.MeanPath = 5;
RectVolume2_volphysdata.ModelSettings.S_AngleScattering_.Angle = 30;
RectVolume2_DrawData = Object_2.DrawData;
Python
# Rectangular Volume
# Scattering Properties
# Draw:opacity set to 50%
oType_2 = Object_2.GetObjectTypeSettings(ZOSAPI.Editors.NCE.ObjectType.RectangularVolume)
Object_2.ChangeType(oType_2)
Object_2.ZPosition = 2
Object_2.Material = "N-BK7"
RectVolume2_data = Object_2.ObjectData
RectVolume2_data.X1HalfWidth = 12
RectVolume2_data.Y1HalfWidth = 12
RectVolume2_data.ZLength = 40
RectVolume2_data.X2HalfWidth = 12
RectVolume2_data.Y2HalfWidth = 12
RectVolume2_volphysdata = Object_2.VolumePhysicsData
RectVolume2_volphysdata.Model = ZOSAPI.Editors.NCE.VolumePhysicsModelType.AngleScattering
RectVolume2_volphysdata.ModelSettings._S_AngleScattering.MeanPath = 5
RectVolume2_volphysdata.ModelSettings._S_AngleScattering.Angle = 30
RectVolume2_DrawData = Object_2.DrawData
RectVolume2_DrawData.Opacity = ZOSAPI.Common.ZemaxOpacity.P50
| Enumerator | |
|---|---|
| None | |
| AngleScattering | |
| DLLDefinedScattering | |
| PhotoluminescenceModel | |