21 #if !defined(OPENNURBS_DEFINES_INC_) 22 #define OPENNURBS_DEFINES_INC_ 24 #if !defined(OPENNURBS_SYSTEM_INC_) 25 #error Include opennurbs_system.h before opennurbs_defines.h 28 #if defined (cplusplus) || defined(_cplusplus) || defined(__cplusplus) || defined(ON_CPLUSPLUS) 31 #if !defined(ON_CPLUSPLUS) 34 #define ON_EXTERNC extern "C" 35 #define ON_BEGIN_EXTERNC extern "C" { 36 #define ON_END_EXTERNC } 38 #define ON_UINT_FROM_ENUM(e) (static_cast<unsigned int>(e)) 39 #define ON_INT_FROM_ENUM(e) ((int)static_cast<unsigned int>(e)) 46 #define ON_BEGIN_EXTERNC 47 #define ON_END_EXTERNC 62 #define ON_ENUM_FROM_UNSIGNED_CASE(e) case (unsigned int)e: return(e); break 63 #define ON_ENUM_TO_STRING_CASE(e) case e: return( ON_String(#e) ); break 64 #define ON_ENUM_TO_WIDE_STRING_CASE(e) case e: return( ON_wString(#e) ); break 67 #if defined(OPENNURBS_EXPORTS) 70 #if defined(ON_COMPILER_MSC) 72 #define ON_CLASS __declspec(dllexport) 73 #define ON_DECL __declspec(dllexport) 74 #define ON_EXTERN_DECL __declspec(dllexport) 75 #define ON_DLL_TEMPLATE 77 #elif defined(ON_COMPILER_CLANG) 79 #define ON_CLASS __attribute__ ((visibility ("default"))) 80 #define ON_DECL __attribute__ ((visibility ("default"))) 81 #define ON_EXTERN_DECL __attribute__ ((visibility ("default"))) 84 #error fill in your compiler dynamic linking decorations 87 #elif defined(OPENNURBS_IMPORTS) 90 #if defined(ON_COMPILER_MSC) 92 #define ON_CLASS __declspec(dllimport) 93 #define ON_DECL __declspec(dllimport) 94 #define ON_EXTERN_DECL __declspec(dllimport) 95 #define ON_DLL_TEMPLATE extern 97 #elif defined(ON_COMPILER_CLANG) 99 #define ON_CLASS __attribute__ ((visibility ("default"))) 100 #define ON_DECL __attribute__ ((visibility ("default"))) 101 #define ON_EXTERN_DECL __attribute__ ((visibility ("default"))) 104 #error fill in your compiler dynamic linking decorations 112 #define ON_EXTERN_DECL 114 #if defined(ON_DLL_TEMPLATE) 115 #undef ON_DLL_TEMPLATE 122 #if defined(ON_COMPILER_MSC) 123 #define ON_DEPRECATED __declspec(deprecated) 124 #define ON_DEPRECATED_MSG(s) [[deprecated(s)]] 125 #elif defined(ON_COMPILER_CLANG) 126 #define ON_DEPRECATED __attribute__((deprecated)) 127 #define ON_DEPRECATED_MSG(s) [[deprecated(s)]] 129 #define ON_DEPRECATED 130 #define ON_DEPRECATED_MSG(s) 136 #define ON_PI 3.141592653589793238462643 139 #define ON_DEGREES_TO_RADIANS (ON_PI/180.0) 140 #define ON_RADIANS_TO_DEGREES (180.0/ON_PI) 150 double ON_DegreesFromRadians(
151 double angle_in_radians
162 double ON_RadiansFromDegrees(
163 double angle_in_degrees
166 #define ON_SQRT2 1.414213562373095048801689 167 #define ON_SQRT3 1.732050807568877293527446 168 #define ON_SQRT3_OVER_2 0.8660254037844386467637230 169 #define ON_1_OVER_SQRT2 0.7071067811865475244008445 170 #define ON_SIN_PI_OVER_12 0.2588190451025207623488990 171 #define ON_COS_PI_OVER_12 0.9659258262890682867497433 173 #define ON_LOG2 0.6931471805599453094172321 174 #define ON_LOG10 2.302585092994045684017991 176 #define ON_ArrayCount(a) (sizeof(a)/sizeof((a)[0])) 179 #define ON_DBL_MAX DBL_MAX 181 #define ON_DBL_MAX 1.7976931348623158e+308 185 #define ON_DBL_MIN DBL_MIN 187 #define ON_DBL_MIN 2.22507385850720200e-308 191 #if defined(DBL_EPSILON) 192 #define ON_EPSILON DBL_EPSILON 194 #define ON_EPSILON 2.2204460492503131e-16 196 #define ON_SQRT_EPSILON 1.490116119385000000e-8 198 #if defined(FLT_EPSILON) 199 #define ON_FLOAT_EPSILON FLT_EPSILON 201 #define ON_FLOAT_EPSILON 1.192092896e-07 203 #define ON_SQRT_FLOAT_EPSILON 3.452669830725202719e-4 227 #define ON_UNSET_POSITIVE_VALUE 1.23432101234321e+308 228 #define ON_UNSET_VALUE -ON_UNSET_POSITIVE_VALUE 237 #define ON_UNSET_POSITIVE_FLOAT 1.234321e+38f 238 #define ON_UNSET_FLOAT -ON_UNSET_POSITIVE_FLOAT 243 #define ON_UNSET_UINT_INDEX 0xFFFFFFFFU 249 #define ON_UNSET_INT_INDEX ((const int)-2147483647) 255 extern ON_EXTERN_DECL
const double ON_DBL_QNAN;
256 extern ON_EXTERN_DECL
const double ON_DBL_PINF;
257 extern ON_EXTERN_DECL
const double ON_DBL_NINF;
259 extern ON_EXTERN_DECL
const float ON_FLT_QNAN;
260 extern ON_EXTERN_DECL
const float ON_FLT_PINF;
261 extern ON_EXTERN_DECL
const float ON_FLT_NINF;
285 void ON_DBL_SNAN(
double* x );
288 void ON_FLT_SNAN(
float* x );
297 float ON_FloatFromDouble(
308 double ON_DoubleFromFloat(
315 #if defined(ON_CPLUSPLUS) 317 bool ON_IsNullPtr(
const void* ptr);
320 bool ON_IsNullPtr(
const ON__UINT_PTR ptr);
323 bool ON_IsNullPtr(
const ON__INT_PTR ptr);
331 #define ON_UNSET_COLOR 0xFFFFFFFF 344 #define ON_ZERO_TOLERANCE 2.3283064365386962890625e-10 356 #define ON_RELATIVE_TOLERANCE 2.27373675443232059478759765625e-13 364 #define ON_MAXIMUM_WORLD_COORDINATE_VALUE 1.34217728e8 373 #define ON_NONSENSE_WORLD_COORDINATE_VALUE 1.0e100 383 #define ON_ZERO_CURVATURE_TOLERANCE 1.0e-8 384 #define ON_RELATIVE_CURVATURE_TOLERANCE 0.05 387 #define ON_DEFAULT_ANGLE_TOLERANCE (ON_PI/180.0) 388 #define ON_DEFAULT_ANGLE_TOLERANCE_COSINE 0.99984769515639123915701155881391 389 #define ON_MINIMUM_ANGLE_TOLERANCE (ON_DEFAULT_ANGLE_TOLERANCE/10.0) 395 ON__UINT64 ON_SecondsSinceJanOne1970UTC();
407 #if defined(ON_CPLUSPLUS) 413 class ON_CLASS ON_2dex
417 ~ON_2dex() =
default;
418 ON_2dex(
const ON_2dex&) =
default;
419 ON_2dex& operator=(
const ON_2dex&) =
default;
426 ON_2dex(
int i,
int j);
428 static const ON_2dex Unset;
429 static const ON_2dex Zero;
432 class ON_CLASS ON_2udex
435 ON_2udex() =
default;
436 ~ON_2udex() =
default;
437 ON_2udex(
const ON_2udex&) =
default;
438 ON_2udex& operator=(
const ON_2udex&) =
default;
445 ON_2udex(
unsigned int i,
unsigned int j);
447 static const ON_2udex Unset;
448 static const ON_2udex Zero;
451 class ON_CLASS ON_3dex
455 ~ON_3dex() =
default;
456 ON_3dex(
const ON_3dex&) =
default;
457 ON_3dex& operator=(
const ON_3dex&) =
default;
465 ON_3dex(
int i,
int j,
int k);
467 static const ON_3dex Unset;
468 static const ON_3dex Zero;
471 class ON_CLASS ON_3udex
474 ON_3udex() =
default;
475 ~ON_3udex() =
default;
476 ON_3udex(
const ON_3udex&) =
default;
477 ON_3udex& operator=(
const ON_3udex&) =
default;
485 ON_3udex(
unsigned int i,
unsigned int j,
unsigned int k);
487 static const ON_3udex Unset;
488 static const ON_3udex Zero;
492 class ON_CLASS ON_4dex
496 ~ON_4dex() =
default;
497 ON_4dex(
const ON_4dex&) =
default;
498 ON_4dex& operator=(
const ON_4dex&) =
default;
507 ON_4dex(
int i,
int j,
int k,
int l);
509 static const ON_4dex Unset;
510 static const ON_4dex Zero;
513 class ON_CLASS ON_4udex
516 ON_4udex() =
default;
517 ~ON_4udex() =
default;
518 ON_4udex(
const ON_4udex&) =
default;
519 ON_4udex& operator=(
const ON_4udex&) =
default;
528 ON_4udex(
unsigned int i,
unsigned int j,
unsigned int k,
unsigned int l);
530 static const ON_4udex Unset;
531 static const ON_4udex Zero;
535 enum class ON_StringMapType : int
542 enum class ON_StringMapOrdinalType : int
551 ON_StringMapOrdinalType ON_StringMapOrdinalTypeFromStringMapType(
552 ON_StringMapType map_type
581 static unsigned int LibraryStatus();
586 static void SetLibraryStatus(
unsigned int status);
595 unsigned int Version();
603 unsigned int VersionMajor();
611 unsigned int VersionMinor();
619 unsigned int VersionYear();
627 unsigned int VersionMonth();
635 unsigned int VersionDayOfMonth();
643 unsigned int VersionHour();
651 unsigned int VersionMinute();
662 unsigned int VersionBranch();
679 unsigned int VersionGetQuartet(
680 unsigned int version_quartet[4]
691 const char* VersionQuartetAsString();
700 const wchar_t* VersionQuartetAsWideString();
710 static const char* SourceGitRevisionHash();
719 static const char* SourceGitBranchName();
728 static const char* SourceIdentification();
734 const char* filename,
740 const wchar_t* filename,
741 const wchar_t* filemode
765 bool GetFileStats(
const wchar_t* filename,
768 time_t* lastmodify_time
772 bool GetFileStats( FILE* fp,
775 time_t* lastmodify_time
781 static bool IsDirectory(
const wchar_t* pathname );
782 static bool IsDirectory(
const char* utf8pathname );
790 static int IsOpenNURBSFile(
const wchar_t* pathname );
791 static int IsOpenNURBSFile(
const char* utf8pathname );
792 static int IsOpenNURBSFile( FILE* fp );
794 #pragma region RH_C_SHARED_ENUM [ON::RuntimeEnvironment] [Rhino.RuntimeEnvironment] [byte] 802 enum class RuntimeEnvironment : unsigned char
832 static ON::RuntimeEnvironment RuntimeEnvironmentFromUnsigned(
833 unsigned int runtime_environment_as_unsigned
840 static ON::RuntimeEnvironment CurrentRuntimeEnvironment();
843 #pragma region RH_C_SHARED_ENUM [ON::ReadFileResult] [Rhino.ReadFileResult] [byte] 847 enum class ReadFileResult : unsigned char
862 CompletedWithErrors = 2,
871 static ON::ReadFileResult ReadFileResultFromUnsigned(
872 unsigned int read_file_result_as_unsigned
880 static bool ReadFileCompleted(
881 ON::ReadFileResult read_file_result
889 static bool ReadFileFailed(
890 ON::ReadFileResult read_file_result
895 enum active_space :
unsigned char 902 static active_space ActiveSpace(
int);
904 #pragma region RH_C_SHARED_ENUM [ON::LengthUnitSystem] [Rhino.UnitSystem] [byte] 913 enum class LengthUnitSystem : unsigned char
1045 AstronomicalUnits = 23,
1081 static ON::LengthUnitSystem LengthUnitSystemFromUnsigned(
1082 unsigned int length_unit_system_as_unsigned
1093 static ON::LengthUnitSystem ModelLengthUnitSystem(
1094 ON__UINT_PTR model_serial_number
1098 static void RegisterModelLengthUnitSystemCallback(
1099 ON::LengthUnitSystem (*func_ModelLengthUnitSystemCallback)(ON__UINT_PTR)
1124 static bool IsMetricLengthUnit(
1125 ON::LengthUnitSystem length_unit_system
1140 static bool IsUnitedStatesCustomaryLengthUnit(
1141 ON::LengthUnitSystem length_unit_system
1160 static bool IsTerrestrialLengthUnit(
1161 ON::LengthUnitSystem length_unit_system
1171 static bool IsExtraTerrestrialLengthUnit(
1172 ON::LengthUnitSystem length_unit_system
1184 static bool IsMicroscopicLengthUnit(
1185 ON::LengthUnitSystem length_unit_system
1194 static bool IsUnitedStatesPrinterLengthUnit(
1195 ON::LengthUnitSystem length_unit_system
1215 static double UnitScale(
1216 ON::LengthUnitSystem us_from,
1217 ON::LengthUnitSystem us_to
1219 static double UnitScale(
1223 static double UnitScale(
1224 ON::LengthUnitSystem us_from,
1227 static double UnitScale(
1229 ON::LengthUnitSystem us_to
1231 static double UnitScale(
1237 #pragma region RH_C_SHARED_ENUM [ON::AngleUnitSystem] [Rhino.AngleUnitSystem] [byte] 1241 enum class AngleUnitSystem : unsigned char
1287 static ON::AngleUnitSystem AngleUnitSystemFromUnsigned(
1288 unsigned int angle_unit_system_as_unsigned
1291 static double AngleUnitScale(
1292 ON::AngleUnitSystem us_from,
1293 ON::AngleUnitSystem us_to
1300 enum class EarthCoordinateSystem : unsigned char
1333 static ON::EarthCoordinateSystem EarthCoordinateSystemFromUnsigned(
1334 unsigned int earth_coordinte_system_as_unsigned
1344 enum class ComponentNameConflictResolution : unsigned char
1362 UseExistingComponent = 2,
1369 ReplaceExistingComponent = 3,
1376 KeepBothComponentsAutomaticRename = 4,
1383 KeepBothComponentsQueryRename = 5,
1392 static ON::ComponentNameConflictResolution ComponentNameConflictResolutionFromUnsigned(
1393 unsigned int component_name_conflict_resolution_as_unsigned
1400 enum class OBSOLETE_DistanceDisplayMode : unsigned char
1412 static ON::OBSOLETE_DistanceDisplayMode DistanceDisplayModeFromUnsigned(
1413 unsigned int distance_display_mode_as_unsigned
1420 unknown_point_style = 0,
1422 homogeneous_rational = 2,
1423 euclidean_rational = 3,
1424 intrinsic_point_style = 4,
1425 point_style_count = 5
1428 static point_style PointStyle(
int);
1433 unknown_knot_style = 0,
1435 quasi_uniform_knots = 2,
1436 piecewise_bezier_knots = 3,
1437 clamped_end_knots = 4,
1438 non_uniform_knots = 5,
1439 knot_style_count = 6
1442 static knot_style KnotStyle(
int);
1445 enum class continuity : unsigned int
1447 unknown_continuity = 0,
1473 C0_locus_continuous = 6,
1474 C1_locus_continuous = 7,
1475 C2_locus_continuous = 8,
1476 G1_locus_continuous = 9,
1477 G2_locus_continuous = 10,
1479 Cinfinity_continuous = 11,
1480 Gsmooth_continuous = 12
1487 static continuity Continuity(
int);
1495 static continuity ParametricContinuity(
int);
1504 static continuity PolylineContinuity(
int);
1509 unknown_curve_style = 0,
1515 planar_polyline = 6,
1517 planar_freeform_curve = 8,
1519 curve_style_count = 10
1522 static curve_style CurveStyle(
int);
1527 unknown_surface_style = 0,
1529 circular_cylinder = 2,
1530 elliptical_cylinder = 3,
1532 elliptical_cone = 5,
1535 surface_of_revolution = 8,
1537 freeform_surface = 10,
1538 surface_style_count = 11
1541 static surface_style SurfaceStyle(
int);
1544 enum class sort_algorithm : unsigned int
1550 static sort_algorithm SortAlgorithm(
int);
1553 enum class endian : unsigned int
1559 static endian Endian(
int);
1560 static endian Endian();
1563 enum class archive_mode : unsigned int
1565 unset_archive_mode = 0,
1572 static archive_mode ArchiveMode(
int);
1581 enum view_projection :
unsigned int 1585 perspective_view = 2
1598 static view_projection ViewProjection(
int i);
1606 static bool IsPerspectiveProjection( ON::view_projection projection );
1615 static bool IsParallelProjection( ON::view_projection projection );
1619 enum coordinate_system
1627 static coordinate_system CoordinateSystem(
int);
1632 unknown_exception = 0,
1636 unable_to_write_archive,
1637 unable_to_read_archive,
1638 unable_to_seek_archive,
1639 unexpected_end_of_archive,
1640 unexpected_value_in_archive
1642 static exception_type ExceptionType(
int);
1651 layer_mode_count = 3
1653 static layer_mode LayerMode(
int);
1664 object_mode_count = 4
1666 static object_mode ObjectMode(
int);
1669 enum object_color_source
1671 color_from_layer = 0,
1672 color_from_object = 1,
1673 color_from_material = 2,
1674 color_from_parent = 3
1677 static object_color_source ObjectColorSource(
int);
1680 enum plot_color_source
1682 plot_color_from_layer = 0,
1683 plot_color_from_object = 1,
1684 plot_color_from_display = 2,
1685 plot_color_from_parent = 3
1688 static plot_color_source PlotColorSource(
int);
1691 enum plot_weight_source
1693 plot_weight_from_layer = 0,
1694 plot_weight_from_object = 1,
1695 plot_weight_from_parent = 3
1698 static plot_weight_source PlotWeightSource(
int);
1701 enum object_linetype_source
1703 linetype_from_layer = 0,
1704 linetype_from_object = 1,
1705 linetype_from_parent = 3
1708 static object_linetype_source ObjectLinetypeSource(
int);
1711 enum object_material_source
1713 material_from_layer = 0,
1714 material_from_object = 1,
1715 material_from_parent = 3
1724 static object_material_source ObjectMaterialSource(
int);
1729 unknown_light_style = 0,
1733 camera_directional_light = 4,
1734 camera_point_light = 5,
1735 camera_spot_light = 6,
1736 world_directional_light = 7,
1737 world_point_light = 8,
1738 world_spot_light = 9,
1740 world_linear_light = 11,
1741 world_rectangular_light = 12,
1742 light_style_count = 13
1744 static light_style LightStyle(
int);
1747 enum curvature_style
1749 unknown_curvature_style = 0,
1750 gaussian_curvature = 1,
1754 curvature_style_count = 5
1756 static curvature_style CurvatureStyle(
int);
1764 enum v3_display_mode
1766 v3_default_display = 0,
1767 v3_wireframe_display = 1,
1768 v3_shaded_display = 2,
1769 v3_renderpreview_display = 3
1771 static ON::v3_display_mode V3DisplayMode(
int);
1775 model_view_type = 0,
1781 nested_view_type = 2,
1785 static view_type ViewType(
int);
1794 modulate_texture = 1,
1798 static texture_mode TextureMode(
int);
1810 unknown_object_type = 0,
1813 pointset_object = 2,
1818 layer_object = 0x40,
1819 material_object = 0x80,
1820 light_object = 0x100,
1821 annotation_object = 0x200,
1822 userdata_object = 0x400,
1823 instance_definition = 0x800,
1824 instance_reference = 0x1000,
1826 grip_object = 0x4000,
1827 detail_object = 0x8000,
1828 hatch_object = 0x10000,
1829 morph_control_object = 0x20000,
1830 subd_object = 0x40000,
1831 loop_object = 0x80000,
1832 brepvertex_filter = 0x100000,
1833 polysrf_filter = 0x200000,
1834 edge_filter = 0x400000,
1835 polyedge_filter = 0x800000,
1836 meshvertex_filter = 0x01000000,
1837 meshedge_filter = 0x02000000,
1838 meshface_filter = 0x04000000,
1839 meshcomponent_reference = 0x07000000,
1840 cage_object = 0x08000000,
1841 phantom_object = 0x10000000,
1842 clipplane_object = 0x20000000,
1843 extrusion_object = 0x40000000,
1845 any_object = 0xFFFFFFFF
1850 static object_type ObjectType(
int);
1855 unknown_bitmap_type = 0,
1860 static bitmap_type BitmapType(
int);
1862 enum object_decoration
1864 no_object_decoration = 0,
1865 start_arrowhead = 0x08,
1866 end_arrowhead = 0x10,
1867 both_arrowhead = 0x18
1869 static object_decoration ObjectDecoration(
int);
1879 static mesh_type MeshType(
int);
1898 os_quadrant = 0x200,
1899 os_midpoint = 0x800,
1900 os_intersection = 0x2000,
1902 os_perpendicular = 0x80000,
1903 os_tangent = 0x200000,
1904 os_point = 0x08000000,
1905 os_all_snaps = 0xFFFFFFFF
1907 static osnap_mode OSnapMode(
int);
1929 enum cubic_loft_end_condition
1931 cubic_loft_ec_quadratic = 0,
1932 cubic_loft_ec_linear = 1,
1933 cubic_loft_ec_cubic = 2,
1934 cubic_loft_ec_natural = 3,
1935 cubic_loft_ec_unit_tangent = 4,
1936 cubic_loft_ec_1st_derivative = 5,
1937 cubic_loft_ec_2nd_derivative = 6,
1938 cubic_loft_ec_free_cv = 7
1953 cubic_loft_end_condition CubicLoftEndCondition(
int i);
1958 #pragma region RH_C_SHARED_ENUM [ON::AnnotationType] [Rhino.Geometry.AnnotationType] [byte] 1963 enum class AnnotationType : unsigned char
2028 static ON::AnnotationType AnnotationTypeFromUnsigned(
2029 unsigned int annotation_type_as_unsigned
2034 #pragma region RH_C_SHARED_ENUM [ON::TextVerticalAlignment] [Rhino.DocObjects.TextVerticalAlignment] [byte] 2038 enum class TextVerticalAlignment : unsigned char
2067 BottomOfBoundingBox = 6,
2071 static ON::TextVerticalAlignment TextVerticalAlignmentFromUnsigned(
2072 unsigned int vertical_alignment_as_unsigned
2075 static ON::TextVerticalAlignment TextVerticalAlignmentFromV5Justification(
2076 unsigned int v5_justification_bits
2079 #pragma region RH_C_SHARED_ENUM [ON::TextHorizontalAlignment] [Rhino.DocObjects.TextHorizontalAlignment] [byte] 2083 enum class TextHorizontalAlignment : unsigned char
2100 static ON::TextHorizontalAlignment TextHorizontalAlignmentFromUnsigned(
2101 unsigned int horizontal_alignment_as_unsigned
2104 static ON::TextHorizontalAlignment TextHorizontalAlignmentFromV5Justification(
2105 unsigned int v5_justification_bits
2108 #pragma region RH_C_SHARED_ENUM [ON::TextOrientation] [Rhino.DocObjects.TextOrientation] [byte] 2112 enum class TextOrientation : unsigned char
2126 static ON::TextOrientation TextOrientationFromUnsigned(
2127 unsigned int orientation_as_unsigned
2137 static unsigned int m_opennurbs_library_status;
2152 class ON_CLASS ON_COMPONENT_INDEX
2170 meshtop_vertex = 12,
2177 polycurve_segment = 31,
2179 pointcloud_point = 41,
2184 extrusion_bottom_profile = 61,
2186 extrusion_top_profile = 62,
2188 extrusion_wall_edge = 63,
2191 extrusion_wall_surface = 64,
2193 extrusion_cap_surface = 65,
2195 extrusion_path = 66,
2213 dim_linear_point = 100,
2214 dim_radial_point = 101,
2215 dim_angular_point = 102,
2216 dim_ordinate_point = 103,
2217 dim_text_point = 104,
2218 dim_centermark_point = 105,
2219 dim_leader_point = 106,
2221 no_type = 0xFFFFFFFF
2235 ON_COMPONENT_INDEX::TYPE Type(
int i);
2246 int Compare(
const ON_COMPONENT_INDEX* a,
const ON_COMPONENT_INDEX*
b);
2254 static const ON_COMPONENT_INDEX UnsetComponentIndex;
2260 ON_COMPONENT_INDEX();
2266 ON_COMPONENT_INDEX(ON_COMPONENT_INDEX::TYPE type,
int index);
2268 bool operator==(
const ON_COMPONENT_INDEX& other)
const;
2269 bool operator!=(
const ON_COMPONENT_INDEX& other)
const;
2270 bool operator<(
const ON_COMPONENT_INDEX& other)
const;
2271 bool operator<=(
const ON_COMPONENT_INDEX& other)
const;
2272 bool operator>(
const ON_COMPONENT_INDEX& other)
const;
2273 bool operator>=(
const ON_COMPONENT_INDEX& other)
const;
2275 void Set(ON_COMPONENT_INDEX::TYPE type,
int index);
2276 void Set(ON_COMPONENT_INDEX::TYPE type,
unsigned int index);
2291 bool IsNotSet()
const;
2298 bool IsMeshComponentIndex()
const;
2305 bool IsSubDComponentIndex()
const;
2312 bool IsBrepComponentIndex()
const;
2318 bool IsIDefComponentIndex()
const;
2324 bool IsPolyCurveComponentIndex()
const;
2330 bool IsGroupMemberComponentIndex()
const;
2337 bool IsExtrusionProfileComponentIndex()
const;
2343 bool IsExtrusionPathComponentIndex()
const;
2349 bool IsExtrusionWallEdgeComponentIndex()
const;
2355 bool IsExtrusionWallSurfaceComponentIndex()
const;
2362 bool IsExtrusionWallComponentIndex()
const;
2370 bool IsExtrusionComponentIndex()
const;
2376 bool IsPointCloudComponentIndex()
const;
2382 bool IsAnnotationComponentIndex()
const;
2388 void AppendToString(
2392 void AppendToString(
2432 unsigned int UnsignedIndex()
const 2434 return (
unsigned int)m_index;
2447 int on_wcsicmp(
const wchar_t*,
const wchar_t* );
2451 wchar_t* on_wcsupr(
wchar_t*);
2455 wchar_t* on_wcslwr(
wchar_t*);
2459 wchar_t* on_wcsrev(
wchar_t*);
2465 int on_stricmp(
const char*,
const char*);
2471 int on_strnicmp(
const char * s1,
const char * s2,
int n);
2475 char* on_strupr(
char*);
2479 char* on_strlwr(
char*);
2483 char* on_strrev(
char*);
2490 int on_WideCharToMultiByte(
2502 int on_MultiByteToWideChar(
2555 ON_DECL
void on_splitpath(
2557 const char** volume,
2609 ON_DECL
void on_wsplitpath(
2610 const wchar_t* path,
2611 const wchar_t** volume,
2612 const wchar_t** dir,
2613 const wchar_t** fname,
double d
Definition: opennurbs_defines.h:401
Definition: opennurbs_string.h:2020
Definition: opennurbs_string.h:852
void * p
Definition: opennurbs_defines.h:400
Definition: opennurbs_3dm_settings.h:26
char b[8]
Definition: opennurbs_defines.h:396
ON__INT32 i
Definition: opennurbs_defines.h:398
Definition: opennurbs_string.h:3739
Definition: opennurbs_textlog.h:20
Definition: opennurbs_defines.h:394
int j[2]
Definition: opennurbs_defines.h:399
ON__INT64 h
Definition: opennurbs_defines.h:397