mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026947: Data exchange can not be compiled without visualization anyomre
Dependence between STEP translator and visualization occurred due to addition class STEPConstruct_GDTProperty using enumeration from package XCAFDimTolObject. In order to avoid this dependence class STEPConstruct_GDTProperty was moved in package STEPCAFControl and was renamed to STEPCAFControl_GDTProperty.
This commit is contained in:
@@ -27,3 +27,5 @@ STEPCAFControl_StackItemOfDictionaryOfExternFile.hxx
|
||||
STEPCAFControl_StackItemOfDictionaryOfExternFile_0.cxx
|
||||
STEPCAFControl_Writer.cxx
|
||||
STEPCAFControl_Writer.hxx
|
||||
STEPCAFControl_GDTProperty.hxx
|
||||
STEPCAFControl_GDTProperty.cxx
|
||||
|
1323
src/STEPCAFControl/STEPCAFControl_GDTProperty.cxx
Normal file
1323
src/STEPCAFControl/STEPCAFControl_GDTProperty.cxx
Normal file
File diff suppressed because it is too large
Load Diff
111
src/STEPCAFControl/STEPCAFControl_GDTProperty.hxx
Normal file
111
src/STEPCAFControl/STEPCAFControl_GDTProperty.hxx
Normal file
@@ -0,0 +1,111 @@
|
||||
// Created on: 2015-09-10
|
||||
// Created by: Irina Krylova
|
||||
// Copyright (c) 1999-2015 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _STEPCAFControl_GDTProperty_HeaderFile
|
||||
#define _STEPCAFControl_GDTProperty_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <STEPConstruct_Tool.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <StepBasic_Unit.hxx>
|
||||
#include <StepDimTol_GeometricTolerance.hxx>
|
||||
#include <StepDimTol_GeometricToleranceModifier.hxx>
|
||||
#include <StepDimTol_GeometricToleranceType.hxx>
|
||||
#include <StepDimTol_HArray1OfDatumReferenceModifier.hxx>
|
||||
#include <StepGeom_Axis2Placement3d.hxx>
|
||||
#include <StepRepr_CompoundRepresentationItem.hxx>
|
||||
#include <XCAFDimTolObjects_DimensionModifiersSequence.hxx>
|
||||
#include <StepShape_LimitsAndFits.hxx>
|
||||
#include <XCAFDimTolObjects_DatumModifiersSequence.hxx>
|
||||
#include <XCAFDimTolObjects_DatumModifWithValue.hxx>
|
||||
#include <XCAFDimTolObjects_DimensionFormVariance.hxx>
|
||||
#include <XCAFDimTolObjects_DimensionGrade.hxx>
|
||||
#include <XCAFDimTolObjects_DimensionType.hxx>
|
||||
#include <XCAFDimTolObjects_DatumTargetType.hxx>
|
||||
#include <XCAFDimTolObjects_DimensionQualifier.hxx>
|
||||
#include <XCAFDimTolObjects_GeomToleranceModif.hxx>
|
||||
#include <XCAFDimTolObjects_GeomToleranceType.hxx>
|
||||
#include <XCAFDimTolObjects_GeomToleranceTypeValue.hxx>
|
||||
|
||||
//! This class provides tools for access (read)
|
||||
//! the GDT properties.
|
||||
class STEPCAFControl_GDTProperty
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
Standard_EXPORT STEPCAFControl_GDTProperty();
|
||||
Standard_EXPORT static void GetDimModifiers(const Handle(StepRepr_CompoundRepresentationItem)& theCRI,
|
||||
XCAFDimTolObjects_DimensionModifiersSequence& theModifiers);
|
||||
|
||||
Standard_EXPORT static void GetDimClassOfTolerance(const Handle(StepShape_LimitsAndFits)& theLAF,
|
||||
Standard_Boolean& theHolle,
|
||||
XCAFDimTolObjects_DimensionFormVariance& theFV,
|
||||
XCAFDimTolObjects_DimensionGrade& theG);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean GetDimType(const Handle(TCollection_HAsciiString)& theName,
|
||||
XCAFDimTolObjects_DimensionType& theType);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean GetDatumTargetType(const Handle(TCollection_HAsciiString)& theDescription,
|
||||
XCAFDimTolObjects_DatumTargetType& theType);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean GetDimQualifierType(const Handle(TCollection_HAsciiString)& theDescription,
|
||||
XCAFDimTolObjects_DimensionQualifier& theType);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean GetTolValueType(const Handle(TCollection_HAsciiString)& theDescription,
|
||||
XCAFDimTolObjects_GeomToleranceTypeValue& theType);
|
||||
|
||||
Standard_EXPORT static Handle(TCollection_HAsciiString) GetTolValueType(const XCAFDimTolObjects_GeomToleranceTypeValue& theType);
|
||||
|
||||
Standard_EXPORT static Handle(TCollection_HAsciiString) GetDimTypeName(const XCAFDimTolObjects_DimensionType theType);
|
||||
|
||||
Standard_EXPORT static Handle(TCollection_HAsciiString) GetDimQualifierName(const XCAFDimTolObjects_DimensionQualifier theQualifier);
|
||||
|
||||
Standard_EXPORT static Handle(TCollection_HAsciiString) GetDimModifierName(const XCAFDimTolObjects_DimensionModif theModifier);
|
||||
|
||||
Standard_EXPORT static Handle(StepShape_LimitsAndFits) GetLimitsAndFits(Standard_Boolean theHole,
|
||||
XCAFDimTolObjects_DimensionFormVariance theFormVariance,
|
||||
XCAFDimTolObjects_DimensionGrade theGrade);
|
||||
|
||||
Standard_EXPORT static Handle(TCollection_HAsciiString) GetDatumTargetName(const XCAFDimTolObjects_DatumTargetType theDatumType);
|
||||
|
||||
Standard_EXPORT static Handle(StepGeom_Axis2Placement3d) GetAxis2Placement3D(const gp_Ax2& theAxis);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean IsDimensionalLocation(const XCAFDimTolObjects_DimensionType theType);
|
||||
|
||||
Standard_EXPORT static Standard_Boolean IsDimensionalSize(const XCAFDimTolObjects_DimensionType theType);
|
||||
|
||||
Standard_EXPORT static StepDimTol_GeometricToleranceType GetGeomToleranceType(const XCAFDimTolObjects_GeomToleranceType theType);
|
||||
|
||||
Standard_EXPORT static XCAFDimTolObjects_GeomToleranceType GetGeomToleranceType(const StepDimTol_GeometricToleranceType theType);
|
||||
|
||||
Standard_EXPORT static Handle(StepDimTol_GeometricTolerance) GetGeomTolerance(const XCAFDimTolObjects_GeomToleranceType theType);
|
||||
|
||||
Standard_EXPORT static StepDimTol_GeometricToleranceModifier GetGeomToleranceModifier(const XCAFDimTolObjects_GeomToleranceModif theModifier);
|
||||
|
||||
Standard_EXPORT static Handle(StepDimTol_HArray1OfDatumReferenceModifier) GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence theModifiers,
|
||||
const XCAFDimTolObjects_DatumModifWithValue theModifWithVal,
|
||||
const Standard_Real theValue,
|
||||
const StepBasic_Unit theUnit);
|
||||
|
||||
};
|
||||
|
||||
#endif // _STEPCAFControl_GDTProperty_HeaderFile
|
@@ -221,7 +221,7 @@
|
||||
#include <XSControl_WorkSession.hxx>
|
||||
#include <StepAP242_GeometricItemSpecificUsage.hxx>
|
||||
#include <StepGeom_CartesianPoint.hxx>
|
||||
#include <STEPConstruct_GDTProperty.hxx>
|
||||
#include <STEPCAFControl_GDTProperty.hxx>
|
||||
// skl 21.08.2003 for reading G&DT
|
||||
//#include <StepRepr_CompoundItemDefinition.hxx>
|
||||
//#include <StepRepr_CompoundItemDefinitionMember.hxx>
|
||||
@@ -1878,7 +1878,7 @@ static Standard_Boolean setDatumToXCAF(const Handle(StepDimTol_Datum)& theDat,
|
||||
aDatObj->SetDatumTargetNumber(0);
|
||||
aDatObj->IsDatumTarget(Standard_True);
|
||||
XCAFDimTolObjects_DatumTargetType aType;
|
||||
if(STEPConstruct_GDTProperty::GetDatumTargetType(aSA->Description(),aType))
|
||||
if(STEPCAFControl_GDTProperty::GetDatumTargetType(aSA->Description(),aType))
|
||||
{
|
||||
aDatObj->SetDatumTargetType(aType);
|
||||
if(aType == XCAFDimTolObjects_DatumTargetType_Area)
|
||||
@@ -2795,7 +2795,7 @@ static void setDimObjectToXCAF(const Handle(Standard_Transient)& theEnt,
|
||||
if(!aTQ.IsNull())
|
||||
{
|
||||
XCAFDimTolObjects_DimensionQualifier aQ;
|
||||
if (STEPConstruct_GDTProperty::GetDimQualifierType(aTQ->Name(), aQ))
|
||||
if (STEPCAFControl_GDTProperty::GetDimQualifierType(aTQ->Name(), aQ))
|
||||
{
|
||||
aDimObj->SetQualifier(aQ);
|
||||
}
|
||||
@@ -2817,7 +2817,7 @@ static void setDimObjectToXCAF(const Handle(Standard_Transient)& theEnt,
|
||||
Standard_Boolean aHolle = Standard_False;
|
||||
XCAFDimTolObjects_DimensionFormVariance aFV = XCAFDimTolObjects_DimensionFormVariance_None;
|
||||
XCAFDimTolObjects_DimensionGrade aG = XCAFDimTolObjects_DimensionGrade_IT01;
|
||||
STEPConstruct_GDTProperty::GetDimClassOfTolerance(aLAF, aHolle, aFV, aG);
|
||||
STEPCAFControl_GDTProperty::GetDimClassOfTolerance(aLAF, aHolle, aFV, aG);
|
||||
aDimObj->SetClassOfTolerance(aHolle, aFV, aG);
|
||||
}
|
||||
|
||||
@@ -2825,7 +2825,7 @@ static void setDimObjectToXCAF(const Handle(Standard_Transient)& theEnt,
|
||||
{
|
||||
//get modifiers
|
||||
XCAFDimTolObjects_DimensionModifiersSequence aModifiers;
|
||||
STEPConstruct_GDTProperty::GetDimModifiers(aCRI, aModifiers);
|
||||
STEPCAFControl_GDTProperty::GetDimModifiers(aCRI, aModifiers);
|
||||
if(aModifiers.Length() > 0)
|
||||
aDimObj->SetModifiers(aModifiers);
|
||||
}
|
||||
@@ -2840,7 +2840,7 @@ static void setDimObjectToXCAF(const Handle(Standard_Transient)& theEnt,
|
||||
aName = aDimLocation->Name();
|
||||
}
|
||||
XCAFDimTolObjects_DimensionType aType = XCAFDimTolObjects_DimensionType_Location_None;
|
||||
if (!STEPConstruct_GDTProperty::GetDimType(aName, aType))
|
||||
if (!STEPCAFControl_GDTProperty::GetDimType(aName, aType))
|
||||
{
|
||||
if(!aDimSize.IsNull())
|
||||
{
|
||||
@@ -2972,37 +2972,37 @@ static Standard_Boolean getTolType(const Handle(Standard_Transient)& theEnt,
|
||||
if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthDatRef)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRef) anE = Handle(StepDimTol_GeoTolAndGeoTolWthDatRef)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol) anE =
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMaxTol)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod) anE =
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndGeoTolWthMod)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthMaxTol)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthMaxTol) anE =
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthMaxTol)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthMod)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthMod) anE =
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthMod)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if (theEnt->IsKind(STANDARD_TYPE(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol)))
|
||||
{
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol) anE =
|
||||
Handle(StepDimTol_GeoTolAndGeoTolWthDatRefAndUneqDisGeoTol)::DownCast(theEnt);
|
||||
theType = STEPConstruct_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
theType = STEPCAFControl_GDTProperty::GetGeomToleranceType(anE->GetToleranceType());
|
||||
}
|
||||
else if(theEnt->IsKind(STANDARD_TYPE(StepDimTol_AngularityTolerance)))
|
||||
{
|
||||
@@ -3111,7 +3111,7 @@ static void setGeomTolObjectToXCAF(const Handle(Standard_Transient)& theEnt,
|
||||
if(anIter.Value()->IsKind(STANDARD_TYPE(StepDimTol_ToleranceZone))){
|
||||
Handle(StepDimTol_ToleranceZoneForm) aForm
|
||||
= Handle(StepDimTol_ToleranceZone)::DownCast(anIter.Value())->Form();
|
||||
STEPConstruct_GDTProperty::GetTolValueType(aForm->Name(), aTypeV);
|
||||
STEPCAFControl_GDTProperty::GetTolValueType(aForm->Name(), aTypeV);
|
||||
Interface_EntityIterator anIt = aGraph.Sharings(anIter.Value());
|
||||
for(anIt.Start(); anIt.More(); anIt.Next()) {
|
||||
if(anIt.Value()->IsKind(STANDARD_TYPE(StepDimTol_ProjectedZoneDefinition))){
|
||||
|
@@ -52,7 +52,7 @@
|
||||
#include <STEPConstruct_DataMapOfAsciiStringTransient.hxx>
|
||||
#include <STEPConstruct_DataMapOfPointTransient.hxx>
|
||||
#include <STEPConstruct_ExternRefs.hxx>
|
||||
#include <STEPConstruct_GDTProperty.hxx>
|
||||
#include <STEPCAFControl_GDTProperty.hxx>
|
||||
#include <STEPConstruct_Styles.hxx>
|
||||
#include <STEPConstruct_ValidationProps.hxx>
|
||||
#include <STEPControl_StepModelType.hxx>
|
||||
@@ -2404,7 +2404,7 @@ static Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSessi
|
||||
}
|
||||
else {
|
||||
Handle(StepDimTol_PlacedDatumTargetFeature) aPDTF = new StepDimTol_PlacedDatumTargetFeature();
|
||||
aPDTF->Init(new TCollection_HAsciiString(), STEPConstruct_GDTProperty::GetDatumTargetName(aDatumType),
|
||||
aPDTF->Init(new TCollection_HAsciiString(), STEPCAFControl_GDTProperty::GetDatumTargetName(aDatumType),
|
||||
aPDS, StepData_LTrue, aTargetId);
|
||||
Model->AddWithRefs(aPDTF);
|
||||
aDatumTarget = aPDTF;
|
||||
@@ -2418,7 +2418,7 @@ static Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSessi
|
||||
StepBasic_Unit aUnit = GetUnit(aRC);
|
||||
gp_Ax2 aDTAxis = anObject->GetDatumTargetAxis();
|
||||
Handle(StepGeom_Axis2Placement3d) anA2P3D =
|
||||
STEPConstruct_GDTProperty::GetAxis2Placement3D(aDTAxis);
|
||||
STEPCAFControl_GDTProperty::GetAxis2Placement3D(aDTAxis);
|
||||
Handle(StepRepr_HArray1OfRepresentationItem) anItems;
|
||||
// Process each datum target type
|
||||
if (aDatumType == XCAFDimTolObjects_DatumTargetType_Point) {
|
||||
@@ -2558,7 +2558,7 @@ static void WriteDimValues(const Handle(XSControl_WorkSession) &WS,
|
||||
StepShape_ValueQualifier anItem;
|
||||
Handle(StepShape_TypeQualifier) aType = new StepShape_TypeQualifier();
|
||||
XCAFDimTolObjects_DimensionQualifier aQualifier = theObject->GetQualifier();
|
||||
aType->Init(STEPConstruct_GDTProperty::GetDimQualifierName(aQualifier));
|
||||
aType->Init(STEPCAFControl_GDTProperty::GetDimQualifierName(aQualifier));
|
||||
aModel->AddWithRefs(aType);
|
||||
anItem.SetValue(aType);
|
||||
aQualifiers->SetValue(1, anItem);
|
||||
@@ -2607,7 +2607,7 @@ static void WriteDimValues(const Handle(XSControl_WorkSession) &WS,
|
||||
XCAFDimTolObjects_DimensionModif aModif = aModifiers.Value(i);
|
||||
Handle(StepRepr_DescriptiveRepresentationItem) aModifItem =
|
||||
new StepRepr_DescriptiveRepresentationItem();
|
||||
aModifItem->Init(new TCollection_HAsciiString(), STEPConstruct_GDTProperty::GetDimModifierName(aModif));
|
||||
aModifItem->Init(new TCollection_HAsciiString(), STEPCAFControl_GDTProperty::GetDimModifierName(aModif));
|
||||
aModel->AddWithRefs(aModifItem);
|
||||
aModifItems->SetValue(i, aModifItem);
|
||||
}
|
||||
@@ -2681,7 +2681,7 @@ static void WriteDimValues(const Handle(XSControl_WorkSession) &WS,
|
||||
XCAFDimTolObjects_DimensionGrade aGrade;
|
||||
if (!theObject->GetClassOfTolerance(isHole, aFormVariance, aGrade))
|
||||
return;
|
||||
Handle(StepShape_LimitsAndFits) aLAF = STEPConstruct_GDTProperty::GetLimitsAndFits(isHole, aFormVariance, aGrade);
|
||||
Handle(StepShape_LimitsAndFits) aLAF = STEPCAFControl_GDTProperty::GetLimitsAndFits(isHole, aFormVariance, aGrade);
|
||||
aModel->AddWithRefs(aLAF);
|
||||
StepShape_ToleranceMethodDefinition aMethod;
|
||||
aMethod.SetValue(aLAF);
|
||||
@@ -2760,7 +2760,7 @@ static Handle(StepDimTol_HArray1OfDatumSystemOrReference) WriteDatumSystem(const
|
||||
XCAFDimTolObjects_DatumModifWithValue aModifWithVal;
|
||||
Standard_Real aValue = 0;
|
||||
aDatumSeqPos.Value(1)->GetModifierWithValue(aModifWithVal, aValue);
|
||||
aModifiers = STEPConstruct_GDTProperty::GetDatumRefModifiers(aSimpleModifiers, aModifWithVal, aValue, aUnit);
|
||||
aModifiers = STEPCAFControl_GDTProperty::GetDatumRefModifiers(aSimpleModifiers, aModifWithVal, aValue, aUnit);
|
||||
// Add Datum_Reference_Modifier_With_Value
|
||||
if (!aModifiers.IsNull()) {
|
||||
Handle(StepDimTol_DatumReferenceModifierWithValue) aDRMWV =
|
||||
@@ -2786,7 +2786,7 @@ static Handle(StepDimTol_HArray1OfDatumSystemOrReference) WriteDatumSystem(const
|
||||
Standard_Real aValue = 0;
|
||||
aDatumSeqPos.Value(j)->GetModifierWithValue(aModifWithVal, aValue);
|
||||
Handle(StepDimTol_HArray1OfDatumReferenceModifier) anElemModifiers =
|
||||
STEPConstruct_GDTProperty::GetDatumRefModifiers(aSimpleModifiers, aModifWithVal, aValue, aUnit);
|
||||
STEPCAFControl_GDTProperty::GetDatumRefModifiers(aSimpleModifiers, aModifWithVal, aValue, aUnit);
|
||||
// Add Datum_Reference_Modifier_With_Value
|
||||
if (!anElemModifiers.IsNull()) {
|
||||
Handle(StepDimTol_DatumReferenceModifierWithValue) aDRMWV =
|
||||
@@ -2836,7 +2836,7 @@ static Handle(StepDimTol_HArray1OfDatumSystemOrReference) WriteDatumSystem(const
|
||||
// Axis
|
||||
if (anObject->HasAxis()) {
|
||||
Handle(StepGeom_Axis2Placement3d) anAxis =
|
||||
STEPConstruct_GDTProperty::GetAxis2Placement3D(anObject->GetAxis());
|
||||
STEPCAFControl_GDTProperty::GetAxis2Placement3D(anObject->GetAxis());
|
||||
Handle(StepAP242_GeometricItemSpecificUsage) aGISU = new StepAP242_GeometricItemSpecificUsage();
|
||||
StepAP242_ItemIdentifiedRepresentationUsageDefinition aDefinition;
|
||||
aDefinition.SetValue(aDS);
|
||||
@@ -2883,7 +2883,7 @@ static void WriteToleranceZone (const Handle(XSControl_WorkSession) &WS,
|
||||
// Create Tolerance_Zone
|
||||
Handle(StepDimTol_ToleranceZoneForm) aForm = new StepDimTol_ToleranceZoneForm();
|
||||
Model->AddWithRefs(aForm);
|
||||
aForm->Init(STEPConstruct_GDTProperty::GetTolValueType(theObject->GetTypeOfValue()));
|
||||
aForm->Init(STEPCAFControl_GDTProperty::GetTolValueType(theObject->GetTypeOfValue()));
|
||||
Handle(StepDimTol_HArray1OfToleranceZoneTarget) aZoneTargetArray = new StepDimTol_HArray1OfToleranceZoneTarget(1, 1);
|
||||
StepDimTol_ToleranceZoneTarget aTarget;
|
||||
aTarget.SetValue(theEntity);
|
||||
@@ -2992,7 +2992,7 @@ static void WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
|
||||
aModifiers.Value(i) == XCAFDimTolObjects_GeomToleranceModif_All_Over)
|
||||
continue;
|
||||
StepDimTol_GeometricToleranceModifier aModif =
|
||||
STEPConstruct_GDTProperty::GetGeomToleranceModifier(aModifiers.Value(i));
|
||||
STEPCAFControl_GDTProperty::GetGeomToleranceModifier(aModifiers.Value(i));
|
||||
aModifArray->SetValue(k, aModif);
|
||||
k++;
|
||||
}
|
||||
@@ -3027,7 +3027,7 @@ static void WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
|
||||
new StepDimTol_GeometricToleranceWithModifiers();
|
||||
aGTWM->SetModifiers(aModifArray);
|
||||
StepDimTol_GeometricToleranceType aType =
|
||||
STEPConstruct_GDTProperty::GetGeomToleranceType(anObject->GetType());
|
||||
STEPCAFControl_GDTProperty::GetGeomToleranceType(anObject->GetType());
|
||||
|
||||
// Init and write necessary subtype of Geometric_Tolerance entity
|
||||
Handle(StepDimTol_GeometricTolerance) aGeomTol;
|
||||
@@ -3077,7 +3077,7 @@ static void WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
|
||||
else {
|
||||
// Geometric_Tolerance
|
||||
Handle(StepDimTol_GeometricTolerance) aResult =
|
||||
STEPConstruct_GDTProperty::GetGeomTolerance(anObject->GetType());
|
||||
STEPCAFControl_GDTProperty::GetGeomTolerance(anObject->GetType());
|
||||
if (!aResult.IsNull()) {
|
||||
aResult->Init(aName, aDescription, aLMWU, aGTTarget);
|
||||
aGeomTol = aResult;
|
||||
@@ -3577,10 +3577,10 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTsAP242 (const Handle(XSControl_W
|
||||
// Write dimensions
|
||||
StepShape_DimensionalCharacteristic aDimension;
|
||||
XCAFDimTolObjects_DimensionType aDimType = anObject->GetType();
|
||||
if (STEPConstruct_GDTProperty::IsDimensionalLocation(aDimType)) {
|
||||
if (STEPCAFControl_GDTProperty::IsDimensionalLocation(aDimType)) {
|
||||
// Dimensional_Location
|
||||
Handle(StepShape_DimensionalLocation) aDim = new StepShape_DimensionalLocation();
|
||||
aDim->Init(STEPConstruct_GDTProperty::GetDimTypeName(aDimType), Standard_False, NULL, aFirstSA, aSecondSA);
|
||||
aDim->Init(STEPCAFControl_GDTProperty::GetDimTypeName(aDimType), Standard_False, NULL, aFirstSA, aSecondSA);
|
||||
aDimension.SetValue(aDim);
|
||||
}
|
||||
else if (aDimType == XCAFDimTolObjects_DimensionType_Location_Angular) {
|
||||
@@ -3607,10 +3607,10 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTsAP242 (const Handle(XSControl_W
|
||||
aDim->Init(new TCollection_HAsciiString(), Standard_False, NULL, aFirstSA, aSecondSA, aPathSA);
|
||||
aDimension.SetValue(aDim);
|
||||
}
|
||||
else if (STEPConstruct_GDTProperty::IsDimensionalSize(aDimType)) {
|
||||
else if (STEPCAFControl_GDTProperty::IsDimensionalSize(aDimType)) {
|
||||
// Dimensional_Size
|
||||
Handle(StepShape_DimensionalSize) aDim = new StepShape_DimensionalSize();
|
||||
aDim->Init(aFirstSA, STEPConstruct_GDTProperty::GetDimTypeName(aDimType));
|
||||
aDim->Init(aFirstSA, STEPCAFControl_GDTProperty::GetDimTypeName(aDimType));
|
||||
aDimension.SetValue(aDim);
|
||||
}
|
||||
else if (aDimType == XCAFDimTolObjects_DimensionType_Size_Angular) {
|
||||
|
Reference in New Issue
Block a user