- FunctorType aFunctorType = theArg->GetFunctorType();
- switch(aFunctorType){
- case FT_AspectRatio:
- myStream<<"anAspectRatio";
- break;
- case FT_AspectRatio3D:
- myStream<<"anAspectRatio3D";
- break;
- case FT_Warping:
- myStream<<"aWarping";
- break;
- case FT_MinimumAngle:
- myStream<<"aMinimumAngle";
- break;
- case FT_Taper:
- myStream<<"aTaper";
- break;
- case FT_Skew:
- myStream<<"aSkew";
- break;
- case FT_Area:
- myStream<<"aArea";
- break;
- case FT_FreeBorders:
- myStream<<"aFreeBorders";
- break;
- case FT_FreeEdges:
- myStream<<"aFreeEdges";
- break;
- case FT_MultiConnection:
- myStream<<"aMultiConnection";
- break;
- case FT_MultiConnection2D:
- myStream<<"aMultiConnection2D";
- break;
- case FT_Length:
- myStream<<"aLength";
- break;
- case FT_Length2D:
- myStream<<"aLength";
- break;
- case FT_BelongToGeom:
- myStream<<"aBelongToGeom";
- break;
- case FT_BelongToPlane:
- myStream<<"aBelongToPlane";
- break;
- case FT_BelongToCylinder:
- myStream<<"aBelongToCylinder";
- break;
- case FT_LyingOnGeom:
- myStream<<"aLyingOnGeom";
- break;
- case FT_RangeOfIds:
- myStream<<"aRangeOfIds";
- break;
- case FT_BadOrientedVolume:
- myStream<<"aBadOrientedVolume";
- break;
- case FT_LessThan:
- myStream<<"aLessThan";
- break;
- case FT_MoreThan:
- myStream<<"aMoreThan";
- break;
- case FT_EqualTo:
- myStream<<"anEqualTo";
- break;
- case FT_LogicalNOT:
- myStream<<"aLogicalNOT";
- break;
- case FT_LogicalAND:
- myStream<<"aLogicalAND";
- break;
- case FT_LogicalOR:
- myStream<<"aLogicalOR";
- break;
- case FT_Undefined:
- myStream<<"anUndefined";
- break;
+ if ( theArg ) {
+ FunctorType aFunctorType = theArg->GetFunctorType();
+ switch(aFunctorType){
+ case FT_AspectRatio: myStream<< "anAspectRatio"; break;
+ case FT_AspectRatio3D: myStream<< "anAspectRatio3D"; break;
+ case FT_Warping: myStream<< "aWarping"; break;
+ case FT_MinimumAngle: myStream<< "aMinimumAngle"; break;
+ case FT_Taper: myStream<< "aTaper"; break;
+ case FT_Skew: myStream<< "aSkew"; break;
+ case FT_Area: myStream<< "aArea"; break;
+ case FT_FreeBorders: myStream<< "aFreeBorders"; break;
+ case FT_FreeEdges: myStream<< "aFreeEdges"; break;
+ case FT_MultiConnection: myStream<< "aMultiConnection"; break;
+ case FT_MultiConnection2D:myStream<< "aMultiConnection2D";break;
+ case FT_Length: myStream<< "aLength"; break;
+ case FT_Length2D: myStream<< "aLength"; break;
+ case FT_BelongToGeom: myStream<< "aBelongToGeom"; break;
+ case FT_BelongToPlane: myStream<< "aBelongToPlane"; break;
+ case FT_BelongToCylinder: myStream<< "aBelongToCylinder"; break;
+ case FT_LyingOnGeom: myStream<< "aLyingOnGeom"; break;
+ case FT_RangeOfIds: myStream<< "aRangeOfIds"; break;
+ case FT_BadOrientedVolume:myStream<< "aBadOrientedVolume";break;
+ case FT_LessThan: myStream<< "aLessThan"; break;
+ case FT_MoreThan: myStream<< "aMoreThan"; break;
+ case FT_EqualTo: myStream<< "anEqualTo"; break;
+ case FT_LogicalNOT: myStream<< "aLogicalNOT"; break;
+ case FT_LogicalAND: myStream<< "aLogicalAND"; break;
+ case FT_LogicalOR: myStream<< "aLogicalOR"; break;
+ case FT_Undefined: myStream<< "anUndefined"; break;
+ }
+ myStream<<theArg;
+ }
+ return *this;
+ }
+
+ TPythonDump& TPythonDump:: operator<<(SMESH_Gen_i* theArg)
+ {
+ myStream << SMESHGenName(); return *this;
+ }
+
+ TPythonDump& TPythonDump::operator<<(SMESH_MeshEditor_i* theArg)
+ {
+ myStream << MeshEditorName(); return *this;
+ }
+
+ TPythonDump& TPythonDump::operator<<(const TCollection_AsciiString & theStr)
+ {
+ myStream << theStr; return *this;
+ }
+
+
+ TPythonDump& TPythonDump::operator<<(SMESH::MED_VERSION theVersion)
+ {
+ switch (theVersion) {
+ case SMESH::MED_V2_1: myStream << "SMESH.MED_V2_1"; break;
+ case SMESH::MED_V2_2: myStream << "SMESH.MED_V2_2"; break;
+ default: myStream << theVersion;