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,244 @@
|
|
1
|
+
// Copyright 2013 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUGroupRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_GROUP_H_
|
8
|
+
#define SKETCHUP_MODEL_GROUP_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/unicodestring.h>
|
12
|
+
#include <SketchUpAPI/transformation.h>
|
13
|
+
#include <SketchUpAPI/model/defs.h>
|
14
|
+
|
15
|
+
#ifdef __cplusplus
|
16
|
+
extern "C" {
|
17
|
+
#endif
|
18
|
+
|
19
|
+
/**
|
20
|
+
@struct SUGroupRef
|
21
|
+
@extends SUComponentInstanceRef
|
22
|
+
@brief References a group object.
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
@brief Converts from an \ref SUGroupRef to an \ref SUEntityRef.
|
27
|
+
This is essentially an upcast operation.
|
28
|
+
@param[in] group The given group reference.
|
29
|
+
@related SUGroupRef
|
30
|
+
@return
|
31
|
+
- The converted \ref SUEntityRef if group is a valid group
|
32
|
+
- If not, the returned reference will be invalid
|
33
|
+
*/
|
34
|
+
SU_EXPORT SUEntityRef SUGroupToEntity(SUGroupRef group);
|
35
|
+
|
36
|
+
/**
|
37
|
+
@brief Converts from an \ref SUEntityRef to an \ref SUGroupRef.
|
38
|
+
This is essentially a downcast operation so the given entity must be
|
39
|
+
convertible to an SUGroupRef.
|
40
|
+
@param[in] entity The given entity reference.
|
41
|
+
@related SUGroupRef
|
42
|
+
@return
|
43
|
+
- The converted \ref SUGroupRef if the downcast operation succeeds
|
44
|
+
- If not, the returned reference will be invalid
|
45
|
+
*/
|
46
|
+
SU_EXPORT SUGroupRef SUGroupFromEntity(SUEntityRef entity);
|
47
|
+
|
48
|
+
/**
|
49
|
+
@brief Converts from an \ref SUGroupRef to an \ref SUDrawingElementRef.
|
50
|
+
This is essentially an upcast operation.
|
51
|
+
@param[in] group The given group reference.
|
52
|
+
@related SUGroupRef
|
53
|
+
@return
|
54
|
+
- The converted \ref SUDrawingElementRef if group is a valid group
|
55
|
+
- If not, the returned reference will be invalid
|
56
|
+
*/
|
57
|
+
SU_EXPORT SUDrawingElementRef SUGroupToDrawingElement(SUGroupRef group);
|
58
|
+
|
59
|
+
/**
|
60
|
+
@brief Converts from an \ref SUDrawingElementRef to an \ref SUGroupRef.
|
61
|
+
This is essentially a downcast operation so the given element must be
|
62
|
+
convertible to an SUGroupRef.
|
63
|
+
@param[in] drawing_elem The given element reference.
|
64
|
+
@related SUGroupRef
|
65
|
+
@return
|
66
|
+
- The converted \ref SUGroupRef if the downcast operation succeeds
|
67
|
+
- If not, the returned reference will be invalid
|
68
|
+
*/
|
69
|
+
SU_EXPORT SUGroupRef SUGroupFromDrawingElement(SUDrawingElementRef drawing_elem);
|
70
|
+
|
71
|
+
/**
|
72
|
+
@brief Converts from an \ref SUGroupRef to an \ref SUComponentInstanceRef.
|
73
|
+
This is essentially an upcast operation.
|
74
|
+
@since SketchUp 2016, API 4.0
|
75
|
+
@param[in] group The given group reference.
|
76
|
+
@related SUGroupRef
|
77
|
+
@return
|
78
|
+
- The converted \ref SUComponentInstanceRef if group is a valid group
|
79
|
+
- If not, the returned reference will be invalid
|
80
|
+
*/
|
81
|
+
SU_EXPORT SUComponentInstanceRef SUGroupToComponentInstance(SUGroupRef group);
|
82
|
+
|
83
|
+
/**
|
84
|
+
@brief Converts from an \ref SUComponentInstanceRef to an \ref SUGroupRef. This
|
85
|
+
is essentially a downcast operation so the given element must be
|
86
|
+
convertible to an SUGroupRef.
|
87
|
+
@since SketchUp 2016, API 4.0
|
88
|
+
@param[in] component_inst The given component instance reference.
|
89
|
+
@related SUGroupRef
|
90
|
+
@return
|
91
|
+
- The converted \ref SUGroupRef if the downcast operation succeeds
|
92
|
+
- If not, the returned reference will be invalid
|
93
|
+
*/
|
94
|
+
SU_EXPORT SUGroupRef SUGroupFromComponentInstance(SUComponentInstanceRef component_inst);
|
95
|
+
|
96
|
+
/**
|
97
|
+
@brief Creates a new group object.
|
98
|
+
|
99
|
+
The created group must be subsequently added to the Entities of a model,
|
100
|
+
component definition or a group. Use SUModelRemoveComponentDefinitions() to
|
101
|
+
remove the group from a model.
|
102
|
+
@param[out] group The group object created.
|
103
|
+
@related SUGroupRef
|
104
|
+
@return
|
105
|
+
- \ref SU_ERROR_NONE on success
|
106
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if group is NULL
|
107
|
+
*/
|
108
|
+
SU_RESULT SUGroupCreate(SUGroupRef* group);
|
109
|
+
|
110
|
+
/**
|
111
|
+
@brief Sets the name of a group object.
|
112
|
+
@param[in] group The group object.
|
113
|
+
@param[in] name The name string to set the group object.
|
114
|
+
Assumed to be UTF-8 encoded.
|
115
|
+
@related SUGroupRef
|
116
|
+
@return
|
117
|
+
- \ref SU_ERROR_NONE on success
|
118
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
119
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
120
|
+
*/
|
121
|
+
SU_RESULT SUGroupSetName(SUGroupRef group, const char* name);
|
122
|
+
|
123
|
+
/**
|
124
|
+
@brief Retrieves the name of a group object.
|
125
|
+
@param[in] group The group object.
|
126
|
+
@param[out] name The name retrieved.
|
127
|
+
@related SUGroupRef
|
128
|
+
@return
|
129
|
+
- \ref SU_ERROR_NONE on success
|
130
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
131
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
|
132
|
+
- \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
|
133
|
+
SUStringRef object
|
134
|
+
*/
|
135
|
+
SU_RESULT SUGroupGetName(SUGroupRef group, SUStringRef* name);
|
136
|
+
|
137
|
+
/**
|
138
|
+
@brief Retrieves the globally unique identifier (guid) string of a group object.
|
139
|
+
@since SketchUp 2015, API 3.0
|
140
|
+
@param[in] group The group object.
|
141
|
+
@param[out] guid The guid retrieved.
|
142
|
+
@related SUGroupRef
|
143
|
+
@return
|
144
|
+
- \ref SU_ERROR_NONE on success
|
145
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
146
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if guid is NULL
|
147
|
+
- \ref SU_ERROR_INVALID_OUTPUT if guid does not point to a valid \ref
|
148
|
+
SUStringRef object
|
149
|
+
*/
|
150
|
+
SU_RESULT SUGroupGetGuid(SUGroupRef group, SUStringRef* guid);
|
151
|
+
|
152
|
+
/**
|
153
|
+
@brief Sets the globally unique identifier (guid) string of a group object.
|
154
|
+
@since SketchUp 2015, API 3.0
|
155
|
+
@param[in] group The group object.
|
156
|
+
@param[in] guid_str The utf-8 formatted guid string.
|
157
|
+
@related SUGroupRef
|
158
|
+
@return
|
159
|
+
- \ref SU_ERROR_NONE on success
|
160
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
161
|
+
- \ref SU_ERROR_INVALID_INPUT if guid is NULL or invalid
|
162
|
+
*/
|
163
|
+
SU_RESULT SUGroupSetGuid(SUGroupRef group, const char* guid_str);
|
164
|
+
|
165
|
+
/**
|
166
|
+
@brief Sets the transform of a group object.
|
167
|
+
|
168
|
+
The transform is relative to the parent component. If the parent component is
|
169
|
+
the root component of a model, then the transform is relative to absolute
|
170
|
+
coordinates.
|
171
|
+
@param[in] group The group object.
|
172
|
+
@param[in] transform The affine transform to set.
|
173
|
+
@related SUGroupRef
|
174
|
+
@return
|
175
|
+
- \ref SU_ERROR_NONE on success
|
176
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object.
|
177
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if transform is NULL.
|
178
|
+
*/
|
179
|
+
SU_RESULT SUGroupSetTransform(SUGroupRef group, const struct SUTransformation* transform);
|
180
|
+
|
181
|
+
/**
|
182
|
+
@brief Retrieves the transform of a group object.
|
183
|
+
|
184
|
+
See description of SUGroupSetTransform for a discussion of group transforms.
|
185
|
+
@param[in] group The group object.
|
186
|
+
@param[out] transform The transform retrieved.
|
187
|
+
@related SUGroupRef
|
188
|
+
@return
|
189
|
+
- \ref SU_ERROR_NONE on success
|
190
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
191
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if transform is NULL
|
192
|
+
*/
|
193
|
+
SU_RESULT SUGroupGetTransform(SUGroupRef group, struct SUTransformation* transform);
|
194
|
+
|
195
|
+
/**
|
196
|
+
@brief Retrieves the entities of the group object.
|
197
|
+
@param[in] group The group object.
|
198
|
+
@param[out] entities The entities retrieved.
|
199
|
+
@related SUGroupRef
|
200
|
+
@return
|
201
|
+
- \ref SU_ERROR_NONE on success
|
202
|
+
- \ref SU_ERROR_INVALID_INPUT if group is not a valid object
|
203
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if entities is NULL
|
204
|
+
- \ref SU_ERROR_OVERWRITE_VALID if entities reference object is valid
|
205
|
+
*/
|
206
|
+
SU_RESULT SUGroupGetEntities(SUGroupRef group, SUEntitiesRef* entities);
|
207
|
+
|
208
|
+
/**
|
209
|
+
@brief Retrieves the component definition of a group object.
|
210
|
+
@since SketchUp 2014, API 2.0
|
211
|
+
@param[in] group The group object.
|
212
|
+
@param[out] component The component definition retrieved.
|
213
|
+
@related SUGroupRef
|
214
|
+
@return
|
215
|
+
- \ref SU_ERROR_NONE on success
|
216
|
+
- \ref SU_ERROR_INVALID_INPUT if \p group is not a valid object
|
217
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p component is NULL
|
218
|
+
- \ref SU_ERROR_OVERWRITE_VALID if \p component already refers to a valid object
|
219
|
+
*/
|
220
|
+
SU_RESULT SUGroupGetDefinition(SUGroupRef group, SUComponentDefinitionRef* component);
|
221
|
+
|
222
|
+
/* The cond/endcond block will ensure that any code or comment keywords will be
|
223
|
+
ignored by the Doxygen parser and will not appear in any documentation */
|
224
|
+
///**@cond
|
225
|
+
//@brief Explodes a group into separate entities.
|
226
|
+
//@since SketchUp 2016, API 4.0
|
227
|
+
//@param[in] group The group object.
|
228
|
+
//@param[out] entities Array of entity pointers returned
|
229
|
+
//@related SUGroupRef
|
230
|
+
//@return
|
231
|
+
//- \ref SU_ERROR_NONE on success
|
232
|
+
//- \ref SU_ERROR_INVALID_INPUT if group is invalid
|
233
|
+
//- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_locked is NULL
|
234
|
+
// SUStringRef object
|
235
|
+
//*/
|
236
|
+
// SU_RESULT SUGroupExplode(SUGroupRef group, bool* is_locked);
|
237
|
+
|
238
|
+
/** @endcond */
|
239
|
+
|
240
|
+
#ifdef __cplusplus
|
241
|
+
} // extern "C"
|
242
|
+
#endif
|
243
|
+
|
244
|
+
#endif // SKETCHUP_MODEL_GROUP_H_
|
@@ -0,0 +1,155 @@
|
|
1
|
+
// Copyright 2014 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUGuideLineRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_GUIDE_LINE_H_
|
8
|
+
#define SKETCHUP_MODEL_GUIDE_LINE_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/geometry.h>
|
12
|
+
#include <SketchUpAPI/model/defs.h>
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUGuideLineRef
|
20
|
+
@extends SUDrawingElementRef
|
21
|
+
@brief A guide line that has a start and end position.
|
22
|
+
@since SketchUp 2016, API 4.0
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
@brief Converts from an \ref SUGuideLineRef to an \ref SUEntityRef. This is
|
27
|
+
essentially an upcast operation.
|
28
|
+
@since SketchUp 2016, API 4.0
|
29
|
+
@param[in] guide_line The guide line object.
|
30
|
+
@related SUGuideLineRef
|
31
|
+
@return
|
32
|
+
- The converted \ref SUEntityRef if guide_line is a valid object
|
33
|
+
- If not, the returned reference will be invalid
|
34
|
+
*/
|
35
|
+
SU_EXPORT SUEntityRef SUGuideLineToEntity(SUGuideLineRef guide_line);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Converts from an \ref SUEntityRef to an \ref SUGuideLineRef.
|
39
|
+
This is essentially a downcast operation so the given \ref SUEntityRef
|
40
|
+
must be convertible to an \ref SUGuideLineRef.
|
41
|
+
@since SketchUp 2016, API 4.0
|
42
|
+
@param[in] entity The entity object.
|
43
|
+
@related SUGuideLineRef
|
44
|
+
@return
|
45
|
+
- The converted \ref SUGuideLineRef if the downcast operation succeeds
|
46
|
+
- If the downcast operation fails, the returned reference will be invalid
|
47
|
+
*/
|
48
|
+
SU_EXPORT SUGuideLineRef SUGuideLineFromEntity(SUEntityRef entity);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Converts from an \ref SUGuideLineRef to an \ref SUDrawingElementRef.
|
52
|
+
This is essentially an upcast operation.
|
53
|
+
@since SketchUp 2016, API 4.0
|
54
|
+
@param[in] guide_line The given guide line reference.
|
55
|
+
@related SUGuideLineRef
|
56
|
+
@return
|
57
|
+
- The converted \ref SUEntityRef if guide_line is a valid guide line
|
58
|
+
- If not, the returned reference will be invalid
|
59
|
+
*/
|
60
|
+
SU_EXPORT SUDrawingElementRef SUGuideLineToDrawingElement(SUGuideLineRef guide_line);
|
61
|
+
|
62
|
+
/**
|
63
|
+
@brief Converts from an \ref SUDrawingElementRef to an \ref SUGuideLineRef.
|
64
|
+
This is essentially a downcast operation so the given element must be
|
65
|
+
convertible to an \ref SUGuideLineRef.
|
66
|
+
@since SketchUp 2016, API 4.0
|
67
|
+
@param[in] drawing_elem The given element reference.
|
68
|
+
@related SUGuideLineRef
|
69
|
+
@return
|
70
|
+
- The converted \ref SUGuideLineRef if the downcast operation succeeds
|
71
|
+
- If not, the returned reference will be invalid.
|
72
|
+
*/
|
73
|
+
SU_EXPORT SUGuideLineRef SUGuideLineFromDrawingElement(SUDrawingElementRef drawing_elem);
|
74
|
+
|
75
|
+
/**
|
76
|
+
@brief Creates a finite guide line object. The guide line object must be
|
77
|
+
subsequently deallocated with \ref SUGuideLineRelease() unless it is
|
78
|
+
associated with a parent object. The generated line will be a segment
|
79
|
+
with start and end points. The end point can be obtained by adding the
|
80
|
+
direction vector to the start point.
|
81
|
+
@since SketchUp 2016, API 4.0
|
82
|
+
@param[in] guide_line The guide line object.
|
83
|
+
@param[out] start The guide line start position.
|
84
|
+
@param[out] end The guide line end position.
|
85
|
+
@related SUGuideLineRef
|
86
|
+
@return
|
87
|
+
- \ref SU_ERROR_NONE on success
|
88
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if guide_line is NULL
|
89
|
+
- \ref SU_ERROR_OVERWRITE_VALID if guide_line references a valid object
|
90
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if start or end is NULL
|
91
|
+
*/
|
92
|
+
SU_RESULT SUGuideLineCreateFinite(
|
93
|
+
SUGuideLineRef* guide_line, const struct SUPoint3D* start, const struct SUPoint3D* end);
|
94
|
+
|
95
|
+
/**
|
96
|
+
@brief Creates a infinite guide line object. The guide line object must be
|
97
|
+
subsequently deallocated with \ref SUGuideLineRelease() unless it is
|
98
|
+
associated with a parent object. The generated line will be infinite.
|
99
|
+
Defined with a point along the line and a direction vector.
|
100
|
+
@since SketchUp 2016, API 4.0
|
101
|
+
@param[in] guide_line The guide line object.
|
102
|
+
@param[out] point A point on the guide line.
|
103
|
+
@param[out] direction The guide line direction vector.
|
104
|
+
@related SUGuideLineRef
|
105
|
+
@return
|
106
|
+
- \ref SU_ERROR_NONE on success
|
107
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if guide_line is NULL
|
108
|
+
- \ref SU_ERROR_OVERWRITE_VALID if guide_line references a valid object
|
109
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if start or end is NULL
|
110
|
+
*/
|
111
|
+
SU_RESULT SUGuideLineCreateInfinite(
|
112
|
+
SUGuideLineRef* guide_line, const struct SUPoint3D* point, const struct SUVector3D* direction);
|
113
|
+
|
114
|
+
/**
|
115
|
+
@brief Releases a guide line object. The guide line object must have been
|
116
|
+
created with \ref SUGuideLineCreateFinite() or \ref
|
117
|
+
SUGuideLineCreateInfinite and not subsequently associated with a parent
|
118
|
+
object (e.g. \ref SUEntitiesRef).
|
119
|
+
@since SketchUp 2016, API 4.0
|
120
|
+
@param[in] guide_line The guide line object.
|
121
|
+
@related SUGuideLineRef
|
122
|
+
@return
|
123
|
+
- \ref SU_ERROR_NONE on success
|
124
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if guide_line is NULL
|
125
|
+
- \ref SU_ERROR_INVALID_INPUT if guide_line does not reference a valid object
|
126
|
+
*/
|
127
|
+
SU_RESULT SUGuideLineRelease(SUGuideLineRef* guide_line);
|
128
|
+
|
129
|
+
/**
|
130
|
+
@brief Retrieves the data defining the line (a point, a direction vector, and a
|
131
|
+
boolean flagging if the line is infinite). For finite lines \p start
|
132
|
+
is the start point, and the end point can be obtained by adding
|
133
|
+
the direction vector (\p direction) to the start point (\p start).
|
134
|
+
For infinite lines \p start is simply a point on the guide line, and
|
135
|
+
\p direction is always a unit vector.
|
136
|
+
@since SketchUp 2016, API 4.0
|
137
|
+
@param[in] guide_line The guide line object.
|
138
|
+
@param[out] start A point on the guide line.
|
139
|
+
@param[out] direction The guide line direction.
|
140
|
+
@param[out] isinfinite returns true if infinite otherwise returns false
|
141
|
+
@related SUGuideLineRef
|
142
|
+
@return
|
143
|
+
- \ref SU_ERROR_NONE on success
|
144
|
+
- \ref SU_ERROR_INVALID_INPUT if guide line is an invalid object
|
145
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if start, direction, or isinfinite is NULL
|
146
|
+
*/
|
147
|
+
SU_RESULT SUGuideLineGetData(
|
148
|
+
SUGuideLineRef guide_line, struct SUPoint3D* start, struct SUVector3D* direction,
|
149
|
+
bool* isinfinite);
|
150
|
+
|
151
|
+
#ifdef __cplusplus
|
152
|
+
} // extern "C"
|
153
|
+
#endif
|
154
|
+
|
155
|
+
#endif // SKETCHUP_MODEL_GUIDE_LINE_H_
|
@@ -0,0 +1,153 @@
|
|
1
|
+
// Copyright 2014 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUGuidePointRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_GUIDE_POINT_H_
|
8
|
+
#define SKETCHUP_MODEL_GUIDE_POINT_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/common.h>
|
11
|
+
#include <SketchUpAPI/geometry.h>
|
12
|
+
#include <SketchUpAPI/model/defs.h>
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUGuidePointRef
|
20
|
+
@extends SUDrawingElementRef
|
21
|
+
@brief A guide point that has a position.
|
22
|
+
@since SketchUp 2014 M1, API 2.1
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
@brief Converts from an \ref SUGuidePointRef to an \ref SUEntityRef. This is
|
27
|
+
essentially an upcast operation.
|
28
|
+
@since SketchUp 2014 M1, API 2.1
|
29
|
+
@param[in] guide_point The guide point object.
|
30
|
+
@related SUGuidePointRef
|
31
|
+
@return
|
32
|
+
- The converted \ref SUEntityRef if guide_point is a valid object
|
33
|
+
- If not, the returned reference will be invalid
|
34
|
+
*/
|
35
|
+
SU_EXPORT SUEntityRef SUGuidePointToEntity(SUGuidePointRef guide_point);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Converts from an \ref SUEntityRef to an \ref SUGuidePointRef.
|
39
|
+
This is essentially a downcast operation so the given \ref SUEntityRef
|
40
|
+
must be convertible to an \ref SUGuidePointRef.
|
41
|
+
@since SketchUp 2014 M1, API 2.1
|
42
|
+
@param[in] entity The entity object.
|
43
|
+
@related SUGuidePointRef
|
44
|
+
@return
|
45
|
+
- The converted \ref SUGuidePointRef if the downcast operation succeeds
|
46
|
+
- If the downcast operation fails, the returned reference will be invalid
|
47
|
+
*/
|
48
|
+
SU_EXPORT SUGuidePointRef SUGuidePointFromEntity(SUEntityRef entity);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Converts from an \ref SUGuidePointRef to an \ref SUDrawingElementRef.
|
52
|
+
This is essentially an upcast operation.
|
53
|
+
@since SketchUp 2015 M0, API 3.0
|
54
|
+
@param[in] guide_point The given guide point reference.
|
55
|
+
@related SUGuidePointRef
|
56
|
+
@return
|
57
|
+
- The converted \ref SUEntityRef if guide_point is a valid guide point.
|
58
|
+
- If not, the returned reference will be invalid.
|
59
|
+
*/
|
60
|
+
SU_EXPORT SUDrawingElementRef SUGuidePointToDrawingElement(SUGuidePointRef guide_point);
|
61
|
+
|
62
|
+
/**
|
63
|
+
@brief Converts from an \ref SUDrawingElementRef to an \ref SUGuidePointRef.
|
64
|
+
This is essentially a downcast operation so the given element must be
|
65
|
+
convertible to an SUGuidePointRef.
|
66
|
+
@since SketchUp 2015 M0, API 3.0
|
67
|
+
@param[in] drawing_elem The given element reference.
|
68
|
+
@related SUGuidePointRef
|
69
|
+
@return
|
70
|
+
- The converted \ref SUGuidePointRef if the downcast operation succeeds
|
71
|
+
- If not, the returned reference will be invalid
|
72
|
+
*/
|
73
|
+
SU_EXPORT SUGuidePointRef SUGuidePointFromDrawingElement(SUDrawingElementRef drawing_elem);
|
74
|
+
|
75
|
+
/**
|
76
|
+
@brief Creates a guide point object. The guide point object must be subsequently
|
77
|
+
deallocated with \ref SUGuidePointRelease() unless it is associated with
|
78
|
+
a parent object.
|
79
|
+
@since SketchUp 2014 M1, API 2.1
|
80
|
+
@param[in] guide_point The guide point object.
|
81
|
+
@param[out] position The guide point position.
|
82
|
+
@related SUGuidePointRef
|
83
|
+
@return
|
84
|
+
- \ref SU_ERROR_NONE on success
|
85
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if guide_point is NULL
|
86
|
+
- \ref SU_ERROR_OVERWRITE_VALID if guide_point references a valid object
|
87
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if position is NULL
|
88
|
+
*/
|
89
|
+
SU_RESULT SUGuidePointCreate(SUGuidePointRef* guide_point, const struct SUPoint3D* position);
|
90
|
+
|
91
|
+
/**
|
92
|
+
@brief Releases a guide point object. The guide point object must have been
|
93
|
+
created with SUGuidePointCreate() and not subsequently associated
|
94
|
+
with a parent object (e.g. SUEntitiesAddGuidePoints()).
|
95
|
+
@since SketchUp 2014 M1, API 2.1
|
96
|
+
@param[in] guide_point The guide point object.
|
97
|
+
@related SUGuidePointRef
|
98
|
+
@return
|
99
|
+
- \ref SU_ERROR_NONE on success
|
100
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if guide_point is NULL
|
101
|
+
- \ref SU_ERROR_INVALID_INPUT if guide_point does not reference a valid object
|
102
|
+
*/
|
103
|
+
SU_RESULT SUGuidePointRelease(SUGuidePointRef* guide_point);
|
104
|
+
|
105
|
+
/**
|
106
|
+
@brief Retrieves the position of a guide point object.
|
107
|
+
@since SketchUp 2014 M1, API 2.1
|
108
|
+
@param[in] guide_point The guide point object.
|
109
|
+
@param[out] position The guide point position.
|
110
|
+
@related SUGuidePointRef
|
111
|
+
@return
|
112
|
+
- \ref SU_ERROR_NONE on success
|
113
|
+
- \ref SU_ERROR_INVALID_INPUT if guide point is an invalid object
|
114
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if position is NULL
|
115
|
+
*/
|
116
|
+
SU_RESULT SUGuidePointGetPosition(SUGuidePointRef guide_point, struct SUPoint3D* position);
|
117
|
+
|
118
|
+
/**
|
119
|
+
@brief Retrieves the anchor position of a guide point object. If the point was
|
120
|
+
created in SketchUp then the anchor is the position that was first
|
121
|
+
clicked during the point creation. If the point was created with \ref
|
122
|
+
SUGuidePointCreate the anchor is the origin.
|
123
|
+
@since SketchUp 2016, API 4.0
|
124
|
+
@param[in] guide_point The guide point object.
|
125
|
+
@param[out] position The guide point anchor position.
|
126
|
+
@related SUGuidePointRef
|
127
|
+
@return
|
128
|
+
- \ref SU_ERROR_NONE on success
|
129
|
+
- \ref SU_ERROR_INVALID_INPUT if guide point is an invalid object
|
130
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if position is NULL
|
131
|
+
*/
|
132
|
+
SU_RESULT SUGuidePointGetFromPosition(SUGuidePointRef guide_point, struct SUPoint3D* position);
|
133
|
+
|
134
|
+
/**
|
135
|
+
@brief Retrieves the boolean indicating if the point should be displayed as a
|
136
|
+
line.
|
137
|
+
@since SketchUp 2016, API 4.0
|
138
|
+
@param[in] guide_point The guide point object.
|
139
|
+
@param[out] as_line Return true if the point is set to be displayed as a
|
140
|
+
line.
|
141
|
+
@related SUGuidePointRef
|
142
|
+
@return
|
143
|
+
- \ref SU_ERROR_NONE on success
|
144
|
+
- \ref SU_ERROR_INVALID_INPUT if guide point is an invalid object
|
145
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if as_line is NULL
|
146
|
+
*/
|
147
|
+
SU_RESULT SUGuidePointGetDisplayAsLine(SUGuidePointRef guide_point, bool* as_line);
|
148
|
+
|
149
|
+
#ifdef __cplusplus
|
150
|
+
} // extern "C"
|
151
|
+
#endif
|
152
|
+
|
153
|
+
#endif // SKETCHUP_MODEL_GUIDE_POINT_H_
|