1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0028315: Data Exchange - Import/Export GD&Ts without semantic

Implement import/export of Dimensions without semantic.
Add new type of dimension for GDTs with presentation and connecting to shapes.
Update test cases.

Small corrections for issue CR28315
This commit is contained in:
ika
2017-01-19 16:05:09 +03:00
committed by apn
parent 465e686173
commit 1209c1b923
49 changed files with 1095 additions and 425 deletions

View File

@@ -1359,6 +1359,10 @@ IMPLEMENT_STANDARD_RTTIEXT(RWStepAP214_GeneralModule,StepData_GeneralModule)
#include <RWStepRepr_RWCharacterizedRepresentation.hxx>
#include <StepVisual_CharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <RWStepVisual_RWCharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <StepVisual_AnnotationFillArea.hxx>
#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
#include <RWStepVisual_RWAnnotationFillArea.hxx>
#include <RWStepVisual_RWAnnotationFillAreaOccurrence.hxx>
static Standard_Integer catsh,catdr,catstr,catdsc,cataux;
@@ -1442,6 +1446,20 @@ void RWStepAP214_GeneralModule::FillSharedCase(const Standard_Integer CN,
tool.Share(anent,iter);
}
break;
case 5:
{
DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
RWStepVisual_RWAnnotationFillArea tool;
tool.Share(anent, iter);
}
break;
case 6:
{
DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
RWStepVisual_RWAnnotationFillAreaOccurrence tool;
tool.Share(anent, iter);
}
break;
case 7:
{
DeclareAndCast(StepVisual_AnnotationOccurrence,anent,ent);
@@ -5274,6 +5292,12 @@ Standard_Boolean RWStepAP214_GeneralModule::NewVoid
case 4 :
ent = new StepVisual_AnnotationCurveOccurrence;
break;
case 5:
ent = new StepVisual_AnnotationFillArea;
break;
case 6:
ent = new StepVisual_AnnotationFillAreaOccurrence;
break;
case 7 :
ent = new StepVisual_AnnotationOccurrence;
break;

View File

@@ -1394,6 +1394,10 @@ Handle(atype) result = Handle(atype)::DownCast (start)
#include <RWStepRepr_RWConstructiveGeometryRepresentationRelationship.hxx>
#include <StepVisual_CharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <RWStepVisual_RWCharacterizedObjectAndCharacterizedRepresentationAndDraughtingModelAndRepresentation.hxx>
#include <StepVisual_AnnotationFillArea.hxx>
#include <StepVisual_AnnotationFillAreaOccurrence.hxx>
#include <RWStepVisual_RWAnnotationFillArea.hxx>
#include <RWStepVisual_RWAnnotationFillAreaOccurrence.hxx>
// -- General Declarations (Recognize, StepType) ---
@@ -4880,6 +4884,20 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
tool.ReadStep (data,num,ach,anent);
}
break;
case 5:
{
DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
RWStepVisual_RWAnnotationFillArea tool;
tool.ReadStep(data, num, ach, anent);
}
break;
case 6:
{
DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
RWStepVisual_RWAnnotationFillAreaOccurrence tool;
tool.ReadStep(data, num, ach, anent);
}
break;
case 7 :
{
DeclareAndCast(StepVisual_AnnotationOccurrence, anent, ent);
@@ -9418,6 +9436,20 @@ void RWStepAP214_ReadWriteModule::WriteStep(const Standard_Integer CN,
tool.WriteStep (SW,anent);
}
break;
case 5:
{
DeclareAndCast(StepVisual_AnnotationFillArea, anent, ent);
RWStepVisual_RWAnnotationFillArea tool;
tool.WriteStep(SW, anent);
}
break;
case 6:
{
DeclareAndCast(StepVisual_AnnotationFillAreaOccurrence, anent, ent);
RWStepVisual_RWAnnotationFillAreaOccurrence tool;
tool.WriteStep(SW, anent);
}
break;
case 7 :
{
DeclareAndCast(StepVisual_AnnotationOccurrence, anent, ent);