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,56 @@
|
|
1
|
+
// Copyright 2014-2021 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUSchemaRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_SCHEMA_H_
|
8
|
+
#define SKETCHUP_MODEL_SCHEMA_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/model/defs.h>
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
/**
|
18
|
+
@struct SUSchemaRef
|
19
|
+
@brief Used to manage a Schema object
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Gets a schema type from a schema.
|
24
|
+
@param[in] schema_ref The schema object.
|
25
|
+
@param[in] schema_type_name The name of the schema type to get.
|
26
|
+
@param[out] schema_type_ref The schema type retrieved.
|
27
|
+
@related SUSchemaRef
|
28
|
+
@return
|
29
|
+
- \ref SU_ERROR_NONE on success
|
30
|
+
- \ref SU_ERROR_INVALID_INPUT if schema_ref is not a valid object
|
31
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if schema_type_name is NULL
|
32
|
+
- \ref SU_ERROR_INVALID_INPUT if schema_type_name is not a type from this
|
33
|
+
schema
|
34
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if schema_type_ref is not a valid object
|
35
|
+
*/
|
36
|
+
SU_RESULT SUSchemaGetSchemaType(
|
37
|
+
SUSchemaRef schema_ref, const char* schema_type_name, SUSchemaTypeRef* schema_type_ref);
|
38
|
+
|
39
|
+
/**
|
40
|
+
@brief Gets the name from a schema object.
|
41
|
+
@since SketchUp 2022.0, API 10.0
|
42
|
+
@param[in] schema_ref The schema object.
|
43
|
+
@param[out] schema_name The name of the schema.
|
44
|
+
@related SUSchemaRef
|
45
|
+
@return
|
46
|
+
- \ref SU_ERROR_NONE on success
|
47
|
+
- \ref SU_ERROR_INVALID_INPUT if \p schema_ref is not a valid object
|
48
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p schema_name is NULL
|
49
|
+
*/
|
50
|
+
SU_RESULT SUSchemaGetSchemaName(SUSchemaRef schema_ref, SUStringRef* schema_name);
|
51
|
+
|
52
|
+
#ifdef __cplusplus
|
53
|
+
}
|
54
|
+
#endif
|
55
|
+
|
56
|
+
#endif // SKETCHUP_MODEL_SCHEMA_H_
|
@@ -0,0 +1,26 @@
|
|
1
|
+
// Copyright 2014 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUSchemaTypeRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_SCHEMA_TYPE_H_
|
8
|
+
#define SKETCHUP_MODEL_SCHEMA_TYPE_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/model/defs.h>
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
/**
|
18
|
+
@struct SUSchemaTypeRef
|
19
|
+
@brief Used to manage a SchemaType object
|
20
|
+
*/
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif // SKETCHUP_MODEL_SCHEMA_TYPE_H_
|
@@ -0,0 +1,212 @@
|
|
1
|
+
// Copyright 2015 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUSectionPlaneRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_SECTION_PLANE_H_
|
8
|
+
#define SKETCHUP_MODEL_SECTION_PLANE_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/geometry.h>
|
12
|
+
#include <SketchUpAPI/unicodestring.h>
|
13
|
+
#include <SketchUpAPI/model/defs.h>
|
14
|
+
|
15
|
+
#ifdef __cplusplus
|
16
|
+
extern "C" {
|
17
|
+
#endif
|
18
|
+
|
19
|
+
/**
|
20
|
+
@struct SUSectionPlaneRef
|
21
|
+
@extends SUDrawingElementRef
|
22
|
+
@brief A sectionPlane entity reference.
|
23
|
+
@since SketchUp 2016, API 4.0
|
24
|
+
*/
|
25
|
+
|
26
|
+
/**
|
27
|
+
@brief Converts from an \ref SUSectionPlaneRef to an \ref SUEntityRef. This is
|
28
|
+
essentially an upcast operation.
|
29
|
+
@since SketchUp 2016, API 4.0
|
30
|
+
@param[in] sectionPlane The sectionPlane object.
|
31
|
+
@related SUSectionPlaneRef
|
32
|
+
@return
|
33
|
+
- The converted \ref SUEntityRef if sectionPlane is a valid object
|
34
|
+
- If not, the returned reference will be invalid
|
35
|
+
*/
|
36
|
+
SU_EXPORT SUEntityRef SUSectionPlaneToEntity(SUSectionPlaneRef sectionPlane);
|
37
|
+
|
38
|
+
/**
|
39
|
+
@brief Converts from an \ref SUEntityRef to an \ref SUSectionPlaneRef.
|
40
|
+
This is essentially a downcast operation so the given \ref SUEntityRef
|
41
|
+
must be convertible to an \ref SUSectionPlaneRef.
|
42
|
+
@since SketchUp 2016, API 4.0
|
43
|
+
@param[in] entity The entity object.
|
44
|
+
@related SUSectionPlaneRef
|
45
|
+
@return
|
46
|
+
- The converted \ref SUSectionPlaneRef if the downcast operation succeeds
|
47
|
+
- If the downcast operation fails, the returned reference will be invalid
|
48
|
+
*/
|
49
|
+
SU_EXPORT SUSectionPlaneRef SUSectionPlaneFromEntity(SUEntityRef entity);
|
50
|
+
|
51
|
+
/**
|
52
|
+
@brief Converts from an \ref SUSectionPlaneRef to an \ref SUDrawingElementRef.
|
53
|
+
This is essentially an upcast operation.
|
54
|
+
@since SketchUp 2016, API 4.0
|
55
|
+
@param[in] sectionPlane The given sectionPlane reference.
|
56
|
+
@related SUSectionPlaneRef
|
57
|
+
@return
|
58
|
+
- The converted \ref SUEntityRef if sectionPlane is a valid sectionPlane
|
59
|
+
- If not, the returned reference will be invalid
|
60
|
+
*/
|
61
|
+
SU_EXPORT SUDrawingElementRef SUSectionPlaneToDrawingElement(SUSectionPlaneRef sectionPlane);
|
62
|
+
|
63
|
+
/**
|
64
|
+
@brief Converts from an \ref SUDrawingElementRef to an \ref SUSectionPlaneRef.
|
65
|
+
This is essentially a downcast operation so the given element must be
|
66
|
+
convertible to an \ref SUSectionPlaneRef.
|
67
|
+
@since SketchUp 2016, API 4.0
|
68
|
+
@param[in] drawing_elem The given element reference.
|
69
|
+
@related SUSectionPlaneRef
|
70
|
+
@return
|
71
|
+
- The converted \ref SUSectionPlaneRef if the downcast operation succeeds
|
72
|
+
- If not, the returned reference will be invalid.
|
73
|
+
*/
|
74
|
+
SU_EXPORT SUSectionPlaneRef SUSectionPlaneFromDrawingElement(SUDrawingElementRef drawing_elem);
|
75
|
+
|
76
|
+
/**
|
77
|
+
@brief Creates an sectionPlane object. The sectionPlane object must be
|
78
|
+
subsequently deallocated with \ref SUSectionPlaneRelease() unless it is
|
79
|
+
associated with a parent object. The plane is initialized as an xy
|
80
|
+
plane and can be changed with the \ref SUSectionPlaneSetPlane().
|
81
|
+
@since SketchUp 2016, API 4.0
|
82
|
+
@param[in] sectionPlane The sectionPlane object.
|
83
|
+
@related SUSectionPlaneRef
|
84
|
+
@return
|
85
|
+
- \ref SU_ERROR_NONE on success
|
86
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if sectionPlane is NULL
|
87
|
+
- \ref SU_ERROR_OVERWRITE_VALID if sectionPlane references a valid object
|
88
|
+
*/
|
89
|
+
SU_RESULT SUSectionPlaneCreate(SUSectionPlaneRef* sectionPlane);
|
90
|
+
|
91
|
+
/**
|
92
|
+
@brief Releases a sectionPlane object. The sectionPlane object must have been
|
93
|
+
created with \ref SUSectionPlaneCreate() and not subsequently associated
|
94
|
+
with a parent object (e.g. \ref SUEntitiesRef).
|
95
|
+
@since SketchUp 2016, API 4.0
|
96
|
+
@param[in] sectionPlane The sectionPlane object.
|
97
|
+
@related SUSectionPlaneRef
|
98
|
+
@return
|
99
|
+
- \ref SU_ERROR_NONE on success
|
100
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if sectionPlane is NULL
|
101
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane does not reference a valid object
|
102
|
+
*/
|
103
|
+
SU_RESULT SUSectionPlaneRelease(SUSectionPlaneRef* sectionPlane);
|
104
|
+
|
105
|
+
/**
|
106
|
+
@brief Sets the plane of the section plane.
|
107
|
+
@param[in] sectionPlane The sectionPlane object.
|
108
|
+
@param[in] plane The 3d plane to be set.
|
109
|
+
@related SUSectionPlaneRef
|
110
|
+
@return
|
111
|
+
- \ref SU_ERROR_NONE on success
|
112
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
113
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if plane is NULL
|
114
|
+
*/
|
115
|
+
SU_RESULT SUSectionPlaneSetPlane(SUSectionPlaneRef sectionPlane, const struct SUPlane3D* plane);
|
116
|
+
|
117
|
+
/**
|
118
|
+
@brief Retrieves the plane of the section plane.
|
119
|
+
@param[in] sectionPlane The sectionPlane object.
|
120
|
+
@param[out] plane The 3d plane retrieved.
|
121
|
+
@related SUSectionPlaneRef
|
122
|
+
@return
|
123
|
+
- \ref SU_ERROR_NONE on success
|
124
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
125
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if plane is NULL
|
126
|
+
*/
|
127
|
+
SU_RESULT SUSectionPlaneGetPlane(SUSectionPlaneRef sectionPlane, struct SUPlane3D* plane);
|
128
|
+
|
129
|
+
/**
|
130
|
+
@brief Retrieves a boolean indicating whether or not the section plane is
|
131
|
+
active.
|
132
|
+
@param[in] sectionPlane The sectionPlane object.
|
133
|
+
@param[out] is_active Returns true if the section plane is active.
|
134
|
+
@related SUSectionPlaneRef
|
135
|
+
@return
|
136
|
+
- \ref SU_ERROR_NONE on success
|
137
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
138
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_active is NULL
|
139
|
+
*/
|
140
|
+
SU_RESULT SUSectionPlaneIsActive(SUSectionPlaneRef sectionPlane, bool* is_active);
|
141
|
+
|
142
|
+
/**
|
143
|
+
@brief Retrieves the name of a section plane object.
|
144
|
+
@since SketchUp 2018, API 6.0
|
145
|
+
@param[in] sectionPlane The section plane object.
|
146
|
+
@param[out] name The name retrieved.
|
147
|
+
@related SUSectionPlaneRef
|
148
|
+
@return
|
149
|
+
- \ref SU_ERROR_NONE on success
|
150
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
151
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
|
152
|
+
- \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
|
153
|
+
SUStringRef object
|
154
|
+
*/
|
155
|
+
SU_RESULT SUSectionPlaneGetName(SUSectionPlaneRef sectionPlane, SUStringRef* name);
|
156
|
+
|
157
|
+
/**
|
158
|
+
@brief Sets the name of a section plane object.
|
159
|
+
@since SketchUp 2018, API 6.0
|
160
|
+
@param[in] sectionPlane The section plane object.
|
161
|
+
@param[in] name The string to set as the section plane name.
|
162
|
+
Assumed to be UTF-8 encoded. An example of a name would
|
163
|
+
be "South West Section" for the section on the south
|
164
|
+
west side of a building.
|
165
|
+
@related SUSectionPlaneRef
|
166
|
+
@return
|
167
|
+
- \ref SU_ERROR_NONE on success
|
168
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
169
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
170
|
+
*/
|
171
|
+
SU_RESULT SUSectionPlaneSetName(SUSectionPlaneRef sectionPlane, const char* name);
|
172
|
+
|
173
|
+
/**
|
174
|
+
@brief Retrieves the symbol of a section plane object. The symbol is used in
|
175
|
+
the Outliner and in the section display in the model. For example, you
|
176
|
+
might have several sections on the same area of a building all named
|
177
|
+
"South West Section" and use symbols to differenciate each section,
|
178
|
+
"01", "02", "03".
|
179
|
+
@since SketchUp 2018, API 6.0
|
180
|
+
@param[in] sectionPlane The section plane object.
|
181
|
+
@param[out] symbol The symbol retrieved.
|
182
|
+
@related SUSectionPlaneRef
|
183
|
+
@return
|
184
|
+
- \ref SU_ERROR_NONE on success
|
185
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
186
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if symbol is NULL
|
187
|
+
- \ref SU_ERROR_INVALID_OUTPUT if symbol does not point to a valid \ref
|
188
|
+
SUStringRef object
|
189
|
+
*/
|
190
|
+
SU_RESULT SUSectionPlaneGetSymbol(SUSectionPlaneRef sectionPlane, SUStringRef* symbol);
|
191
|
+
|
192
|
+
/**
|
193
|
+
@brief Sets the symbol of a section plane object.
|
194
|
+
@since SketchUp 2018, API 6.0
|
195
|
+
@param[in] sectionPlane The section plane object.
|
196
|
+
@param[in] symbol The string to set as the section plane symbol.
|
197
|
+
Assumed to be UTF-8 encoded. The maximum number of
|
198
|
+
characters is 3.
|
199
|
+
@related SUSectionPlaneRef
|
200
|
+
@return
|
201
|
+
- \ref SU_ERROR_NONE on success
|
202
|
+
- \ref SU_ERROR_INVALID_INPUT if sectionPlane is not a valid object
|
203
|
+
- \ref SU_ERROR_INVALID_INPUT if symbol is greater than three characters long
|
204
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if symbol is NULL
|
205
|
+
*/
|
206
|
+
SU_RESULT SUSectionPlaneSetSymbol(SUSectionPlaneRef sectionPlane, const char* symbol);
|
207
|
+
|
208
|
+
#ifdef __cplusplus
|
209
|
+
} // extern "C"
|
210
|
+
#endif
|
211
|
+
|
212
|
+
#endif // SKETCHUP_MODEL_SECTION_PLANE_H_
|
@@ -0,0 +1,156 @@
|
|
1
|
+
// Copyright 2020 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUSelectionRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_SELECTION_H_
|
8
|
+
#define SKETCHUP_MODEL_SELECTION_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/model/defs.h>
|
12
|
+
|
13
|
+
#pragma pack(push, 8)
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUSelectionRef
|
20
|
+
@brief References a the model selection. This is only available from within the
|
21
|
+
SketchUp application.
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Used with SUSelectionIsType() to query for what type the selection is.
|
26
|
+
@see SUSelectionIsType()
|
27
|
+
@since SketchUp 2020.2, API 8.2
|
28
|
+
*/
|
29
|
+
enum SUSelectionType {
|
30
|
+
SUSelectionType_Curve, ///< Query for the selection to contain a single
|
31
|
+
///< SUCurveRef or SUArcCurveRef.
|
32
|
+
SUSelectionType_Surface, ///< Query for the selection containing only faces
|
33
|
+
///< that belong to a single surface. SketchUp
|
34
|
+
///< considers set of faces connected with
|
35
|
+
///< soft+smooth edges to form a surface.
|
36
|
+
SUSelectionType_SingleObject ///< Query for a single SUDrawingElementRef being
|
37
|
+
///< selected or satifying the conditions of
|
38
|
+
///< SU_SELECTION_CURVE or SU_SELECTION_SURFACE.
|
39
|
+
};
|
40
|
+
|
41
|
+
/**
|
42
|
+
@brief Adds items to the selection set.
|
43
|
+
@since SketchUp 2020.2, API 8.2
|
44
|
+
@param[in] selection The selection object.
|
45
|
+
@param[in] num_elements The length of the array of drawing elements.
|
46
|
+
@param[in] elements The array of drawing elements objects to add.
|
47
|
+
@related SUSelectionRef
|
48
|
+
@return
|
49
|
+
- \ref SU_ERROR_NONE on success
|
50
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
51
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if elements is NULL
|
52
|
+
*/
|
53
|
+
SU_RESULT SUSelectionAdd(
|
54
|
+
SUSelectionRef selection, size_t num_elements, const SUDrawingElementRef elements[]);
|
55
|
+
|
56
|
+
/**
|
57
|
+
@brief Removes items from the selection set.
|
58
|
+
@since SketchUp 2020.2, API 8.2
|
59
|
+
@param[in] selection The selection object.
|
60
|
+
@param[in] num_elements The length of the array of drawing elements.
|
61
|
+
@param[in] elements The array of drawing elements objects to remove.
|
62
|
+
@related SUSelectionRef
|
63
|
+
@return
|
64
|
+
- \ref SU_ERROR_NONE on success
|
65
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
66
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if elements is NULL
|
67
|
+
*/
|
68
|
+
SU_RESULT SUSelectionRemove(
|
69
|
+
SUSelectionRef selection, size_t num_elements, const SUDrawingElementRef elements[]);
|
70
|
+
|
71
|
+
/**
|
72
|
+
@brief Toggle items in the selection set.
|
73
|
+
@since SketchUp 2020.2, API 8.2
|
74
|
+
@param[in] selection The selection object.
|
75
|
+
@param[in] num_elements The length of the array of drawing elements.
|
76
|
+
@param[in] elements The array of drawing elements objects to toggle.
|
77
|
+
@related SUSelectionRef
|
78
|
+
@return
|
79
|
+
- \ref SU_ERROR_NONE on success
|
80
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
81
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if elements is NULL
|
82
|
+
*/
|
83
|
+
SU_RESULT SUSelectionToggle(
|
84
|
+
SUSelectionRef selection, size_t num_elements, const SUDrawingElementRef elements[]);
|
85
|
+
|
86
|
+
/**
|
87
|
+
@brief Clears the selection set.
|
88
|
+
@since SketchUp 2020.2, API 8.2
|
89
|
+
@param[in] selection The selection object.
|
90
|
+
@related SUSelectionRef
|
91
|
+
@return
|
92
|
+
- \ref SU_ERROR_NONE on success
|
93
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
94
|
+
*/
|
95
|
+
SU_RESULT SUSelectionClear(SUSelectionRef selection);
|
96
|
+
|
97
|
+
/**
|
98
|
+
@brief Inverts the selection set.
|
99
|
+
@since SketchUp 2020.2, API 8.2
|
100
|
+
@param[in] selection The selection object.
|
101
|
+
@related SUSelectionRef
|
102
|
+
@return
|
103
|
+
- \ref SU_ERROR_NONE on success
|
104
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
105
|
+
*/
|
106
|
+
SU_RESULT SUSelectionInvert(SUSelectionRef selection);
|
107
|
+
|
108
|
+
/**
|
109
|
+
@brief Gets the number of items in the selection set.
|
110
|
+
@since SketchUp 2020.2, API 8.2
|
111
|
+
@param[in] selection The selection object.
|
112
|
+
@param[out] num_elements The number of items in the selection set.
|
113
|
+
@related SUSelectionRef
|
114
|
+
@return
|
115
|
+
- \ref SU_ERROR_NONE on success
|
116
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
117
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if num_elements is NULL
|
118
|
+
*/
|
119
|
+
SU_RESULT SUSelectionGetNumElements(SUSelectionRef selection, size_t* num_elements);
|
120
|
+
|
121
|
+
/**
|
122
|
+
@brief Fills the list with items from the selection set.
|
123
|
+
@since SketchUp 2020.2, API 8.2
|
124
|
+
@param[in] selection The selection object.
|
125
|
+
@param[out] entity_list The list object to be filled.
|
126
|
+
@related SUSelectionRef
|
127
|
+
@return
|
128
|
+
- \ref SU_ERROR_NONE on success
|
129
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
130
|
+
- \ref SU_ERROR_INVALID_OUTPUT if entity_list not a valid object
|
131
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entity_list is NULL
|
132
|
+
*/
|
133
|
+
SU_RESULT SUSelectionGetEntityList(SUSelectionRef selection, SUEntityListRef* entity_list);
|
134
|
+
|
135
|
+
/**
|
136
|
+
@brief Used to determine the type of selection.
|
137
|
+
@since SketchUp 2020.2, API 8.2
|
138
|
+
@param[in] selection The selection object.
|
139
|
+
@param[in] type The type of selection to query for.
|
140
|
+
@param[out] is_type True if the selection is of the type queried for.
|
141
|
+
@see SUSelectionType
|
142
|
+
@related SUSelectionRef
|
143
|
+
@return
|
144
|
+
- \ref SU_ERROR_NONE on success
|
145
|
+
- \ref SU_ERROR_INVALID_INPUT if selection is not a valid object
|
146
|
+
- \ref SU_ERROR_OUT_OF_RANGE if type is not a supported value
|
147
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_curve is NULL
|
148
|
+
*/
|
149
|
+
SU_RESULT SUSelectionIsType(SUSelectionRef selection, enum SUSelectionType type, bool* is_type);
|
150
|
+
|
151
|
+
#ifdef __cplusplus
|
152
|
+
}
|
153
|
+
#endif
|
154
|
+
#pragma pack(pop)
|
155
|
+
|
156
|
+
#endif // SKETCHUP_MODEL_SELECTION_H_
|
@@ -0,0 +1,147 @@
|
|
1
|
+
// Copyright 2014 Trimble Inc. All rights reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUShadowInfoRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_SHADOW_INFO_H_
|
8
|
+
#define SKETCHUP_MODEL_SHADOW_INFO_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/unicodestring.h>
|
12
|
+
#include <SketchUpAPI/model/defs.h>
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUShadowInfoRef
|
20
|
+
@brief Used to get and set values in a shadow info object.
|
21
|
+
@since SketchUp 2015, API 3.0
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Gets the number of available shadow info keys.
|
26
|
+
@since SketchUp 2015, API 3.0
|
27
|
+
@param[in] shadow_info The shadow info object.
|
28
|
+
@param[out] count The number of keys available.
|
29
|
+
@related SUShadowInfoRef
|
30
|
+
@return
|
31
|
+
- \ref SU_ERROR_NONE on success
|
32
|
+
- \ref SU_ERROR_INVALID_INPUT if shadow_info is not valid
|
33
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
|
34
|
+
*/
|
35
|
+
SU_RESULT SUShadowInfoGetNumKeys(SUShadowInfoRef shadow_info, size_t* count);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Retrieves keys associated with the shadow options object.
|
39
|
+
@since SketchUp 2015, API 3.0
|
40
|
+
@param[in] shadow_info The shadow_info object.
|
41
|
+
@param[in] len The number of keys to retrieve.
|
42
|
+
@param[out] keys The keys retrieved.
|
43
|
+
@param[out] count The number of keys retrieved.
|
44
|
+
@related SUShadowInfoRef
|
45
|
+
@return
|
46
|
+
- \ref SU_ERROR_NONE on success
|
47
|
+
- \ref SU_ERROR_INVALID_INPUT if shadow_info is not a valid object
|
48
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if keys or count is NULL
|
49
|
+
- \ref SU_ERROR_INVALID_OUTPUT if any of the strings in the keys array are
|
50
|
+
invalid.
|
51
|
+
*/
|
52
|
+
SU_RESULT SUShadowInfoGetKeys(
|
53
|
+
SUShadowInfoRef shadow_info, size_t len, SUStringRef keys[], size_t* count);
|
54
|
+
|
55
|
+
/**
|
56
|
+
@brief Retrieves a value from a shadow info object.
|
57
|
+
@since SketchUp 2015, API 3.0
|
58
|
+
@param[in] shadow_info The shadow info object.
|
59
|
+
@param[in] key The key. Assumed to be UTF-8 encoded.
|
60
|
+
@param[out] value_out The value retrieved.
|
61
|
+
@related SUShadowInfoRef
|
62
|
+
@return
|
63
|
+
- \ref SU_ERROR_NONE on success
|
64
|
+
- \ref SU_ERROR_INVALID_INPUT if shadow_info is an invalid object
|
65
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if key is NULL
|
66
|
+
- \ref SU_ERROR_INVALID_OUTPUT if value_out is an invalid object
|
67
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if value_out is NULL
|
68
|
+
- \ref SU_ERROR_NO_DATA if the key does not exist
|
69
|
+
|
70
|
+
The list of shadow information keys is shown below.
|
71
|
+
|
72
|
+
- City (in Model Info > Geo-location > Set Manual Location...) Note that 'City' is called 'Location'
|
73
|
+
in the UI
|
74
|
+
- Country (in Model Info > Geo-location > Set Manual Location...)
|
75
|
+
- Dark (in Window > Shadows)
|
76
|
+
- DayOfYear
|
77
|
+
- DaylightSavings
|
78
|
+
- DisplayNorth (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on
|
79
|
+
Mac
|
80
|
+
- DisplayOnAllFaces (in Window > Shadows)
|
81
|
+
- DisplayOnGroundPlane (in Window > Shadows)
|
82
|
+
- DisplayShadows (in Window > Shadows)
|
83
|
+
- EdgesCastShadows (in Window > Shadows)
|
84
|
+
- Latitude (in Model Info > Geo-location > Set Manual Location...)
|
85
|
+
- Light (in Window > Shadows)
|
86
|
+
- Longitude (in Model Info > Geo-location > Set Manual Location...)
|
87
|
+
- NorthAngle (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on Mac
|
88
|
+
- ShadowTime (in Window > Shadows)
|
89
|
+
- ShadowTime_time_t (ShadowTime in Epoch time)
|
90
|
+
- SunDirection (Generated based on ShadowTime)
|
91
|
+
- SunRise (Generated based on ShadowTime)
|
92
|
+
- SunRise_time_t (SunRise in Epoch time)
|
93
|
+
- SunSet (Generated based on ShadowTime)
|
94
|
+
- SunSet_time_t (SunSet in Epoch time)
|
95
|
+
- TZOffset (in Window > Shadows)
|
96
|
+
- UseSunForAllShading (in Window > Shadows)*/
|
97
|
+
SU_RESULT SUShadowInfoGetValue(
|
98
|
+
SUShadowInfoRef shadow_info, const char* key, SUTypedValueRef* value_out);
|
99
|
+
|
100
|
+
/**
|
101
|
+
@brief Sets a value on a shadow info object.
|
102
|
+
@since SketchUp 2015, API 3.0
|
103
|
+
@param[in] shadow_info The shadow info object.
|
104
|
+
@param[in] key The key. Assumed to be UTF-8 encoded.
|
105
|
+
@param[in] value_in The value used to set the shadow info option is set to.
|
106
|
+
@related SUShadowInfoRef
|
107
|
+
@return
|
108
|
+
- \ref SU_ERROR_NONE on success
|
109
|
+
- \ref SU_ERROR_INVALID_INPUT if shadow_info or value_in is an invalid object
|
110
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if key is NULL
|
111
|
+
- \ref SU_ERROR_NO_DATA if the key does not exist
|
112
|
+
|
113
|
+
The list of shadow information keys is shown below.
|
114
|
+
|
115
|
+
- City (in Model Info > Geo-location > Set Manual Location...) Note that 'City' is called 'Location'
|
116
|
+
in the UI
|
117
|
+
- Country (in Model Info > Geo-location > Set Manual Location...)
|
118
|
+
- Dark (in Window > Shadows)
|
119
|
+
- DayOfYear
|
120
|
+
- DaylightSavings
|
121
|
+
- DisplayNorth (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on
|
122
|
+
Mac
|
123
|
+
- DisplayOnAllFaces (in Window > Shadows)
|
124
|
+
- DisplayOnGroundPlane (in Window > Shadows)
|
125
|
+
- DisplayShadows (in Window > Shadows)
|
126
|
+
- EdgesCastShadows (in Window > Shadows)
|
127
|
+
- Latitude (in Model Info > Geo-location > Set Manual Location...)
|
128
|
+
- Light (in Window > Shadows)
|
129
|
+
- Longitude (in Model Info > Geo-location > Set Manual Location...)
|
130
|
+
- NorthAngle (in View > Toolbars > Solar North) Note that 'Toolbar' is called 'Tool Palettes' on Mac
|
131
|
+
- ShadowTime (in Window > Shadows)
|
132
|
+
- ShadowTime_time_t (ShadowTime in Epoch time)
|
133
|
+
- SunDirection (Generated based on ShadowTime)
|
134
|
+
- SunRise (Generated based on ShadowTime)
|
135
|
+
- SunRise_time_t (SunRise in Epoch time)
|
136
|
+
- SunSet (Generated based on ShadowTime)
|
137
|
+
- SunSet_time_t (SunSet in Epoch time)
|
138
|
+
- TZOffset (in Window > Shadows)
|
139
|
+
- UseSunForAllShading (in Window > Shadows)*/
|
140
|
+
SU_RESULT SUShadowInfoSetValue(
|
141
|
+
SUShadowInfoRef shadow_info, const char* key, SUTypedValueRef value_in);
|
142
|
+
|
143
|
+
#ifdef __cplusplus
|
144
|
+
}
|
145
|
+
#endif
|
146
|
+
|
147
|
+
#endif // SKETCHUP_MODEL_SHADOW_INFO_H_
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// Copyright 2020 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for reading metadata from SketchUp files without loading
|
6
|
+
* the whole file.
|
7
|
+
*/
|
8
|
+
#ifndef SKETCHUP_MODEL_SKP_H_
|
9
|
+
#define SKETCHUP_MODEL_SKP_H_
|
10
|
+
|
11
|
+
#include <SketchUpAPI/common.h>
|
12
|
+
#include <SketchUpAPI/unicodestring.h>
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@since SketchUp 2021.0, API 9.0
|
20
|
+
|
21
|
+
@brief Reads the GUID, globally unique identifier, for a model without opening
|
22
|
+
the whole file.
|
23
|
+
|
24
|
+
@see SUModelGetGuid
|
25
|
+
@see SUComponentDefinitionGetGuid
|
26
|
+
|
27
|
+
@param[in] file_path The model filepath to read from.
|
28
|
+
@param[out] guid The guid string.
|
29
|
+
@return
|
30
|
+
- \ref SU_ERROR_NONE on success
|
31
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p file_path is `NULL`
|
32
|
+
- \ref SU_ERROR_INVALID_INPUT if \p file_path does not exist
|
33
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p guid is `NULL`
|
34
|
+
- \ref SU_ERROR_INVALID_OUTPUT if \p guid does not point to a valid
|
35
|
+
SUStringRef object.
|
36
|
+
- \ref SU_ERROR_MODEL_INVALID if the model is not valid
|
37
|
+
- \ref SU_ERROR_GENERIC if an unknown error occured reading the file
|
38
|
+
*/
|
39
|
+
SU_RESULT SUSkpReadGuid(const char* file_path, SUStringRef* guid);
|
40
|
+
|
41
|
+
#ifdef __cplusplus
|
42
|
+
}
|
43
|
+
#endif
|
44
|
+
|
45
|
+
#endif // SKETCHUP_MODEL_SKP_H_
|