mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027241: Create a complete test case to verify reading of all attribute types from MDTV-Standard document
Added test case that works in one of two modes: 1) create synthetic document (in old version of OCCT) containing all possible attributes. 2) open the document and compare all attributes with expected values. Fixed reading of TDataStd_NamedData, TDataXtd_PatternStd, and PColStd_HArray2OfReal. Point and curve representations are created even from NULL geometry handles. The code is simplified by abandoning usage of templates from StdObjMgt_ContentTypes class for persistent data elements. Fixed SetAsciiString Draw command failed when the target label contained NamedData attribute.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <StdLPersistent_HArray1.hxx>
|
||||
|
||||
#include <TDataXtd_Constraint.hxx>
|
||||
#include <TDataXtd_ConstraintEnum.hxx>
|
||||
|
||||
|
||||
class StdPersistent_DataXtd_Constraint
|
||||
@@ -37,13 +36,13 @@ public:
|
||||
void Import (const Handle(TDataXtd_Constraint)& theAttribute) const;
|
||||
|
||||
private:
|
||||
Enum<TDataXtd_ConstraintEnum> myType;
|
||||
Reference<StdLPersistent_HArray1::Persistent> myGeometries;
|
||||
Reference<> myValue;
|
||||
Value<Standard_Boolean> myIsReversed;
|
||||
Value<Standard_Boolean> myIsInverted;
|
||||
Value<Standard_Boolean> myIsVerified;
|
||||
Reference<> myPlane;
|
||||
Standard_Integer myType;
|
||||
Handle(StdLPersistent_HArray1::Persistent) myGeometries;
|
||||
Handle(StdObjMgt_Persistent) myValue;
|
||||
Standard_Boolean myIsReversed;
|
||||
Standard_Boolean myIsInverted;
|
||||
Standard_Boolean myIsVerified;
|
||||
Handle(StdObjMgt_Persistent) myPlane;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user