Open CASCADE Technology  7.0.0
Macros

IGESData_Dump.hxx File Reference

#include <gp_XY.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_XYZ.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <gp_Dir.hxx>
#include <gp_GTrsf.hxx>
#include <Interface_MSG.hxx>

Macros

#define IGESData_DumpString(S, str)
 
#define IGESData_DumpXY(S, XYval)   S << " (" << XYval.X() << "," << XYval.Y() << ")"
 
#define IGESData_DumpXYZ(S, XYZval)   S << " (" << XYZval.X() << "," << XYZval.Y() << "," << XYZval.Z() << ")"
 
#define IGESData_DumpXYT(S, XYval, Trsf)
 
#define IGESData_DumpXYTZ(S, XYval, Trsf, Z)
 
#define IGESData_DumpXYZT(S, XYZval, Trsf)
 
#define IGESData_DumpXYL(S, Level, XYval, Trsf)
 
#define IGESData_DumpXYLZ(S, Level, XYval, Trsf, Z)
 
#define IGESData_DumpXYZL(S, Level, XYZval, Trsf)
 
#define IGESData_DumpListHeader(S, lower, upper)
 
#define IGESData_DumpListVal(S, lower, upper, item)
 
#define IGESData_DumpListXY(S, lower, upper, item)
 
#define IGESData_DumpListXYZ(S, lower, upper, item)
 
#define IGESData_DumpVals(S, Level, lower, upper, item)
 
#define IGESData_DumpListXYL(S, Level, lower, upper, item, Trsf)
 
#define IGESData_DumpListXYLZ(S, Level, lower, upper, item, Trsf, Z)
 
#define IGESData_DumpListXYZL(S, Level, lower, upper, item, Trsf)
 
#define IGESData_DumpStrings(S, Level, lower, upper, item)
 
#define IGESData_DumpEntities(S, dumper, Level, lower, upper, item)
 
#define IGESData_DumpRectVals(S, Level, LowCol, UpCol, LowRow, UpRow, Item)
 

Macro Definition Documentation

#define IGESData_DumpEntities (   S,
  dumper,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4) S <<" [content : ask level > 4]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) {\
if (Level == 5) { S << " " ; dumper.PrintDNum (item(iopa),S); }\
else { S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:"; dumper.PrintShort (item(iopa),S); }\
}\
}\
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
static Standard_CString Blanks(const Standard_Integer val, const Standard_Integer max)
Returns a blank string, of length between 0 and , to fill the printing of a numeric value ...
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpListHeader (   S,
  lower,
  upper 
)
Value:
{\
if (lower > upper) S << " (Empty List)";\
else if (lower == 1) S << " (Count : " << upper << ")";\
else S << " (" << lower << " - " << upper << ")";\
}
#define IGESData_DumpListVal (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) S << " " << item(iopa);\
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpListXY (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
}
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpListXYL (   S,
  Level,
  lower,
  upper,
  item,
  Trsf 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4)\
S <<" [content : ask level > 4, transformed : level > 5]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
S<< "\n Transformed :";\
if (Level == 5) S<<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYT(S,item(jopa),Trsf);\
}\
}\
}
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpXYT(S, XYval, Trsf)
Definition: IGESData_Dump.hxx:108
#define IGESData_DumpListXYLZ (   S,
  Level,
  lower,
  upper,
  item,
  Trsf,
 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4)\
S <<" [content : ask level > 4, transformed : level > 5]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
S<< "\n Transformed :";\
if (Level == 5) S<<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYTZ(S,item(jopa),Trsf,Z);\
}\
}\
}
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXYTZ(S, XYval, Trsf, Z)
Definition: IGESData_Dump.hxx:115
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpListXYZ (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXYZ(S,item(iopa));\
}
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:104
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpListXYZL (   S,
  Level,
  lower,
  upper,
  item,
  Trsf 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4)\
S <<" [content : ask level > 4, transformed : level > 5]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXYZ(S,item(iopa));\
if (Trsf.Form() != gp_Identity) {\
S<< "\n Transformed :";\
if (Level == 5) S<<" [ask level > 5]";\
else\
for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
IGESData_DumpXYZT(S,item(jopa),Trsf);\
}\
}\
}
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:104
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXYZT(S, XYZval, Trsf)
Definition: IGESData_Dump.hxx:122
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpRectVals (   S,
  Level,
  LowCol,
  UpCol,
  LowRow,
  UpRow,
  Item 
)
Value:
{\
int loco = LowCol; int upc = UpCol; int lor = LowRow; int upr = UpRow;\
S <<" (Row :"<< lor <<" - "<< upr <<" ; Col :"<< loco <<" - "<< upc <<")";\
if (loco > upc || lor > upr) {}\
else if (Level == 4 || Level == -4) S <<" [content : ask level > 4]";\
else if (Level > 0) {\
S << "\n";\
for (int ir = lor; ir <= upr; ir ++) {\
S << "Row "<<ir<<":[";\
for (int ic = loco; ic <= upc; ic ++) S << " " << Item(ic,ir);\
S << " ]\n";\
}\
}\
}
#define Item
Definition: MAT_ListOfBisector.hxx:116
#define IGESData_DumpString (   S,
  str 
)
Value:
if (str.IsNull()) S << "(undefined)";\
else { S << '"' << str << '"'; }
#define IGESData_DumpStrings (   S,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4) S <<" [content : ask level > 4]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++)\
{ S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:\"" << item(iopa) << '"'; }\
S << "\n";\
}\
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
static Standard_CString Blanks(const Standard_Integer val, const Standard_Integer max)
Returns a blank string, of length between 0 and , to fill the printing of a numeric value ...
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpVals (   S,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
if (lo > up) {}\
else if (Level == 4 || Level == -4) S <<" [content : ask level > 4]";\
else if (Level > 0) {\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) S << " " << item(iopa);\
}\
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:59
#define IGESData_DumpListHeader(S, lower, upper)
Definition: IGESData_Dump.hxx:158
#define IGESData_DumpXY (   S,
  XYval 
)    S << " (" << XYval.X() << "," << XYval.Y() << ")"
#define IGESData_DumpXYL (   S,
  Level,
  XYval,
  Trsf 
)
Value:
{\
IGESData_DumpXY(S,XYval);\
if (Level > 5 && Trsf.Form() != gp_Identity) {\
S << " Transformed :";\
IGESData_DumpXYT(S,XYval,Trsf);\
}\
}
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
#define IGESData_DumpXYLZ (   S,
  Level,
  XYval,
  Trsf,
 
)
Value:
{\
IGESData_DumpXY(S,XYval);\
if (Level > 5 && Trsf.Form() != gp_Identity) {\
S << " Transformed :";\
IGESData_DumpXYTZ(S,XYval,Trsf,Z);\
}\
}
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
#define IGESData_DumpXYT (   S,
  XYval,
  Trsf 
)
Value:
{\
gp_XYZ XYZval(XYval.X(),XYval.Y(),0.);\
Trsf.Transforms(XYZval);\
IGESData_DumpXY(S,XYZval);\
}
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
#define IGESData_DumpXYTZ (   S,
  XYval,
  Trsf,
 
)
Value:
{\
gp_XYZ XYZval(XYval.X(),XYval.Y(),Z);\
Trsf.Transforms(XYZval);\
IGESData_DumpXYZ(S,XYZval);\
}
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:104
#define IGESData_DumpXYZ (   S,
  XYZval 
)    S << " (" << XYZval.X() << "," << XYZval.Y() << "," << XYZval.Z() << ")"
#define IGESData_DumpXYZL (   S,
  Level,
  XYZval,
  Trsf 
)
Value:
{\
IGESData_DumpXYZ(S,XYZval);\
if (Level > 5 && Trsf.Form() != gp_Identity) {\
S << " Transformed :";\
IGESData_DumpXYZT(S,XYZval,Trsf);\
}\
}
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:104
Definition: gp_TrsfForm.hxx:37
#define IGESData_DumpXYZT (   S,
  XYZval,
  Trsf 
)
Value:
{\
gp_XYZ XYZTval(XYZval.X(),XYZval.Y(),XYZval.Z());\
Trsf.Transforms(XYZTval);\
IGESData_DumpXYZ(S,XYZTval);\
}
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:104