mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029525: PMI dimension names
Implemented semantic PMI names translation from STEP to XCAF in OCCT: - [Get/Set]SemanticName functions added to XCAFDimTolObjects_*Object classes - X[Get/Set]GDTSemanticName draw commands added - test case added
This commit is contained in:
@@ -52,6 +52,27 @@ XCAFDimTolObjects_DatumObject::XCAFDimTolObjects_DatumObject(const Handle(XCAFDi
|
||||
myHasPlane = theObj->myHasPlane;
|
||||
myHasPnt = theObj->myHasPnt;
|
||||
myHasPntText = theObj->myHasPntText;
|
||||
mySemanticName = theObj->mySemanticName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) XCAFDimTolObjects_DatumObject::GetSemanticName() const
|
||||
{
|
||||
return mySemanticName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void XCAFDimTolObjects_DatumObject::SetSemanticName(const Handle(TCollection_HAsciiString)& theName)
|
||||
{
|
||||
mySemanticName = theName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -44,7 +44,13 @@ public:
|
||||
Standard_EXPORT XCAFDimTolObjects_DatumObject();
|
||||
|
||||
Standard_EXPORT XCAFDimTolObjects_DatumObject(const Handle(XCAFDimTolObjects_DatumObject)& theObj);
|
||||
|
||||
|
||||
//! Returns semantic name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetSemanticName() const;
|
||||
|
||||
//! Sets semantic name
|
||||
Standard_EXPORT void SetSemanticName(const Handle(TCollection_HAsciiString)& theName);
|
||||
|
||||
//! Returns datum name.
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetName() const;
|
||||
|
||||
@@ -219,8 +225,8 @@ private:
|
||||
Standard_Boolean myHasPnt;
|
||||
Standard_Boolean myHasPntText;
|
||||
TopoDS_Shape myPresentation;
|
||||
Handle(TCollection_HAsciiString) mySemanticName;
|
||||
Handle(TCollection_HAsciiString) myPresentationName;
|
||||
|
||||
};
|
||||
|
||||
#endif // _XCAFDimTolObjects_DatumObject_HeaderFile
|
||||
|
@@ -57,6 +57,27 @@ XCAFDimTolObjects_DimensionObject::XCAFDimTolObjects_DimensionObject(const Handl
|
||||
myHasPlane = theObj->myHasPlane;
|
||||
myPlane = theObj->myPlane;
|
||||
myHasPntText = theObj->myHasPntText;
|
||||
mySemanticName = theObj->mySemanticName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) XCAFDimTolObjects_DimensionObject::GetSemanticName() const
|
||||
{
|
||||
return mySemanticName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void XCAFDimTolObjects_DimensionObject::SetSemanticName(const Handle(TCollection_HAsciiString)& theName)
|
||||
{
|
||||
mySemanticName = theName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -54,6 +54,12 @@ public:
|
||||
|
||||
Standard_EXPORT XCAFDimTolObjects_DimensionObject(const Handle(XCAFDimTolObjects_DimensionObject)& theObj);
|
||||
|
||||
//! Returns semantic name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetSemanticName() const;
|
||||
|
||||
//! Sets semantic name
|
||||
Standard_EXPORT void SetSemanticName(const Handle(TCollection_HAsciiString)& theName);
|
||||
|
||||
//! Sets dimension qualifier as min., max. or average.
|
||||
Standard_EXPORT void SetQualifier (const XCAFDimTolObjects_DimensionQualifier theQualifier);
|
||||
|
||||
@@ -242,8 +248,8 @@ public:
|
||||
return myPresentation;
|
||||
}
|
||||
|
||||
//! Returns graphical presentation name of the object.
|
||||
Handle(TCollection_HAsciiString) GetPresentationName() const
|
||||
//! Returns graphical presentation of the object
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetPresentationName() const
|
||||
{
|
||||
return myPresentationName;
|
||||
}
|
||||
@@ -308,6 +314,7 @@ private:
|
||||
Standard_Boolean myHasPntText;
|
||||
gp_Pnt myPntText;
|
||||
TopoDS_Shape myPresentation;
|
||||
Handle(TCollection_HAsciiString) mySemanticName;
|
||||
Handle(TCollection_HAsciiString) myPresentationName;
|
||||
NCollection_Vector<Handle(TCollection_HAsciiString)> myDescriptions;
|
||||
NCollection_Vector<Handle(TCollection_HAsciiString)> myDescriptionNames;
|
||||
|
@@ -52,10 +52,31 @@ XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject(con
|
||||
myHasPlane = theObj->myHasPlane;
|
||||
myHasPnt = theObj->myHasPnt;
|
||||
myHasPntText = theObj->myHasPntText;
|
||||
mySemanticName = theObj->mySemanticName;
|
||||
myAffectedPlaneType = theObj->myAffectedPlaneType;
|
||||
myAffectedPlane = theObj->myAffectedPlane;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TCollection_HAsciiString) XCAFDimTolObjects_GeomToleranceObject::GetSemanticName() const
|
||||
{
|
||||
return mySemanticName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void XCAFDimTolObjects_GeomToleranceObject::SetSemanticName(const Handle(TCollection_HAsciiString)& theName)
|
||||
{
|
||||
mySemanticName = theName;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
|
@@ -48,6 +48,12 @@ public:
|
||||
|
||||
Standard_EXPORT XCAFDimTolObjects_GeomToleranceObject(const Handle(XCAFDimTolObjects_GeomToleranceObject)& theObj);
|
||||
|
||||
//! Returns semantic name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetSemanticName() const;
|
||||
|
||||
//! Sets semantic name
|
||||
Standard_EXPORT void SetSemanticName(const Handle(TCollection_HAsciiString)& theName);
|
||||
|
||||
//! Sets type of the object.
|
||||
Standard_EXPORT void SetType (const XCAFDimTolObjects_GeomToleranceType theType);
|
||||
|
||||
@@ -230,6 +236,7 @@ private:
|
||||
Standard_Boolean myHasPnt;
|
||||
Standard_Boolean myHasPntText;
|
||||
TopoDS_Shape myPresentation;
|
||||
Handle(TCollection_HAsciiString) mySemanticName;
|
||||
Handle(TCollection_HAsciiString) myPresentationName;
|
||||
XCAFDimTolObjects_ToleranceZoneAffectedPlane myAffectedPlaneType;
|
||||
gp_Pln myAffectedPlane;
|
||||
|
Reference in New Issue
Block a user