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,186 @@
|
|
1
|
+
// Copyright 2017 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUEntityRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_ENTITY_H_
|
8
|
+
#define SKETCHUP_MODEL_ENTITY_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 SUEntityRef
|
19
|
+
@brief References an entity, which is an abstract base type for most API types.
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Returns the concrete type of the given entity.
|
24
|
+
@param[in] entity The entity.
|
25
|
+
@related SUEntityRef
|
26
|
+
@return
|
27
|
+
- The concrete type of the given entity reference.
|
28
|
+
- \ref SURefType_Unknown if entity is not valid.
|
29
|
+
*/
|
30
|
+
SU_EXPORT enum SURefType SUEntityGetType(SUEntityRef entity);
|
31
|
+
|
32
|
+
/**
|
33
|
+
@brief Retrieves the id of the entity.
|
34
|
+
@param[in] entity The entity.
|
35
|
+
@param[out] entity_id The id retrieved.
|
36
|
+
@related SUEntityRef
|
37
|
+
@return
|
38
|
+
- \ref SU_ERROR_NONE on success
|
39
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid object
|
40
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entity_id is NULL.
|
41
|
+
*/
|
42
|
+
SU_RESULT SUEntityGetID(SUEntityRef entity, int32_t* entity_id);
|
43
|
+
|
44
|
+
/**
|
45
|
+
@brief Retrieves the persistent id of the entity.
|
46
|
+
|
47
|
+
@note Only a subset of entity types support PIDs. Refer to the list
|
48
|
+
below for which and when support was added.
|
49
|
+
|
50
|
+
SketchUp 2020.1
|
51
|
+
- SUComponentDefinitionRef
|
52
|
+
- SUFontRef
|
53
|
+
- SUStyleRef
|
54
|
+
- SUMaterialRef
|
55
|
+
SketchUp 2020.0
|
56
|
+
- SULayerRef
|
57
|
+
- SULineStyleRef
|
58
|
+
SketchUp 2018
|
59
|
+
- SUSceneRef
|
60
|
+
SketchUp 2017
|
61
|
+
- SUAxesRef
|
62
|
+
- SUComponentInstanceRef
|
63
|
+
- SUGuideLineRef
|
64
|
+
- SUGuidePointRef
|
65
|
+
- SUCurveRef
|
66
|
+
- SUDimensionRef
|
67
|
+
- SUEdgeRef
|
68
|
+
- SUFaceRef
|
69
|
+
- SUPolyline3dRef
|
70
|
+
- SUSectionPlaneRef
|
71
|
+
- SUTextRef
|
72
|
+
- SUVertexRef
|
73
|
+
|
74
|
+
@param[in] entity The entity.
|
75
|
+
@param[out] entity_pid The persistent id retrieved.
|
76
|
+
@related SUEntityRef
|
77
|
+
@return
|
78
|
+
- \ref SU_ERROR_NONE on success
|
79
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid object
|
80
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entity_pid is NULL.
|
81
|
+
*/
|
82
|
+
SU_RESULT SUEntityGetPersistentID(SUEntityRef entity, int64_t* entity_pid);
|
83
|
+
|
84
|
+
/**
|
85
|
+
@brief Retrieves the number of attribute dictionaries of an entity.
|
86
|
+
|
87
|
+
@bug Prior to SDK version 9.1 (SketchUp 2021.1) this function might return a
|
88
|
+
count higher than what SUEntityGetNumAttributeDictionaries() will actually
|
89
|
+
return. For example with faces with a positioned material.
|
90
|
+
|
91
|
+
@param[in] entity The entity.
|
92
|
+
@param[out] count The number of attribute dictionaries.
|
93
|
+
@related SUEntityRef
|
94
|
+
@return
|
95
|
+
- \ref SU_ERROR_NONE on success
|
96
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid entity
|
97
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
|
98
|
+
*/
|
99
|
+
SU_RESULT SUEntityGetNumAttributeDictionaries(SUEntityRef entity, size_t* count);
|
100
|
+
|
101
|
+
/**
|
102
|
+
@brief Retrieves the attribute dictionaries of an entity.
|
103
|
+
@param[in] entity The entity.
|
104
|
+
@param[in] len The number of attribute dictionaries to retrieve.
|
105
|
+
@param[out] dictionaries The dictionaries retrieved.
|
106
|
+
@param[out] count The number of dictionaries retrieved.
|
107
|
+
@related SUEntityRef
|
108
|
+
@return
|
109
|
+
- \ref SU_ERROR_NONE on success
|
110
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid entity
|
111
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if dictionaries or count is NULL
|
112
|
+
*/
|
113
|
+
SU_RESULT SUEntityGetAttributeDictionaries(
|
114
|
+
SUEntityRef entity, size_t len, SUAttributeDictionaryRef dictionaries[], size_t* count);
|
115
|
+
|
116
|
+
/**
|
117
|
+
@brief Adds the attribute dictionary to an entity. The given dictionary object
|
118
|
+
must not belong to another entity. In other words, each dictionary should
|
119
|
+
be added to one entity only.
|
120
|
+
@since SketchUp 2018 M0, API 6.0
|
121
|
+
@param[in] entity The entity.
|
122
|
+
@param[in] dictionary The dictionary object to be added. If the function is
|
123
|
+
successful, don't call SUAttributeDictionaryRelease on the
|
124
|
+
dictionary because the new entity will take ownership.
|
125
|
+
@related SUEntityRef
|
126
|
+
@return
|
127
|
+
- \ref SU_ERROR_NONE on success
|
128
|
+
- \ref SU_ERROR_INVALID_INPUT if entity or dictionary are not valid entities
|
129
|
+
- \ref SU_ERROR_DUPLICATE if another attribute already exists with the
|
130
|
+
same name.
|
131
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if dictionary's name is empty or it's a name
|
132
|
+
that is reserved for internal use.
|
133
|
+
*/
|
134
|
+
SU_RESULT SUEntityAddAttributeDictionary(SUEntityRef entity, SUAttributeDictionaryRef dictionary);
|
135
|
+
|
136
|
+
/**
|
137
|
+
@brief Retrieves the attribute dictionary of an entity that has the given name.
|
138
|
+
|
139
|
+
If a dictionary with the given name does not exist, one is added to the entity.
|
140
|
+
@param[in] entity The entity.
|
141
|
+
@param[in] name The name of the retrieved attribute dictionary.
|
142
|
+
Assumed to be UTF-8 encoded.
|
143
|
+
@param[out] dictionary The destination of the retrieved dictionary object.
|
144
|
+
@related SUEntityRef
|
145
|
+
@return
|
146
|
+
- \ref SU_ERROR_NONE on success
|
147
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid entity
|
148
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
149
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if dictionary is NULL
|
150
|
+
*/
|
151
|
+
SU_RESULT SUEntityGetAttributeDictionary(
|
152
|
+
SUEntityRef entity, const char* name, SUAttributeDictionaryRef* dictionary);
|
153
|
+
|
154
|
+
/**
|
155
|
+
@brief Retrieves the model object associated with the entity.
|
156
|
+
@since SketchUp 2018 M0, API 6.0
|
157
|
+
@param[in] entity The entity.
|
158
|
+
@param[out] model The model object retrieved.
|
159
|
+
@related SUEntityRef
|
160
|
+
@return
|
161
|
+
- \ref SU_ERROR_NONE on success
|
162
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid object
|
163
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if model is NULL
|
164
|
+
- \ref SU_ERROR_NO_DATA if the entity is not associated with a model
|
165
|
+
*/
|
166
|
+
SU_RESULT SUEntityGetModel(SUEntityRef entity, SUModelRef* model);
|
167
|
+
|
168
|
+
/**
|
169
|
+
@brief Retrieves the entities object which contains the entity.
|
170
|
+
@since SketchUp 2018 M0, API 6.0
|
171
|
+
@param[in] entity The entity.
|
172
|
+
@param[out] entities The entities object retrieved.
|
173
|
+
@related SUEntityRef
|
174
|
+
@return
|
175
|
+
- \ref SU_ERROR_NONE on success
|
176
|
+
- \ref SU_ERROR_INVALID_INPUT if entity is not a valid object
|
177
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entities is NULL
|
178
|
+
- \ref SU_ERROR_NO_DATA if the entity is not contained by an entities object
|
179
|
+
*/
|
180
|
+
SU_RESULT SUEntityGetParentEntities(SUEntityRef entity, SUEntitiesRef* entities);
|
181
|
+
|
182
|
+
#ifdef __cplusplus
|
183
|
+
} // extern "C"
|
184
|
+
#endif
|
185
|
+
|
186
|
+
#endif // SKETCHUP_MODEL_ENTITY_H_
|
@@ -0,0 +1,80 @@
|
|
1
|
+
// Copyright 2017 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUEntityListRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_ENTITY_LIST_H_
|
8
|
+
#define SKETCHUP_MODEL_ENTITY_LIST_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/model/defs.h>
|
11
|
+
|
12
|
+
#ifdef __cplusplus
|
13
|
+
extern "C" {
|
14
|
+
#endif
|
15
|
+
|
16
|
+
/**
|
17
|
+
@struct SUEntityListRef
|
18
|
+
@brief References an entity list.
|
19
|
+
@since SketchUp 2018, API 6.0
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Creates an entity list object.
|
24
|
+
@since SketchUp 2018, API 6.0
|
25
|
+
@param[in,out] list The entity list object to be created.
|
26
|
+
@related SUEntityListRef
|
27
|
+
@return
|
28
|
+
- \ref SU_ERROR_NONE on success
|
29
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if list is NULL
|
30
|
+
- \ref SU_ERROR_OVERWRITE_VALID if list already references a valid object
|
31
|
+
*/
|
32
|
+
SU_RESULT SUEntityListCreate(SUEntityListRef* list);
|
33
|
+
|
34
|
+
/**
|
35
|
+
@brief Releases a list object.
|
36
|
+
@since SketchUp 2018, API 6.0
|
37
|
+
@param[in,out] list The list object to be released.
|
38
|
+
@related SUEntityListRef
|
39
|
+
@return
|
40
|
+
- \ref SU_ERROR_NONE on success
|
41
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if list is NULL
|
42
|
+
- \ref SU_ERROR_INVALID_INPUT if list does not reference a valid object
|
43
|
+
*/
|
44
|
+
SU_RESULT SUEntityListRelease(SUEntityListRef* list);
|
45
|
+
|
46
|
+
/**
|
47
|
+
@brief Sets the iterator reference to the beginning of the list. The given
|
48
|
+
iterator object must have been constructed using
|
49
|
+
SUEntityListIteratorCreate(). The iterator must be released using
|
50
|
+
SUEntityListIteratorRelease() when it is no longer needed.
|
51
|
+
@since SketchUp 2018, API 6.0
|
52
|
+
@param[in] list The list.
|
53
|
+
@param[out] iterator An iterator Ref reference the beginning of the list.
|
54
|
+
@related SUEntityListRef
|
55
|
+
@return
|
56
|
+
- \ref SU_ERROR_NONE on success
|
57
|
+
- \ref SU_ERROR_INVALID_INPUT if list is not a valid object
|
58
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if iterator is NULL
|
59
|
+
- \ref SU_ERROR_INVALID_OUTPUT if *iterator is not a valid object
|
60
|
+
*/
|
61
|
+
SU_RESULT SUEntityListBegin(SUEntityListRef list, SUEntityListIteratorRef* iterator);
|
62
|
+
|
63
|
+
/**
|
64
|
+
@brief Gets the number of entities in the list.
|
65
|
+
@since SketchUp 2018, API 6.0
|
66
|
+
@param[in] list The list object.
|
67
|
+
@param[out] count The list size.
|
68
|
+
@related SUEntityListRef
|
69
|
+
@return
|
70
|
+
- \ref SU_ERROR_NONE on success
|
71
|
+
- \ref SU_ERROR_INVALID_INPUT if list is not a valid object
|
72
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
|
73
|
+
*/
|
74
|
+
SU_RESULT SUEntityListSize(SUEntityListRef list, size_t* count);
|
75
|
+
|
76
|
+
#ifdef __cplusplus
|
77
|
+
} // extern "C"
|
78
|
+
#endif
|
79
|
+
|
80
|
+
#endif // SKETCHUP_MODEL_ENTITY_LIST_H_
|
@@ -0,0 +1,90 @@
|
|
1
|
+
// Copyright 2017 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUEntityListIteratorRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_ENTITY_LIST_ITERATOR_H_
|
8
|
+
#define SKETCHUP_MODEL_ENTITY_LIST_ITERATOR_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/model/defs.h>
|
11
|
+
|
12
|
+
#ifdef __cplusplus
|
13
|
+
extern "C" {
|
14
|
+
#endif
|
15
|
+
|
16
|
+
/**
|
17
|
+
@struct SUEntityListIteratorRef
|
18
|
+
@brief References an entity list iterator object.
|
19
|
+
@since SketchUp 2018, API 6.0
|
20
|
+
*/
|
21
|
+
|
22
|
+
/**
|
23
|
+
@brief Creates an entity list iterator object.
|
24
|
+
@since SketchUp 2018, API 6.0
|
25
|
+
@param[in,out] iterator The entity list iterator object to be created.
|
26
|
+
@related SUEntityListIteratorRef
|
27
|
+
@return
|
28
|
+
- \ref SU_ERROR_NONE on success
|
29
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if iterator is NULL
|
30
|
+
- \ref SU_ERROR_OVERWRITE_VALID if iterator already references a valid object
|
31
|
+
*/
|
32
|
+
SU_RESULT SUEntityListIteratorCreate(SUEntityListIteratorRef* iterator);
|
33
|
+
|
34
|
+
/**
|
35
|
+
@brief Releases a iterator object.
|
36
|
+
@since SketchUp 2018, API 6.0
|
37
|
+
@param[in,out] iterator The iterator object to be released.
|
38
|
+
@related SUEntityListIteratorRef
|
39
|
+
@return
|
40
|
+
- \ref SU_ERROR_NONE on success
|
41
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if iterator is NULL
|
42
|
+
- \ref SU_ERROR_INVALID_INPUT if iterator does not reference a valid object
|
43
|
+
*/
|
44
|
+
SU_RESULT SUEntityListIteratorRelease(SUEntityListIteratorRef* iterator);
|
45
|
+
|
46
|
+
/**
|
47
|
+
@brief Retrieves the specified entity pointer from the given iterator.
|
48
|
+
@since SketchUp 2018, API 6.0
|
49
|
+
@param[in] iterator The iterator from which to retrieve the entity.
|
50
|
+
@param[out] entity The entity reference retrieved.
|
51
|
+
@related SUEntityListIteratorRef
|
52
|
+
@return
|
53
|
+
- \ref SU_ERROR_NONE on success
|
54
|
+
- \ref SU_ERROR_INVALID_INPUT if iterator is not a valid object
|
55
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entity is NULL
|
56
|
+
- \ref SU_ERROR_NO_DATA if the iterator references an invalid entity
|
57
|
+
*/
|
58
|
+
SU_RESULT SUEntityListIteratorGetEntity(SUEntityListIteratorRef iterator, SUEntityRef* entity);
|
59
|
+
|
60
|
+
/**
|
61
|
+
@brief Increments the provided iterator.
|
62
|
+
@since SketchUp 2018, API 6.0
|
63
|
+
@param[in,out] iterator The iterator to be incremented.
|
64
|
+
@related SUEntityListIteratorRef
|
65
|
+
@return
|
66
|
+
- \ref SU_ERROR_NONE on success
|
67
|
+
- \ref SU_ERROR_INVALID_INPUT if iterator is not a valid object
|
68
|
+
- \ref SU_ERROR_OUT_OF_RANGE if reached the end of the collection
|
69
|
+
*/
|
70
|
+
SU_RESULT SUEntityListIteratorNext(SUEntityListIteratorRef iterator);
|
71
|
+
|
72
|
+
/**
|
73
|
+
@brief Checks if the iterator is still within range of the list.
|
74
|
+
@since SketchUp 2018, API 6.0
|
75
|
+
@param[in] iterator The iterator to be queried.
|
76
|
+
@param[out] in_range A boolean indicating if the iterator is in range.
|
77
|
+
@related SUEntityListIteratorRef
|
78
|
+
@return
|
79
|
+
- \ref SU_ERROR_NONE on success
|
80
|
+
- \ref SU_ERROR_INVALID_INPUT if iterator is not a valid object
|
81
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if in_range is NULL
|
82
|
+
- \ref SU_ERROR_OUT_OF_RANGE if the iterator is at the end of the collection
|
83
|
+
*/
|
84
|
+
SU_RESULT SUEntityListIteratorIsInRange(SUEntityListIteratorRef iterator, bool* in_range);
|
85
|
+
|
86
|
+
#ifdef __cplusplus
|
87
|
+
} // extern "C"
|
88
|
+
#endif
|
89
|
+
|
90
|
+
#endif // SKETCHUP_MODEL_ENTITY_LIST_ITERATOR_H_
|