Open CASCADE Technology  7.9.3
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; \
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); \
} \
} \
} \
}
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 ...
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#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; \
IGESData_DumpListHeader(S, lo, up); \
S << " :"; \
for (Standard_Integer iopa = lo; iopa <= up; iopa++) \
S << " " << item(iopa); \
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#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)); \
}
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:108
#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); \
} \
} \
}
#define IGESData_DumpXYT(S, XYval, Trsf)
Definition: IGESData_Dump.hxx:113
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:108
#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
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#define IGESData_DumpXY(S, XYval)
Definition: IGESData_Dump.hxx:108
#define IGESData_DumpXYTZ(S, XYval, Trsf, Z)
Definition: IGESData_Dump.hxx:120
#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:110
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#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_DumpXYZT(S, XYZval, Trsf)
Definition: IGESData_Dump.hxx:127
#define IGESData_DumpXYZ(S, XYZval)
Definition: IGESData_Dump.hxx:110
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#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:100
#define IGESData_DumpString (   S,
  str 
)
Value:
if (str.IsNull()) \
S << "(undefined)"; \
else \
{ \
S << '"' << str->String() << '"'; \
}
#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)->String() \
<< '"'; \
} \
S << "\n"; \
} \
}
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 ...
int Standard_Integer
Definition: Standard_TypeDef.hxx:61
#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:61
#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); \
} \
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
#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
#define IGESData_DumpXYT (   S,
  XYval,
  Trsf 
)
Value:
{ \
gp_XYZ XYZval(XYval.X(), XYval.Y(), 0.); \
Trsf.Transforms(XYZval); \
IGESData_DumpXY(S, XYZval); \
}
#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 
)    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); \
} \
}
No transformation (matrix is identity)
Definition: gp_TrsfForm.hxx:23
#define IGESData_DumpXYZT (   S,
  XYZval,
  Trsf 
)
Value:
{ \
gp_XYZ XYZTval(XYZval.X(), XYZval.Y(), XYZval.Z()); \
Trsf.Transforms(XYZTval); \
IGESData_DumpXYZ(S, XYZTval); \
}