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,301 @@
|
|
1
|
+
// Copyright 2020 Trimble, Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SULayerFolderRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_LAYER_FOLDER_H_
|
8
|
+
#define SKETCHUP_MODEL_LAYER_FOLDER_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 SULayerFolderRef
|
20
|
+
@brief References a Tag Folder object.
|
21
|
+
@note 'Layer' is a legacy term that is being used for consistency within the API.
|
22
|
+
@since SketchUp 2021.0, API 9.0
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
@brief Converts from an \ref SULayerFolderRef to an \ref SUEntityRef.
|
27
|
+
This is essentially an upcast operation.
|
28
|
+
@since SketchUp 2021.0, API 9.0
|
29
|
+
@param[in] layer_folder The given layer folder reference.
|
30
|
+
@related SULayerFolderRef
|
31
|
+
@return
|
32
|
+
- The converted \ref SUEntityRef if \p layer_folder is a valid layer folder
|
33
|
+
- If not, the returned reference will be invalid
|
34
|
+
*/
|
35
|
+
SU_EXPORT SUEntityRef SULayerFolderToEntity(SULayerFolderRef layer_folder);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Converts from an \ref SUEntityRef to an \ref SULayerFolderRef.
|
39
|
+
This is essentially a downcast operation so the given
|
40
|
+
SUEntityRef must be convertible to an \ref SULayerFolderRef.
|
41
|
+
@since SketchUp 2021.0, API 9.0
|
42
|
+
@param[in] entity The given entity reference.
|
43
|
+
@related SULayerFolderRef
|
44
|
+
@return
|
45
|
+
- The converted \ref SULayerFolderRef if the downcast operation succeeds
|
46
|
+
- If not, the returned reference will be invalid
|
47
|
+
*/
|
48
|
+
SU_EXPORT SULayerFolderRef SULayerFolderFromEntity(SUEntityRef entity);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Creates a new layer folder object with the given name.
|
52
|
+
|
53
|
+
Layer Folders associated with a SketchUp model must not be explicitly
|
54
|
+
deallocated.
|
55
|
+
Layer folders that are not associated with a SketchUp model must be deallocated
|
56
|
+
with SULayerFolderRelease().
|
57
|
+
|
58
|
+
@note Layer folder names do not need to be unique, but they can not be empty.
|
59
|
+
@since SketchUp 2021.0, API 9.0
|
60
|
+
@param[out] layer_folder The layer folder object created.
|
61
|
+
@param[in] name The desired layer folder name. Assumed to be UTF-8 encoded.
|
62
|
+
@related SULayerFolderRef
|
63
|
+
@return
|
64
|
+
- \ref SU_ERROR_NONE on success
|
65
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p layer_folder is NULL
|
66
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p name is NULL
|
67
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p name is an empty string
|
68
|
+
*/
|
69
|
+
SU_RESULT SULayerFolderCreate(SULayerFolderRef* layer_folder, const char* name);
|
70
|
+
|
71
|
+
/**
|
72
|
+
@brief Deallocates a layer folder object.
|
73
|
+
|
74
|
+
The layer folder object to be deallocated must not be associated with a
|
75
|
+
SketchUp model.
|
76
|
+
@note To release a \ref SULayerFolderRef that is owned by a model you should
|
77
|
+
use SUModelRemoveLayerFolders().
|
78
|
+
@since SketchUp 2021.0, API 9.0
|
79
|
+
@param[in] layer_folder The layer folder object.
|
80
|
+
@related SULayerFolderRef
|
81
|
+
@return
|
82
|
+
- \ref SU_ERROR_NONE on success
|
83
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder points to an invalid object
|
84
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p layer_folder is NULL
|
85
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p layer_folder is contained within a model.
|
86
|
+
*/
|
87
|
+
SU_RESULT SULayerFolderRelease(SULayerFolderRef* layer_folder);
|
88
|
+
|
89
|
+
/**
|
90
|
+
@brief Retrieves the name of a layer folder object.
|
91
|
+
@since SketchUp 2021.0, API 9.0
|
92
|
+
@param[in] layer_folder The layer folder object.
|
93
|
+
@param[out] name The name retrieved.
|
94
|
+
@related SULayerFolderRef
|
95
|
+
@return
|
96
|
+
- \ref SU_ERROR_NONE on success
|
97
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object
|
98
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p name is NULL
|
99
|
+
- \ref SU_ERROR_INVALID_OUTPUT if \p name does not point to a valid \ref
|
100
|
+
SUStringRef object
|
101
|
+
*/
|
102
|
+
SU_RESULT SULayerFolderGetName(SULayerFolderRef layer_folder, SUStringRef* name);
|
103
|
+
|
104
|
+
/**
|
105
|
+
@brief Assigns the name of a layer folder object.
|
106
|
+
@note Layer folder names do not need to be unique, but they can not be empty.
|
107
|
+
@since SketchUp 2021.0, API 9.0
|
108
|
+
@param[in] layer_folder The layer folder object.
|
109
|
+
@param[in] name The new name of the layer folder object. Assumed to be UTF-8
|
110
|
+
encoded.
|
111
|
+
@related SULayerFolderRef
|
112
|
+
@return
|
113
|
+
- \ref SU_ERROR_NONE if \p layer_folder is not a valid object
|
114
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if \p name is NULL
|
115
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p name is an empty string
|
116
|
+
*/
|
117
|
+
SU_RESULT SULayerFolderSetName(SULayerFolderRef layer_folder, const char* name);
|
118
|
+
|
119
|
+
/**
|
120
|
+
@brief Retrieves the boolean flag indicating whether a layer folder object is
|
121
|
+
visible.
|
122
|
+
@since SketchUp 2021.0, API 9.0
|
123
|
+
@param[in] layer_folder The layer folder object.
|
124
|
+
@param[out] visible The visibility flag retrieved.
|
125
|
+
@related SULayerFolderRef
|
126
|
+
@return
|
127
|
+
- \ref SU_ERROR_NONE on success
|
128
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object
|
129
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p visible is NULL
|
130
|
+
*/
|
131
|
+
SU_RESULT SULayerFolderGetVisibility(SULayerFolderRef layer_folder, bool* visible);
|
132
|
+
|
133
|
+
/**
|
134
|
+
@brief Sets the boolean flag indicating whether a layer folder object is
|
135
|
+
visible.
|
136
|
+
@since SketchUp 2021.0, API 9.0
|
137
|
+
@param[in] layer_folder The layer folder object.
|
138
|
+
@param[in] visible The visibility flag to set.
|
139
|
+
@related SULayerFolderRef
|
140
|
+
@return
|
141
|
+
- \ref SU_ERROR_NONE on success
|
142
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object.
|
143
|
+
*/
|
144
|
+
SU_RESULT SULayerFolderSetVisibility(SULayerFolderRef layer_folder, bool visible);
|
145
|
+
|
146
|
+
/**
|
147
|
+
@brief Retrieves the boolean flag indicating whether a layer folder object is
|
148
|
+
visible by default on new scenes.
|
149
|
+
@since SketchUp 2021.0, API 9.0
|
150
|
+
@param[in] layer_folder The layer folder object.
|
151
|
+
@param[out] visible The visibility flag retrieved.
|
152
|
+
@see SUSceneLayerFolders()
|
153
|
+
@related SULayerFolderRef
|
154
|
+
@return
|
155
|
+
- \ref SU_ERROR_NONE on success
|
156
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object
|
157
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p visible is NULL
|
158
|
+
*/
|
159
|
+
SU_RESULT SULayerGroupGetVisibleOnNewScenes(SULayerFolderRef layer_folder, bool* visible);
|
160
|
+
|
161
|
+
/**
|
162
|
+
@brief Sets the boolean flag indicating whether a layer folder object is
|
163
|
+
visible by default on new scenes.
|
164
|
+
@since SketchUp 2021.0, API 9.0
|
165
|
+
@param[in] layer_folder The layer folder object.
|
166
|
+
@param[in] visible The visibility flag to set.
|
167
|
+
@see SUSceneAddLayerFolder()
|
168
|
+
@see SUSceneRemoveLayerFolder()
|
169
|
+
@related SULayerFolderRef
|
170
|
+
@return
|
171
|
+
- \ref SU_ERROR_NONE on success
|
172
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object.
|
173
|
+
*/
|
174
|
+
SU_RESULT SULayerGroupSetVisibleOnNewScenes(SULayerFolderRef layer_folder, bool visible);
|
175
|
+
|
176
|
+
/**
|
177
|
+
@brief Adds a layer to the given layer folder.
|
178
|
+
@since SketchUp 2021.0, API 9.0
|
179
|
+
@param[in] layer_folder The layer folder object.
|
180
|
+
@param[in] layer The layer to add.
|
181
|
+
@related SULayerFolderRef
|
182
|
+
@return
|
183
|
+
- \ref SU_ERROR_NONE on success
|
184
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder or \p layer is not a valid
|
185
|
+
object.
|
186
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p layer can not be added to, or is
|
187
|
+
already a member of, \p layer_folder.
|
188
|
+
*/
|
189
|
+
SU_RESULT SULayerFolderAddLayer(SULayerFolderRef layer_folder, SULayerRef layer);
|
190
|
+
|
191
|
+
/**
|
192
|
+
@brief Removes a layer from the given layer folder.
|
193
|
+
@since SketchUp 2021.0, API 9.0
|
194
|
+
@param[in] layer_folder The layer folder object.
|
195
|
+
@param[in] layer The layer to remove.
|
196
|
+
@related SULayerFolderRef
|
197
|
+
@return
|
198
|
+
- \ref SU_ERROR_NONE on success
|
199
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder or \p layer is not a valid object.
|
200
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p layer is not in \p layer_folder.
|
201
|
+
*/
|
202
|
+
SU_RESULT SULayerFolderRemoveLayer(SULayerFolderRef layer_folder, SULayerRef layer);
|
203
|
+
|
204
|
+
/**
|
205
|
+
@brief Gets the number of layers that layer_folder contains.
|
206
|
+
@since SketchUp 2021.0, API 9.0
|
207
|
+
@param[in] layer_folder The layer folder object.
|
208
|
+
@param[out] count The number of layers.
|
209
|
+
@related SULayerFolderRef
|
210
|
+
@return
|
211
|
+
- \ref SU_ERROR_NONE on success
|
212
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object.
|
213
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p count is NULL
|
214
|
+
*/
|
215
|
+
SU_RESULT SULayerFolderGetNumLayers(SULayerFolderRef layer_folder, size_t* count);
|
216
|
+
|
217
|
+
/**
|
218
|
+
@brief Gets the layers that are in the layer_folder
|
219
|
+
@since SketchUp 2021.0, API 9.0
|
220
|
+
@param[in] layer_folder The layer folder object.
|
221
|
+
@param[in] len The number of elements in the layers array.
|
222
|
+
@param[out] layers The layers that are in the layer folder.
|
223
|
+
@param[out] count The number of layers read into the layers array.
|
224
|
+
@related SULayerFolderRef
|
225
|
+
@return
|
226
|
+
- \ref SU_ERROR_NONE on success
|
227
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object.
|
228
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p layers or \p count is NULL.
|
229
|
+
*/
|
230
|
+
SU_RESULT SULayerFolderGetLayers(
|
231
|
+
SULayerFolderRef layer_folder, size_t len, SULayerRef* layers, size_t* count);
|
232
|
+
|
233
|
+
/**
|
234
|
+
@brief Adds a \ref SULayerFolderRef object to the given layer folder.
|
235
|
+
@since SketchUp 2021.0, API 9.0
|
236
|
+
@param[in] layer_folder The parent layer folder.
|
237
|
+
@param[in] add_folder The layer folder to add.
|
238
|
+
@related SULayerFolderRef
|
239
|
+
@return
|
240
|
+
- \ref SU_ERROR_NONE on success
|
241
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder or \p add_folder is an invalid
|
242
|
+
object
|
243
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if \p layer_folder is not part of the model or
|
244
|
+
\p add_folder fails to be added or is already contained within \p layer_folder.
|
245
|
+
*/
|
246
|
+
SU_RESULT SULayerFolderAddLayerFolder(SULayerFolderRef layer_folder, SULayerFolderRef add_folder);
|
247
|
+
|
248
|
+
/**
|
249
|
+
@brief Gets the number of \ref SULayerFolderRef objects that are direct
|
250
|
+
children of the given layer folder object.
|
251
|
+
@since SketchUp 2021.0, API 9.0
|
252
|
+
@param[in] layer_folder The layer folder object.
|
253
|
+
@param[out] count The number of layer folder objects that are direct
|
254
|
+
children.
|
255
|
+
@related SULayerFolderRef
|
256
|
+
@return
|
257
|
+
- \ref SU_ERROR_NONE on success
|
258
|
+
- \ref SU_ERROR_INVALID_INPUT if \p model is an invalid object
|
259
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p count is NULL
|
260
|
+
*/
|
261
|
+
SU_RESULT SULayerFolderGetNumLayerFolders(SULayerFolderRef layer_folder, size_t* count);
|
262
|
+
|
263
|
+
/**
|
264
|
+
@brief Gets the \ref SULayerFolderRef objects that are direct children of the
|
265
|
+
given layer folder object.
|
266
|
+
@since SketchUp 2021.0, API 9.0
|
267
|
+
@param[in] layer_folder The layer folder object.
|
268
|
+
@param[in] len The number of elements in \p layer_folders.
|
269
|
+
@param[out] layer_folders An array of layer folder objects.
|
270
|
+
@param[out] count The number of elements written into \p layer_folders.
|
271
|
+
@related SULayerFolderRef
|
272
|
+
@return
|
273
|
+
- \ref SU_ERROR_NONE on success
|
274
|
+
- \ref SU_ERROR_INVALID_INPUT if \p model is an invalid object
|
275
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p layer_folders or \p count is NULL
|
276
|
+
*/
|
277
|
+
SU_RESULT SULayerFolderGetLayerFolders(
|
278
|
+
SULayerFolderRef layer_folder, size_t len, SULayerFolderRef* layer_folders, size_t* count);
|
279
|
+
|
280
|
+
/**
|
281
|
+
@brief Gets the \ref SULayerFolderRef object that contains the given layer
|
282
|
+
folder.
|
283
|
+
@since SketchUp 2021.0, API 9.0
|
284
|
+
@param[in] layer_folder The layer folder object.
|
285
|
+
@param[out] parent The retrieved parent layer folder object.
|
286
|
+
@related SULayerFolderRef
|
287
|
+
@return
|
288
|
+
- \ref SU_ERROR_NONE on success
|
289
|
+
- \ref SU_ERROR_INVALID_INPUT if \p layer_folder is not a valid object
|
290
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p layer_folder is NULL
|
291
|
+
- \ref SU_ERROR_NO_DATA if \p layer_folder is not contained within a layer
|
292
|
+
folder
|
293
|
+
*/
|
294
|
+
SU_RESULT SULayerFolderGetParentLayerFolder(
|
295
|
+
SULayerFolderRef layer_folder, SULayerFolderRef* parent);
|
296
|
+
|
297
|
+
#ifdef __cplusplus
|
298
|
+
} // extern "C"
|
299
|
+
#endif
|
300
|
+
|
301
|
+
#endif // SKETCHUP_MODEL_LAYER_FOLDER_H_
|
@@ -0,0 +1,211 @@
|
|
1
|
+
// Copyright 2018 Trimble Inc. All Rights Reserverd.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SULineStyleRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLE_H_
|
8
|
+
#define SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLE_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/color.h>
|
11
|
+
#include <SketchUpAPI/common.h>
|
12
|
+
#include <SketchUpAPI/model/defs.h>
|
13
|
+
|
14
|
+
#pragma pack(push, 8)
|
15
|
+
#ifdef __cplusplus
|
16
|
+
extern "C" {
|
17
|
+
#endif
|
18
|
+
|
19
|
+
/**
|
20
|
+
@struct SULineStyleRef
|
21
|
+
@extends SUEntityRef
|
22
|
+
@brief References a line style.
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
@brief Converts from a \ref SULineStyleRef to an \ref SUEntityRef.
|
27
|
+
This is essentially an upcast operation.
|
28
|
+
@since SketchUp 2020.1, API 8.1
|
29
|
+
@param[in] line_style The given line style reference.
|
30
|
+
@related SULineStyleRef
|
31
|
+
@return
|
32
|
+
- The converted \ref SUEntityRef if line_style is a valid line style
|
33
|
+
- If not, the returned reference will be invalid
|
34
|
+
*/
|
35
|
+
SU_EXPORT SUEntityRef SULineStyleToEntity(SULineStyleRef line_style);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Converts from an \ref SUEntityRef to a \ref SULineStyleRef.
|
39
|
+
This is essentially a downcast operation so the given entity must be
|
40
|
+
convertible to a \ref SULineStyleRef.
|
41
|
+
@since SketchUp 2020.1, API 8.1
|
42
|
+
@param[in] entity_ref The given entity reference.
|
43
|
+
@related SULineStyleRef
|
44
|
+
@return
|
45
|
+
- The converted \ref SULineStyleRef if the downcast operation succeeds
|
46
|
+
- If not, the returned reference will be invalid
|
47
|
+
*/
|
48
|
+
SU_EXPORT SULineStyleRef SULineStyleFromEntity(SUEntityRef entity_ref);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Retrieves the name of a line style object.
|
52
|
+
@since SketchUp 2019, API 7.0
|
53
|
+
@param[in] line_style The line style object.
|
54
|
+
@param[out] name The name retrieved.
|
55
|
+
@related SULineStyleRef
|
56
|
+
@return
|
57
|
+
- \ref SU_ERROR_NONE on success
|
58
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
59
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
|
60
|
+
- \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
|
61
|
+
SUStringRef object
|
62
|
+
*/
|
63
|
+
SU_RESULT SULineStyleGetName(SULineStyleRef line_style, SUStringRef* name);
|
64
|
+
|
65
|
+
/**
|
66
|
+
@brief Retrieves the pixel width of a line style.
|
67
|
+
@since SketchUp 2019, API 7.0
|
68
|
+
@param[in] line_style The line style object.
|
69
|
+
@param[out] pixel_width The pixel width retrieved.
|
70
|
+
@related SULineStyleRef
|
71
|
+
@return
|
72
|
+
- \ref SU_ERROR_NONE on success
|
73
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
74
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if pixel_width is NULL
|
75
|
+
*/
|
76
|
+
SU_RESULT SULineStyleGetWidthPixels(SULineStyleRef line_style, double* pixel_width);
|
77
|
+
|
78
|
+
/**
|
79
|
+
@brief Sets the pixel width of a line style. Must be greater than 0.
|
80
|
+
@note The restrictions on pixel_width were relaxed in SketchUp 2020.2, API 8.2
|
81
|
+
from requiring that pixel_width be greater than or equal to one to
|
82
|
+
requiring that it be greater than zero.
|
83
|
+
@since SketchUp 2019, API 7.0
|
84
|
+
@param[in] line_style The line style object.
|
85
|
+
@param[in] pixel_width The new pixel width of the line style.
|
86
|
+
@related SULineStyleRef
|
87
|
+
@return
|
88
|
+
- \ref SU_ERROR_NONE on success
|
89
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
90
|
+
- \ref SU_ERROR_OUT_OF_RANGE if pixel_width is less than or equal to 0.0
|
91
|
+
- \ref SU_ERROR_INVALID_OPERATION if line_style is a built-in style
|
92
|
+
*/
|
93
|
+
SU_RESULT SULineStyleSetWidthPixels(SULineStyleRef line_style, double pixel_width);
|
94
|
+
|
95
|
+
/**
|
96
|
+
@brief Retrieves the length multiplier of a line style. This value is used to
|
97
|
+
scale the applied stipple of the line.
|
98
|
+
@since SketchUp 2019, API 7.0
|
99
|
+
@param[in] line_style The line style object.
|
100
|
+
@param[out] length_multiplier The length multiplier retrieved.
|
101
|
+
@related SULineStyleRef
|
102
|
+
@return
|
103
|
+
- \ref SU_ERROR_NONE on success
|
104
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
105
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if length_multiplier is NULL
|
106
|
+
*/
|
107
|
+
SU_RESULT SULineStyleGetLengthMultiplier(SULineStyleRef line_style, double* length_multiplier);
|
108
|
+
|
109
|
+
/**
|
110
|
+
@brief Sets the length multiplier of a line style. Must be a non-zero value.
|
111
|
+
Default is 1. This value is used to scale the applied stipple pattern
|
112
|
+
of the line. Positive values will be applied directly (ie a value of
|
113
|
+
2.0 will stretch the stipple pattern by a factor of 2). Negative values
|
114
|
+
will be divided by the line width such that the final scale equals
|
115
|
+
abs(length_multiplier) / current_line_width.
|
116
|
+
@note The restrictions on length_multiplier were relaxed in SketchUp 2020.2,
|
117
|
+
API 8.2 from requiring that length_multiplier be a positive value to
|
118
|
+
requiring that length_multiplier be non-zero.
|
119
|
+
@since SketchUp 2019, API 7.0
|
120
|
+
@param[in] line_style The line style object.
|
121
|
+
@param[in] length_multiplier The new length multiplier of the line style.
|
122
|
+
@related SULineStyleRef
|
123
|
+
@return
|
124
|
+
- \ref SU_ERROR_NONE on success
|
125
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
126
|
+
- \ref SU_ERROR_OUT_OF_RANGE if length_multiplier is equal to zero
|
127
|
+
- \ref SU_ERROR_INVALID_OPERATION if line_style is a built-in style
|
128
|
+
*/
|
129
|
+
SU_RESULT SULineStyleSetLengthMultiplier(SULineStyleRef line_style, double length_multiplier);
|
130
|
+
|
131
|
+
/**
|
132
|
+
@brief Retrieves the color value of a line style object.
|
133
|
+
@since SketchUp 2020.1, API 8.1
|
134
|
+
@param[in] line_style The line style object.
|
135
|
+
@param[out] color The color value retrieved.
|
136
|
+
@related SULineStyleRef
|
137
|
+
@return
|
138
|
+
- \ref SU_ERROR_NONE on success
|
139
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
140
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
141
|
+
- \ref SU_ERROR_NO_DATA if the line style object does not have a color value
|
142
|
+
*/
|
143
|
+
SU_RESULT SULineStyleGetColor(SULineStyleRef line_style, SUColor* color);
|
144
|
+
|
145
|
+
/**
|
146
|
+
@brief Sets the color of a line style object.
|
147
|
+
@since SketchUp 2020.1, API 8.1
|
148
|
+
@param[in] line_style The line style object.
|
149
|
+
@param[in] color The color value to set the line style color.
|
150
|
+
@related SULineStyleRef
|
151
|
+
@return
|
152
|
+
- \ref SU_ERROR_NONE on success
|
153
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
154
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if color is NULL
|
155
|
+
- \ref SU_ERROR_INVALID_OPERATION if line_style is a built-in style
|
156
|
+
*/
|
157
|
+
SU_RESULT SULineStyleSetColor(SULineStyleRef line_style, const SUColor* color);
|
158
|
+
|
159
|
+
/**
|
160
|
+
@brief Creates a new line style object by copying an existing one.
|
161
|
+
@since SketchUp 2020.1, API 8.1
|
162
|
+
@param[in] line_style The line style object to copy.
|
163
|
+
@param[in] name The name to apply to the new line style object.
|
164
|
+
@param[out] destination The new line style object that is created.
|
165
|
+
@related SULineStyleRef
|
166
|
+
@return
|
167
|
+
- \ref SU_ERROR_NONE on success
|
168
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
169
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
170
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if destination is NULL
|
171
|
+
- \ref SU_ERROR_OVERWRITE_VALID if destination already references a valid
|
172
|
+
object.
|
173
|
+
*/
|
174
|
+
SU_RESULT SULineStyleCreateCopy(
|
175
|
+
SULineStyleRef line_style, const char* name, SULineStyleRef* destination);
|
176
|
+
|
177
|
+
/**
|
178
|
+
@brief Deallocates a line style object.
|
179
|
+
|
180
|
+
The line style object to be deallocated must not be associated with a line
|
181
|
+
style manager.
|
182
|
+
@since SketchUp 2020.1, API 8.1
|
183
|
+
@param[in] line_style The line style object to release.
|
184
|
+
@related SULineStyleRef
|
185
|
+
@return
|
186
|
+
- \ref SU_ERROR_NONE on success
|
187
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if line_style is NULL
|
188
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
189
|
+
- \ref SU_ERROR_INVALID_OPERATION if line_style is not a user created style
|
190
|
+
*/
|
191
|
+
SU_RESULT SULineStyleRelease(SULineStyleRef* line_style);
|
192
|
+
|
193
|
+
/**
|
194
|
+
@brief Indicates whether the line style object is user created or not.
|
195
|
+
@since SketchUp 2020.1, API 8.1
|
196
|
+
@param[in] line_style The line style object.
|
197
|
+
@param[out] is_user_created The boolean value retrieved.
|
198
|
+
@related SULineStyleRef
|
199
|
+
@return
|
200
|
+
- \ref SU_ERROR_NONE on success
|
201
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style is not a valid object
|
202
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_user_created is NULL
|
203
|
+
*/
|
204
|
+
SU_RESULT SULineStyleIsUserCreated(SULineStyleRef line_style, bool* is_user_created);
|
205
|
+
|
206
|
+
#ifdef __cplusplus
|
207
|
+
}
|
208
|
+
#endif
|
209
|
+
#pragma pack(pop)
|
210
|
+
|
211
|
+
#endif // SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLE_H_
|
@@ -0,0 +1,81 @@
|
|
1
|
+
// Copyright 2018 Trimble Inc. All Rights Reserverd.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SULineStylesRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLES_H_
|
8
|
+
#define SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLES_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 SULineStylesRef
|
20
|
+
@brief Provides access to the different line style objects in the model.
|
21
|
+
*/
|
22
|
+
|
23
|
+
/**
|
24
|
+
@brief Gets the number of line styles.
|
25
|
+
@since SketchUp 2019, API 7.0
|
26
|
+
@param[in] line_styles The line_styles manager object.
|
27
|
+
@param[out] count The number of line styles available.
|
28
|
+
@related SULineStylesRef
|
29
|
+
@return
|
30
|
+
- \ref SU_ERROR_NONE on success
|
31
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style_manager is not valid
|
32
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
|
33
|
+
*/
|
34
|
+
SU_RESULT SULineStylesGetNumLineStyles(SULineStylesRef line_styles, size_t* count);
|
35
|
+
|
36
|
+
/**
|
37
|
+
@brief Retrieves line styles associated with the line styles manager.
|
38
|
+
@since SketchUp 2019, API 7.0
|
39
|
+
@param[in] line_styles The line_styles manager object.
|
40
|
+
@param[in] len The number of line style names
|
41
|
+
to retrieve.
|
42
|
+
@param[out] line_styles_provider_names The line_style names retrieved.
|
43
|
+
@param[out] count The number of line style names
|
44
|
+
retrieved.
|
45
|
+
@related SULineStylesRef
|
46
|
+
@return
|
47
|
+
- \ref SU_ERROR_NONE on success
|
48
|
+
- \ref SU_ERROR_INVALID_INPUT if line_style_manager is not a valid object
|
49
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if line_styles_providers or count is NULL
|
50
|
+
- \ref SU_ERROR_INVALID_OUTPUT if any of the strings in line_styles_provider_names
|
51
|
+
are invalid
|
52
|
+
*/
|
53
|
+
SU_RESULT SULineStylesGetLineStyleNames(
|
54
|
+
SULineStylesRef line_styles, size_t len, SUStringRef line_styles_provider_names[],
|
55
|
+
size_t* count);
|
56
|
+
|
57
|
+
/**
|
58
|
+
@brief Retrieves the line styles provider given a name.
|
59
|
+
@since SketchUp 2019, API 7.0
|
60
|
+
@param[in] line_styles The line_styles manager object.
|
61
|
+
@param[in] name The name of the line style object to
|
62
|
+
get. Assumed to be UTF-8 encoded.
|
63
|
+
@param[out] line_style The line style object retrieved.
|
64
|
+
@related SULineStylesRef
|
65
|
+
@return
|
66
|
+
- \ref SU_ERROR_NONE on success
|
67
|
+
- \ref SU_ERROR_INVALID_INPUT if line_styles is not a valid object
|
68
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
69
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if line_style is NULL
|
70
|
+
- \ref SU_ERROR_NO_DATA if name does not match the name of any existing style.
|
71
|
+
*/
|
72
|
+
SU_RESULT SULineStylesGetLineStyleByName(
|
73
|
+
SULineStylesRef line_styles, const char* name, SULineStyleRef* line_style);
|
74
|
+
|
75
|
+
|
76
|
+
#ifdef __cplusplus
|
77
|
+
}
|
78
|
+
#endif
|
79
|
+
#pragma pack(pop)
|
80
|
+
|
81
|
+
#endif // SKETCHUP_SOURCE_SKORE_SKETCHUP_PUBLIC_MODEL_LINESTYLES_H_
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// Copyright 2013 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SULocationRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_LOCATION_H_
|
8
|
+
#define SKETCHUP_MODEL_LOCATION_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/model/defs.h>
|
11
|
+
|
12
|
+
/**
|
13
|
+
@struct SULocationRef
|
14
|
+
@brief References a type that contains location information of a model
|
15
|
+
(e.g. latitude, longitude).
|
16
|
+
*/
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
extern "C" {
|
20
|
+
#endif
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Retrieves the latitude and longitude of a location object.
|
24
|
+
@param[in] location The location object.
|
25
|
+
@param[out] latitude The latitude value retrieved.
|
26
|
+
@param[out] longitude The longitude value retrieved.
|
27
|
+
@related SULocationRef
|
28
|
+
@return
|
29
|
+
- \ref SU_ERROR_NONE on success
|
30
|
+
- \ref SU_ERROR_INVALID_INPUT if location is not a valid object
|
31
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if latitude or longitude is NULL
|
32
|
+
*/
|
33
|
+
SU_RESULT SULocationGetLatLong(SULocationRef location, double* latitude, double* longitude);
|
34
|
+
|
35
|
+
/**
|
36
|
+
@brief Assigns the latitude and longitude values of a location object.
|
37
|
+
@param[in] location The location object.
|
38
|
+
@param[in] latitude The latitude value to assign.
|
39
|
+
@param[in] longitude The longitude value to assign.
|
40
|
+
@related SULocationRef
|
41
|
+
@return
|
42
|
+
- \ref SU_ERROR_NONE on success
|
43
|
+
- \ref SU_ERROR_INVALID_INPUT if location is not a valid object or if the
|
44
|
+
latitude is out of range [-90, 90] or if longitude is out of range
|
45
|
+
[-180, 180]
|
46
|
+
*/
|
47
|
+
SU_RESULT SULocationSetLatLong(SULocationRef location, double latitude, double longitude);
|
48
|
+
|
49
|
+
/**
|
50
|
+
@brief Assigns the north angle values of a location object.
|
51
|
+
@param[in] location The location object.
|
52
|
+
@param[in] north_angle The north angle value to assign.
|
53
|
+
@related SULocationRef
|
54
|
+
@return
|
55
|
+
- \ref SU_ERROR_NONE on success
|
56
|
+
- \ref SU_ERROR_INVALID_INPUT if location is not a valid object or if north
|
57
|
+
angle is out of range [0, 360]
|
58
|
+
*/
|
59
|
+
SU_RESULT SULocationSetNorthAngle(SULocationRef location, double north_angle);
|
60
|
+
|
61
|
+
#ifdef __cplusplus
|
62
|
+
} // extern "C"
|
63
|
+
#endif
|
64
|
+
|
65
|
+
#endif // SKETCHUP_MODEL_LOCATION_H_
|