GEOM.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #if defined EXTERN
  2. #undef EXTERN
  3. #endif
  4. #if defined ___1618
  5. #define EXTERN
  6. #else
  7. #define EXTERN extern
  8. #endif
  9. #define VALID_RECTANGLE_COORDSYS(___3920) \
  10. (((___3920)==CoordSys_Frame) || \
  11. ((___3920)==CoordSys_Grid))
  12. #define VALID_SQUARE_COORDSYS(___3920) VALID_RECTANGLE_COORDSYS((___3920))
  13. #define VALID_ELLIPSE_COORDSYS(___3920) VALID_RECTANGLE_COORDSYS((___3920))
  14. #define VALID_CIRCLE_COORDSYS(___3920) VALID_ELLIPSE_COORDSYS((___3920))
  15. #define VALID_IMAGE_COORDSYS(___3920) (VALID_RECTANGLE_COORDSYS((___3920) || ___3920 == CoordSys_Grid3D))
  16. #define VALID_LINESEG_COORDSYS(___3920) \
  17. (((___3920)==CoordSys_Frame) || \
  18. ((___3920)==CoordSys_Grid) || \
  19. ((___3920)==CoordSys_Grid3D))
  20. #define VALID_GEOM_COORDSYS(___3920) \
  21. (((___3920)==CoordSys_Frame) || \
  22. ((___3920)==CoordSys_Grid) || \
  23. ((___3920)==CoordSys_Grid3D))
  24. #define GEOM_USES_V3(___1555) (___1555->___3167 == CoordSys_Grid3D && ___1555->___1652 == GeomType_LineSegs)
  25. #define VALID_GEOM_TYPE(___1650) \
  26. ( VALID_ENUM((___1650),GeomType_e) && \
  27. (___1650)!=GeomType_LineSegs3D )
  28. #define VALID_GEOM_FIELD_DATA_TYPE(___906) \
  29. ( ( (___906) == FieldDataType_Float ) || \
  30. ( (___906) == FieldDataType_Double ) )