scriptup 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +11 -0
- data/README.md +5 -0
- data/ext/attribute_dictionaries.c +45 -0
- data/ext/attribute_dictionaries.h +3 -0
- data/ext/attribute_dictionary.c +156 -0
- data/ext/attribute_dictionary.h +3 -0
- data/ext/behavior.c +10 -0
- data/ext/behavior.h +3 -0
- data/ext/color.c +211 -0
- data/ext/color.h +3 -0
- data/ext/component_definition.c +188 -0
- data/ext/component_definition.h +3 -0
- data/ext/component_instance.c +10 -0
- data/ext/component_instance.h +3 -0
- data/ext/definition_list.c +145 -0
- data/ext/definition_list.h +3 -0
- data/ext/drawing_element.c +10 -0
- data/ext/drawing_element.h +3 -0
- data/ext/entities.c +11 -0
- data/ext/entities.h +3 -0
- data/ext/entity.c +253 -0
- data/ext/entity.h +3 -0
- data/ext/extconf.rb +38 -0
- data/ext/material.c +242 -0
- data/ext/material.h +3 -0
- data/ext/materials.c +80 -0
- data/ext/materials.h +3 -0
- data/ext/model.c +42 -0
- data/ext/model.h +3 -0
- data/ext/sketchup.c +89 -0
- data/ext/sketchup.h +4 -0
- data/ext/texture.c +9 -0
- data/ext/texture.h +3 -0
- data/ext/typed_value.c +84 -0
- data/ext/typed_value.h +5 -0
- data/ext/utils.h +80 -0
- data/lib/sketchup.rb +12 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +36 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +59 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +248 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +118 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +107 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +178 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +19 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +62 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +34 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +153 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +96 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +98 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +64 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +321 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +163 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +235 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +285 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +152 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +165 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +183 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +84 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +43 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +424 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +244 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +17 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +161 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +242 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +398 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +89 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +125 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +86 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +588 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +344 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +143 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +142 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +222 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +421 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +194 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +253 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +198 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +92 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +70 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +271 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +214 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +834 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +186 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +80 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +90 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +686 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +138 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +20 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +685 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +244 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +155 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +153 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +288 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +275 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +266 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +265 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +301 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +211 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +81 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +65 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +182 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +390 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +187 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +1663 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +49 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +72 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +79 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +166 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +140 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +179 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +836 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +56 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +26 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +212 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +156 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +147 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +45 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +303 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +190 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +384 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +358 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +280 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +390 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +79 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +154 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +122 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +65 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +16 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +16 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +239 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +124 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeometry.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonGeoutils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonImage.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonPreferences.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUnits.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonUtils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Libraries/libCommonZip.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +50 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +835 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +36 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +59 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +248 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +118 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/color.h +107 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/common.h +178 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +19 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +62 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +34 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +153 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +96 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +98 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +64 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +321 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +163 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +235 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +285 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +152 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +165 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +183 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +84 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +43 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +424 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +244 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +17 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +161 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +242 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +398 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +89 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +125 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +86 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +588 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +344 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +143 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +142 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +222 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +421 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +194 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +253 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +198 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +92 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +70 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +271 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +214 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +834 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +186 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +80 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +90 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +686 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +138 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +20 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +685 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +244 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +155 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +153 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +288 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +275 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +266 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +265 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +301 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +211 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +81 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +65 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +182 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +390 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +187 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +1663 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +49 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +72 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +79 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +166 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +140 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +179 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +836 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +56 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +26 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +212 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +156 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +147 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +45 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +303 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +190 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +384 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +358 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +280 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +390 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +79 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +154 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +122 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +65 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +16 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +16 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +239 -0
- data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +124 -0
- metadata +313 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
// Copyright 2015-2020 Trimble Inc., All rights reserved.
|
2
|
+
// This file is intended for public distribution.
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @file
|
6
|
+
* @brief Utility header that loads all other headers in the SDK package.
|
7
|
+
*/
|
8
|
+
#ifndef SKETCHUP_SKETCHUP_H_
|
9
|
+
#define SKETCHUP_SKETCHUP_H_
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @dir SketchUpAPI
|
13
|
+
* @brief Interfaces for the SketchUp SDK.
|
14
|
+
*/
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @dir SketchUpAPI/application
|
18
|
+
* @brief Interfaces for usage within the SketchUp application.
|
19
|
+
*/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @dir SketchUpAPI/geometry
|
23
|
+
* @brief Interfaces for geometric operations.
|
24
|
+
*/
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @dir SketchUpAPI/import_export
|
28
|
+
* @brief Interfaces for importers and exporters.
|
29
|
+
*/
|
30
|
+
|
31
|
+
/**
|
32
|
+
* @dir SketchUpAPI/model
|
33
|
+
* @brief Interfaces for the SketchUp model.
|
34
|
+
*/
|
35
|
+
|
36
|
+
/**
|
37
|
+
* @dir SketchUpAPI/utils
|
38
|
+
* @brief General utility interfaces.
|
39
|
+
*/
|
40
|
+
|
41
|
+
#include <SketchUpAPI/common.h>
|
42
|
+
#include <SketchUpAPI/color.h>
|
43
|
+
#include <SketchUpAPI/extension_license.h>
|
44
|
+
#include <SketchUpAPI/geometry/bounding_box.h>
|
45
|
+
#include <SketchUpAPI/geometry/plane3d.h>
|
46
|
+
#include <SketchUpAPI/geometry/point2d.h>
|
47
|
+
#include <SketchUpAPI/geometry/point3d.h>
|
48
|
+
#include <SketchUpAPI/geometry/ray3d.h>
|
49
|
+
#include <SketchUpAPI/geometry/transformation.h>
|
50
|
+
#include <SketchUpAPI/geometry/transformation2d.h>
|
51
|
+
#include <SketchUpAPI/geometry/vector2d.h>
|
52
|
+
#include <SketchUpAPI/geometry/vector3d.h>
|
53
|
+
#include <SketchUpAPI/length_formatter.h>
|
54
|
+
#include <SketchUpAPI/sketchup_info.h>
|
55
|
+
#include <SketchUpAPI/unicodestring.h>
|
56
|
+
#include <SketchUpAPI/utils/math_helpers.h>
|
57
|
+
#include <SketchUpAPI/initialize.h>
|
58
|
+
#include <SketchUpAPI/application/application.h>
|
59
|
+
#include <SketchUpAPI/model/arccurve.h>
|
60
|
+
#include <SketchUpAPI/model/attribute_dictionary.h>
|
61
|
+
#include <SketchUpAPI/model/axes.h>
|
62
|
+
#include <SketchUpAPI/model/camera.h>
|
63
|
+
#include <SketchUpAPI/model/classifications.h>
|
64
|
+
#include <SketchUpAPI/model/classification_attribute.h>
|
65
|
+
#include <SketchUpAPI/model/classification_info.h>
|
66
|
+
#include <SketchUpAPI/model/component_definition.h>
|
67
|
+
#include <SketchUpAPI/model/component_instance.h>
|
68
|
+
#include <SketchUpAPI/model/curve.h>
|
69
|
+
#include <SketchUpAPI/model/defs.h>
|
70
|
+
#include <SketchUpAPI/model/dimension.h>
|
71
|
+
#include <SketchUpAPI/model/dimension_linear.h>
|
72
|
+
#include <SketchUpAPI/model/dimension_radial.h>
|
73
|
+
#include <SketchUpAPI/model/dimension_style.h>
|
74
|
+
#include <SketchUpAPI/model/drawing_element.h>
|
75
|
+
#include <SketchUpAPI/model/dynamic_component_info.h>
|
76
|
+
#include <SketchUpAPI/model/dynamic_component_attribute.h>
|
77
|
+
#include <SketchUpAPI/model/edge.h>
|
78
|
+
#include <SketchUpAPI/model/edge_use.h>
|
79
|
+
#include <SketchUpAPI/model/entities.h>
|
80
|
+
#include <SketchUpAPI/model/entity.h>
|
81
|
+
#include <SketchUpAPI/model/entity_list.h>
|
82
|
+
#include <SketchUpAPI/model/entity_list_iterator.h>
|
83
|
+
#include <SketchUpAPI/model/face.h>
|
84
|
+
#include <SketchUpAPI/model/font.h>
|
85
|
+
#include <SketchUpAPI/model/geometry_input.h>
|
86
|
+
#include <SketchUpAPI/model/group.h>
|
87
|
+
#include <SketchUpAPI/model/guide_line.h>
|
88
|
+
#include <SketchUpAPI/model/guide_point.h>
|
89
|
+
#include <SketchUpAPI/model/image.h>
|
90
|
+
#include <SketchUpAPI/model/image_rep.h>
|
91
|
+
#include <SketchUpAPI/model/instancepath.h>
|
92
|
+
#include <SketchUpAPI/model/layer.h>
|
93
|
+
#include <SketchUpAPI/model/layer_folder.h>
|
94
|
+
#include <SketchUpAPI/model/line_style.h>
|
95
|
+
#include <SketchUpAPI/model/line_styles.h>
|
96
|
+
#include <SketchUpAPI/model/location.h>
|
97
|
+
#include <SketchUpAPI/model/loop.h>
|
98
|
+
#include <SketchUpAPI/model/material.h>
|
99
|
+
#include <SketchUpAPI/model/mesh_helper.h>
|
100
|
+
#include <SketchUpAPI/model/model.h>
|
101
|
+
#include <SketchUpAPI/model/model_version.h>
|
102
|
+
#include <SketchUpAPI/model/opening.h>
|
103
|
+
#include <SketchUpAPI/model/options_manager.h>
|
104
|
+
#include <SketchUpAPI/model/options_provider.h>
|
105
|
+
#include <SketchUpAPI/model/polyline3d.h>
|
106
|
+
#include <SketchUpAPI/model/rendering_options.h>
|
107
|
+
#include <SketchUpAPI/model/scene.h>
|
108
|
+
#include <SketchUpAPI/model/schema.h>
|
109
|
+
#include <SketchUpAPI/model/schema_type.h>
|
110
|
+
#include <SketchUpAPI/model/section_plane.h>
|
111
|
+
#include <SketchUpAPI/model/selection.h>
|
112
|
+
#include <SketchUpAPI/model/skp.h>
|
113
|
+
#include <SketchUpAPI/model/shadow_info.h>
|
114
|
+
#include <SketchUpAPI/model/style.h>
|
115
|
+
#include <SketchUpAPI/model/styles.h>
|
116
|
+
#include <SketchUpAPI/model/text.h>
|
117
|
+
#include <SketchUpAPI/model/texture.h>
|
118
|
+
#include <SketchUpAPI/model/texture_writer.h>
|
119
|
+
#include <SketchUpAPI/model/typed_value.h>
|
120
|
+
#include <SketchUpAPI/model/uv_helper.h>
|
121
|
+
#include <SketchUpAPI/model/vertex.h>
|
122
|
+
#endif // SKETCHUP_SKETCHUP_H_
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// Copyright 2015 Trimble Inc., All rights reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for obtaining information about the executing SketchUp
|
6
|
+
* application.
|
7
|
+
* @note This is only relevant for the Live API.
|
8
|
+
*/
|
9
|
+
#ifndef SKETCHUP_SKETCHUP_INFO_H_
|
10
|
+
#define SKETCHUP_SKETCHUP_INFO_H_
|
11
|
+
|
12
|
+
#include <SketchUpAPI/common.h>
|
13
|
+
|
14
|
+
#pragma pack(push, 8)
|
15
|
+
#ifdef __cplusplus
|
16
|
+
extern "C" {
|
17
|
+
#endif
|
18
|
+
|
19
|
+
/**
|
20
|
+
@enum SUEdition
|
21
|
+
@brief This is the edition of SketchUp currently running.
|
22
|
+
@since SketchUp 2016, API 4.0
|
23
|
+
*/
|
24
|
+
enum SUEdition {
|
25
|
+
SUEdition_Unknown,
|
26
|
+
SUEdition_Make, ///< SketchUp Make
|
27
|
+
SUEdition_Pro ///< SketchUp Pro
|
28
|
+
};
|
29
|
+
|
30
|
+
/**
|
31
|
+
@brief Returns the version string for the current SketchUp version. This is
|
32
|
+
exported only by the SketchUp executable. It is not part of the
|
33
|
+
standalone SDK.
|
34
|
+
@since SketchUp 2016, API 4.0
|
35
|
+
@param[in] length Length of the string buffer passed in including null
|
36
|
+
terminator.
|
37
|
+
@param[out] version The UTF-8 encoded version string. This must be large enough
|
38
|
+
to hold the version string including null terminator.
|
39
|
+
@return
|
40
|
+
- \ref SU_ERROR_NONE on success
|
41
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if version is NULL
|
42
|
+
- \ref SU_ERROR_INSUFFICIENT_SIZE if length is too small
|
43
|
+
*/
|
44
|
+
SU_RESULT SUGetVersionStringUtf8(size_t length, char* version);
|
45
|
+
|
46
|
+
/**
|
47
|
+
@brief Returns the SketchUp edition (Pro or Make). This is only exported by
|
48
|
+
the SketchUp executable. It is not part of the standalone SDK. Note:
|
49
|
+
Starting with version 2018, SketchUp Make is no longer available. So this
|
50
|
+
function will always return \ref SUEdition_Pro.
|
51
|
+
@since SketchUp 2016, API 4.0
|
52
|
+
@param[out] edition The edition of Sketchup
|
53
|
+
@see SUEdition
|
54
|
+
@return
|
55
|
+
- \ref SU_ERROR_NONE on success
|
56
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if edition is NULL
|
57
|
+
*/
|
58
|
+
SU_RESULT SUGetEdition(enum SUEdition* edition);
|
59
|
+
|
60
|
+
#ifdef __cplusplus
|
61
|
+
} // extern "C" {
|
62
|
+
#endif
|
63
|
+
#pragma pack(pop)
|
64
|
+
|
65
|
+
#endif // SKETCHUP_SKETCHUP_INFO_H_
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Copyright 2015 Trimble Inc., All rights reserved.
|
2
|
+
// This file is intended for public distribution.
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @file
|
6
|
+
* @brief Deprecated, don't use.
|
7
|
+
* @deprecated This file was left here for compatibility.
|
8
|
+
* Avoid using it in future projects if possible.
|
9
|
+
*/
|
10
|
+
|
11
|
+
// NOTE: This file is provided as a shim header to include common.h, which now
|
12
|
+
// contains the contents of the original slapi.h. This rename is due to the
|
13
|
+
// addition of the Layout API for consistency. This header is deprecated and
|
14
|
+
// will be removed in the future.
|
15
|
+
|
16
|
+
#include <SketchUpAPI/common.h>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Copyright 2013 Trimble Inc., All rights reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Deprecated, don't use.
|
6
|
+
* @deprecated This file was left here for compatibility.
|
7
|
+
* Avoid using it in future projects if possible.
|
8
|
+
*/
|
9
|
+
#ifndef SKETCHUP_TRANSFORMATION_H_
|
10
|
+
#define SKETCHUP_TRANSFORMATION_H_
|
11
|
+
|
12
|
+
// This file was left here for compatibility. Avoid using it in future projects
|
13
|
+
// if possible.
|
14
|
+
#include <SketchUpAPI/geometry.h>
|
15
|
+
|
16
|
+
#endif // SKETCHUP_TRANSFORMATION_H_
|
@@ -0,0 +1,239 @@
|
|
1
|
+
// Copyright 2013 Trimble Inc., All rights reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUStringRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_UNICODESTRING_H_
|
8
|
+
#define SKETCHUP_UNICODESTRING_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/defs.h>
|
11
|
+
#include <stddef.h>
|
12
|
+
|
13
|
+
#pragma pack(push, 8)
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUStringRef
|
20
|
+
@brief Stores a Unicode string for use as output string parameters in the API.
|
21
|
+
*/
|
22
|
+
|
23
|
+
/**
|
24
|
+
@brief Creates an empty string.
|
25
|
+
|
26
|
+
Constructs a string and initializes it to "", an empty string.
|
27
|
+
You must use SUStringRelease() on this string object to free its memory.
|
28
|
+
@param[out] out_string_ref The string object to be created.
|
29
|
+
@related SUStringRef
|
30
|
+
@return
|
31
|
+
- \ref SU_ERROR_NONE on success
|
32
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p out_string_ref is `NULL`
|
33
|
+
- \ref SU_ERROR_OVERWRITE_VALID if *\p out_string_ref does not refer to an invalid
|
34
|
+
object
|
35
|
+
*/
|
36
|
+
SU_RESULT SUStringCreate(SUStringRef* out_string_ref);
|
37
|
+
|
38
|
+
/**
|
39
|
+
@brief Creates a string from a UTF-8 string.
|
40
|
+
|
41
|
+
Constructs a string and initializes it to a copy of the provided string,
|
42
|
+
which is provided by a `'\0'` (`NULL`) terminated array of 8-bit characters.
|
43
|
+
This string is interpreted as UTF-8.
|
44
|
+
You must use SUStringRelease() on this string object to free its memory.
|
45
|
+
@param[out] out_string_ref The string object to be created
|
46
|
+
@param[in] char_array A NULL-terminated UTF-8 (or ASCII) string that
|
47
|
+
initializes the string.
|
48
|
+
@related SUStringRef
|
49
|
+
@return
|
50
|
+
- \ref SU_ERROR_NONE on success
|
51
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p char_array is `NULL`
|
52
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p out_string_ref is `NULL`
|
53
|
+
- \ref SU_ERROR_OVERWRITE_VALID if *\p out_string_ref does not refer to an invalid
|
54
|
+
object
|
55
|
+
*/
|
56
|
+
SU_RESULT SUStringCreateFromUTF8(SUStringRef* out_string_ref, const char* char_array);
|
57
|
+
|
58
|
+
/**
|
59
|
+
@brief Creates a string from a UTF-16 string.
|
60
|
+
|
61
|
+
Constructs a string and initializes it to a copy of the provided string,
|
62
|
+
which is provided by a 0 (`NULL`) terminated array of 16-bit characters.
|
63
|
+
This string is interpreted as UTF-16.
|
64
|
+
You must use SUStringRelease() on this string object to free its memory.
|
65
|
+
@param[out] out_string_ref The string object to be created
|
66
|
+
@param[in] char_array A NULL-terminated UTF-16 string that initializes the
|
67
|
+
string
|
68
|
+
@related SUStringRef
|
69
|
+
@return
|
70
|
+
- \ref SU_ERROR_NONE on Success
|
71
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p char_array is `NULL`
|
72
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p out_string_ref is `NULL`
|
73
|
+
- \ref SU_ERROR_OVERWRITE_VALID if *\p out_string_ref does not refer to an invalid
|
74
|
+
object
|
75
|
+
*/
|
76
|
+
SU_RESULT SUStringCreateFromUTF16(SUStringRef* out_string_ref, const unichar* char_array);
|
77
|
+
|
78
|
+
/**
|
79
|
+
@brief Deletes a string object.
|
80
|
+
|
81
|
+
You must use SUStringRelease() when a SUStringRef object is no longer in use.
|
82
|
+
*string_ref is deleted and the reference is made invalid. (Calling
|
83
|
+
SUIsInvalid(*string_ref) would evaluate true.)
|
84
|
+
@param[in,out] string_ref The string object to be deleted.
|
85
|
+
@related SUStringRef
|
86
|
+
@return
|
87
|
+
- \ref SU_ERROR_NONE on success
|
88
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p string_ref is `NULL`
|
89
|
+
- \ref SU_ERROR_INVALID_INPUT if *\p string_ref does not refer to a valid object
|
90
|
+
*/
|
91
|
+
SU_RESULT SUStringRelease(SUStringRef* string_ref);
|
92
|
+
|
93
|
+
/**
|
94
|
+
@brief Get the number of 8-bit characters required to store this string.
|
95
|
+
|
96
|
+
Gives you the length of the string when encoded in UTF-8. This may be
|
97
|
+
larger than the number of glyphs when multiple bytes are required.
|
98
|
+
This value does not include the space for a '\0' (`NULL`) terminator value
|
99
|
+
at the end of the string. It is a good idea when using this function with
|
100
|
+
SUStringGetUTF8() to add one to \p out_length.
|
101
|
+
@param[in] string_ref The string object.
|
102
|
+
@param[out] out_length The length returned.
|
103
|
+
@related SUStringRef
|
104
|
+
@return
|
105
|
+
- \ref SU_ERROR_NONE on success
|
106
|
+
- \ref SU_ERROR_INVALID_INPUT if \p string_ref does not refer to a valid object
|
107
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p out_length is `NULL`
|
108
|
+
*/
|
109
|
+
SU_RESULT SUStringGetUTF8Length(SUStringRef string_ref, size_t* out_length);
|
110
|
+
|
111
|
+
/**
|
112
|
+
@brief Get the number of 16-bit characters required to store this string.
|
113
|
+
|
114
|
+
Gives you the length of the string when encoded in UTF-16. This may be
|
115
|
+
larger than the number of glyphs when multiple values are required.
|
116
|
+
This value does not include the space for a 0 (`NULL`) terminator value
|
117
|
+
at the end of the string. It is a good idea when using this function with
|
118
|
+
SUStringGetUTF16() to add one to \p out_length.
|
119
|
+
|
120
|
+
@param[in] string_ref The string object.
|
121
|
+
@param[out] out_length The length returned.
|
122
|
+
@related SUStringRef
|
123
|
+
@return
|
124
|
+
- \ref SU_ERROR_NONE on success
|
125
|
+
- \ref SU_ERROR_INVALID_INPUT if \p string_ref does not refer to a valid object
|
126
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p out_length is `NULL`
|
127
|
+
*/
|
128
|
+
SU_RESULT SUStringGetUTF16Length(SUStringRef string_ref, size_t* out_length);
|
129
|
+
|
130
|
+
/**
|
131
|
+
@brief Sets the value of a string from a NULL-terminated UTF-8 character array.
|
132
|
+
|
133
|
+
@param[in] string_ref The string object.
|
134
|
+
@param[in] char_array The character array to be set.
|
135
|
+
@related SUStringRef
|
136
|
+
@return
|
137
|
+
- \ref SU_ERROR_NONE on success
|
138
|
+
- \ref SU_ERROR_INVALID_INPUT if \p string_ref does not refer to a valid object
|
139
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p char_array is `NULL`
|
140
|
+
*/
|
141
|
+
SU_RESULT SUStringSetUTF8(SUStringRef string_ref, const char* char_array);
|
142
|
+
|
143
|
+
/**
|
144
|
+
@brief Sets the value of a string from a NULL-terminated UTF-16 character array.
|
145
|
+
|
146
|
+
@param[in] string_ref The string object.
|
147
|
+
@param[in] char_array The character array to be set.
|
148
|
+
@related SUStringRef
|
149
|
+
@return
|
150
|
+
- \ref SU_ERROR_NONE on success
|
151
|
+
- \ref SU_ERROR_INVALID_INPUT if \p string_ref does not refer to a valid object
|
152
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p char_array is `NULL`
|
153
|
+
*/
|
154
|
+
SU_RESULT SUStringSetUTF16(SUStringRef string_ref, const unichar* char_array);
|
155
|
+
|
156
|
+
/**
|
157
|
+
@brief Writes the contents of the string into the provided character array.
|
158
|
+
|
159
|
+
This function does not allocate memory. You must provide an array of sufficient
|
160
|
+
length to get the entire string. The output string will be `NULL` terminated.
|
161
|
+
@param[in] string_ref The string object.
|
162
|
+
@param[in] char_array_length The length of the given character array.
|
163
|
+
@param[out] out_char_array The character array to be filled in.
|
164
|
+
@param[out] out_number_of_chars_copied The number of characters returned.
|
165
|
+
@related SUStringRef
|
166
|
+
@return
|
167
|
+
- \ref SU_ERROR_NONE on success
|
168
|
+
- \ref SU_ERROR_INVALID_INPUT if \p string_ref does not refer to a valid string
|
169
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT : \p out_char_array or
|
170
|
+
\p out_number_of_chars_copied is `NULL`
|
171
|
+
*/
|
172
|
+
SU_RESULT SUStringGetUTF8(
|
173
|
+
SUStringRef string_ref, size_t char_array_length, char* out_char_array,
|
174
|
+
size_t* out_number_of_chars_copied);
|
175
|
+
|
176
|
+
/**
|
177
|
+
@brief Writes the contents of the string into the provided wide character array.
|
178
|
+
|
179
|
+
This function does not allocate memory. You must provide an array of sufficient
|
180
|
+
length to get the entire string. The output string will be NULL terminated.
|
181
|
+
|
182
|
+
@param[in] string_ref The string object.
|
183
|
+
@param[in] char_array_length The length of the given character array.
|
184
|
+
@param[out] out_char_array The character array to be filled in.
|
185
|
+
@param[out] out_number_of_chars_copied The number of characters returned.
|
186
|
+
@related SUStringRef
|
187
|
+
@return
|
188
|
+
- \ref SU_ERROR_NONE on success
|
189
|
+
- \ref SU_ERROR_INVALID_INPUT if string_ref does not refer to a valid string
|
190
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT : out_char_array or
|
191
|
+
out_number_of_chars_copied is NULL
|
192
|
+
*/
|
193
|
+
SU_RESULT SUStringGetUTF16(
|
194
|
+
SUStringRef string_ref, size_t char_array_length, unichar* out_char_array,
|
195
|
+
size_t* out_number_of_chars_copied);
|
196
|
+
|
197
|
+
/**
|
198
|
+
@brief Trim leading white spaces from the string.
|
199
|
+
@since SketchUp 2017, API 5.0
|
200
|
+
@param[in] string_ref The string object.
|
201
|
+
@related SUStringRef
|
202
|
+
@return
|
203
|
+
- \ref SU_ERROR_NONE on success
|
204
|
+
- \ref SU_ERROR_INVALID_INPUT if string_ref does not refer to a valid string
|
205
|
+
*/
|
206
|
+
SU_RESULT SUStringTrimLeft(SUStringRef string_ref);
|
207
|
+
|
208
|
+
/**
|
209
|
+
@brief Trim tailing white spaces from the string.
|
210
|
+
@since SketchUp 2017, API 5.0
|
211
|
+
@param[in] string_ref The string object.
|
212
|
+
@related SUStringRef
|
213
|
+
@return
|
214
|
+
- \ref SU_ERROR_NONE on success
|
215
|
+
- \ref SU_ERROR_INVALID_INPUT if string_ref does not refer to a valid string
|
216
|
+
*/
|
217
|
+
SU_RESULT SUStringTrimRight(SUStringRef string_ref);
|
218
|
+
|
219
|
+
/**
|
220
|
+
@brief Compares two strings.
|
221
|
+
@since SketchUp 2017, API 5.0
|
222
|
+
@param[in] a The first string object.
|
223
|
+
@param[in] b The second string object.
|
224
|
+
@param[out] result The comparison result. 0 for equal, -1 for less than, 1 for
|
225
|
+
greater than.
|
226
|
+
@related SUStringRef
|
227
|
+
@return
|
228
|
+
- \ref SU_ERROR_NONE on success
|
229
|
+
- \ref SU_ERROR_INVALID_INPUT if string_a or string_b do not refer to a valid string
|
230
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if result is NULL
|
231
|
+
*/
|
232
|
+
SU_RESULT SUStringCompare(SUStringRef a, SUStringRef b, int* result);
|
233
|
+
|
234
|
+
#ifdef __cplusplus
|
235
|
+
} // extern "C" {
|
236
|
+
#endif
|
237
|
+
#pragma pack(pop)
|
238
|
+
|
239
|
+
#endif // SKETCHUP_UNICODESTRING_H_
|
@@ -0,0 +1,124 @@
|
|
1
|
+
// Copyright 2015 Trimble Inc. All rights reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for comparing values with tolerances.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_UTILS_MATH_HELPERS_H_
|
8
|
+
#define SKETCHUP_UTILS_MATH_HELPERS_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
|
12
|
+
#ifdef __cplusplus
|
13
|
+
extern "C" {
|
14
|
+
#endif
|
15
|
+
|
16
|
+
/**
|
17
|
+
@brief Converts a value from degrees to radians.
|
18
|
+
@since SketchUp 2018, API 6.0
|
19
|
+
@param[in] value A value in degrees.
|
20
|
+
@return The value converted to radians.
|
21
|
+
*/
|
22
|
+
SU_EXPORT double SUDegreesToRadians(double value);
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Converts a value from radians to degrees.
|
26
|
+
@since SketchUp 2018, API 6.0
|
27
|
+
@param[in] value A value in radians.
|
28
|
+
@return The value converted to degrees.
|
29
|
+
*/
|
30
|
+
SU_EXPORT double SURadiansToDegrees(double value);
|
31
|
+
|
32
|
+
/**
|
33
|
+
@brief Compares two values for equality with a tolerance.
|
34
|
+
@since SketchUp 2018, API 6.0
|
35
|
+
@param[in] val1 The first value.
|
36
|
+
@param[in] val2 The second value.
|
37
|
+
@return True if the values are equal.
|
38
|
+
*/
|
39
|
+
SU_EXPORT bool SUEquals(double val1, double val2);
|
40
|
+
|
41
|
+
/**
|
42
|
+
@brief Compares two values with a tolerance to see if val1 is less than val2.
|
43
|
+
@since SketchUp 2018, API 6.0
|
44
|
+
@param[in] val1 The first value.
|
45
|
+
@param[in] val2 The second value.
|
46
|
+
@return True if val1 is less than val2.
|
47
|
+
*/
|
48
|
+
SU_EXPORT bool SULessThan(double val1, double val2);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Compares two values with a tolerance to see if val1 is less than or equal
|
52
|
+
to val2.
|
53
|
+
@since SketchUp 2018, API 6.0
|
54
|
+
@param[in] val1 The first value.
|
55
|
+
@param[in] val2 The second value.
|
56
|
+
@return True if val1 is less than or equal to val2.
|
57
|
+
*/
|
58
|
+
SU_EXPORT bool SULessThanOrEqual(double val1, double val2);
|
59
|
+
|
60
|
+
/**
|
61
|
+
@brief Compares two values with a tolerance to see if val1 is greater than val2.
|
62
|
+
@since SketchUp 2018, API 6.0
|
63
|
+
@param[in] val1 The first value.
|
64
|
+
@param[in] val2 The second value.
|
65
|
+
@return True if val1 is greater than val2.
|
66
|
+
*/
|
67
|
+
SU_EXPORT bool SUGreaterThan(double val1, double val2);
|
68
|
+
|
69
|
+
/**
|
70
|
+
@brief Compares two values with a tolerance to see if val1 is greater than or
|
71
|
+
equal to val2.
|
72
|
+
@since SketchUp 2018, API 6.0
|
73
|
+
@param[in] val1 The first value.
|
74
|
+
@param[in] val2 The second value.
|
75
|
+
@return True if val1 is greater than or equal to val2.
|
76
|
+
*/
|
77
|
+
SU_EXPORT bool SUGreaterThanOrEqual(double val1, double val2);
|
78
|
+
|
79
|
+
// SketchUp 2017 added these functions, but lacked the SU* prefix. As of
|
80
|
+
// SketchUp 2018 they were renamed. This compatibility macro is left around
|
81
|
+
// until SketchUp 2019. Enable to temporarily re-enable the old function names.
|
82
|
+
#ifdef SU_COMPAT_MATH_UTILS
|
83
|
+
|
84
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
85
|
+
static double DegreesToRadians(double value) {
|
86
|
+
return SUDegreesToRadians(value);
|
87
|
+
}
|
88
|
+
|
89
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
90
|
+
static bool Equals(double val1, double val2) {
|
91
|
+
return SUEquals(val1, val2);
|
92
|
+
}
|
93
|
+
|
94
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
95
|
+
static bool GreaterThan(double val1, double val2) {
|
96
|
+
return SUGreaterThan(val1, val2);
|
97
|
+
}
|
98
|
+
|
99
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
100
|
+
static bool GreaterThanOrEqual(double val1, double val2) {
|
101
|
+
return SUGreaterThanOrEqual(val1, val2);
|
102
|
+
}
|
103
|
+
|
104
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
105
|
+
static bool LessThan(double val1, double val2) {
|
106
|
+
return SULessThan(val1, val2);
|
107
|
+
}
|
108
|
+
|
109
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
110
|
+
static bool LessThanOrEqual(double val1, double val2) {
|
111
|
+
return SULessThanOrEqual(val1, val2);
|
112
|
+
}
|
113
|
+
|
114
|
+
SU_DEPRECATED_FUNCTION("SketchUp API 6.0")
|
115
|
+
static double RadiansToDegrees(double value) {
|
116
|
+
return SURadiansToDegrees(value);
|
117
|
+
}
|
118
|
+
#endif
|
119
|
+
|
120
|
+
#ifdef __cplusplus
|
121
|
+
} // end extern "C"
|
122
|
+
#endif // __cplusplus
|
123
|
+
|
124
|
+
#endif // SKETCHUP_UTILS_MATH_HELPERS_H_
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>BuildMachineOSBuild</key>
|
6
|
+
<string>23A344</string>
|
7
|
+
<key>CFBundleDevelopmentRegion</key>
|
8
|
+
<string>English</string>
|
9
|
+
<key>CFBundleDisplayName</key>
|
10
|
+
<string>SketchUpAPI</string>
|
11
|
+
<key>CFBundleExecutable</key>
|
12
|
+
<string>SketchUpAPI</string>
|
13
|
+
<key>CFBundleIdentifier</key>
|
14
|
+
<string>com.sketchup.slapi</string>
|
15
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
16
|
+
<string>6.0</string>
|
17
|
+
<key>CFBundleName</key>
|
18
|
+
<string>SketchUpAPI</string>
|
19
|
+
<key>CFBundlePackageType</key>
|
20
|
+
<string>FMWK</string>
|
21
|
+
<key>CFBundleShortVersionString</key>
|
22
|
+
<string>0.0.1</string>
|
23
|
+
<key>CFBundleSignature</key>
|
24
|
+
<string>????</string>
|
25
|
+
<key>CFBundleSupportedPlatforms</key>
|
26
|
+
<array>
|
27
|
+
<string>MacOSX</string>
|
28
|
+
</array>
|
29
|
+
<key>CFBundleVersion</key>
|
30
|
+
<string>0.0.1d1</string>
|
31
|
+
<key>DTCompiler</key>
|
32
|
+
<string>com.apple.compilers.llvm.clang.1_0</string>
|
33
|
+
<key>DTPlatformBuild</key>
|
34
|
+
<string></string>
|
35
|
+
<key>DTPlatformName</key>
|
36
|
+
<string>macosx</string>
|
37
|
+
<key>DTPlatformVersion</key>
|
38
|
+
<string>14.4</string>
|
39
|
+
<key>DTSDKBuild</key>
|
40
|
+
<string>23E208</string>
|
41
|
+
<key>DTSDKName</key>
|
42
|
+
<string>macosx14.4</string>
|
43
|
+
<key>DTXcode</key>
|
44
|
+
<string>1530</string>
|
45
|
+
<key>DTXcodeBuild</key>
|
46
|
+
<string>15E204a</string>
|
47
|
+
<key>LSMinimumSystemVersion</key>
|
48
|
+
<string>11.7</string>
|
49
|
+
</dict>
|
50
|
+
</plist>
|
Binary file
|