diff --git a/doc/source/api/generated/astrogator.rst b/doc/source/api/generated/astrogator.rst index 334c151143..3568175879 100644 --- a/doc/source/api/generated/astrogator.rst +++ b/doc/source/api/generated/astrogator.rst @@ -155,6 +155,7 @@ Interfaces IAgVAProfileLambertSearchProfile IAgVAProfileGoldenSection IAgVAProfileGridSearch + IAgVACalcObjectLinkEmbedControlCollection IAgVAStateCalcHeightAboveTerrain IAgVAStateCalcEpoch IAgVAStateCalcOrbitDelaunayG @@ -915,6 +916,7 @@ Classes AgVAGridSearchControl AgVAGridSearchResultCollection AgVAGridSearchResult + AgVACalcObjectLinkEmbedControlCollection Reference @@ -1361,6 +1363,9 @@ Interfaces .. autoclass:: IAgVAProfileGridSearch :members: :exclude-members: __init__ +.. autoclass:: IAgVACalcObjectLinkEmbedControlCollection + :members: + :exclude-members: __init__ .. autoclass:: IAgVAStateCalcHeightAboveTerrain :members: :exclude-members: __init__ @@ -3478,4 +3483,7 @@ Classes .. autoclass:: AgVAGridSearchResult :members: :exclude-members: __init__ +.. autoclass:: AgVACalcObjectLinkEmbedControlCollection + :members: + :exclude-members: __init__ diff --git a/doc/source/api/generated/stkobjects.rst b/doc/source/api/generated/stkobjects.rst index a711dac5b6..423b9a7009 100644 --- a/doc/source/api/generated/stkobjects.rst +++ b/doc/source/api/generated/stkobjects.rst @@ -1148,6 +1148,14 @@ Interfaces IAgVmVOSpatialCalculationLevel IAgSatelliteCollection IAgSubset + IAgAdvCATAvailableObjectCollection + IAgAdvCATChosenObjectCollection + IAgAdvCATPreFilters + IAgAdvCATAdvEllipsoid + IAgAdvCATAdvanced + IAgAdvCATVO + IAgAdvCAT + IAgAdvCATChosenObject IAgStkObjectChangedEventArgs IAgScenarioBeforeSaveEventArgs IAgPctCmpltEventArgs @@ -1392,6 +1400,9 @@ Enumerations AgELOPAtmosphericDensityModel AgELowAltAtmosphericDensityModel AgEEphemExportToolFileFormat + AgEAdvCATEllipsoidClass + AgEAdvCATConjunctionType + AgEAdvCATSecondaryEllipsoidsVisibilityType AgEComponentLinkEmbedControlReferenceType AgESwathComputationalMethod AgEClassicalLocation @@ -2640,6 +2651,14 @@ Classes AgStkObjectCutCopyPasteEventArgs AgStkPreferencesPythonPlugins AgPathCollection + AgAdvCAT + AgAdvCATAvailableObjectCollection + AgAdvCATChosenObject + AgAdvCATChosenObjectCollection + AgAdvCATPreFilters + AgAdvCATAdvEllipsoid + AgAdvCATAdvanced + AgAdvCATVO Reference @@ -6065,6 +6084,30 @@ Interfaces .. autoclass:: IAgSubset :members: :exclude-members: __init__ +.. autoclass:: IAgAdvCATAvailableObjectCollection + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATChosenObjectCollection + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATPreFilters + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATAdvEllipsoid + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATAdvanced + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATVO + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCAT + :members: + :exclude-members: __init__ +.. autoclass:: IAgAdvCATChosenObject + :members: + :exclude-members: __init__ .. autoclass:: IAgStkObjectChangedEventArgs :members: :exclude-members: __init__ @@ -6549,6 +6592,12 @@ Enumerations :members: .. autoenum:: AgEEphemExportToolFileFormat :members: +.. autoenum:: AgEAdvCATEllipsoidClass + :members: +.. autoenum:: AgEAdvCATConjunctionType + :members: +.. autoenum:: AgEAdvCATSecondaryEllipsoidsVisibilityType + :members: .. autoenum:: AgEComponentLinkEmbedControlReferenceType :members: .. autoenum:: AgESwathComputationalMethod @@ -10164,4 +10213,28 @@ Classes .. autoclass:: AgPathCollection :members: :exclude-members: __init__ +.. autoclass:: AgAdvCAT + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATAvailableObjectCollection + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATChosenObject + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATChosenObjectCollection + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATPreFilters + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATAdvEllipsoid + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATAdvanced + :members: + :exclude-members: __init__ +.. autoclass:: AgAdvCATVO + :members: + :exclude-members: __init__ diff --git a/src/ansys/stk/core/graphics.py b/src/ansys/stk/core/graphics.py index dc5d47a0dc..f0038467f1 100644 --- a/src/ansys/stk/core/graphics.py +++ b/src/ansys/stk/core/graphics.py @@ -165,7 +165,6 @@ from .internal.eventutil import * from .utilities.exceptions import * - from .stkutil import * from .vgt import * @@ -6046,7 +6045,7 @@ def FadePersistence(self, fadePersistence:bool) -> None: @property def PersistenceDuration(self) -> float: - """Gets or Sets the maximum length (in seconds) of the persistence path.""" + """Gets or Sets the maximum duration of the persistence path.""" with agmarshall.DOUBLE_arg() as arg_pRetVal: agcls.evaluate_hresult(self.__dict__["_GetPersistenceDuration"](byref(arg_pRetVal.COM_val))) return arg_pRetVal.python_val @@ -16990,7 +16989,7 @@ def FadePersistence(self, fadePersistence:bool) -> None: @property def PersistenceDuration(self) -> float: - """Gets or Sets the maximum length (in seconds) of the persistence path.""" + """Gets or Sets the maximum duration of the persistence path.""" with agmarshall.DOUBLE_arg() as arg_pRetVal: agcls.evaluate_hresult(self.__dict__["_GetPersistenceDuration"](byref(arg_pRetVal.COM_val))) return arg_pRetVal.python_val diff --git a/src/ansys/stk/core/internal/stkxinitialization.py b/src/ansys/stk/core/internal/stkxinitialization.py index ec67cf2e98..8df171ccdd 100644 --- a/src/ansys/stk/core/internal/stkxinitialization.py +++ b/src/ansys/stk/core/internal/stkxinitialization.py @@ -30,7 +30,6 @@ from ..utilities.exceptions import * - def _raise_uninitialized_error(*args): raise STKRuntimeError("Valid STK object model classes are returned from STK methods and should not be created independently.") diff --git a/src/ansys/stk/core/stkobjects/__init__.py b/src/ansys/stk/core/stkobjects/__init__.py index df0147a060..5f29deb4f8 100644 --- a/src/ansys/stk/core/stkobjects/__init__.py +++ b/src/ansys/stk/core/stkobjects/__init__.py @@ -8,69 +8,71 @@ "AgAccessCnstrMinMax", "AgAccessCnstrObjExAngle", "AgAccessCnstrPluginMinMax", "AgAccessCnstrThirdBody", "AgAccessCnstrTimeSlipRange", "AgAccessCnstrZone", "AgAccessConstraint", "AgAccessConstraintCollection", "AgAccessEventDetection", "AgAccessSampling", "AgAccessTime", "AgAccessTimeCollection", "AgAccessTimeEventIntervals", "AgAccessTimePeriod", "AgAdditionalGainLoss", "AgAdditionalGainLossCollection", -"AgAircraft", "AgAntenna", "AgAntennaBeam", "AgAntennaBeamCollection", "AgAntennaBeamSelectionStrategy", "AgAntennaBeamSelectionStrategyAggregate", -"AgAntennaBeamSelectionStrategyMaxGain", "AgAntennaBeamSelectionStrategyMinBoresightAngle", "AgAntennaBeamSelectionStrategyScriptPlugin", -"AgAntennaBeamTransmit", "AgAntennaContourEirp", "AgAntennaContourFluxDensity", "AgAntennaContourGain", "AgAntennaContourGraphics", -"AgAntennaContourLevel", "AgAntennaContourLevelCollection", "AgAntennaContourRip", "AgAntennaContourSpectralFluxDensity", -"AgAntennaControl", "AgAntennaGraphics", "AgAntennaModel", "AgAntennaModelANSYSffdFormat", "AgAntennaModelApertureCircularBessel", -"AgAntennaModelApertureCircularBesselEnvelope", "AgAntennaModelApertureCircularCosine", "AgAntennaModelApertureCircularCosinePedestal", -"AgAntennaModelApertureCircularCosineSquared", "AgAntennaModelApertureCircularCosineSquaredPedestal", "AgAntennaModelApertureCircularSincIntPower", -"AgAntennaModelApertureCircularSincRealPower", "AgAntennaModelApertureCircularUniform", "AgAntennaModelApertureRectangularCosine", -"AgAntennaModelApertureRectangularCosinePedestal", "AgAntennaModelApertureRectangularCosineSquared", "AgAntennaModelApertureRectangularCosineSquaredPedestal", -"AgAntennaModelApertureRectangularSincIntPower", "AgAntennaModelApertureRectangularSincRealPower", "AgAntennaModelApertureRectangularUniform", -"AgAntennaModelCosecantSquared", "AgAntennaModelDipole", "AgAntennaModelElevationAzimuthCuts", "AgAntennaModelExternal", -"AgAntennaModelGaussian", "AgAntennaModelGimroc", "AgAntennaModelGpsFrpa", "AgAntennaModelGpsGlobal", "AgAntennaModelHelix", -"AgAntennaModelHemispherical", "AgAntennaModelIeee1979", "AgAntennaModelIntelSat", "AgAntennaModelIsotropic", "AgAntennaModelItuBO1213CoPolar", -"AgAntennaModelItuBO1213CrossPolar", "AgAntennaModelItuF1245", "AgAntennaModelItuS1528R12Circular", "AgAntennaModelItuS1528R12Rectangular", -"AgAntennaModelItuS1528R13", "AgAntennaModelItuS465", "AgAntennaModelItuS580", "AgAntennaModelItuS672Circular", "AgAntennaModelItuS672Rectangular", -"AgAntennaModelItuS731", "AgAntennaModelOpticalGaussian", "AgAntennaModelOpticalSimple", "AgAntennaModelParabolic", "AgAntennaModelPencilBeam", -"AgAntennaModelPhasedArray", "AgAntennaModelRectangularPattern", "AgAntennaModelRemcomUanFormat", "AgAntennaModelScriptPlugin", -"AgAntennaModelSquareHorn", "AgAntennaModelTicraGRASPFormat", "AgAntennaNoiseTemperature", "AgAntennaSystem", "AgAntennaVO", -"AgAntennaVolumeGraphics", "AgAntennaVolumeLevel", "AgAntennaVolumeLevelCollection", "AgAreaTarget", "AgAreaTypeEllipse", -"AgAreaTypePattern", "AgAreaTypePatternCollection", "AgAtmosphere", "AgAtmosphericAbsorptionModel", "AgAtmosphericAbsorptionModelITURP676_9", -"AgAtmosphericAbsorptionModelScriptPlugin", "AgAtmosphericAbsorptionModelSimpleSatcom", "AgAtmosphericAbsorptionModelTirem320", -"AgAtmosphericAbsorptionModelTirem331", "AgAtmosphericAbsorptionModelTirem550", "AgAtmosphericAbsorptionModelVoacap", "AgAtmosphericTurbulenceModel", -"AgAtmosphericTurbulenceModelConstant", "AgAtmosphericTurbulenceModelHufnagelValley", "AgAvailableFeatures", "AgBasicAzElMask", -"AgBeamformer", "AgBeamformerAsciiFile", "AgBeamformerMvdr", "AgBeamformerScript", "AgBeerBouguerLambertLawLayer", "AgBeerBouguerLambertLawLayerCollection", -"AgCRComplex", "AgCRComplexCollection", "AgCRLocation", "AgCRPluginConfiguration", "AgCelestialBodyCollection", "AgCelestialBodyInfo", -"AgCentralBodyTerrainCollection", "AgCentralBodyTerrainCollectionElement", "AgChConstraints", "AgChGfxAnimation", "AgChGfxStatic", -"AgChGraphics", "AgChTimePeriodBase", "AgChUserSpecifiedTimePeriod", "AgChVO", "AgChain", "AgClassicalLocationArgumentOfLatitude", -"AgClassicalLocationEccentricAnomaly", "AgClassicalLocationMeanAnomaly", "AgClassicalLocationTimePastAN", "AgClassicalLocationTimePastPerigee", -"AgClassicalLocationTrueAnomaly", "AgClassicalOrientation", "AgClassicalSizeShapeAltitude", "AgClassicalSizeShapeMeanMotion", -"AgClassicalSizeShapePeriod", "AgClassicalSizeShapeRadius", "AgClassicalSizeShapeSemimajorAxis", "AgCloudsAndFogFadingLossModel", -"AgCloudsAndFogFadingLossModelP840_6", "AgCloudsAndFogFadingLossModelP840_7", "AgCnCnstrObjectRestriction", "AgCnCnstrRestriction", -"AgCnConstraints", "AgCnGraphics", "AgCnRouting", "AgCommSystem", "AgCommSystemAccessEventDetection", "AgCommSystemAccessEventDetectionSamplesOnly", -"AgCommSystemAccessEventDetectionSubsample", "AgCommSystemAccessOptions", "AgCommSystemAccessSamplingMethod", "AgCommSystemAccessSamplingMethodAdaptive", -"AgCommSystemAccessSamplingMethodFixed", "AgCommSystemGraphics", "AgCommSystemLinkSelectionCriteria", "AgCommSystemLinkSelectionCriteriaMaximumElevation", -"AgCommSystemLinkSelectionCriteriaMinimumRange", "AgCommSystemLinkSelectionCriteriaScriptPlugin", "AgCommSystemVO", "AgComponentAttrLinkEmbedControl", -"AgComponentDirectory", "AgComponentInfo", "AgComponentInfoCollection", "AgConstellation", "AgCoverageDefinition", "AgCustomPropagationModel", -"AgCvAdvanced", "AgCvAreaTargetsCollection", "AgCvAssetListCollection", "AgCvAssetListElement", "AgCvBoundsCustomBoundary", -"AgCvBoundsCustomRegions", "AgCvBoundsGlobal", "AgCvBoundsLat", "AgCvBoundsLatLine", "AgCvBoundsLatLonRegion", "AgCvBoundsLonLine", -"AgCvGfxAnimation", "AgCvGfxProgress", "AgCvGfxStatic", "AgCvGraphics", "AgCvGrid", "AgCvGridInspector", "AgCvGridPointSelection", -"AgCvInterval", "AgCvPointDefinition", "AgCvPointFileListCollection", "AgCvRegionFilesCollection", "AgCvResolutionArea", -"AgCvResolutionDistance", "AgCvResolutionLatLon", "AgCvSelectedGridPoint", "AgCvVO", "AgCvVOAttributes", "AgDataProviderCollection", -"AgDataProviderGroup", "AgDataProviders", "AgDataPrvElement", "AgDataPrvElements", "AgDataPrvFixed", "AgDataPrvInterval", -"AgDataPrvTimeVar", "AgDelaunayG", "AgDelaunayGOverSQRTmu", "AgDelaunayH", "AgDelaunayHOverSQRTmu", "AgDelaunayL", "AgDelaunayLOverSQRTmu", -"AgDemodulatorModel", "AgDemodulatorModel16psk", "AgDemodulatorModel8psk", "AgDemodulatorModelBoc", "AgDemodulatorModelBpsk", -"AgDemodulatorModelDpsk", "AgDemodulatorModelExternal", "AgDemodulatorModelExternalSource", "AgDemodulatorModelFsk", "AgDemodulatorModelMsk", -"AgDemodulatorModelNarrowbandUniform", "AgDemodulatorModelNfsk", "AgDemodulatorModelOqpsk", "AgDemodulatorModelPulsedSignal", -"AgDemodulatorModelQam1024", "AgDemodulatorModelQam128", "AgDemodulatorModelQam16", "AgDemodulatorModelQam256", "AgDemodulatorModelQam32", -"AgDemodulatorModelQam64", "AgDemodulatorModelQpsk", "AgDemodulatorModelScriptPlugin", "AgDemodulatorModelWidebandGaussian", -"AgDemodulatorModelWidebandUniform", "AgDirectionProvider", "AgDirectionProviderAsciiFile", "AgDirectionProviderLink", "AgDirectionProviderObject", -"AgDirectionProviderScript", "AgDisplayTimesTimeComponent", "AgDrDataSet", "AgDrDataSetCollection", "AgDrInterval", "AgDrIntervalCollection", -"AgDrResult", "AgDrStatisticResult", "AgDrStatistics", "AgDrSubSection", "AgDrSubSectionCollection", "AgDrTextMessage", -"AgDrTimeArrayElements", "AgDrTimeVarExtremumResult", "AgDuringAccess", "AgE3DTilesetSourceType", "AgE3dMarkerShape", "AgEAWBAccessConstraints", -"AgEAberrationType", "AgEAcWGS84WarningType", "AgEAccessConstraints", "AgEAccessTimeType", "AgEActionType", "AgEAltRefType", -"AgEAnimationActions", "AgEAnimationDirections", "AgEAnimationModes", "AgEAnimationOptions", "AgEAntennaContourType", "AgEAntennaControlRefType", -"AgEAntennaGraphicsCoordinateSystem", "AgEAntennaModelCosecantSquaredSidelobeType", "AgEAntennaModelInputType", "AgEAntennaModelType", -"AgEAreaType", "AgEAtmosphericAbsorptionModelType", "AgEAtmosphericDensityModel", "AgEAtmosphericTurbulenceModelType", "AgEAttCoordinateAxes", -"AgEAttInclude", "AgEAttitudeStandardType", "AgEAxisOffset", "AgEAzElMaskType", "AgEBeamSelectionStrategyType", "AgEBeamformerType", -"AgEBorderWallUpperLowerEdgeAltRef", "AgEBoresightType", "AgEBuildHeightReferenceMethod", "AgEBuildHeightUnit", "AgECCSDSDateFormat", -"AgECCSDSEphemFormat", "AgECCSDSReferenceFrame", "AgECCSDSTimeSystem", "AgEChConstConstraintsMode", "AgEChTimePeriodType", -"AgECircularApertureInputType", "AgEClassicalLocation", "AgEClassicalSizeShape", "AgECloudsAndFogFadingLossModelType", "AgECloudsAndFogLiquidWaterChoices", -"AgECnCnstrRestriction", "AgECnFromToParentConstraint", "AgECnstrBackground", "AgECnstrGroundTrack", "AgECnstrLighting", -"AgECommSystemAccessEventDetectionType", "AgECommSystemAccessSamplingMethodType", "AgECommSystemConstrainingRole", "AgECommSystemLinkSelectionCriteriaType", -"AgECommSystemReferenceBandwidth", "AgECommSystemSaveMode", "AgEComponent", "AgEComponentLinkEmbedControlReferenceType", +"AgAdvCAT", "AgAdvCATAdvEllipsoid", "AgAdvCATAdvanced", "AgAdvCATAvailableObjectCollection", "AgAdvCATChosenObject", "AgAdvCATChosenObjectCollection", +"AgAdvCATPreFilters", "AgAdvCATVO", "AgAircraft", "AgAntenna", "AgAntennaBeam", "AgAntennaBeamCollection", "AgAntennaBeamSelectionStrategy", +"AgAntennaBeamSelectionStrategyAggregate", "AgAntennaBeamSelectionStrategyMaxGain", "AgAntennaBeamSelectionStrategyMinBoresightAngle", +"AgAntennaBeamSelectionStrategyScriptPlugin", "AgAntennaBeamTransmit", "AgAntennaContourEirp", "AgAntennaContourFluxDensity", +"AgAntennaContourGain", "AgAntennaContourGraphics", "AgAntennaContourLevel", "AgAntennaContourLevelCollection", "AgAntennaContourRip", +"AgAntennaContourSpectralFluxDensity", "AgAntennaControl", "AgAntennaGraphics", "AgAntennaModel", "AgAntennaModelANSYSffdFormat", +"AgAntennaModelApertureCircularBessel", "AgAntennaModelApertureCircularBesselEnvelope", "AgAntennaModelApertureCircularCosine", +"AgAntennaModelApertureCircularCosinePedestal", "AgAntennaModelApertureCircularCosineSquared", "AgAntennaModelApertureCircularCosineSquaredPedestal", +"AgAntennaModelApertureCircularSincIntPower", "AgAntennaModelApertureCircularSincRealPower", "AgAntennaModelApertureCircularUniform", +"AgAntennaModelApertureRectangularCosine", "AgAntennaModelApertureRectangularCosinePedestal", "AgAntennaModelApertureRectangularCosineSquared", +"AgAntennaModelApertureRectangularCosineSquaredPedestal", "AgAntennaModelApertureRectangularSincIntPower", "AgAntennaModelApertureRectangularSincRealPower", +"AgAntennaModelApertureRectangularUniform", "AgAntennaModelCosecantSquared", "AgAntennaModelDipole", "AgAntennaModelElevationAzimuthCuts", +"AgAntennaModelExternal", "AgAntennaModelGaussian", "AgAntennaModelGimroc", "AgAntennaModelGpsFrpa", "AgAntennaModelGpsGlobal", +"AgAntennaModelHelix", "AgAntennaModelHemispherical", "AgAntennaModelIeee1979", "AgAntennaModelIntelSat", "AgAntennaModelIsotropic", +"AgAntennaModelItuBO1213CoPolar", "AgAntennaModelItuBO1213CrossPolar", "AgAntennaModelItuF1245", "AgAntennaModelItuS1528R12Circular", +"AgAntennaModelItuS1528R12Rectangular", "AgAntennaModelItuS1528R13", "AgAntennaModelItuS465", "AgAntennaModelItuS580", "AgAntennaModelItuS672Circular", +"AgAntennaModelItuS672Rectangular", "AgAntennaModelItuS731", "AgAntennaModelOpticalGaussian", "AgAntennaModelOpticalSimple", +"AgAntennaModelParabolic", "AgAntennaModelPencilBeam", "AgAntennaModelPhasedArray", "AgAntennaModelRectangularPattern", +"AgAntennaModelRemcomUanFormat", "AgAntennaModelScriptPlugin", "AgAntennaModelSquareHorn", "AgAntennaModelTicraGRASPFormat", +"AgAntennaNoiseTemperature", "AgAntennaSystem", "AgAntennaVO", "AgAntennaVolumeGraphics", "AgAntennaVolumeLevel", "AgAntennaVolumeLevelCollection", +"AgAreaTarget", "AgAreaTypeEllipse", "AgAreaTypePattern", "AgAreaTypePatternCollection", "AgAtmosphere", "AgAtmosphericAbsorptionModel", +"AgAtmosphericAbsorptionModelITURP676_9", "AgAtmosphericAbsorptionModelScriptPlugin", "AgAtmosphericAbsorptionModelSimpleSatcom", +"AgAtmosphericAbsorptionModelTirem320", "AgAtmosphericAbsorptionModelTirem331", "AgAtmosphericAbsorptionModelTirem550", +"AgAtmosphericAbsorptionModelVoacap", "AgAtmosphericTurbulenceModel", "AgAtmosphericTurbulenceModelConstant", "AgAtmosphericTurbulenceModelHufnagelValley", +"AgAvailableFeatures", "AgBasicAzElMask", "AgBeamformer", "AgBeamformerAsciiFile", "AgBeamformerMvdr", "AgBeamformerScript", +"AgBeerBouguerLambertLawLayer", "AgBeerBouguerLambertLawLayerCollection", "AgCRComplex", "AgCRComplexCollection", "AgCRLocation", +"AgCRPluginConfiguration", "AgCelestialBodyCollection", "AgCelestialBodyInfo", "AgCentralBodyTerrainCollection", "AgCentralBodyTerrainCollectionElement", +"AgChConstraints", "AgChGfxAnimation", "AgChGfxStatic", "AgChGraphics", "AgChTimePeriodBase", "AgChUserSpecifiedTimePeriod", +"AgChVO", "AgChain", "AgClassicalLocationArgumentOfLatitude", "AgClassicalLocationEccentricAnomaly", "AgClassicalLocationMeanAnomaly", +"AgClassicalLocationTimePastAN", "AgClassicalLocationTimePastPerigee", "AgClassicalLocationTrueAnomaly", "AgClassicalOrientation", +"AgClassicalSizeShapeAltitude", "AgClassicalSizeShapeMeanMotion", "AgClassicalSizeShapePeriod", "AgClassicalSizeShapeRadius", +"AgClassicalSizeShapeSemimajorAxis", "AgCloudsAndFogFadingLossModel", "AgCloudsAndFogFadingLossModelP840_6", "AgCloudsAndFogFadingLossModelP840_7", +"AgCnCnstrObjectRestriction", "AgCnCnstrRestriction", "AgCnConstraints", "AgCnGraphics", "AgCnRouting", "AgCommSystem", +"AgCommSystemAccessEventDetection", "AgCommSystemAccessEventDetectionSamplesOnly", "AgCommSystemAccessEventDetectionSubsample", +"AgCommSystemAccessOptions", "AgCommSystemAccessSamplingMethod", "AgCommSystemAccessSamplingMethodAdaptive", "AgCommSystemAccessSamplingMethodFixed", +"AgCommSystemGraphics", "AgCommSystemLinkSelectionCriteria", "AgCommSystemLinkSelectionCriteriaMaximumElevation", "AgCommSystemLinkSelectionCriteriaMinimumRange", +"AgCommSystemLinkSelectionCriteriaScriptPlugin", "AgCommSystemVO", "AgComponentAttrLinkEmbedControl", "AgComponentDirectory", +"AgComponentInfo", "AgComponentInfoCollection", "AgConstellation", "AgCoverageDefinition", "AgCustomPropagationModel", "AgCvAdvanced", +"AgCvAreaTargetsCollection", "AgCvAssetListCollection", "AgCvAssetListElement", "AgCvBoundsCustomBoundary", "AgCvBoundsCustomRegions", +"AgCvBoundsGlobal", "AgCvBoundsLat", "AgCvBoundsLatLine", "AgCvBoundsLatLonRegion", "AgCvBoundsLonLine", "AgCvGfxAnimation", +"AgCvGfxProgress", "AgCvGfxStatic", "AgCvGraphics", "AgCvGrid", "AgCvGridInspector", "AgCvGridPointSelection", "AgCvInterval", +"AgCvPointDefinition", "AgCvPointFileListCollection", "AgCvRegionFilesCollection", "AgCvResolutionArea", "AgCvResolutionDistance", +"AgCvResolutionLatLon", "AgCvSelectedGridPoint", "AgCvVO", "AgCvVOAttributes", "AgDataProviderCollection", "AgDataProviderGroup", +"AgDataProviders", "AgDataPrvElement", "AgDataPrvElements", "AgDataPrvFixed", "AgDataPrvInterval", "AgDataPrvTimeVar", "AgDelaunayG", +"AgDelaunayGOverSQRTmu", "AgDelaunayH", "AgDelaunayHOverSQRTmu", "AgDelaunayL", "AgDelaunayLOverSQRTmu", "AgDemodulatorModel", +"AgDemodulatorModel16psk", "AgDemodulatorModel8psk", "AgDemodulatorModelBoc", "AgDemodulatorModelBpsk", "AgDemodulatorModelDpsk", +"AgDemodulatorModelExternal", "AgDemodulatorModelExternalSource", "AgDemodulatorModelFsk", "AgDemodulatorModelMsk", "AgDemodulatorModelNarrowbandUniform", +"AgDemodulatorModelNfsk", "AgDemodulatorModelOqpsk", "AgDemodulatorModelPulsedSignal", "AgDemodulatorModelQam1024", "AgDemodulatorModelQam128", +"AgDemodulatorModelQam16", "AgDemodulatorModelQam256", "AgDemodulatorModelQam32", "AgDemodulatorModelQam64", "AgDemodulatorModelQpsk", +"AgDemodulatorModelScriptPlugin", "AgDemodulatorModelWidebandGaussian", "AgDemodulatorModelWidebandUniform", "AgDirectionProvider", +"AgDirectionProviderAsciiFile", "AgDirectionProviderLink", "AgDirectionProviderObject", "AgDirectionProviderScript", "AgDisplayTimesTimeComponent", +"AgDrDataSet", "AgDrDataSetCollection", "AgDrInterval", "AgDrIntervalCollection", "AgDrResult", "AgDrStatisticResult", "AgDrStatistics", +"AgDrSubSection", "AgDrSubSectionCollection", "AgDrTextMessage", "AgDrTimeArrayElements", "AgDrTimeVarExtremumResult", "AgDuringAccess", +"AgE3DTilesetSourceType", "AgE3dMarkerShape", "AgEAWBAccessConstraints", "AgEAberrationType", "AgEAcWGS84WarningType", "AgEAccessConstraints", +"AgEAccessTimeType", "AgEActionType", "AgEAdvCATConjunctionType", "AgEAdvCATEllipsoidClass", "AgEAdvCATSecondaryEllipsoidsVisibilityType", +"AgEAltRefType", "AgEAnimationActions", "AgEAnimationDirections", "AgEAnimationModes", "AgEAnimationOptions", "AgEAntennaContourType", +"AgEAntennaControlRefType", "AgEAntennaGraphicsCoordinateSystem", "AgEAntennaModelCosecantSquaredSidelobeType", "AgEAntennaModelInputType", +"AgEAntennaModelType", "AgEAreaType", "AgEAtmosphericAbsorptionModelType", "AgEAtmosphericDensityModel", "AgEAtmosphericTurbulenceModelType", +"AgEAttCoordinateAxes", "AgEAttInclude", "AgEAttitudeStandardType", "AgEAxisOffset", "AgEAzElMaskType", "AgEBeamSelectionStrategyType", +"AgEBeamformerType", "AgEBorderWallUpperLowerEdgeAltRef", "AgEBoresightType", "AgEBuildHeightReferenceMethod", "AgEBuildHeightUnit", +"AgECCSDSDateFormat", "AgECCSDSEphemFormat", "AgECCSDSReferenceFrame", "AgECCSDSTimeSystem", "AgEChConstConstraintsMode", +"AgEChTimePeriodType", "AgECircularApertureInputType", "AgEClassicalLocation", "AgEClassicalSizeShape", "AgECloudsAndFogFadingLossModelType", +"AgECloudsAndFogLiquidWaterChoices", "AgECnCnstrRestriction", "AgECnFromToParentConstraint", "AgECnstrBackground", "AgECnstrGroundTrack", +"AgECnstrLighting", "AgECommSystemAccessEventDetectionType", "AgECommSystemAccessSamplingMethodType", "AgECommSystemConstrainingRole", +"AgECommSystemLinkSelectionCriteriaType", "AgECommSystemReferenceBandwidth", "AgECommSystemSaveMode", "AgEComponent", "AgEComponentLinkEmbedControlReferenceType", "AgEConstants", "AgECv3dDrawAtAltMode", "AgECvAltitudeMethod", "AgECvAssetGrouping", "AgECvAssetStatus", "AgECvBounds", "AgECvCustomRegionAlgorithm", "AgECvDataRetention", "AgECvGridClass", "AgECvGroundAltitudeMethod", "AgECvPointAltitudeMethod", "AgECvPointLocMethod", "AgECvRegionAccessAccel", "AgECvResolution", "AgECvSatisfactionType", "AgEDataProviderType", "AgEDataPrvElementType", @@ -298,21 +300,23 @@ "IAgAccessCnstrExclZonesCollection", "IAgAccessCnstrGroundTrack", "IAgAccessCnstrIntervals", "IAgAccessCnstrMinMax", "IAgAccessCnstrObjExAngle", "IAgAccessCnstrPluginMinMax", "IAgAccessCnstrThirdBody", "IAgAccessCnstrTimeSlipRange", "IAgAccessCnstrZone", "IAgAccessConstraint", "IAgAccessConstraintCollection", "IAgAccessEventDetection", "IAgAccessInterval", "IAgAccessSampling", "IAgAccessTime", "IAgAccessTimeCollection", -"IAgAccessTimeEventIntervals", "IAgAccessTimePeriod", "IAgAdditionalGainLoss", "IAgAdditionalGainLossCollection", "IAgAircraft", -"IAgAnimation", "IAgAntenna", "IAgAntennaBeam", "IAgAntennaBeamCollection", "IAgAntennaBeamSelectionStrategy", "IAgAntennaBeamSelectionStrategyScriptPlugin", -"IAgAntennaBeamTransmit", "IAgAntennaContour", "IAgAntennaContourEirp", "IAgAntennaContourFluxDensity", "IAgAntennaContourGain", -"IAgAntennaContourGraphics", "IAgAntennaContourLevel", "IAgAntennaContourLevelCollection", "IAgAntennaContourRip", "IAgAntennaContourSpectralFluxDensity", -"IAgAntennaControl", "IAgAntennaGraphics", "IAgAntennaModel", "IAgAntennaModelANSYSffdFormat", "IAgAntennaModelApertureCircularBessel", -"IAgAntennaModelApertureCircularBesselEnvelope", "IAgAntennaModelApertureCircularCosine", "IAgAntennaModelApertureCircularCosinePedestal", -"IAgAntennaModelApertureCircularCosineSquared", "IAgAntennaModelApertureCircularCosineSquaredPedestal", "IAgAntennaModelApertureCircularSincIntPower", -"IAgAntennaModelApertureCircularSincRealPower", "IAgAntennaModelApertureCircularUniform", "IAgAntennaModelApertureRectangularCosine", -"IAgAntennaModelApertureRectangularCosinePedestal", "IAgAntennaModelApertureRectangularCosineSquared", "IAgAntennaModelApertureRectangularCosineSquaredPedestal", -"IAgAntennaModelApertureRectangularSincIntPower", "IAgAntennaModelApertureRectangularSincRealPower", "IAgAntennaModelApertureRectangularUniform", -"IAgAntennaModelCosecantSquared", "IAgAntennaModelDipole", "IAgAntennaModelElevationAzimuthCuts", "IAgAntennaModelExternal", -"IAgAntennaModelGaussian", "IAgAntennaModelGimroc", "IAgAntennaModelGpsFrpa", "IAgAntennaModelGpsGlobal", "IAgAntennaModelHelix", -"IAgAntennaModelHemispherical", "IAgAntennaModelIeee1979", "IAgAntennaModelIntelSat", "IAgAntennaModelIsotropic", "IAgAntennaModelItuBO1213CoPolar", -"IAgAntennaModelItuBO1213CrossPolar", "IAgAntennaModelItuF1245", "IAgAntennaModelItuS1528R12Circular", "IAgAntennaModelItuS1528R12Rectangular", -"IAgAntennaModelItuS1528R13", "IAgAntennaModelItuS465", "IAgAntennaModelItuS580", "IAgAntennaModelItuS672Circular", "IAgAntennaModelItuS672Rectangular", +"IAgAccessTimeEventIntervals", "IAgAccessTimePeriod", "IAgAdditionalGainLoss", "IAgAdditionalGainLossCollection", "IAgAdvCAT", +"IAgAdvCATAdvEllipsoid", "IAgAdvCATAdvanced", "IAgAdvCATAvailableObjectCollection", "IAgAdvCATChosenObject", "IAgAdvCATChosenObjectCollection", +"IAgAdvCATPreFilters", "IAgAdvCATVO", "IAgAircraft", "IAgAnimation", "IAgAntenna", "IAgAntennaBeam", "IAgAntennaBeamCollection", +"IAgAntennaBeamSelectionStrategy", "IAgAntennaBeamSelectionStrategyScriptPlugin", "IAgAntennaBeamTransmit", "IAgAntennaContour", +"IAgAntennaContourEirp", "IAgAntennaContourFluxDensity", "IAgAntennaContourGain", "IAgAntennaContourGraphics", "IAgAntennaContourLevel", +"IAgAntennaContourLevelCollection", "IAgAntennaContourRip", "IAgAntennaContourSpectralFluxDensity", "IAgAntennaControl", +"IAgAntennaGraphics", "IAgAntennaModel", "IAgAntennaModelANSYSffdFormat", "IAgAntennaModelApertureCircularBessel", "IAgAntennaModelApertureCircularBesselEnvelope", +"IAgAntennaModelApertureCircularCosine", "IAgAntennaModelApertureCircularCosinePedestal", "IAgAntennaModelApertureCircularCosineSquared", +"IAgAntennaModelApertureCircularCosineSquaredPedestal", "IAgAntennaModelApertureCircularSincIntPower", "IAgAntennaModelApertureCircularSincRealPower", +"IAgAntennaModelApertureCircularUniform", "IAgAntennaModelApertureRectangularCosine", "IAgAntennaModelApertureRectangularCosinePedestal", +"IAgAntennaModelApertureRectangularCosineSquared", "IAgAntennaModelApertureRectangularCosineSquaredPedestal", "IAgAntennaModelApertureRectangularSincIntPower", +"IAgAntennaModelApertureRectangularSincRealPower", "IAgAntennaModelApertureRectangularUniform", "IAgAntennaModelCosecantSquared", +"IAgAntennaModelDipole", "IAgAntennaModelElevationAzimuthCuts", "IAgAntennaModelExternal", "IAgAntennaModelGaussian", "IAgAntennaModelGimroc", +"IAgAntennaModelGpsFrpa", "IAgAntennaModelGpsGlobal", "IAgAntennaModelHelix", "IAgAntennaModelHemispherical", "IAgAntennaModelIeee1979", +"IAgAntennaModelIntelSat", "IAgAntennaModelIsotropic", "IAgAntennaModelItuBO1213CoPolar", "IAgAntennaModelItuBO1213CrossPolar", +"IAgAntennaModelItuF1245", "IAgAntennaModelItuS1528R12Circular", "IAgAntennaModelItuS1528R12Rectangular", "IAgAntennaModelItuS1528R13", +"IAgAntennaModelItuS465", "IAgAntennaModelItuS580", "IAgAntennaModelItuS672Circular", "IAgAntennaModelItuS672Rectangular", "IAgAntennaModelItuS731", "IAgAntennaModelOpticalSimple", "IAgAntennaModelParabolic", "IAgAntennaModelPencilBeam", "IAgAntennaModelPhasedArray", "IAgAntennaModelRectangularPattern", "IAgAntennaModelRemcomUanFormat", "IAgAntennaModelScriptPlugin", "IAgAntennaModelSquareHorn", "IAgAntennaModelTicraGRASPFormat", "IAgAntennaNoiseTemperature", "IAgAntennaSystem", "IAgAntennaVO", "IAgAntennaVolumeGraphics", @@ -550,10 +554,6 @@ from ..internal.eventutil import * from ..utilities.exceptions import * -# Tweak package name by removing last level, for instance: -# agi.stk12.stkobjects.aviator.aviator -> agi.stk12.stkobjects.aviator -__name__ = __name__.rsplit('.', 1)[0] - from ..stkutil import * from ..vgt import * from ..graphics import * @@ -6199,6 +6199,60 @@ class AgEEphemExportToolFileFormat(IntEnum): agcls.AgTypeNameMap["AgEEphemExportToolFileFormat"] = AgEEphemExportToolFileFormat +class AgEAdvCATEllipsoidClass(IntEnum): + """Method for determining Ellipsoid Sizing method (class).""" + # AdvCAT class type Fixed. + eAdvCATClassFixed = 0 + # AdvCAT class type Fixed Orbit class. + eAdvCATClassOrbitClass = 1 + # AdvCAT class type Quadratic. + eAdvCATClassQuadratic = 2 + # AdvCAT class type Quad In Time Orbit Class. + eAdvCATClassQuadOrb = 3 + # AdvCAT class type Covariance. + eAdvCATClassCovariance = 4 + # AdvCAT class type Covariance Offset. + eAdvCATClassCovarianceOffset = 5 + +AgEAdvCATEllipsoidClass.eAdvCATClassFixed.__doc__ = "AdvCAT class type Fixed." +AgEAdvCATEllipsoidClass.eAdvCATClassOrbitClass.__doc__ = "AdvCAT class type Fixed Orbit class." +AgEAdvCATEllipsoidClass.eAdvCATClassQuadratic.__doc__ = "AdvCAT class type Quadratic." +AgEAdvCATEllipsoidClass.eAdvCATClassQuadOrb.__doc__ = "AdvCAT class type Quad In Time Orbit Class." +AgEAdvCATEllipsoidClass.eAdvCATClassCovariance.__doc__ = "AdvCAT class type Covariance." +AgEAdvCATEllipsoidClass.eAdvCATClassCovarianceOffset.__doc__ = "AdvCAT class type Covariance Offset." + +agcls.AgTypeNameMap["AgEAdvCATEllipsoidClass"] = AgEAdvCATEllipsoidClass + +class AgEAdvCATConjunctionType(IntEnum): + """Mode for computing events involving conjunction TCA.""" + # conjunction TCA type Global Only. + eAdvCATConjunctionTypeGlobalOnly = 0 + # conjunction TCA type Local Only. + eAdvCATConjunctionTypeLocalOnly = 1 + # conjunction TCA type Global + Local. + eAdvCATConjunctionTypeGlobalPlusLocal = 2 + # conjunction TCA typeLocal + EndPoints. + eAdvCATConjunctionTypeLocalPlusEndPoints = 3 + +AgEAdvCATConjunctionType.eAdvCATConjunctionTypeGlobalOnly.__doc__ = "conjunction TCA type Global Only." +AgEAdvCATConjunctionType.eAdvCATConjunctionTypeLocalOnly.__doc__ = "conjunction TCA type Local Only." +AgEAdvCATConjunctionType.eAdvCATConjunctionTypeGlobalPlusLocal.__doc__ = "conjunction TCA type Global + Local." +AgEAdvCATConjunctionType.eAdvCATConjunctionTypeLocalPlusEndPoints.__doc__ = "conjunction TCA typeLocal + EndPoints." + +agcls.AgTypeNameMap["AgEAdvCATConjunctionType"] = AgEAdvCATConjunctionType + +class AgEAdvCATSecondaryEllipsoidsVisibilityType(IntEnum): + """Type of visible Secondary Ellipsoids.""" + # Show all Secondary Ellipsoids. + eShowAllSecondaryEllipsoids = 0 + # Show Secondary Ellipsoids with conjunctions. + eShowSecondaryEllipsoidsWithConjunctions = 1 + +AgEAdvCATSecondaryEllipsoidsVisibilityType.eShowAllSecondaryEllipsoids.__doc__ = "Show all Secondary Ellipsoids." +AgEAdvCATSecondaryEllipsoidsVisibilityType.eShowSecondaryEllipsoidsWithConjunctions.__doc__ = "Show Secondary Ellipsoids with conjunctions." + +agcls.AgTypeNameMap["AgEAdvCATSecondaryEllipsoidsVisibilityType"] = AgEAdvCATSecondaryEllipsoidsVisibilityType + class AgEComponentLinkEmbedControlReferenceType(IntEnum): """Component link/embed control reference type.""" # Unlink @@ -102598,9 +102652,9 @@ def HasCovarianceData(self) -> bool: @property def FileFormat(self) -> "AgEEphemExportToolFileFormat": """The file format that will be generated by the export tool.""" - with agmarshall.AgEnum_arg(AgEEphemExportToolFileFormat) as arg_fileFormat: - agcls.evaluate_hresult(self.__dict__["_GetFileFormat"](byref(arg_fileFormat.COM_val))) - return arg_fileFormat.python_val + with agmarshall.AgEnum_arg(AgEEphemExportToolFileFormat) as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetFileFormat"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val @FileFormat.setter def FileFormat(self, fileFormat:"AgEEphemExportToolFileFormat") -> None: @@ -122490,6 +122544,1271 @@ def __setattr__(self, attrname, value): agcls.AgClassCatalog.add_catalog_entry("{89B0E290-9DE0-4021-AF41-598A7DAC3671}", IAgSubset) agcls.AgTypeNameMap["IAgSubset"] = IAgSubset +class IAgAdvCATAvailableObjectCollection(object): + """IAgAdvCATAvailableObjectCollection represents available objects.""" + _uuid = "{D95EBF45-9FEE-4861-8BCA-E9D25BEBCCE1}" + _num_methods = 3 + _vtable_offset = IDispatch._vtable_offset + IDispatch._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetCount"] = _raise_uninitialized_error + self.__dict__["_GetAvailableObject"] = _raise_uninitialized_error + self.__dict__["_ToArray"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATAvailableObjectCollection._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATAvailableObjectCollection from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATAvailableObjectCollection = agcom.GUID(IAgAdvCATAvailableObjectCollection._uuid) + vtable_offset_local = IAgAdvCATAvailableObjectCollection._vtable_offset - 1 + self.__dict__["_GetCount"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAvailableObjectCollection, vtable_offset_local+1, POINTER(agcom.LONG)) + self.__dict__["_GetAvailableObject"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAvailableObjectCollection, vtable_offset_local+2, agcom.LONG, POINTER(agcom.VARIANT), POINTER(agcom.VARIANT), POINTER(agcom.VARIANT)) + self.__dict__["_ToArray"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAvailableObjectCollection, vtable_offset_local+3, POINTER(agcom.SAFEARRAY)) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATAvailableObjectCollection.__dict__ and type(IAgAdvCATAvailableObjectCollection.__dict__[attrname]) == property: + return IAgAdvCATAvailableObjectCollection.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATAvailableObjectCollection.") + + @property + def Count(self) -> int: + """Number of items in the collection.""" + with agmarshall.LONG_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetCount"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + def GetAvailableObject(self, index:int) -> typing.Tuple[typing.Any, typing.Any, typing.Any]: + """Returns name, date and type times of the interval at a given index.""" + with agmarshall.LONG_arg(index) as arg_index, \ + agmarshall.VARIANT_arg() as arg_pName, \ + agmarshall.VARIANT_arg() as arg_pDate, \ + agmarshall.VARIANT_arg() as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetAvailableObject"](arg_index.COM_val, byref(arg_pName.COM_val), byref(arg_pDate.COM_val), byref(arg_pType.COM_val))) + return arg_pName.python_val, arg_pDate.python_val, arg_pType.python_val + + def ToArray(self) -> list: + """Returns a two-dimensional array of objects.""" + with agmarshall.SAFEARRAY_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_ToArray"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + +agcls.AgClassCatalog.add_catalog_entry("{D95EBF45-9FEE-4861-8BCA-E9D25BEBCCE1}", IAgAdvCATAvailableObjectCollection) +agcls.AgTypeNameMap["IAgAdvCATAvailableObjectCollection"] = IAgAdvCATAvailableObjectCollection + +class IAgAdvCATChosenObjectCollection(object): + """Chosen object collection.""" + _uuid = "{3477AE21-9FF5-4954-8740-5F13288B3B41}" + _num_methods = 6 + _vtable_offset = IDispatch._vtable_offset + IDispatch._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetCount"] = _raise_uninitialized_error + self.__dict__["_Item"] = _raise_uninitialized_error + self.__dict__["_Get_NewEnum"] = _raise_uninitialized_error + self.__dict__["_RemoveAt"] = _raise_uninitialized_error + self.__dict__["_RemoveAll"] = _raise_uninitialized_error + self.__dict__["_Add"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATChosenObjectCollection._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATChosenObjectCollection from source object.") + self.__dict__["enumerator"] = None + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATChosenObjectCollection = agcom.GUID(IAgAdvCATChosenObjectCollection._uuid) + vtable_offset_local = IAgAdvCATChosenObjectCollection._vtable_offset - 1 + self.__dict__["_GetCount"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+1, POINTER(agcom.LONG)) + self.__dict__["_Item"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+2, agcom.LONG, POINTER(agcom.PVOID)) + self.__dict__["_Get_NewEnum"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+3, POINTER(agcom.PVOID)) + self.__dict__["_RemoveAt"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+4, agcom.LONG) + self.__dict__["_RemoveAll"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+5, ) + self.__dict__["_Add"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObjectCollection, vtable_offset_local+6, agcom.BSTR, POINTER(agcom.PVOID)) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATChosenObjectCollection.__dict__ and type(IAgAdvCATChosenObjectCollection.__dict__[attrname]) == property: + return IAgAdvCATChosenObjectCollection.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATChosenObjectCollection.") + def __iter__(self): + self.__dict__["enumerator"] = self._NewEnum + self.__dict__["enumerator"].Reset() + return self + def __next__(self) -> "IAgAdvCATChosenObject": + if self.__dict__["enumerator"] is None: + raise StopIteration + nextval = self.__dict__["enumerator"].Next() + if nextval is None: + raise StopIteration + return agmarshall.python_val_from_VARIANT(nextval) + + @property + def Count(self) -> int: + """Returns the number of chosen objects in a collection.""" + with agmarshall.LONG_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetCount"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + def Item(self, index:int) -> "IAgAdvCATChosenObject": + """Given an index, returns a chosen object in the collection.""" + with agmarshall.LONG_arg(index) as arg_index, \ + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_Item"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + @property + def _NewEnum(self) -> IEnumVARIANT: + """Returns an enumerator that can iterate through the collection.""" + with agmarshall.IEnumVARIANT_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_Get_NewEnum"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + def RemoveAt(self, index:int) -> None: + """Removes an object from the collection using specified index.""" + with agmarshall.LONG_arg(index) as arg_index: + agcls.evaluate_hresult(self.__dict__["_RemoveAt"](arg_index.COM_val)) + + def RemoveAll(self) -> None: + """Removes all elements from the collection.""" + agcls.evaluate_hresult(self.__dict__["_RemoveAll"]()) + + def Add(self, object:str) -> "IAgAdvCATChosenObject": + """Add a new chosen object to the collection.""" + with agmarshall.BSTR_arg(object) as arg_object, \ + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_Add"](arg_object.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + __getitem__ = Item + + + +agcls.AgClassCatalog.add_catalog_entry("{3477AE21-9FF5-4954-8740-5F13288B3B41}", IAgAdvCATChosenObjectCollection) +agcls.AgTypeNameMap["IAgAdvCATChosenObjectCollection"] = IAgAdvCATChosenObjectCollection + +class IAgAdvCATPreFilters(object): + """Pre-Filters.""" + _uuid = "{ADF90FA5-8130-4A6C-8233-8D5355E95A32}" + _num_methods = 16 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetUseOutOfDateFilter"] = _raise_uninitialized_error + self.__dict__["_SetUseOutOfDateFilter"] = _raise_uninitialized_error + self.__dict__["_GetOutOfDatePad"] = _raise_uninitialized_error + self.__dict__["_SetOutOfDatePad"] = _raise_uninitialized_error + self.__dict__["_GetUseApogeePerigeeFilter"] = _raise_uninitialized_error + self.__dict__["_SetUseApogeePerigeeFilter"] = _raise_uninitialized_error + self.__dict__["_GetApogeePerigeePad"] = _raise_uninitialized_error + self.__dict__["_SetApogeePerigeePad"] = _raise_uninitialized_error + self.__dict__["_GetUseOrbitPathFilter"] = _raise_uninitialized_error + self.__dict__["_SetUseOrbitPathFilter"] = _raise_uninitialized_error + self.__dict__["_GetOrbitPathPad"] = _raise_uninitialized_error + self.__dict__["_SetOrbitPathPad"] = _raise_uninitialized_error + self.__dict__["_GetUseTimeFilter"] = _raise_uninitialized_error + self.__dict__["_SetUseTimeFilter"] = _raise_uninitialized_error + self.__dict__["_GetTimeDistancePad"] = _raise_uninitialized_error + self.__dict__["_SetTimeDistancePad"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATPreFilters._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATPreFilters from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATPreFilters = agcom.GUID(IAgAdvCATPreFilters._uuid) + vtable_offset_local = IAgAdvCATPreFilters._vtable_offset - 1 + self.__dict__["_GetUseOutOfDateFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+1, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseOutOfDateFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+2, agcom.VARIANT_BOOL) + self.__dict__["_GetOutOfDatePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+3, POINTER(agcom.DOUBLE)) + self.__dict__["_SetOutOfDatePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+4, agcom.DOUBLE) + self.__dict__["_GetUseApogeePerigeeFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+5, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseApogeePerigeeFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+6, agcom.VARIANT_BOOL) + self.__dict__["_GetApogeePerigeePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+7, POINTER(agcom.DOUBLE)) + self.__dict__["_SetApogeePerigeePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+8, agcom.DOUBLE) + self.__dict__["_GetUseOrbitPathFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+9, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseOrbitPathFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+10, agcom.VARIANT_BOOL) + self.__dict__["_GetOrbitPathPad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+11, POINTER(agcom.DOUBLE)) + self.__dict__["_SetOrbitPathPad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+12, agcom.DOUBLE) + self.__dict__["_GetUseTimeFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+13, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseTimeFilter"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+14, agcom.VARIANT_BOOL) + self.__dict__["_GetTimeDistancePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+15, POINTER(agcom.DOUBLE)) + self.__dict__["_SetTimeDistancePad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATPreFilters, vtable_offset_local+16, agcom.DOUBLE) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATPreFilters.__dict__ and type(IAgAdvCATPreFilters.__dict__[attrname]) == property: + return IAgAdvCATPreFilters.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATPreFilters.") + + @property + def UseOutOfDateFilter(self) -> bool: + """Flag to specify if Out of Date Filter is Used.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseOutOfDateFilter"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseOutOfDateFilter.setter + def UseOutOfDateFilter(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseOutOfDateFilter"](arg_newVal.COM_val)) + + @property + def OutOfDatePad(self) -> float: + """Out Of Date TLE Pad.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetOutOfDatePad"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @OutOfDatePad.setter + def OutOfDatePad(self, outOfDatePad:float) -> None: + with agmarshall.DOUBLE_arg(outOfDatePad) as arg_outOfDatePad: + agcls.evaluate_hresult(self.__dict__["_SetOutOfDatePad"](arg_outOfDatePad.COM_val)) + + @property + def UseApogeePerigeeFilter(self) -> bool: + """Flag to specify if Out of Apogee/Perigee Filter is Used.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseApogeePerigeeFilter"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseApogeePerigeeFilter.setter + def UseApogeePerigeeFilter(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseApogeePerigeeFilter"](arg_newVal.COM_val)) + + @property + def ApogeePerigeePad(self) -> float: + """Apogee/Perigee Pad.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetApogeePerigeePad"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @ApogeePerigeePad.setter + def ApogeePerigeePad(self, apogeePerigeePad:float) -> None: + with agmarshall.DOUBLE_arg(apogeePerigeePad) as arg_apogeePerigeePad: + agcls.evaluate_hresult(self.__dict__["_SetApogeePerigeePad"](arg_apogeePerigeePad.COM_val)) + + @property + def UseOrbitPathFilter(self) -> bool: + """Flag to specify if Out of Path Filter is Used.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseOrbitPathFilter"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseOrbitPathFilter.setter + def UseOrbitPathFilter(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseOrbitPathFilter"](arg_newVal.COM_val)) + + @property + def OrbitPathPad(self) -> float: + """Orbit Path Pad.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetOrbitPathPad"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @OrbitPathPad.setter + def OrbitPathPad(self, orbitPathPad:float) -> None: + with agmarshall.DOUBLE_arg(orbitPathPad) as arg_orbitPathPad: + agcls.evaluate_hresult(self.__dict__["_SetOrbitPathPad"](arg_orbitPathPad.COM_val)) + + @property + def UseTimeFilter(self) -> bool: + """Flag to specify if Out of Time Filter is Used.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseTimeFilter"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseTimeFilter.setter + def UseTimeFilter(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseTimeFilter"](arg_newVal.COM_val)) + + @property + def TimeDistancePad(self) -> float: + """Time Distance Pad.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetTimeDistancePad"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @TimeDistancePad.setter + def TimeDistancePad(self, timeDistancePad:float) -> None: + with agmarshall.DOUBLE_arg(timeDistancePad) as arg_timeDistancePad: + agcls.evaluate_hresult(self.__dict__["_SetTimeDistancePad"](arg_timeDistancePad.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{ADF90FA5-8130-4A6C-8233-8D5355E95A32}", IAgAdvCATPreFilters) +agcls.AgTypeNameMap["IAgAdvCATPreFilters"] = IAgAdvCATPreFilters + +class IAgAdvCATAdvEllipsoid(object): + """Advanced ellipsoid properties.""" + _uuid = "{047EAB50-0828-4110-97F2-50883BAC1340}" + _num_methods = 8 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetScaleFactor"] = _raise_uninitialized_error + self.__dict__["_SetScaleFactor"] = _raise_uninitialized_error + self.__dict__["_GetQuadraticInTimeDB"] = _raise_uninitialized_error + self.__dict__["_SetQuadraticInTimeDB"] = _raise_uninitialized_error + self.__dict__["_GetFixedByOrbitClassDB"] = _raise_uninitialized_error + self.__dict__["_SetFixedByOrbitClassDB"] = _raise_uninitialized_error + self.__dict__["_GetQuadraticByOrbitClassDB"] = _raise_uninitialized_error + self.__dict__["_SetQuadraticByOrbitClassDB"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATAdvEllipsoid._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATAdvEllipsoid from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATAdvEllipsoid = agcom.GUID(IAgAdvCATAdvEllipsoid._uuid) + vtable_offset_local = IAgAdvCATAdvEllipsoid._vtable_offset - 1 + self.__dict__["_GetScaleFactor"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+1, POINTER(agcom.DOUBLE)) + self.__dict__["_SetScaleFactor"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+2, agcom.DOUBLE) + self.__dict__["_GetQuadraticInTimeDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+3, POINTER(agcom.BSTR)) + self.__dict__["_SetQuadraticInTimeDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+4, agcom.BSTR) + self.__dict__["_GetFixedByOrbitClassDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+5, POINTER(agcom.BSTR)) + self.__dict__["_SetFixedByOrbitClassDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+6, agcom.BSTR) + self.__dict__["_GetQuadraticByOrbitClassDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+7, POINTER(agcom.BSTR)) + self.__dict__["_SetQuadraticByOrbitClassDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvEllipsoid, vtable_offset_local+8, agcom.BSTR) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATAdvEllipsoid.__dict__ and type(IAgAdvCATAdvEllipsoid.__dict__[attrname]) == property: + return IAgAdvCATAdvEllipsoid.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATAdvEllipsoid.") + + @property + def ScaleFactor(self) -> float: + """Ellipsoid Scaling Factor.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetScaleFactor"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @ScaleFactor.setter + def ScaleFactor(self, scaleFactor:float) -> None: + with agmarshall.DOUBLE_arg(scaleFactor) as arg_scaleFactor: + agcls.evaluate_hresult(self.__dict__["_SetScaleFactor"](arg_scaleFactor.COM_val)) + + @property + def QuadraticInTimeDB(self) -> str: + """Quadratic Database Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetQuadraticInTimeDB"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @QuadraticInTimeDB.setter + def QuadraticInTimeDB(self, quadraticInTimeDB:str) -> None: + with agmarshall.BSTR_arg(quadraticInTimeDB) as arg_quadraticInTimeDB: + agcls.evaluate_hresult(self.__dict__["_SetQuadraticInTimeDB"](arg_quadraticInTimeDB.COM_val)) + + @property + def FixedByOrbitClassDB(self) -> str: + """Fixed by Orbit Class Database Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetFixedByOrbitClassDB"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @FixedByOrbitClassDB.setter + def FixedByOrbitClassDB(self, fixedByOrbitClassDB:str) -> None: + with agmarshall.BSTR_arg(fixedByOrbitClassDB) as arg_fixedByOrbitClassDB: + agcls.evaluate_hresult(self.__dict__["_SetFixedByOrbitClassDB"](arg_fixedByOrbitClassDB.COM_val)) + + @property + def QuadraticByOrbitClassDB(self) -> str: + """Quadratics by Orbit Class Database Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetQuadraticByOrbitClassDB"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @QuadraticByOrbitClassDB.setter + def QuadraticByOrbitClassDB(self, quadraticByOrbitClassDB:str) -> None: + with agmarshall.BSTR_arg(quadraticByOrbitClassDB) as arg_quadraticByOrbitClassDB: + agcls.evaluate_hresult(self.__dict__["_SetQuadraticByOrbitClassDB"](arg_quadraticByOrbitClassDB.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{047EAB50-0828-4110-97F2-50883BAC1340}", IAgAdvCATAdvEllipsoid) +agcls.AgTypeNameMap["IAgAdvCATAdvEllipsoid"] = IAgAdvCATAdvEllipsoid + +class IAgAdvCATAdvanced(object): + """AdvCAT Advanced properties.""" + _uuid = "{5B3D3575-32B1-4192-A150-8A26DF23C129}" + _num_methods = 34 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetAdvEllipsoid"] = _raise_uninitialized_error + self.__dict__["_GetPreFilters"] = _raise_uninitialized_error + self.__dict__["_GetUseLogFile"] = _raise_uninitialized_error + self.__dict__["_SetUseLogFile"] = _raise_uninitialized_error + self.__dict__["_GetLogFileName"] = _raise_uninitialized_error + self.__dict__["_SetLogFileName"] = _raise_uninitialized_error + self.__dict__["_GetUseCorrelationFile"] = _raise_uninitialized_error + self.__dict__["_SetUseCorrelationFile"] = _raise_uninitialized_error + self.__dict__["_GetCorrelationFile"] = _raise_uninitialized_error + self.__dict__["_SetCorrelationFile"] = _raise_uninitialized_error + self.__dict__["_GetUseCrossRefDB"] = _raise_uninitialized_error + self.__dict__["_SetUseCrossRefDB"] = _raise_uninitialized_error + self.__dict__["_GetCrossReferenceDB"] = _raise_uninitialized_error + self.__dict__["_SetCrossReferenceDB"] = _raise_uninitialized_error + self.__dict__["_GetUseSSCHardBodyRadiusFile"] = _raise_uninitialized_error + self.__dict__["_SetUseSSCHardBodyRadiusFile"] = _raise_uninitialized_error + self.__dict__["_GetSSCHardBodyRadiusFile"] = _raise_uninitialized_error + self.__dict__["_SetSSCHardBodyRadiusFile"] = _raise_uninitialized_error + self.__dict__["_GetShowMsgInMsgViewer"] = _raise_uninitialized_error + self.__dict__["_SetShowMsgInMsgViewer"] = _raise_uninitialized_error + self.__dict__["_GetForceRepropagationOnLoad"] = _raise_uninitialized_error + self.__dict__["_SetForceRepropagationOnLoad"] = _raise_uninitialized_error + self.__dict__["_GetComputeOnLoad"] = _raise_uninitialized_error + self.__dict__["_SetComputeOnLoad"] = _raise_uninitialized_error + self.__dict__["_GetAllowPartialEphemeris"] = _raise_uninitialized_error + self.__dict__["_SetAllowPartialEphemeris"] = _raise_uninitialized_error + self.__dict__["_GetRemoveSecondaryBySSC"] = _raise_uninitialized_error + self.__dict__["_SetRemoveSecondaryBySSC"] = _raise_uninitialized_error + self.__dict__["_GetMaxSampleStepSize"] = _raise_uninitialized_error + self.__dict__["_SetMaxSampleStepSize"] = _raise_uninitialized_error + self.__dict__["_GetMinSampleStepSize"] = _raise_uninitialized_error + self.__dict__["_SetMinSampleStepSize"] = _raise_uninitialized_error + self.__dict__["_GetConjunctionType"] = _raise_uninitialized_error + self.__dict__["_SetConjunctionType"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATAdvanced._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATAdvanced from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATAdvanced = agcom.GUID(IAgAdvCATAdvanced._uuid) + vtable_offset_local = IAgAdvCATAdvanced._vtable_offset - 1 + self.__dict__["_GetAdvEllipsoid"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+1, POINTER(agcom.PVOID)) + self.__dict__["_GetPreFilters"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+2, POINTER(agcom.PVOID)) + self.__dict__["_GetUseLogFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+3, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseLogFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+4, agcom.VARIANT_BOOL) + self.__dict__["_GetLogFileName"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+5, POINTER(agcom.BSTR)) + self.__dict__["_SetLogFileName"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+6, agcom.BSTR) + self.__dict__["_GetUseCorrelationFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+7, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseCorrelationFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+8, agcom.VARIANT_BOOL) + self.__dict__["_GetCorrelationFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+9, POINTER(agcom.BSTR)) + self.__dict__["_SetCorrelationFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+10, agcom.BSTR) + self.__dict__["_GetUseCrossRefDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+11, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseCrossRefDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+12, agcom.VARIANT_BOOL) + self.__dict__["_GetCrossReferenceDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+13, POINTER(agcom.BSTR)) + self.__dict__["_SetCrossReferenceDB"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+14, agcom.BSTR) + self.__dict__["_GetUseSSCHardBodyRadiusFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+15, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseSSCHardBodyRadiusFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+16, agcom.VARIANT_BOOL) + self.__dict__["_GetSSCHardBodyRadiusFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+17, POINTER(agcom.BSTR)) + self.__dict__["_SetSSCHardBodyRadiusFile"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+18, agcom.BSTR) + self.__dict__["_GetShowMsgInMsgViewer"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+19, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetShowMsgInMsgViewer"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+20, agcom.VARIANT_BOOL) + self.__dict__["_GetForceRepropagationOnLoad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+21, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetForceRepropagationOnLoad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+22, agcom.VARIANT_BOOL) + self.__dict__["_GetComputeOnLoad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+23, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetComputeOnLoad"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+24, agcom.VARIANT_BOOL) + self.__dict__["_GetAllowPartialEphemeris"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+25, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetAllowPartialEphemeris"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+26, agcom.VARIANT_BOOL) + self.__dict__["_GetRemoveSecondaryBySSC"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+27, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetRemoveSecondaryBySSC"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+28, agcom.VARIANT_BOOL) + self.__dict__["_GetMaxSampleStepSize"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+29, POINTER(agcom.DOUBLE)) + self.__dict__["_SetMaxSampleStepSize"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+30, agcom.DOUBLE) + self.__dict__["_GetMinSampleStepSize"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+31, POINTER(agcom.DOUBLE)) + self.__dict__["_SetMinSampleStepSize"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+32, agcom.DOUBLE) + self.__dict__["_GetConjunctionType"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+33, POINTER(agcom.LONG)) + self.__dict__["_SetConjunctionType"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATAdvanced, vtable_offset_local+34, agcom.LONG) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATAdvanced.__dict__ and type(IAgAdvCATAdvanced.__dict__[attrname]) == property: + return IAgAdvCATAdvanced.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATAdvanced.") + + @property + def AdvEllipsoid(self) -> "IAgAdvCATAdvEllipsoid": + """Get AdvCAT advanced ellipsoid properties.""" + with agmarshall.AgInterface_out_arg() as arg_ppVal: + agcls.evaluate_hresult(self.__dict__["_GetAdvEllipsoid"](byref(arg_ppVal.COM_val))) + return arg_ppVal.python_val + + @property + def PreFilters(self) -> "IAgAdvCATPreFilters": + """Get AdvCAT filter settings.""" + with agmarshall.AgInterface_out_arg() as arg_ppVal: + agcls.evaluate_hresult(self.__dict__["_GetPreFilters"](byref(arg_ppVal.COM_val))) + return arg_ppVal.python_val + + @property + def UseLogFile(self) -> bool: + """Use the log file""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseLogFile"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseLogFile.setter + def UseLogFile(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseLogFile"](arg_newVal.COM_val)) + + @property + def LogFileName(self) -> str: + """Name of the Log File.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetLogFileName"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @LogFileName.setter + def LogFileName(self, logFileName:str) -> None: + with agmarshall.BSTR_arg(logFileName) as arg_logFileName: + agcls.evaluate_hresult(self.__dict__["_SetLogFileName"](arg_logFileName.COM_val)) + + @property + def UseCorrelationFile(self) -> bool: + """Flag to specify Use of Correlation File.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseCorrelationFile"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseCorrelationFile.setter + def UseCorrelationFile(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseCorrelationFile"](arg_newVal.COM_val)) + + @property + def CorrelationFile(self) -> str: + """Correlation File Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetCorrelationFile"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @CorrelationFile.setter + def CorrelationFile(self, correlationFile:str) -> None: + with agmarshall.BSTR_arg(correlationFile) as arg_correlationFile: + agcls.evaluate_hresult(self.__dict__["_SetCorrelationFile"](arg_correlationFile.COM_val)) + + @property + def UseCrossRefDB(self) -> bool: + """Flag to specify Use of Cross Reference Database.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseCrossRefDB"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseCrossRefDB.setter + def UseCrossRefDB(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseCrossRefDB"](arg_newVal.COM_val)) + + @property + def CrossReferenceDB(self) -> str: + """Cross Reference Database Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetCrossReferenceDB"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @CrossReferenceDB.setter + def CrossReferenceDB(self, crossReferenceDB:str) -> None: + with agmarshall.BSTR_arg(crossReferenceDB) as arg_crossReferenceDB: + agcls.evaluate_hresult(self.__dict__["_SetCrossReferenceDB"](arg_crossReferenceDB.COM_val)) + + @property + def UseSSCHardBodyRadiusFile(self) -> bool: + """Flag to specify Use of SSC Reference File.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseSSCHardBodyRadiusFile"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseSSCHardBodyRadiusFile.setter + def UseSSCHardBodyRadiusFile(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseSSCHardBodyRadiusFile"](arg_newVal.COM_val)) + + @property + def SSCHardBodyRadiusFile(self) -> str: + """SSC Reference File Path.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetSSCHardBodyRadiusFile"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @SSCHardBodyRadiusFile.setter + def SSCHardBodyRadiusFile(self, sSCHardBodyRadiusFile:str) -> None: + with agmarshall.BSTR_arg(sSCHardBodyRadiusFile) as arg_sSCHardBodyRadiusFile: + agcls.evaluate_hresult(self.__dict__["_SetSSCHardBodyRadiusFile"](arg_sSCHardBodyRadiusFile.COM_val)) + + @property + def ShowMsgInMsgViewer(self) -> bool: + """Flag to specify whther to write messagees to message viewer.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetShowMsgInMsgViewer"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @ShowMsgInMsgViewer.setter + def ShowMsgInMsgViewer(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetShowMsgInMsgViewer"](arg_newVal.COM_val)) + + @property + def ForceRepropagationOnLoad(self) -> bool: + """Flag to force repropagation on load.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetForceRepropagationOnLoad"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @ForceRepropagationOnLoad.setter + def ForceRepropagationOnLoad(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetForceRepropagationOnLoad"](arg_newVal.COM_val)) + + @property + def ComputeOnLoad(self) -> bool: + """Flag to force compute on load.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetComputeOnLoad"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @ComputeOnLoad.setter + def ComputeOnLoad(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetComputeOnLoad"](arg_newVal.COM_val)) + + @property + def AllowPartialEphemeris(self) -> bool: + """Flag to allow computation even when ephemeris does not completely overlap analysis interval.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetAllowPartialEphemeris"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @AllowPartialEphemeris.setter + def AllowPartialEphemeris(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetAllowPartialEphemeris"](arg_newVal.COM_val)) + + @property + def RemoveSecondaryBySSC(self) -> bool: + """Removes from cosniseration any secondary whose SSC number is the same as the primary.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetRemoveSecondaryBySSC"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @RemoveSecondaryBySSC.setter + def RemoveSecondaryBySSC(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetRemoveSecondaryBySSC"](arg_newVal.COM_val)) + + @property + def MaxSampleStepSize(self) -> float: + """Maximum step size used in sampling.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetMaxSampleStepSize"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @MaxSampleStepSize.setter + def MaxSampleStepSize(self, maxSampleStepSize:float) -> None: + with agmarshall.DOUBLE_arg(maxSampleStepSize) as arg_maxSampleStepSize: + agcls.evaluate_hresult(self.__dict__["_SetMaxSampleStepSize"](arg_maxSampleStepSize.COM_val)) + + @property + def MinSampleStepSize(self) -> float: + """Minimum step size used in sampling.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetMinSampleStepSize"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @MinSampleStepSize.setter + def MinSampleStepSize(self, minSampleStepSize:float) -> None: + with agmarshall.DOUBLE_arg(minSampleStepSize) as arg_minSampleStepSize: + agcls.evaluate_hresult(self.__dict__["_SetMinSampleStepSize"](arg_minSampleStepSize.COM_val)) + + @property + def ConjunctionType(self) -> "AgEAdvCATConjunctionType": + """Mode for computing events involving conjunction TCA.""" + with agmarshall.AgEnum_arg(AgEAdvCATConjunctionType) as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetConjunctionType"](byref(arg_pType.COM_val))) + return arg_pType.python_val + + @ConjunctionType.setter + def ConjunctionType(self, type:"AgEAdvCATConjunctionType") -> None: + with agmarshall.AgEnum_arg(AgEAdvCATConjunctionType, type) as arg_type: + agcls.evaluate_hresult(self.__dict__["_SetConjunctionType"](arg_type.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{5B3D3575-32B1-4192-A150-8A26DF23C129}", IAgAdvCATAdvanced) +agcls.AgTypeNameMap["IAgAdvCATAdvanced"] = IAgAdvCATAdvanced + +class IAgAdvCATVO(object): + """AdvCAT VO properties.""" + _uuid = "{8453798B-29A7-48B1-A93B-D315BC182A50}" + _num_methods = 8 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetShow"] = _raise_uninitialized_error + self.__dict__["_SetShow"] = _raise_uninitialized_error + self.__dict__["_GetShowPrimaryEllipsoids"] = _raise_uninitialized_error + self.__dict__["_SetShowPrimaryEllipsoids"] = _raise_uninitialized_error + self.__dict__["_GetShowSecondaryEllipsoids"] = _raise_uninitialized_error + self.__dict__["_SetShowSecondaryEllipsoids"] = _raise_uninitialized_error + self.__dict__["_GetShowSecondaryEllipsoidsType"] = _raise_uninitialized_error + self.__dict__["_SetShowSecondaryEllipsoidsType"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATVO._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATVO from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATVO = agcom.GUID(IAgAdvCATVO._uuid) + vtable_offset_local = IAgAdvCATVO._vtable_offset - 1 + self.__dict__["_GetShow"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+1, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetShow"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+2, agcom.VARIANT_BOOL) + self.__dict__["_GetShowPrimaryEllipsoids"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+3, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetShowPrimaryEllipsoids"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+4, agcom.VARIANT_BOOL) + self.__dict__["_GetShowSecondaryEllipsoids"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+5, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetShowSecondaryEllipsoids"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+6, agcom.VARIANT_BOOL) + self.__dict__["_GetShowSecondaryEllipsoidsType"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+7, POINTER(agcom.LONG)) + self.__dict__["_SetShowSecondaryEllipsoidsType"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATVO, vtable_offset_local+8, agcom.LONG) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATVO.__dict__ and type(IAgAdvCATVO.__dict__[attrname]) == property: + return IAgAdvCATVO.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATVO.") + + @property + def Show(self) -> bool: + """Show VO properties.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetShow"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @Show.setter + def Show(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetShow"](arg_newVal.COM_val)) + + @property + def ShowPrimaryEllipsoids(self) -> bool: + """Show VO properties.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetShowPrimaryEllipsoids"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @ShowPrimaryEllipsoids.setter + def ShowPrimaryEllipsoids(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetShowPrimaryEllipsoids"](arg_newVal.COM_val)) + + @property + def ShowSecondaryEllipsoids(self) -> bool: + """Show VO properties.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetShowSecondaryEllipsoids"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @ShowSecondaryEllipsoids.setter + def ShowSecondaryEllipsoids(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetShowSecondaryEllipsoids"](arg_newVal.COM_val)) + + @property + def ShowSecondaryEllipsoidsType(self) -> "AgEAdvCATSecondaryEllipsoidsVisibilityType": + """Type of visible Secondary Ellipsoids.""" + with agmarshall.AgEnum_arg(AgEAdvCATSecondaryEllipsoidsVisibilityType) as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetShowSecondaryEllipsoidsType"](byref(arg_pType.COM_val))) + return arg_pType.python_val + + @ShowSecondaryEllipsoidsType.setter + def ShowSecondaryEllipsoidsType(self, type:"AgEAdvCATSecondaryEllipsoidsVisibilityType") -> None: + with agmarshall.AgEnum_arg(AgEAdvCATSecondaryEllipsoidsVisibilityType, type) as arg_type: + agcls.evaluate_hresult(self.__dict__["_SetShowSecondaryEllipsoidsType"](arg_type.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{8453798B-29A7-48B1-A93B-D315BC182A50}", IAgAdvCATVO) +agcls.AgTypeNameMap["IAgAdvCATVO"] = IAgAdvCATVO + +class IAgAdvCAT(object): + """AgAdvCAT properties.""" + _uuid = "{FAE80CC2-06DD-4253-9D65-70A0A44E8C11}" + _num_methods = 29 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetTimePeriod"] = _raise_uninitialized_error + self.__dict__["_GetThreshold"] = _raise_uninitialized_error + self.__dict__["_SetThreshold"] = _raise_uninitialized_error + self.__dict__["_GetUseRangeMeasure"] = _raise_uninitialized_error + self.__dict__["_SetUseRangeMeasure"] = _raise_uninitialized_error + self.__dict__["_GetDisplayAckWhenDone"] = _raise_uninitialized_error + self.__dict__["_SetDisplayAckWhenDone"] = _raise_uninitialized_error + self.__dict__["_Compute"] = _raise_uninitialized_error + self.__dict__["_GetAvailableObjects"] = _raise_uninitialized_error + self.__dict__["_GetPrimaryChosenObjects"] = _raise_uninitialized_error + self.__dict__["_GetSecondaryChosenObjects"] = _raise_uninitialized_error + self.__dict__["_GetPrimaryDefaultClass"] = _raise_uninitialized_error + self.__dict__["_GetAdvanced"] = _raise_uninitialized_error + self.__dict__["_GetVO"] = _raise_uninitialized_error + self.__dict__["_SetPrimaryDefaultClass"] = _raise_uninitialized_error + self.__dict__["_GetPrimaryDefaultTangential"] = _raise_uninitialized_error + self.__dict__["_SetPrimaryDefaultTangential"] = _raise_uninitialized_error + self.__dict__["_GetPrimaryDefaultCrossTrack"] = _raise_uninitialized_error + self.__dict__["_SetPrimaryDefaultCrossTrack"] = _raise_uninitialized_error + self.__dict__["_GetPrimaryDefaultNormal"] = _raise_uninitialized_error + self.__dict__["_SetPrimaryDefaultNormal"] = _raise_uninitialized_error + self.__dict__["_GetSecondaryDefaultClass"] = _raise_uninitialized_error + self.__dict__["_SetSecondaryDefaultClass"] = _raise_uninitialized_error + self.__dict__["_GetSecondaryDefaultTangential"] = _raise_uninitialized_error + self.__dict__["_SetSecondaryDefaultTangential"] = _raise_uninitialized_error + self.__dict__["_GetSecondaryDefaultCrossTrack"] = _raise_uninitialized_error + self.__dict__["_SetSecondaryDefaultCrossTrack"] = _raise_uninitialized_error + self.__dict__["_GetSecondaryDefaultNormal"] = _raise_uninitialized_error + self.__dict__["_SetSecondaryDefaultNormal"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCAT._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCAT from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCAT = agcom.GUID(IAgAdvCAT._uuid) + vtable_offset_local = IAgAdvCAT._vtable_offset - 1 + self.__dict__["_GetTimePeriod"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+1, POINTER(agcom.PVOID)) + self.__dict__["_GetThreshold"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+2, POINTER(agcom.DOUBLE)) + self.__dict__["_SetThreshold"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+3, agcom.DOUBLE) + self.__dict__["_GetUseRangeMeasure"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+4, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetUseRangeMeasure"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+5, agcom.VARIANT_BOOL) + self.__dict__["_GetDisplayAckWhenDone"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+6, POINTER(agcom.VARIANT_BOOL)) + self.__dict__["_SetDisplayAckWhenDone"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+7, agcom.VARIANT_BOOL) + self.__dict__["_Compute"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+8, ) + self.__dict__["_GetAvailableObjects"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+9, POINTER(agcom.PVOID)) + self.__dict__["_GetPrimaryChosenObjects"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+10, POINTER(agcom.PVOID)) + self.__dict__["_GetSecondaryChosenObjects"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+11, POINTER(agcom.PVOID)) + self.__dict__["_GetPrimaryDefaultClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+12, POINTER(agcom.LONG)) + self.__dict__["_GetAdvanced"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+13, POINTER(agcom.PVOID)) + self.__dict__["_GetVO"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+14, POINTER(agcom.PVOID)) + self.__dict__["_SetPrimaryDefaultClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+15, agcom.LONG) + self.__dict__["_GetPrimaryDefaultTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+16, POINTER(agcom.DOUBLE)) + self.__dict__["_SetPrimaryDefaultTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+17, agcom.DOUBLE) + self.__dict__["_GetPrimaryDefaultCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+18, POINTER(agcom.DOUBLE)) + self.__dict__["_SetPrimaryDefaultCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+19, agcom.DOUBLE) + self.__dict__["_GetPrimaryDefaultNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+20, POINTER(agcom.DOUBLE)) + self.__dict__["_SetPrimaryDefaultNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+21, agcom.DOUBLE) + self.__dict__["_GetSecondaryDefaultClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+22, POINTER(agcom.LONG)) + self.__dict__["_SetSecondaryDefaultClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+23, agcom.LONG) + self.__dict__["_GetSecondaryDefaultTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+24, POINTER(agcom.DOUBLE)) + self.__dict__["_SetSecondaryDefaultTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+25, agcom.DOUBLE) + self.__dict__["_GetSecondaryDefaultCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+26, POINTER(agcom.DOUBLE)) + self.__dict__["_SetSecondaryDefaultCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+27, agcom.DOUBLE) + self.__dict__["_GetSecondaryDefaultNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+28, POINTER(agcom.DOUBLE)) + self.__dict__["_SetSecondaryDefaultNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCAT, vtable_offset_local+29, agcom.DOUBLE) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCAT.__dict__ and type(IAgAdvCAT.__dict__[attrname]) == property: + return IAgAdvCAT.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCAT.") + + @property + def TimePeriod(self) -> "IAgCrdnEventIntervalSmartInterval": + """The time period for the close approach analysis.""" + with agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetTimePeriod"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + @property + def Threshold(self) -> float: + """Distance threshold.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetThreshold"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @Threshold.setter + def Threshold(self, threshold:float) -> None: + with agmarshall.DOUBLE_arg(threshold) as arg_threshold: + agcls.evaluate_hresult(self.__dict__["_SetThreshold"](arg_threshold.COM_val)) + + @property + def UseRangeMeasure(self) -> bool: + """Enable/disable use range measure""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetUseRangeMeasure"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @UseRangeMeasure.setter + def UseRangeMeasure(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetUseRangeMeasure"](arg_newVal.COM_val)) + + @property + def DisplayAckWhenDone(self) -> bool: + """Enable/disable displaying acknowledgement when done.""" + with agmarshall.VARIANT_BOOL_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetDisplayAckWhenDone"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + @DisplayAckWhenDone.setter + def DisplayAckWhenDone(self, newVal:bool) -> None: + with agmarshall.VARIANT_BOOL_arg(newVal) as arg_newVal: + agcls.evaluate_hresult(self.__dict__["_SetDisplayAckWhenDone"](arg_newVal.COM_val)) + + def Compute(self) -> None: + """Launch the close approach analysis.""" + agcls.evaluate_hresult(self.__dict__["_Compute"]()) + + def GetAvailableObjects(self) -> "IAgAdvCATAvailableObjectCollection": + """Returns a collection of available objects.""" + with agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetAvailableObjects"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + def GetPrimaryChosenObjects(self) -> "IAgAdvCATChosenObjectCollection": + """Returns a collection of primary objects.""" + with agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetPrimaryChosenObjects"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + def GetSecondaryChosenObjects(self) -> "IAgAdvCATChosenObjectCollection": + """Returns a collection of secondary objects.""" + with agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetSecondaryChosenObjects"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + @property + def PrimaryDefaultClass(self) -> "AgEAdvCATEllipsoidClass": + """Method for determining Ellipsoid Sizing method class.""" + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass) as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetPrimaryDefaultClass"](byref(arg_pType.COM_val))) + return arg_pType.python_val + + @property + def Advanced(self) -> "IAgAdvCATAdvanced": + """Get AdvCAT advanced properties.""" + with agmarshall.AgInterface_out_arg() as arg_ppVal: + agcls.evaluate_hresult(self.__dict__["_GetAdvanced"](byref(arg_ppVal.COM_val))) + return arg_ppVal.python_val + + @property + def VO(self) -> "IAgAdvCATVO": + """Get AdvCAT advanced properties.""" + with agmarshall.AgInterface_out_arg() as arg_ppVal: + agcls.evaluate_hresult(self.__dict__["_GetVO"](byref(arg_ppVal.COM_val))) + return arg_ppVal.python_val + + @PrimaryDefaultClass.setter + def PrimaryDefaultClass(self, type:"AgEAdvCATEllipsoidClass") -> None: + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass, type) as arg_type: + agcls.evaluate_hresult(self.__dict__["_SetPrimaryDefaultClass"](arg_type.COM_val)) + + @property + def PrimaryDefaultTangential(self) -> float: + """Primary defalut value for Semi-major Axes Size along A.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetPrimaryDefaultTangential"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @PrimaryDefaultTangential.setter + def PrimaryDefaultTangential(self, tangential:float) -> None: + with agmarshall.DOUBLE_arg(tangential) as arg_tangential: + agcls.evaluate_hresult(self.__dict__["_SetPrimaryDefaultTangential"](arg_tangential.COM_val)) + + @property + def PrimaryDefaultCrossTrack(self) -> float: + """Primary defalut value for Semi-major Axes Size along B.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetPrimaryDefaultCrossTrack"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @PrimaryDefaultCrossTrack.setter + def PrimaryDefaultCrossTrack(self, crossTrack:float) -> None: + with agmarshall.DOUBLE_arg(crossTrack) as arg_crossTrack: + agcls.evaluate_hresult(self.__dict__["_SetPrimaryDefaultCrossTrack"](arg_crossTrack.COM_val)) + + @property + def PrimaryDefaultNormal(self) -> float: + """Primary defalut value for Semi-major Axes Size along C.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetPrimaryDefaultNormal"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @PrimaryDefaultNormal.setter + def PrimaryDefaultNormal(self, normal:float) -> None: + with agmarshall.DOUBLE_arg(normal) as arg_normal: + agcls.evaluate_hresult(self.__dict__["_SetPrimaryDefaultNormal"](arg_normal.COM_val)) + + @property + def SecondaryDefaultClass(self) -> "AgEAdvCATEllipsoidClass": + """Method for determining Ellipsoid Sizing method class.""" + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass) as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetSecondaryDefaultClass"](byref(arg_pType.COM_val))) + return arg_pType.python_val + + @SecondaryDefaultClass.setter + def SecondaryDefaultClass(self, type:"AgEAdvCATEllipsoidClass") -> None: + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass, type) as arg_type: + agcls.evaluate_hresult(self.__dict__["_SetSecondaryDefaultClass"](arg_type.COM_val)) + + @property + def SecondaryDefaultTangential(self) -> float: + """Secondary defalut value for Semi-major Axes Size along A.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetSecondaryDefaultTangential"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @SecondaryDefaultTangential.setter + def SecondaryDefaultTangential(self, tangential:float) -> None: + with agmarshall.DOUBLE_arg(tangential) as arg_tangential: + agcls.evaluate_hresult(self.__dict__["_SetSecondaryDefaultTangential"](arg_tangential.COM_val)) + + @property + def SecondaryDefaultCrossTrack(self) -> float: + """Secondary defalut value for Semi-major Axes Size along B.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetSecondaryDefaultCrossTrack"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @SecondaryDefaultCrossTrack.setter + def SecondaryDefaultCrossTrack(self, crossTrack:float) -> None: + with agmarshall.DOUBLE_arg(crossTrack) as arg_crossTrack: + agcls.evaluate_hresult(self.__dict__["_SetSecondaryDefaultCrossTrack"](arg_crossTrack.COM_val)) + + @property + def SecondaryDefaultNormal(self) -> float: + """Secondary defalut value for Semi-major Axes Size along C.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetSecondaryDefaultNormal"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @SecondaryDefaultNormal.setter + def SecondaryDefaultNormal(self, normal:float) -> None: + with agmarshall.DOUBLE_arg(normal) as arg_normal: + agcls.evaluate_hresult(self.__dict__["_SetSecondaryDefaultNormal"](arg_normal.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{FAE80CC2-06DD-4253-9D65-70A0A44E8C11}", IAgAdvCAT) +agcls.AgTypeNameMap["IAgAdvCAT"] = IAgAdvCAT + +class IAgAdvCATChosenObject(object): + """Chosen object.""" + _uuid = "{D6057AC5-94B5-48C1-92DC-39F316739A60}" + _num_methods = 16 + _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_GetName"] = _raise_uninitialized_error + self.__dict__["_GetEllipsoidClass"] = _raise_uninitialized_error + self.__dict__["_SetEllipsoidClass"] = _raise_uninitialized_error + self.__dict__["_GetTangential"] = _raise_uninitialized_error + self.__dict__["_SetTangential"] = _raise_uninitialized_error + self.__dict__["_GetCrossTrack"] = _raise_uninitialized_error + self.__dict__["_SetCrossTrack"] = _raise_uninitialized_error + self.__dict__["_GetNormal"] = _raise_uninitialized_error + self.__dict__["_SetNormal"] = _raise_uninitialized_error + self.__dict__["_GetType"] = _raise_uninitialized_error + self.__dict__["_GetHardBodyRadius"] = _raise_uninitialized_error + self.__dict__["_SetHardBodyRadius"] = _raise_uninitialized_error + self.__dict__["_GetNumberID"] = _raise_uninitialized_error + self.__dict__["_SetNumberID"] = _raise_uninitialized_error + self.__dict__["_GetStringID"] = _raise_uninitialized_error + self.__dict__["_SetStringID"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgAdvCATChosenObject._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgAdvCATChosenObject from source object.") + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgAdvCATChosenObject = agcom.GUID(IAgAdvCATChosenObject._uuid) + vtable_offset_local = IAgAdvCATChosenObject._vtable_offset - 1 + self.__dict__["_GetName"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+1, POINTER(agcom.BSTR)) + self.__dict__["_GetEllipsoidClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+2, POINTER(agcom.LONG)) + self.__dict__["_SetEllipsoidClass"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+3, agcom.LONG) + self.__dict__["_GetTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+4, POINTER(agcom.DOUBLE)) + self.__dict__["_SetTangential"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+5, agcom.DOUBLE) + self.__dict__["_GetCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+6, POINTER(agcom.DOUBLE)) + self.__dict__["_SetCrossTrack"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+7, agcom.DOUBLE) + self.__dict__["_GetNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+8, POINTER(agcom.DOUBLE)) + self.__dict__["_SetNormal"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+9, agcom.DOUBLE) + self.__dict__["_GetType"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+10, POINTER(agcom.BSTR)) + self.__dict__["_GetHardBodyRadius"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+11, POINTER(agcom.DOUBLE)) + self.__dict__["_SetHardBodyRadius"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+12, agcom.DOUBLE) + self.__dict__["_GetNumberID"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+13, POINTER(agcom.LONG)) + self.__dict__["_SetNumberID"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+14, agcom.LONG) + self.__dict__["_GetStringID"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+15, POINTER(agcom.BSTR)) + self.__dict__["_SetStringID"] = IAGFUNCTYPE(pUnk, IID_IAgAdvCATChosenObject, vtable_offset_local+16, agcom.BSTR) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgAdvCATChosenObject.__dict__ and type(IAgAdvCATChosenObject.__dict__[attrname]) == property: + return IAgAdvCATChosenObject.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgAdvCATChosenObject.") + + @property + def Name(self) -> str: + """The chosen object name.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetName"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @property + def EllipsoidClass(self) -> "AgEAdvCATEllipsoidClass": + """Method for determining Ellipsoid Sizing method class.""" + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass) as arg_pType: + agcls.evaluate_hresult(self.__dict__["_GetEllipsoidClass"](byref(arg_pType.COM_val))) + return arg_pType.python_val + + @EllipsoidClass.setter + def EllipsoidClass(self, type:"AgEAdvCATEllipsoidClass") -> None: + with agmarshall.AgEnum_arg(AgEAdvCATEllipsoidClass, type) as arg_type: + agcls.evaluate_hresult(self.__dict__["_SetEllipsoidClass"](arg_type.COM_val)) + + @property + def Tangential(self) -> float: + """Semi-major Axes Size along A.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetTangential"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @Tangential.setter + def Tangential(self, tangential:float) -> None: + with agmarshall.DOUBLE_arg(tangential) as arg_tangential: + agcls.evaluate_hresult(self.__dict__["_SetTangential"](arg_tangential.COM_val)) + + @property + def CrossTrack(self) -> float: + """Semi-major Axes Size along B.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetCrossTrack"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @CrossTrack.setter + def CrossTrack(self, crossTrack:float) -> None: + with agmarshall.DOUBLE_arg(crossTrack) as arg_crossTrack: + agcls.evaluate_hresult(self.__dict__["_SetCrossTrack"](arg_crossTrack.COM_val)) + + @property + def Normal(self) -> float: + """Semi-major Axes Size along C.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetNormal"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @Normal.setter + def Normal(self, normal:float) -> None: + with agmarshall.DOUBLE_arg(normal) as arg_normal: + agcls.evaluate_hresult(self.__dict__["_SetNormal"](arg_normal.COM_val)) + + @property + def Type(self) -> str: + """The File Type.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetType"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @property + def HardBodyRadius(self) -> float: + """Used in prob of collision.""" + with agmarshall.DOUBLE_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetHardBodyRadius"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @HardBodyRadius.setter + def HardBodyRadius(self, hardBodyRadius:float) -> None: + with agmarshall.DOUBLE_arg(hardBodyRadius) as arg_hardBodyRadius: + agcls.evaluate_hresult(self.__dict__["_SetHardBodyRadius"](arg_hardBodyRadius.COM_val)) + + @property + def NumberID(self) -> int: + """An IRON or other numeric id.""" + with agmarshall.LONG_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetNumberID"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @NumberID.setter + def NumberID(self, numberID:int) -> None: + with agmarshall.LONG_arg(numberID) as arg_numberID: + agcls.evaluate_hresult(self.__dict__["_SetNumberID"](arg_numberID.COM_val)) + + @property + def StringID(self) -> str: + """A VEID, or other character id.""" + with agmarshall.BSTR_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetStringID"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + @StringID.setter + def StringID(self, stringID:str) -> None: + with agmarshall.BSTR_arg(stringID) as arg_stringID: + agcls.evaluate_hresult(self.__dict__["_SetStringID"](arg_stringID.COM_val)) + + +agcls.AgClassCatalog.add_catalog_entry("{D6057AC5-94B5-48C1-92DC-39F316739A60}", IAgAdvCATChosenObject) +agcls.AgTypeNameMap["IAgAdvCATChosenObject"] = IAgAdvCATChosenObject + class IAgStkObjectChangedEventArgs(object): """Contains information about the changes in the object's state""" _uuid = "{6D1B82E6-008E-47CC-A4BC-049939CCC85E}" @@ -149168,6 +150487,180 @@ def __setattr__(self, attrname, value): agcls.AgClassCatalog.add_catalog_entry("{5091003E-7072-4AB0-A6A4-DD631633A2E4}", AgPathCollection) +class AgAdvCAT(IAgAdvCAT, IAgStkObject, IAgLifetimeInformation): + """AdvCAT properties.""" + def __init__(self, sourceObject=None): + IAgAdvCAT.__init__(self, sourceObject) + IAgStkObject.__init__(self, sourceObject) + IAgLifetimeInformation.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCAT._private_init(self, pUnk) + IAgStkObject._private_init(self, pUnk) + IAgLifetimeInformation._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCAT._get_property(self, attrname) is not None: found_prop = IAgAdvCAT._get_property(self, attrname) + if IAgStkObject._get_property(self, attrname) is not None: found_prop = IAgStkObject._get_property(self, attrname) + if IAgLifetimeInformation._get_property(self, attrname) is not None: found_prop = IAgLifetimeInformation._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCAT.") + +agcls.AgClassCatalog.add_catalog_entry("{C9D133D9-6FEB-4CF9-AB46-4800E84118BD}", AgAdvCAT) + + +class AgAdvCATAvailableObjectCollection(IAgAdvCATAvailableObjectCollection): + """Read-only collection of available objects.""" + def __init__(self, sourceObject=None): + IAgAdvCATAvailableObjectCollection.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATAvailableObjectCollection._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATAvailableObjectCollection._get_property(self, attrname) is not None: found_prop = IAgAdvCATAvailableObjectCollection._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATAvailableObjectCollection.") + +agcls.AgClassCatalog.add_catalog_entry("{AC71AB22-2D03-4522-9A19-113EC57C6A6A}", AgAdvCATAvailableObjectCollection) + + +class AgAdvCATChosenObject(IAgAdvCATChosenObject): + """A chosen object.""" + def __init__(self, sourceObject=None): + IAgAdvCATChosenObject.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATChosenObject._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATChosenObject._get_property(self, attrname) is not None: found_prop = IAgAdvCATChosenObject._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATChosenObject.") + +agcls.AgClassCatalog.add_catalog_entry("{4EB71288-3F2A-4728-BFC3-2F7644504F39}", AgAdvCATChosenObject) + + +class AgAdvCATChosenObjectCollection(IAgAdvCATChosenObjectCollection): + """The chosen object collection.""" + def __init__(self, sourceObject=None): + IAgAdvCATChosenObjectCollection.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATChosenObjectCollection._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATChosenObjectCollection._get_property(self, attrname) is not None: found_prop = IAgAdvCATChosenObjectCollection._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATChosenObjectCollection.") + +agcls.AgClassCatalog.add_catalog_entry("{B5114D02-B3BC-4E79-A3E8-5ED5CC9A901E}", AgAdvCATChosenObjectCollection) + + +class AgAdvCATPreFilters(IAgAdvCATPreFilters): + """AdvCAT pre-filters properties.""" + def __init__(self, sourceObject=None): + IAgAdvCATPreFilters.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATPreFilters._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATPreFilters._get_property(self, attrname) is not None: found_prop = IAgAdvCATPreFilters._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATPreFilters.") + +agcls.AgClassCatalog.add_catalog_entry("{62972CC6-0629-4693-AEB6-F35489B68C2F}", AgAdvCATPreFilters) + + +class AgAdvCATAdvEllipsoid(IAgAdvCATAdvEllipsoid): + """AdvCAT advanced eelipsoid properties.""" + def __init__(self, sourceObject=None): + IAgAdvCATAdvEllipsoid.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATAdvEllipsoid._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATAdvEllipsoid._get_property(self, attrname) is not None: found_prop = IAgAdvCATAdvEllipsoid._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATAdvEllipsoid.") + +agcls.AgClassCatalog.add_catalog_entry("{A73ED08F-B9ED-442A-B0D8-02E18785320E}", AgAdvCATAdvEllipsoid) + + +class AgAdvCATAdvanced(IAgAdvCATAdvanced): + """AdvCAT advanced properties.""" + def __init__(self, sourceObject=None): + IAgAdvCATAdvanced.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATAdvanced._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATAdvanced._get_property(self, attrname) is not None: found_prop = IAgAdvCATAdvanced._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATAdvanced.") + +agcls.AgClassCatalog.add_catalog_entry("{511A26A1-F2B1-47D5-BCAD-E295C3BC0583}", AgAdvCATAdvanced) + + +class AgAdvCATVO(IAgAdvCATVO): + """AdvCAT VO properties.""" + def __init__(self, sourceObject=None): + IAgAdvCATVO.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgAdvCATVO._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgAdvCATVO._get_property(self, attrname) is not None: found_prop = IAgAdvCATVO._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgAdvCATVO.") + +agcls.AgClassCatalog.add_catalog_entry("{80F8AA29-4BFB-440D-91D7-0FB16D8541CC}", AgAdvCATVO) + + ################################################################################ # Copyright 2020-2020, Analytical Graphics, Inc. diff --git a/src/ansys/stk/core/stkobjects/astrogator.py b/src/ansys/stk/core/stkobjects/astrogator.py index ab75fc1207..692461727a 100644 --- a/src/ansys/stk/core/stkobjects/astrogator.py +++ b/src/ansys/stk/core/stkobjects/astrogator.py @@ -35,18 +35,18 @@ "AgVAAutomaticSequence", "AgVAAutomaticSequenceCollection", "AgVABDotRCalc", "AgVABDotTCalc", "AgVABMagCalc", "AgVABPlaneCollection", "AgVABThetaCalc", "AgVABlendedDensity", "AgVABulirschStoerIntegrator", "AgVABurnoutCBFCartesian", "AgVABurnoutGeocentric", "AgVABurnoutGeodetic", "AgVABurnoutLaunchAzAlt", "AgVABurnoutLaunchAzRadius", "AgVABurnoutVelocity", "AgVACR3BPFunc", "AgVACalcObjectCollection", -"AgVACalculationGraphCollection", "AgVACbAttitudeIAU1994", "AgVACbAttitudeRotationCoefficientsFile", "AgVACbEphemerisAnalyticOrbit", -"AgVACbEphemerisFile", "AgVACbEphemerisJPLDE", "AgVACbEphemerisJPLSpice", "AgVACbEphemerisPlanetary", "AgVACbGravityModel", -"AgVACbShapeOblateSpheroid", "AgVACbShapeSphere", "AgVACbShapeTriaxialEllipsoid", "AgVACentralBody", "AgVACentralBodyCollection", -"AgVACira72Function", "AgVAConstraintCollection", "AgVACustomFunctionScriptEngine", "AgVADCControl", "AgVADCControlCollection", -"AgVADCResult", "AgVADCResultCollection", "AgVADTM2012", "AgVADTM2020", "AgVADensityModelPlugin", "AgVADisplaySystemGeocentric", -"AgVADisplaySystemGeodetic", "AgVADragModelPlugin", "AgVADriverMCS", "AgVAEOMFuncPluginFunction", "AgVAElementCartesian", -"AgVAElementDelaunay", "AgVAElementEquinoctial", "AgVAElementGeodetic", "AgVAElementKeplerian", "AgVAElementMixedSpherical", -"AgVAElementSpherical", "AgVAElementTargetVectorIncomingAsymptote", "AgVAElementTargetVectorOutgoingAsymptote", "AgVAEngineConstAcc", -"AgVAEngineConstant", "AgVAEngineCustom", "AgVAEngineDefinition", "AgVAEngineIon", "AgVAEngineModelIspCoefficients", "AgVAEngineModelPoly", -"AgVAEngineModelThrustCoefficients", "AgVAEnginePlugin", "AgVAEngineThrottleTable", "AgVAExponential", "AgVAFuelTank", "AgVAGaussJacksonIntegrator", -"AgVAGeneralRelativityFunction", "AgVAGoldenSectionControl", "AgVAGoldenSectionControlCollection", "AgVAGoldenSectionResult", -"AgVAGoldenSectionResultCollection", "AgVAGravityFieldFunction", "AgVAGridSearchControl", "AgVAGridSearchControlCollection", +"AgVACalcObjectLinkEmbedControlCollection", "AgVACalculationGraphCollection", "AgVACbAttitudeIAU1994", "AgVACbAttitudeRotationCoefficientsFile", +"AgVACbEphemerisAnalyticOrbit", "AgVACbEphemerisFile", "AgVACbEphemerisJPLDE", "AgVACbEphemerisJPLSpice", "AgVACbEphemerisPlanetary", +"AgVACbGravityModel", "AgVACbShapeOblateSpheroid", "AgVACbShapeSphere", "AgVACbShapeTriaxialEllipsoid", "AgVACentralBody", +"AgVACentralBodyCollection", "AgVACira72Function", "AgVAConstraintCollection", "AgVACustomFunctionScriptEngine", "AgVADCControl", +"AgVADCControlCollection", "AgVADCResult", "AgVADCResultCollection", "AgVADTM2012", "AgVADTM2020", "AgVADensityModelPlugin", +"AgVADisplaySystemGeocentric", "AgVADisplaySystemGeodetic", "AgVADragModelPlugin", "AgVADriverMCS", "AgVAEOMFuncPluginFunction", +"AgVAElementCartesian", "AgVAElementDelaunay", "AgVAElementEquinoctial", "AgVAElementGeodetic", "AgVAElementKeplerian", +"AgVAElementMixedSpherical", "AgVAElementSpherical", "AgVAElementTargetVectorIncomingAsymptote", "AgVAElementTargetVectorOutgoingAsymptote", +"AgVAEngineConstAcc", "AgVAEngineConstant", "AgVAEngineCustom", "AgVAEngineDefinition", "AgVAEngineIon", "AgVAEngineModelIspCoefficients", +"AgVAEngineModelPoly", "AgVAEngineModelThrustCoefficients", "AgVAEnginePlugin", "AgVAEngineThrottleTable", "AgVAExponential", +"AgVAFuelTank", "AgVAGaussJacksonIntegrator", "AgVAGeneralRelativityFunction", "AgVAGoldenSectionControl", "AgVAGoldenSectionControlCollection", +"AgVAGoldenSectionResult", "AgVAGoldenSectionResultCollection", "AgVAGravityFieldFunction", "AgVAGridSearchControl", "AgVAGridSearchControlCollection", "AgVAGridSearchResult", "AgVAGridSearchResultCollection", "AgVAHPOPPluginFunction", "AgVAHarrisPriester", "AgVAIPOPTControl", "AgVAIPOPTControlCollection", "AgVAIPOPTResult", "AgVAIPOPTResultCollection", "AgVAJacchiaBowman2008", "AgVAJacchiaRoberts", "AgVAJacchia_1960", "AgVAJacchia_1970", "AgVAJacchia_1971", "AgVALightingStoppingCondition", "AgVAMCSBackwardSequence", @@ -115,18 +115,18 @@ "IAgVABDotRCalc", "IAgVABDotTCalc", "IAgVABMagCalc", "IAgVABPlaneCollection", "IAgVABThetaCalc", "IAgVABlendedDensity", "IAgVABulirschStoerIntegrator", "IAgVABurnout", "IAgVABurnoutCBFCartesian", "IAgVABurnoutGeocentric", "IAgVABurnoutGeodetic", "IAgVABurnoutLaunchAzAlt", "IAgVABurnoutLaunchAzRadius", "IAgVABurnoutVelocity", "IAgVACR3BPFunc", "IAgVACalcObjectCollection", -"IAgVACalculationGraphCollection", "IAgVACbAttitude", "IAgVACbAttitudeIAU1994", "IAgVACbAttitudeRotationCoefficientsFile", -"IAgVACbEphemeris", "IAgVACbEphemerisAnalyticOrbit", "IAgVACbEphemerisFile", "IAgVACbEphemerisJPLDE", "IAgVACbEphemerisJPLSpice", -"IAgVACbEphemerisPlanetary", "IAgVACbGravityModel", "IAgVACbShape", "IAgVACbShapeOblateSpheroid", "IAgVACbShapeSphere", -"IAgVACbShapeTriaxialEllipsoid", "IAgVACentralBody", "IAgVACentralBodyCollection", "IAgVACira72Function", "IAgVAConstraintCollection", -"IAgVACustomFunctionScriptEngine", "IAgVADCControl", "IAgVADCControlCollection", "IAgVADCResult", "IAgVADCResultCollection", -"IAgVADTM2012", "IAgVADTM2020", "IAgVADensityModelPlugin", "IAgVADisplaySystem", "IAgVADisplaySystemGeocentric", "IAgVADisplaySystemGeodetic", -"IAgVADragModelPlugin", "IAgVADriverMCS", "IAgVAEOMFuncPluginFunction", "IAgVAElement", "IAgVAElementCartesian", "IAgVAElementDelaunay", -"IAgVAElementEquinoctial", "IAgVAElementGeodetic", "IAgVAElementKeplerian", "IAgVAElementMixedSpherical", "IAgVAElementSpherical", -"IAgVAElementTargetVectorIncomingAsymptote", "IAgVAElementTargetVectorOutgoingAsymptote", "IAgVAEngineConstAcc", "IAgVAEngineConstant", -"IAgVAEngineCustom", "IAgVAEngineDefinition", "IAgVAEngineIon", "IAgVAEngineModelIspCoefficients", "IAgVAEngineModelPoly", -"IAgVAEngineModelThrustCoefficients", "IAgVAEnginePlugin", "IAgVAEngineThrottleTable", "IAgVAExponential", "IAgVAFuelTank", -"IAgVAGaussJacksonIntegrator", "IAgVAGeneralRelativityFunction", "IAgVAGoldenSectionControl", "IAgVAGoldenSectionControlCollection", +"IAgVACalcObjectLinkEmbedControlCollection", "IAgVACalculationGraphCollection", "IAgVACbAttitude", "IAgVACbAttitudeIAU1994", +"IAgVACbAttitudeRotationCoefficientsFile", "IAgVACbEphemeris", "IAgVACbEphemerisAnalyticOrbit", "IAgVACbEphemerisFile", +"IAgVACbEphemerisJPLDE", "IAgVACbEphemerisJPLSpice", "IAgVACbEphemerisPlanetary", "IAgVACbGravityModel", "IAgVACbShape", +"IAgVACbShapeOblateSpheroid", "IAgVACbShapeSphere", "IAgVACbShapeTriaxialEllipsoid", "IAgVACentralBody", "IAgVACentralBodyCollection", +"IAgVACira72Function", "IAgVAConstraintCollection", "IAgVACustomFunctionScriptEngine", "IAgVADCControl", "IAgVADCControlCollection", +"IAgVADCResult", "IAgVADCResultCollection", "IAgVADTM2012", "IAgVADTM2020", "IAgVADensityModelPlugin", "IAgVADisplaySystem", +"IAgVADisplaySystemGeocentric", "IAgVADisplaySystemGeodetic", "IAgVADragModelPlugin", "IAgVADriverMCS", "IAgVAEOMFuncPluginFunction", +"IAgVAElement", "IAgVAElementCartesian", "IAgVAElementDelaunay", "IAgVAElementEquinoctial", "IAgVAElementGeodetic", "IAgVAElementKeplerian", +"IAgVAElementMixedSpherical", "IAgVAElementSpherical", "IAgVAElementTargetVectorIncomingAsymptote", "IAgVAElementTargetVectorOutgoingAsymptote", +"IAgVAEngineConstAcc", "IAgVAEngineConstant", "IAgVAEngineCustom", "IAgVAEngineDefinition", "IAgVAEngineIon", "IAgVAEngineModelIspCoefficients", +"IAgVAEngineModelPoly", "IAgVAEngineModelThrustCoefficients", "IAgVAEnginePlugin", "IAgVAEngineThrottleTable", "IAgVAExponential", +"IAgVAFuelTank", "IAgVAGaussJacksonIntegrator", "IAgVAGeneralRelativityFunction", "IAgVAGoldenSectionControl", "IAgVAGoldenSectionControlCollection", "IAgVAGoldenSectionResult", "IAgVAGoldenSectionResultCollection", "IAgVAGravityFieldFunction", "IAgVAGridSearchControl", "IAgVAGridSearchControlCollection", "IAgVAGridSearchResult", "IAgVAGridSearchResultCollection", "IAgVAHPOPPluginFunction", "IAgVAHarrisPriester", "IAgVAIPOPTControl", "IAgVAIPOPTControlCollection", "IAgVAIPOPTResult", "IAgVAIPOPTResultCollection", @@ -216,7 +216,6 @@ from ..internal.eventutil import * from ..utilities.exceptions import * - from ..stkutil import * from ..stkobjects import * @@ -11670,7 +11669,7 @@ def RadiusRate(self, newVal:float) -> None: class IAgVAStoppingCondition(IAgVAStoppingConditionComponent): """Basic properties for a stopping condition.""" _uuid = "{7B18D549-E67A-4532-9767-ECC78418475D}" - _num_methods = 29 + _num_methods = 30 _vtable_offset = IAgVAStoppingConditionComponent._vtable_offset + IAgVAStoppingConditionComponent._num_methods def __init__(self, sourceObject=None): self.__dict__["_pUnk"] = None @@ -11703,6 +11702,7 @@ def __init__(self, sourceObject=None): self.__dict__["_SetReferencePoint"] = _raise_uninitialized_error self.__dict__["_CopyUserCalcObjectToClipboard"] = _raise_uninitialized_error self.__dict__["_PasteUserCalcObjectFromClipboard"] = _raise_uninitialized_error + self.__dict__["_GetUserCalcObjectLinkEmbedControl"] = _raise_uninitialized_error if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgVAStoppingCondition._uuid)) if pUnk is not None: @@ -11744,6 +11744,7 @@ def _private_init(self, pUnk:IUnknown): self.__dict__["_SetReferencePoint"] = IAGFUNCTYPE(pUnk, IID_IAgVAStoppingCondition, vtable_offset_local+27, agcom.BSTR) self.__dict__["_CopyUserCalcObjectToClipboard"] = IAGFUNCTYPE(pUnk, IID_IAgVAStoppingCondition, vtable_offset_local+28, ) self.__dict__["_PasteUserCalcObjectFromClipboard"] = IAGFUNCTYPE(pUnk, IID_IAgVAStoppingCondition, vtable_offset_local+29, ) + self.__dict__["_GetUserCalcObjectLinkEmbedControl"] = IAGFUNCTYPE(pUnk, IID_IAgVAStoppingCondition, vtable_offset_local+30, POINTER(agcom.PVOID)) def __eq__(self, other): """Checks equality of the underlying STK references.""" return agcls.compare_com_objects(self, other) @@ -11931,6 +11932,13 @@ def PasteUserCalcObjectFromClipboard(self) -> None: """Replaces the user-defined stopping condition calc object with the calc object in the clipboard.""" agcls.evaluate_hresult(self.__dict__["_PasteUserCalcObjectFromClipboard"]()) + @property + def UserCalcObjectLinkEmbedControl(self) -> "IAgComponentLinkEmbedControl": + """Gets the link / embed controller for managing the user calc. object.""" + with agmarshall.AgInterface_out_arg() as arg_ppVal: + agcls.evaluate_hresult(self.__dict__["_GetUserCalcObjectLinkEmbedControl"](byref(arg_ppVal.COM_val))) + return arg_ppVal.python_val + agcls.AgClassCatalog.add_catalog_entry("{7B18D549-E67A-4532-9767-ECC78418475D}", IAgVAStoppingCondition) agcls.AgTypeNameMap["IAgVAStoppingCondition"] = IAgVAStoppingCondition @@ -22426,6 +22434,142 @@ def ShouldGenerateGraph(self, newVal:bool) -> None: agcls.AgClassCatalog.add_catalog_entry("{EDE96C58-0563-4B05-A7B6-735C3699FE87}", IAgVAProfileGridSearch) agcls.AgTypeNameMap["IAgVAProfileGridSearch"] = IAgVAProfileGridSearch +class IAgVACalcObjectLinkEmbedControlCollection(object): + """Collection of link/embed calculation objects.""" + _uuid = "{4294354A-2EF8-4D34-8FC9-DD360DFCF3EF}" + _num_methods = 10 + _vtable_offset = IDispatch._vtable_offset + IDispatch._num_methods + def __init__(self, sourceObject=None): + self.__dict__["_pUnk"] = None + self.__dict__["_Add"] = _raise_uninitialized_error + self.__dict__["_Item"] = _raise_uninitialized_error + self.__dict__["_Remove"] = _raise_uninitialized_error + self.__dict__["_Get_NewEnum"] = _raise_uninitialized_error + self.__dict__["_GetCount"] = _raise_uninitialized_error + self.__dict__["_Cut"] = _raise_uninitialized_error + self.__dict__["_Paste"] = _raise_uninitialized_error + self.__dict__["_InsertCopy"] = _raise_uninitialized_error + self.__dict__["_GetItemByIndex"] = _raise_uninitialized_error + self.__dict__["_GetItemByName"] = _raise_uninitialized_error + if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: + pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgVACalcObjectLinkEmbedControlCollection._uuid)) + if pUnk is not None: + self._private_init(pUnk) + del(pUnk) + else: + raise STKInvalidCastError("Failed to create IAgVACalcObjectLinkEmbedControlCollection from source object.") + self.__dict__["enumerator"] = None + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IID_IAgVACalcObjectLinkEmbedControlCollection = agcom.GUID(IAgVACalcObjectLinkEmbedControlCollection._uuid) + vtable_offset_local = IAgVACalcObjectLinkEmbedControlCollection._vtable_offset - 1 + self.__dict__["_Add"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+1, agcom.BSTR, agcom.LONG, POINTER(agcom.PVOID)) + self.__dict__["_Item"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+2, agcom.VARIANT, POINTER(agcom.PVOID)) + self.__dict__["_Remove"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+3, agcom.VARIANT) + self.__dict__["_Get_NewEnum"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+4, POINTER(agcom.PVOID)) + self.__dict__["_GetCount"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+5, POINTER(agcom.LONG)) + self.__dict__["_Cut"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+6, agcom.VARIANT) + self.__dict__["_Paste"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+7, POINTER(agcom.PVOID)) + self.__dict__["_InsertCopy"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+8, agcom.PVOID, POINTER(agcom.PVOID)) + self.__dict__["_GetItemByIndex"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+9, agcom.INT, POINTER(agcom.PVOID)) + self.__dict__["_GetItemByName"] = IAGFUNCTYPE(pUnk, IID_IAgVACalcObjectLinkEmbedControlCollection, vtable_offset_local+10, agcom.BSTR, POINTER(agcom.PVOID)) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def _get_property(self, attrname): + if attrname in IAgVACalcObjectLinkEmbedControlCollection.__dict__ and type(IAgVACalcObjectLinkEmbedControlCollection.__dict__[attrname]) == property: + return IAgVACalcObjectLinkEmbedControlCollection.__dict__[attrname] + return None + def __setattr__(self, attrname, value): + if self._get_property(attrname) is not None: + self._get_property(attrname).__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in IAgVACalcObjectLinkEmbedControlCollection.") + def __iter__(self): + self.__dict__["enumerator"] = self._NewEnum + self.__dict__["enumerator"].Reset() + return self + def __next__(self) -> "IAgComponentLinkEmbedControl": + if self.__dict__["enumerator"] is None: + raise StopIteration + nextval = self.__dict__["enumerator"].Next() + if nextval is None: + raise StopIteration + return agmarshall.python_val_from_VARIANT(nextval) + + def Add(self, name:str, refType:"AgEComponentLinkEmbedControlReferenceType") -> "IAgComponentLinkEmbedControl": + """Adds a link/embed calc object to the collection.""" + with agmarshall.BSTR_arg(name) as arg_name, \ + agmarshall.AgEnum_arg(AgEComponentLinkEmbedControlReferenceType, refType) as arg_refType, \ + agmarshall.AgInterface_out_arg() as arg_ppComponentLinkEmbedControl: + agcls.evaluate_hresult(self.__dict__["_Add"](arg_name.COM_val, arg_refType.COM_val, byref(arg_ppComponentLinkEmbedControl.COM_val))) + return arg_ppComponentLinkEmbedControl.python_val + + def Item(self, indexOrName:typing.Any) -> "IAgComponentLinkEmbedControl": + """Returns a link/embed calc object.""" + with agmarshall.VARIANT_arg(indexOrName) as arg_indexOrName, \ + agmarshall.AgInterface_out_arg() as arg_ppComponentLinkEmbedControl: + agcls.evaluate_hresult(self.__dict__["_Item"](arg_indexOrName.COM_val, byref(arg_ppComponentLinkEmbedControl.COM_val))) + return arg_ppComponentLinkEmbedControl.python_val + + def Remove(self, indexOrName:typing.Any) -> None: + """Removes a link/embed calc object from the collection.""" + with agmarshall.VARIANT_arg(indexOrName) as arg_indexOrName: + agcls.evaluate_hresult(self.__dict__["_Remove"](arg_indexOrName.COM_val)) + + @property + def _NewEnum(self) -> IEnumVARIANT: + """Allows you to enumerate through the collection.""" + with agmarshall.IEnumVARIANT_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_Get_NewEnum"](byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + @property + def Count(self) -> int: + """Returns the size of the collection.""" + with agmarshall.LONG_arg() as arg_pVal: + agcls.evaluate_hresult(self.__dict__["_GetCount"](byref(arg_pVal.COM_val))) + return arg_pVal.python_val + + def Cut(self, indexOrName:typing.Any) -> None: + """Copies a link/embed calc object to the clipboard and removes the calc object from the list.""" + with agmarshall.VARIANT_arg(indexOrName) as arg_indexOrName: + agcls.evaluate_hresult(self.__dict__["_Cut"](arg_indexOrName.COM_val)) + + def Paste(self) -> "IAgComponentLinkEmbedControl": + """Pastes a link/embed calc object from the clipboard into the list.""" + with agmarshall.AgInterface_out_arg() as arg_ppCalcObj: + agcls.evaluate_hresult(self.__dict__["_Paste"](byref(arg_ppCalcObj.COM_val))) + return arg_ppCalcObj.python_val + + def InsertCopy(self, calcObj:"IAgComponentLinkEmbedControl") -> "IAgComponentLinkEmbedControl": + """Copies a link/embed calc object and inserts the copy into the list.""" + with agmarshall.AgInterface_in_arg(calcObj, IAgComponentLinkEmbedControl) as arg_calcObj, \ + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_InsertCopy"](arg_calcObj.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val + + def GetItemByIndex(self, index:int) -> "IAgComponentLinkEmbedControl": + """Retrieves a link/embed calc object found by the index.""" + with agmarshall.INT_arg(index) as arg_index, \ + agmarshall.AgInterface_out_arg() as arg_ppComponent: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppComponent.COM_val))) + return arg_ppComponent.python_val + + def GetItemByName(self, name:str) -> "IAgComponentLinkEmbedControl": + """Retrieves a link/embed calc object found by the name.""" + with agmarshall.BSTR_arg(name) as arg_name, \ + agmarshall.AgInterface_out_arg() as arg_ppComponent: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppComponent.COM_val))) + return arg_ppComponent.python_val + + __getitem__ = Item + + + +agcls.AgClassCatalog.add_catalog_entry("{4294354A-2EF8-4D34-8FC9-DD360DFCF3EF}", IAgVACalcObjectLinkEmbedControlCollection) +agcls.AgTypeNameMap["IAgVACalcObjectLinkEmbedControlCollection"] = IAgVACalcObjectLinkEmbedControlCollection + class IAgVAStateCalcHeightAboveTerrain(object): """Interface for StateCalcHeightAboveTerrain""" _uuid = "{30A4FAC3-1250-456A-BB29-689AA50F8D75}" @@ -29717,7 +29861,7 @@ def UnitDimension(self, inVal:str) -> None: class IAgVAStateCalcScript(object): """Properties for a Script calculation object.""" _uuid = "{42A2EAD1-9982-4895-9637-4C83524F2A02}" - _num_methods = 5 + _num_methods = 6 _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods def __init__(self, sourceObject=None): self.__dict__["_pUnk"] = None @@ -29726,6 +29870,7 @@ def __init__(self, sourceObject=None): self.__dict__["_SetInlineFunc"] = _raise_uninitialized_error self.__dict__["_GetUnitDimension"] = _raise_uninitialized_error self.__dict__["_SetUnitDimension"] = _raise_uninitialized_error + self.__dict__["_GetCalcArgumentsLinkEmbed"] = _raise_uninitialized_error if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgVAStateCalcScript._uuid)) if pUnk is not None: @@ -29742,6 +29887,7 @@ def _private_init(self, pUnk:IUnknown): self.__dict__["_SetInlineFunc"] = IAGFUNCTYPE(pUnk, IID_IAgVAStateCalcScript, vtable_offset_local+3, agcom.BSTR) self.__dict__["_GetUnitDimension"] = IAGFUNCTYPE(pUnk, IID_IAgVAStateCalcScript, vtable_offset_local+4, POINTER(agcom.BSTR)) self.__dict__["_SetUnitDimension"] = IAGFUNCTYPE(pUnk, IID_IAgVAStateCalcScript, vtable_offset_local+5, agcom.BSTR) + self.__dict__["_GetCalcArgumentsLinkEmbed"] = IAGFUNCTYPE(pUnk, IID_IAgVAStateCalcScript, vtable_offset_local+6, POINTER(agcom.PVOID)) def __eq__(self, other): """Checks equality of the underlying STK references.""" return agcls.compare_com_objects(self, other) @@ -29786,6 +29932,13 @@ def UnitDimension(self, inVal:str) -> None: with agmarshall.BSTR_arg(inVal) as arg_inVal: agcls.evaluate_hresult(self.__dict__["_SetUnitDimension"](arg_inVal.COM_val)) + @property + def CalcArgumentsLinkEmbed(self) -> "IAgVACalcObjectLinkEmbedControlCollection": + """The arguments to be applied to the function.""" + with agmarshall.AgInterface_out_arg() as arg_ppVACalcObjectLinkEmbedControlCollection: + agcls.evaluate_hresult(self.__dict__["_GetCalcArgumentsLinkEmbed"](byref(arg_ppVACalcObjectLinkEmbedControlCollection.COM_val))) + return arg_ppVACalcObjectLinkEmbedControlCollection.python_val + agcls.AgClassCatalog.add_catalog_entry("{42A2EAD1-9982-4895-9637-4C83524F2A02}", IAgVAStateCalcScript) agcls.AgTypeNameMap["IAgVAStateCalcScript"] = IAgVAStateCalcScript @@ -56895,6 +57048,27 @@ def __setattr__(self, attrname, value): agcls.AgClassCatalog.add_catalog_entry("{B37527F8-1781-4484-985E-4F2BE2E8810A}", AgVAGridSearchResult) +class AgVACalcObjectLinkEmbedControlCollection(IAgVACalcObjectLinkEmbedControlCollection): + """The Calculation Object link/embed component folder.""" + def __init__(self, sourceObject=None): + IAgVACalcObjectLinkEmbedControlCollection.__init__(self, sourceObject) + def _private_init(self, pUnk:IUnknown): + self.__dict__["_pUnk"] = pUnk + IAgVACalcObjectLinkEmbedControlCollection._private_init(self, pUnk) + def __eq__(self, other): + """Checks equality of the underlying STK references.""" + return agcls.compare_com_objects(self, other) + def __setattr__(self, attrname, value): + found_prop = None + if IAgVACalcObjectLinkEmbedControlCollection._get_property(self, attrname) is not None: found_prop = IAgVACalcObjectLinkEmbedControlCollection._get_property(self, attrname) + if found_prop is not None: + found_prop.__set__(self, value) + else: + raise STKAttributeError(attrname + " is not a recognized attribute in AgVACalcObjectLinkEmbedControlCollection.") + +agcls.AgClassCatalog.add_catalog_entry("{8EFFF2BC-B4AA-4F5E-BDF2-7218EBBE10FF}", AgVACalcObjectLinkEmbedControlCollection) + + ################################################################################ # Copyright 2020-2020, Analytical Graphics, Inc. diff --git a/src/ansys/stk/core/stkobjects/aviator/__init__.py b/src/ansys/stk/core/stkobjects/aviator/__init__.py index 6237bd527d..c5f1e108ac 100644 --- a/src/ansys/stk/core/stkobjects/aviator/__init__.py +++ b/src/ansys/stk/core/stkobjects/aviator/__init__.py @@ -166,10 +166,6 @@ from ...internal.eventutil import * from ...utilities.exceptions import * -# Tweak package name by removing last level, for instance: -# agi.stk12.stkobjects.aviator.aviator -> agi.stk12.stkobjects.aviator -__name__ = __name__.rsplit('.', 1)[0] - def _raise_uninitialized_error(*args): raise STKRuntimeError("Valid STK object model classes are returned from STK methods and should not be created independently.") diff --git a/src/ansys/stk/core/stkobjects/aviator/matlab.py b/src/ansys/stk/core/stkobjects/aviator/matlab.py index e3e342db03..8282a402e8 100644 --- a/src/ansys/stk/core/stkobjects/aviator/matlab.py +++ b/src/ansys/stk/core/stkobjects/aviator/matlab.py @@ -31,7 +31,6 @@ from ...internal.eventutil import * from ...utilities.exceptions import * - from ...stkobjects.aviator import * diff --git a/src/ansys/stk/core/stkutil.py b/src/ansys/stk/core/stkutil.py index 7b3eccf742..1bccebe7cd 100644 --- a/src/ansys/stk/core/stkutil.py +++ b/src/ansys/stk/core/stkutil.py @@ -45,7 +45,6 @@ from .utilities.exceptions import * - def _raise_uninitialized_error(*args): raise STKRuntimeError("Valid STK object model classes are returned from STK methods and should not be created independently.") diff --git a/src/ansys/stk/core/stkx.py b/src/ansys/stk/core/stkx.py index 5f8921576f..154b91b2ac 100644 --- a/src/ansys/stk/core/stkx.py +++ b/src/ansys/stk/core/stkx.py @@ -38,7 +38,6 @@ from .internal.eventutil import * from .utilities.exceptions import * - from .stkutil import * diff --git a/src/ansys/stk/core/uiapplication.py b/src/ansys/stk/core/uiapplication.py index 9cf15f90ba..b364c33710 100644 --- a/src/ansys/stk/core/uiapplication.py +++ b/src/ansys/stk/core/uiapplication.py @@ -31,7 +31,6 @@ from .internal.eventutil import * from .utilities.exceptions import * - from .uicore import * diff --git a/src/ansys/stk/core/uicore.py b/src/ansys/stk/core/uicore.py index 58ede3d4df..22289d3bf5 100644 --- a/src/ansys/stk/core/uicore.py +++ b/src/ansys/stk/core/uicore.py @@ -32,7 +32,6 @@ from .utilities.exceptions import * - def _raise_uninitialized_error(*args): raise STKRuntimeError("Valid STK object model classes are returned from STK methods and should not be created independently.") diff --git a/src/ansys/stk/core/vgt.py b/src/ansys/stk/core/vgt.py index fb41178608..bbab0e41e0 100644 --- a/src/ansys/stk/core/vgt.py +++ b/src/ansys/stk/core/vgt.py @@ -168,7 +168,6 @@ from .internal.eventutil import * from .utilities.exceptions import * - from .stkutil import * @@ -3610,16 +3609,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnEventIntervalList": """Retrieves an event interval list from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnEventIntervalList": """Retrieves an event interval list from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -3739,16 +3738,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnEventArray": """Retrieves an event array from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnEventArray": """Retrieves an event array from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -3997,16 +3996,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnEventIntervalCollection": """Retrieves an event interval from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnEventIntervalCollection": """Retrieves an event interval from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4124,18 +4123,18 @@ def _NewEnum(self) -> IEnumVARIANT: return arg_ppRetVal.python_val def GetItemByIndex(self, index:int) -> "IAgCrdnParameterSet": - """Retrieves an item from the collection by index.""" + """Retrieves an element from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnParameterSet": - """Retrieves an item from the collection by name.""" + """Retrieves an element from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4255,16 +4254,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnCondition": """Retrieves a condition from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnCondition": """Retrieves a condition from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4384,16 +4383,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnConditionSet": """Retrieves a condition set from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnConditionSet": """Retrieves a condition set from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4628,16 +4627,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnVolumeGrid": """Retrieves a volume grid from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppval: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppval.COM_val))) - return arg_ppval.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnVolumeGrid": """Retrieves a volume grid from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4755,18 +4754,18 @@ def _NewEnum(self) -> IEnumVARIANT: return arg_ppRetVal.python_val def GetItemByIndex(self, index:int) -> "IAgCrdnVolume": - """Retrieves volume from the collection by index.""" + """Retrieves an volume from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnVolume": """Retrieves volume from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -4886,16 +4885,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnVolumeCalc": """Retrieves a volume calculation from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnVolumeCalc": """Retrieves a volume calculation from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -11037,7 +11036,7 @@ def SetIntervals(self, intervals:list) -> None: class IAgCrdnEventIntervalListMerged(object): """Interval list created by merging two constituent interval lists using specified logical operation. It is possible to select either interval list or interval types for either or both constituents.""" _uuid = "{78E1CE61-5B2E-4A10-894D-A006F35ACDE1}" - _num_methods = 8 + _num_methods = 15 _vtable_offset = IUnknown._vtable_offset + IUnknown._num_methods def __init__(self, sourceObject=None): self.__dict__["_pUnk"] = None @@ -11049,6 +11048,13 @@ def __init__(self, sourceObject=None): self.__dict__["_SetIntervalA"] = _raise_uninitialized_error self.__dict__["_SetIntervalListB"] = _raise_uninitialized_error self.__dict__["_SetIntervalB"] = _raise_uninitialized_error + self.__dict__["_AddInterval"] = _raise_uninitialized_error + self.__dict__["_AddIntervalList"] = _raise_uninitialized_error + self.__dict__["_SetInterval"] = _raise_uninitialized_error + self.__dict__["_SetIntervalList"] = _raise_uninitialized_error + self.__dict__["_GetTimeComponent"] = _raise_uninitialized_error + self.__dict__["_GetTimeComponentSize"] = _raise_uninitialized_error + self.__dict__["_RemoveTimeComponent"] = _raise_uninitialized_error if sourceObject is not None and sourceObject.__dict__["_pUnk"] is not None: pUnk = sourceObject.__dict__["_pUnk"].QueryInterface(agcom.GUID(IAgCrdnEventIntervalListMerged._uuid)) if pUnk is not None: @@ -11068,6 +11074,13 @@ def _private_init(self, pUnk:IUnknown): self.__dict__["_SetIntervalA"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+6, agcom.PVOID) self.__dict__["_SetIntervalListB"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+7, agcom.PVOID) self.__dict__["_SetIntervalB"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+8, agcom.PVOID) + self.__dict__["_AddInterval"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+9, agcom.PVOID) + self.__dict__["_AddIntervalList"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+10, agcom.PVOID) + self.__dict__["_SetInterval"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+11, agcom.PVOID, agcom.INT) + self.__dict__["_SetIntervalList"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+12, agcom.PVOID, agcom.INT) + self.__dict__["_GetTimeComponent"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+13, agcom.INT, POINTER(agcom.BSTR)) + self.__dict__["_GetTimeComponentSize"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+14, POINTER(agcom.INT)) + self.__dict__["_RemoveTimeComponent"] = IAGFUNCTYPE(pUnk, IID_IAgCrdnEventIntervalListMerged, vtable_offset_local+15, agcom.INT) def __eq__(self, other): """Checks equality of the underlying STK references.""" return agcls.compare_com_objects(self, other) @@ -11127,6 +11140,46 @@ def SetIntervalB(self, refIntervals:"IAgCrdnEventInterval") -> None: with agmarshall.AgInterface_in_arg(refIntervals, IAgCrdnEventInterval) as arg_refIntervals: agcls.evaluate_hresult(self.__dict__["_SetIntervalB"](arg_refIntervals.COM_val)) + def AddInterval(self, refIntervals:"IAgCrdnEventInterval") -> None: + """Add interval.""" + with agmarshall.AgInterface_in_arg(refIntervals, IAgCrdnEventInterval) as arg_refIntervals: + agcls.evaluate_hresult(self.__dict__["_AddInterval"](arg_refIntervals.COM_val)) + + def AddIntervalList(self, refIntervals:"IAgCrdnEventIntervalList") -> None: + """Add interval list.""" + with agmarshall.AgInterface_in_arg(refIntervals, IAgCrdnEventIntervalList) as arg_refIntervals: + agcls.evaluate_hresult(self.__dict__["_AddIntervalList"](arg_refIntervals.COM_val)) + + def SetInterval(self, refIntervals:"IAgCrdnEventInterval", pos:int) -> None: + """Sets the interval at given index.""" + with agmarshall.AgInterface_in_arg(refIntervals, IAgCrdnEventInterval) as arg_refIntervals, \ + agmarshall.INT_arg(pos) as arg_pos: + agcls.evaluate_hresult(self.__dict__["_SetInterval"](arg_refIntervals.COM_val, arg_pos.COM_val)) + + def SetIntervalList(self, refIntervals:"IAgCrdnEventIntervalList", pos:int) -> None: + """Sets the interval list at given index.""" + with agmarshall.AgInterface_in_arg(refIntervals, IAgCrdnEventIntervalList) as arg_refIntervals, \ + agmarshall.INT_arg(pos) as arg_pos: + agcls.evaluate_hresult(self.__dict__["_SetIntervalList"](arg_refIntervals.COM_val, arg_pos.COM_val)) + + def GetTimeComponent(self, pos:int) -> str: + """Gets time component at given position.""" + with agmarshall.INT_arg(pos) as arg_pos, \ + agmarshall.BSTR_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetTimeComponent"](arg_pos.COM_val, byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + def GetTimeComponentSize(self) -> int: + """Gets time component list size.""" + with agmarshall.INT_arg() as arg_pRetVal: + agcls.evaluate_hresult(self.__dict__["_GetTimeComponentSize"](byref(arg_pRetVal.COM_val))) + return arg_pRetVal.python_val + + def RemoveTimeComponent(self, pos:int) -> None: + """Remove time component at given position.""" + with agmarshall.INT_arg(pos) as arg_pos: + agcls.evaluate_hresult(self.__dict__["_RemoveTimeComponent"](arg_pos.COM_val)) + agcls.AgClassCatalog.add_catalog_entry("{78E1CE61-5B2E-4A10-894D-A006F35ACDE1}", IAgCrdnEventIntervalListMerged) agcls.AgTypeNameMap["IAgCrdnEventIntervalListMerged"] = IAgCrdnEventIntervalListMerged @@ -15436,7 +15489,7 @@ def SpatialCondition(self, spatialCondition:"IAgCrdnVolume") -> None: @property def SatisfactionMetric(self) -> "AgECrdnVolumeCalcVolumeSatisfactionMetricType": - """Sspatial condition satisfaction metric types.""" + """Spatial condition satisfaction metric types.""" with agmarshall.AgEnum_arg(AgECrdnVolumeCalcVolumeSatisfactionMetricType) as arg_pRetVal: agcls.evaluate_hresult(self.__dict__["_GetSatisfactionMetric"](byref(arg_pRetVal.COM_val))) return arg_pRetVal.python_val @@ -24837,16 +24890,16 @@ def _NewEnum(self) -> IEnumVARIANT: def GetItemByIndex(self, index:int) -> "IAgCrdnAngle": """Retrieves an angle from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnAngle": """Retrieves an angle from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ - agmarshall.AgInterface_out_arg() as arg_ppVal: - agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppVal.COM_val))) - return arg_ppVal.python_val + agmarshall.AgInterface_out_arg() as arg_ppRetVal: + agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val))) + return arg_ppRetVal.python_val __getitem__ = Item @@ -25240,14 +25293,14 @@ def CommonTasks(self) -> "IAgCrdnSystemCommonTasks": return arg_ppRetVal.python_val def GetItemByIndex(self, index:int) -> "IAgCrdnSystem": - """Retrieve a system from the collection by index.""" + """Retrieves a system from the collection by index.""" with agmarshall.INT_arg(index) as arg_index, \ agmarshall.AgInterface_out_arg() as arg_ppRetVal: agcls.evaluate_hresult(self.__dict__["_GetItemByIndex"](arg_index.COM_val, byref(arg_ppRetVal.COM_val))) return arg_ppRetVal.python_val def GetItemByName(self, name:str) -> "IAgCrdnSystem": - """Retrieve a system from the collection by name.""" + """Retrieves a system from the collection by name.""" with agmarshall.BSTR_arg(name) as arg_name, \ agmarshall.AgInterface_out_arg() as arg_ppRetVal: agcls.evaluate_hresult(self.__dict__["_GetItemByName"](arg_name.COM_val, byref(arg_ppRetVal.COM_val)))