Open CASCADE Technology  7.3.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

◆ IGESData_DumpEntities

#define IGESData_DumpEntities (   S,
  dumper,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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:69
static Standard_CString Blanks(const Standard_Integer val, const Standard_Integer max)
Returns a blank string, of length between 0 and <max>, to fill the printing of a numeric value <val>...

◆ IGESData_DumpListHeader

#define IGESData_DumpListHeader (   S,
  lower,
  upper 
)
Value:
{\
if (lower > upper) S << " (Empty List)";\
else if (lower == 1) S << " (Count : " << upper << ")";\
else S << " (" << lower << " - " << upper << ")";\
}

◆ IGESData_DumpListVal

#define IGESData_DumpListVal (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
S << " :";\
for (Standard_Integer iopa = lo; iopa <= up; iopa ++) S << " " << item(iopa);\
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:69

◆ IGESData_DumpListXY

#define IGESData_DumpListXY (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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:69

◆ IGESData_DumpListXYL

#define IGESData_DumpListXYL (   S,
  Level,
  lower,
  upper,
  item,
  Trsf 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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);\
}\
}\
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:101
int Standard_Integer
Definition: Standard_TypeDef.hxx:69
#define IGESData_DumpXYT(S, XYval, Trsf)
Definition: IGESData_Dump.hxx:108

◆ IGESData_DumpListXYLZ

#define IGESData_DumpListXYLZ (   S,
  Level,
  lower,
  upper,
  item,
  Trsf,
 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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);\
}\
}\
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
#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:69

◆ IGESData_DumpListXYZ

#define IGESData_DumpListXYZ (   S,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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:69

◆ IGESData_DumpListXYZL

#define IGESData_DumpListXYZL (   S,
  Level,
  lower,
  upper,
  item,
  Trsf 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
#define IGESData_DumpXYZT(S, XYZval, Trsf)
Definition: IGESData_Dump.hxx:122
int Standard_Integer
Definition: Standard_TypeDef.hxx:69

◆ IGESData_DumpRectVals

#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

◆ IGESData_DumpString

#define IGESData_DumpString (   S,
  str 
)
Value:
if (str.IsNull()) S << "(undefined)";\
else { S << '"' << str << '"'; }

◆ IGESData_DumpStrings

#define IGESData_DumpStrings (   S,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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:69
static Standard_CString Blanks(const Standard_Integer val, const Standard_Integer max)
Returns a blank string, of length between 0 and <max>, to fill the printing of a numeric value <val>...

◆ IGESData_DumpVals

#define IGESData_DumpVals (   S,
  Level,
  lower,
  upper,
  item 
)
Value:
{\
Standard_Integer lo = lower; Standard_Integer up = upper;\
IGESData_DumpListHeader(S,lo,up);\
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:69

◆ IGESData_DumpXY

#define IGESData_DumpXY (   S,
  XYval 
)    S << " (" << XYval.X() << "," << XYval.Y() << ")"

◆ IGESData_DumpXYL

#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);\
}\
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23

◆ IGESData_DumpXYLZ

#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);\
}\
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23

◆ IGESData_DumpXYT

#define IGESData_DumpXYT (   S,
  XYval,
  Trsf 
)
Value:
{\
gp_XYZ XYZval(XYval.X(),XYval.Y(),0.);\
Trsf.Transforms(XYZval);\
IGESData_DumpXY(S,XYZval);\
}

◆ IGESData_DumpXYTZ

#define IGESData_DumpXYTZ (   S,
  XYval,
  Trsf,
 
)
Value:
{\
gp_XYZ XYZval(XYval.X(),XYval.Y(),Z);\
Trsf.Transforms(XYZval);\
IGESData_DumpXYZ(S,XYZval);\
}

◆ IGESData_DumpXYZ

#define IGESData_DumpXYZ (   S,
  XYZval 
)    S << " (" << XYZval.X() << "," << XYZval.Y() << "," << XYZval.Z() << ")"

◆ IGESData_DumpXYZL

#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);\
}\
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23

◆ IGESData_DumpXYZT

#define IGESData_DumpXYZT (   S,
  XYZval,
  Trsf 
)
Value:
{\
gp_XYZ XYZTval(XYZval.X(),XYZval.Y(),XYZval.Z());\
Trsf.Transforms(XYZTval);\
IGESData_DumpXYZ(S,XYZTval);\
}