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,194 @@
|
|
1
|
+
// Copyright 2016 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUDimensionRadialRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_DIMENSION_RADIAL_H_
|
8
|
+
#define SKETCHUP_MODEL_DIMENSION_RADIAL_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/geometry.h>
|
11
|
+
#include <SketchUpAPI/model/defs.h>
|
12
|
+
|
13
|
+
#ifdef __cplusplus
|
14
|
+
extern "C" {
|
15
|
+
#endif
|
16
|
+
|
17
|
+
/**
|
18
|
+
@struct SUDimensionRadialRef
|
19
|
+
@extends SUDimensionRef
|
20
|
+
@brief A radial dimension entity reference.
|
21
|
+
@since SketchUp 2017, API 5.0
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Converts from an \ref SUDimensionRadialRef to an \ref SUDimensionRef.
|
26
|
+
This is essentially an upcast operation.
|
27
|
+
@since SketchUp 2017, API 5.0
|
28
|
+
@param[in] dimension The given dimension reference.
|
29
|
+
@related SUDimensionRadialRef
|
30
|
+
@return
|
31
|
+
- The converted \ref SUDimensionRef if dimension is a valid object
|
32
|
+
- If not, the returned reference will be invalid
|
33
|
+
*/
|
34
|
+
SU_EXPORT SUDimensionRef SUDimensionRadialToDimension(SUDimensionRadialRef dimension);
|
35
|
+
|
36
|
+
/**
|
37
|
+
@brief Converts from an SUDimensionRef to an \ref SUDimensionRadialRef. This is
|
38
|
+
essentially a downcast operation so the given SUDimensionRef must be
|
39
|
+
convertible to an \ref SUDimensionRadialRef.
|
40
|
+
@since SketchUp 2017, API 5.0
|
41
|
+
@param[in] dimension The given dimension reference.
|
42
|
+
@related SUDimensionRadialRef
|
43
|
+
@return
|
44
|
+
- The converted \ref SUDimensionRadialRef if the downcast operation succeeds
|
45
|
+
- If not, the returned reference will be invalid
|
46
|
+
*/
|
47
|
+
SU_EXPORT SUDimensionRadialRef SUDimensionRadialFromDimension(SUDimensionRef dimension);
|
48
|
+
|
49
|
+
/**
|
50
|
+
@brief Creates a new radial dimension for measuring the provided arccurve.
|
51
|
+
@since SketchUp 2017, API 5.0
|
52
|
+
@param[in,out] dimension The dimension object created.
|
53
|
+
@param[in] path The and instance path to the arccurve to be measured.
|
54
|
+
@related SUDimensionRadialRef
|
55
|
+
@return
|
56
|
+
- \ref SU_ERROR_NONE on success
|
57
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if dimension is NULL
|
58
|
+
- \ref SU_ERROR_OVERWRITE_VALID if dimension already references a valid object
|
59
|
+
- \ref SU_ERROR_INVALID_INPUT if path is not a valid object
|
60
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if path is valid but refers to an invalid
|
61
|
+
instance path
|
62
|
+
- \ref SU_ERROR_GENERIC if path refers to a valid instance path but the path's
|
63
|
+
leaf is not an arccurve
|
64
|
+
*/
|
65
|
+
SU_RESULT SUDimensionRadialCreate(SUDimensionRadialRef* dimension, SUInstancePathRef path);
|
66
|
+
|
67
|
+
/**
|
68
|
+
@brief Releases a dimension object.
|
69
|
+
@since SketchUp 2017, API 5.0
|
70
|
+
@param[in] dimension The dimension object.
|
71
|
+
@related SUDimensionRadialRef
|
72
|
+
@return
|
73
|
+
- \ref SU_ERROR_NONE on success
|
74
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is an invalid object
|
75
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if dimension is NULL
|
76
|
+
*/
|
77
|
+
SU_RESULT SUDimensionRadialRelease(SUDimensionRadialRef* dimension);
|
78
|
+
|
79
|
+
/**
|
80
|
+
@brief Retrieves the arccurve instance being mesured by a dimension object. The
|
81
|
+
given instance path object either must have been constructed using one
|
82
|
+
of the SUInstancePathCreate* functions or it will be generated on the
|
83
|
+
fly if it is invalid. It must be released using
|
84
|
+
SUInstancePathRelease() when it is no longer needed.
|
85
|
+
@since SketchUp 2017, API 5.0
|
86
|
+
@param[in] dimension The dimension object.
|
87
|
+
@param[out] path The instance path retrieved.
|
88
|
+
@related SUDimensionRadialRef
|
89
|
+
@return
|
90
|
+
- \ref SU_ERROR_NONE on success
|
91
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
92
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if path is NULL
|
93
|
+
*/
|
94
|
+
SU_RESULT SUDimensionRadialGetCurveInstancePath(
|
95
|
+
SUDimensionRadialRef dimension, SUInstancePathRef* path);
|
96
|
+
|
97
|
+
/**
|
98
|
+
@brief Sets which arccurve instance is measured by the radial dimension. The
|
99
|
+
instance path's leaf entity must be an arccurve for this method to
|
100
|
+
succeed.
|
101
|
+
@since SketchUp 2017, API 5.0
|
102
|
+
@param[in] dimension The dimension object modified.
|
103
|
+
@param[in] path The and instance path to the arccurve to be measured.
|
104
|
+
@related SUDimensionRadialRef
|
105
|
+
@return
|
106
|
+
- \ref SU_ERROR_NONE on success
|
107
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension or path are not valid objects
|
108
|
+
- \ref SU_ERROR_INVALID_ARGUMENT if path is valid but refers to an invalid
|
109
|
+
instance path
|
110
|
+
- \ref SU_ERROR_GENERIC if path refers to a valid instance path but the path's
|
111
|
+
leaf is not an arccurve
|
112
|
+
*/
|
113
|
+
SU_RESULT SUDimensionRadialSetCurveInstancePath(
|
114
|
+
SUDimensionRadialRef dimension, SUInstancePathRef path);
|
115
|
+
|
116
|
+
/**
|
117
|
+
@brief Retrieves whether the dimension is a diameter. Radial dimensions can be
|
118
|
+
used to measure either diameter or radius.
|
119
|
+
@since SketchUp 2017, API 5.0
|
120
|
+
@param[in] dimension The dimension object.
|
121
|
+
@param[out] is_diameter The flag value retrieved.
|
122
|
+
@related SUDimensionRadialRef
|
123
|
+
@return
|
124
|
+
- \ref SU_ERROR_NONE on success
|
125
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
126
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_diameter is NULL
|
127
|
+
*/
|
128
|
+
SU_RESULT SUDimensionRadialGetDiameter(SUDimensionRadialRef dimension, bool* is_diameter);
|
129
|
+
|
130
|
+
/**
|
131
|
+
@brief Sets whether the dimension measures diameter or radius.
|
132
|
+
@since SketchUp 2017, API 5.0
|
133
|
+
@param[in] dimension The dimension object.
|
134
|
+
@param[in] is_diameter The flag specifying if the dimension measures diameter.
|
135
|
+
@related SUDimensionRadialRef
|
136
|
+
@return
|
137
|
+
- \ref SU_ERROR_NONE on success
|
138
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
139
|
+
*/
|
140
|
+
SU_RESULT SUDimensionRadialSetDiameter(SUDimensionRadialRef dimension, bool is_diameter);
|
141
|
+
|
142
|
+
/**
|
143
|
+
@brief Gets the radial dimension's leader line break point. The leader line
|
144
|
+
break point is the point where the leader line bends towards the
|
145
|
+
dimension label.
|
146
|
+
@since SketchUp 2017, API 5.0
|
147
|
+
@param[in] dimension The dimension object.
|
148
|
+
@param[out] point The point retrieved.
|
149
|
+
@related SUDimensionRadialRef
|
150
|
+
@return
|
151
|
+
- \ref SU_ERROR_NONE on success
|
152
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
153
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if point is NULL
|
154
|
+
*/
|
155
|
+
SU_RESULT SUDimensionRadialGetLeaderBreakPoint(
|
156
|
+
SUDimensionRadialRef dimension, struct SUPoint3D* point);
|
157
|
+
|
158
|
+
/**
|
159
|
+
@brief Sets the radial dimension's leader break point
|
160
|
+
@since SketchUp 2017, API 5.0
|
161
|
+
@param[in] dimension The dimension object.
|
162
|
+
@param[in] point The point retrieved.
|
163
|
+
@related SUDimensionRadialRef
|
164
|
+
@return
|
165
|
+
- \ref SU_ERROR_NONE on success
|
166
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
167
|
+
- \ref SU_ERROR_NULL_POINTER_INPUT if point is NULL
|
168
|
+
*/
|
169
|
+
SU_RESULT SUDimensionRadialSetLeaderBreakPoint(
|
170
|
+
SUDimensionRadialRef dimension, const struct SUPoint3D* point);
|
171
|
+
|
172
|
+
/**
|
173
|
+
@brief Retrieves the a dimension object's leader points. The three returned
|
174
|
+
pointe are [0] the point at which the dimension's text touches the
|
175
|
+
leader line, [1] the point at which the dimension's arrow attaches to
|
176
|
+
the dimensioned curve, [2] the point on the dimensioned curve's full
|
177
|
+
circle opposite of point [1].
|
178
|
+
@since SketchUp 2017, API 5.0
|
179
|
+
@param[in] dimension The dimension object.
|
180
|
+
@param[out] points The array of 3 3d points retrieved.
|
181
|
+
@related SUDimensionRadialRef
|
182
|
+
@return
|
183
|
+
- \ref SU_ERROR_NONE on success
|
184
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
185
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if points is NULL
|
186
|
+
*/
|
187
|
+
SU_RESULT SUDimensionRadialGetLeaderPoints(
|
188
|
+
SUDimensionRadialRef dimension, struct SUPoint3D points[3]);
|
189
|
+
|
190
|
+
#ifdef __cplusplus
|
191
|
+
} // extern "C"
|
192
|
+
#endif
|
193
|
+
|
194
|
+
#endif // SKETCHUP_MODEL_DIMENSION_RADIAL_H_
|
@@ -0,0 +1,253 @@
|
|
1
|
+
// Copyright 2016 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUDimensionStyleRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_DIMENSION_STYLE_H_
|
8
|
+
#define SKETCHUP_MODEL_DIMENSION_STYLE_H_
|
9
|
+
|
10
|
+
#include <SketchUpAPI/color.h>
|
11
|
+
#include <SketchUpAPI/model/defs.h>
|
12
|
+
#include <SketchUpAPI/model/dimension.h>
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
extern "C" {
|
16
|
+
#endif
|
17
|
+
|
18
|
+
/**
|
19
|
+
@struct SUDimensionStyleRef
|
20
|
+
@brief A dimension style reference.
|
21
|
+
@since SketchUp 2017, API 5.0
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Retrieves the font of a dimension style object.
|
26
|
+
@since SketchUp 2017, API 5.0
|
27
|
+
@param[in] style The dimension style object.
|
28
|
+
@param[out] font The font retrieved.
|
29
|
+
@related SUDimensionStyleRef
|
30
|
+
@return
|
31
|
+
- \ref SU_ERROR_NONE on success
|
32
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
33
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if font is NULL
|
34
|
+
*/
|
35
|
+
SU_RESULT SUDimensionStyleGetFont(SUDimensionStyleRef style, SUFontRef* font);
|
36
|
+
|
37
|
+
/**
|
38
|
+
@brief Retrieves whether the dimension style has 3D text.
|
39
|
+
@since SketchUp 2017, API 5.0
|
40
|
+
@param[in] style The dimension style object.
|
41
|
+
@param[out] has_3d The flag value retrieved.
|
42
|
+
@related SUDimensionStyleRef
|
43
|
+
@return
|
44
|
+
- \ref SU_ERROR_NONE on success
|
45
|
+
- \ref SU_ERROR_INVALID_INPUT if dimension is not a valid object
|
46
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if has_3d is NULL
|
47
|
+
*/
|
48
|
+
SU_RESULT SUDimensionStyleGet3D(SUDimensionStyleRef style, bool* has_3d);
|
49
|
+
|
50
|
+
/**
|
51
|
+
@brief Retrieves a enum value indicating the arrow type specified by the
|
52
|
+
dimension style.
|
53
|
+
@since SketchUp 2017, API 5.0
|
54
|
+
@param[in] style The dimension style object.
|
55
|
+
@param[out] type The arrow type enum value retrieved.
|
56
|
+
@related SUDimensionStyleRef
|
57
|
+
@return
|
58
|
+
- \ref SU_ERROR_NONE on success
|
59
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
60
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
|
61
|
+
*/
|
62
|
+
SU_RESULT SUDimensionStyleGetArrowType(SUDimensionStyleRef style, enum SUArrowType* type);
|
63
|
+
|
64
|
+
/**
|
65
|
+
@brief Retrieves the arrow size specified by the dimension style.
|
66
|
+
@since SketchUp 2017, API 5.0
|
67
|
+
@param[in] style The dimension style object.
|
68
|
+
@param[out] size The size retrieved.
|
69
|
+
@related SUDimensionStyleRef
|
70
|
+
@return
|
71
|
+
- \ref SU_ERROR_NONE on success
|
72
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
73
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if size is NULL
|
74
|
+
*/
|
75
|
+
SU_RESULT SUDimensionStyleGetArrowSize(SUDimensionStyleRef style, size_t* size);
|
76
|
+
|
77
|
+
/**
|
78
|
+
@brief Retrieves the color specified by the dimension style.
|
79
|
+
@since SketchUp 2017, API 5.0
|
80
|
+
@param[in] style The dimension style object.
|
81
|
+
@param[out] color The color retrieved.
|
82
|
+
@related SUDimensionStyleRef
|
83
|
+
@return
|
84
|
+
- \ref SU_ERROR_NONE on success
|
85
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
86
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
87
|
+
*/
|
88
|
+
SU_RESULT SUDimensionStyleGetColor(SUDimensionStyleRef style, SUColor* color);
|
89
|
+
|
90
|
+
/**
|
91
|
+
@brief Retrieves the text color specified by the dimension style.
|
92
|
+
@since SketchUp 2017, API 5.0
|
93
|
+
@param[in] style The dimension style object.
|
94
|
+
@param[out] color The color retrieved.
|
95
|
+
@related SUDimensionStyleRef
|
96
|
+
@return
|
97
|
+
- \ref SU_ERROR_NONE on success
|
98
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
99
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
100
|
+
*/
|
101
|
+
SU_RESULT SUDimensionStyleGetTextColor(SUDimensionStyleRef style, SUColor* color);
|
102
|
+
|
103
|
+
/**
|
104
|
+
@brief Retrieves the dimension style's extension line offset. The offset
|
105
|
+
specifies the gap between the connection points' locations and the
|
106
|
+
dimension leader lines.
|
107
|
+
@since SketchUp 2017, API 5.0
|
108
|
+
@param[in] style The dimension style object.
|
109
|
+
@param[out] offset The offset retrieved.
|
110
|
+
@related SUDimensionStyleRef
|
111
|
+
@return
|
112
|
+
- \ref SU_ERROR_NONE on success
|
113
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
114
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if offset is NULL
|
115
|
+
*/
|
116
|
+
SU_RESULT SUDimensionStyleGetExtensionLineOffset(SUDimensionStyleRef style, size_t* offset);
|
117
|
+
|
118
|
+
/**
|
119
|
+
@brief Retrieves the dimension style's extension line overshoot. The overshoot
|
120
|
+
specifies distance that the dimension leader lines overshoot the point
|
121
|
+
where they connect with the arrows.
|
122
|
+
@since SketchUp 2017, API 5.0
|
123
|
+
@param[in] style The dimension style object.
|
124
|
+
@param[out] overshoot The overshoot retrieved.
|
125
|
+
@related SUDimensionStyleRef
|
126
|
+
@return
|
127
|
+
- \ref SU_ERROR_NONE on success
|
128
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
129
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if overshoot is NULL
|
130
|
+
*/
|
131
|
+
SU_RESULT SUDimensionStyleGetExtensionLineOvershoot(SUDimensionStyleRef style, size_t* overshoot);
|
132
|
+
|
133
|
+
/**
|
134
|
+
@brief Retrieves the line weight specified by the dimension style.
|
135
|
+
@since SketchUp 2017, API 5.0
|
136
|
+
@param[in] style The dimension style object.
|
137
|
+
@param[out] weight The weight retrieved.
|
138
|
+
@related SUDimensionStyleRef
|
139
|
+
@return
|
140
|
+
- \ref SU_ERROR_NONE on success
|
141
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
142
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if weight is NULL
|
143
|
+
*/
|
144
|
+
SU_RESULT SUDimensionStyleGetLineWeight(SUDimensionStyleRef style, size_t* weight);
|
145
|
+
|
146
|
+
/**
|
147
|
+
@brief Retrieves whether the dimension style specifies non-associative
|
148
|
+
dimensions (including edited text) be highlighted in a color which can
|
149
|
+
be retrieved with \ref
|
150
|
+
SUDimensionStyleGetHighlightNonAssociativeDimensionsColor
|
151
|
+
@since SketchUp 2017, API 5.0
|
152
|
+
@param[in] style The dimension style object.
|
153
|
+
@param[out] highlight The flag value retrieved.
|
154
|
+
@related SUDimensionStyleRef
|
155
|
+
@return
|
156
|
+
- \ref SU_ERROR_NONE on success
|
157
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
158
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if highlight is NULL
|
159
|
+
*/
|
160
|
+
SU_RESULT SUDimensionStyleGetHighlightNonAssociativeDimensions(
|
161
|
+
SUDimensionStyleRef style, bool* highlight);
|
162
|
+
|
163
|
+
/**
|
164
|
+
@brief Retrieves the non-associative dimensions highlight color specified by
|
165
|
+
the dimension style.
|
166
|
+
@since SketchUp 2017, API 5.0
|
167
|
+
@param[in] style The dimension style object.
|
168
|
+
@param[out] color The color retrieved.
|
169
|
+
@related SUDimensionStyleRef
|
170
|
+
@return
|
171
|
+
- \ref SU_ERROR_NONE on success
|
172
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
173
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
174
|
+
*/
|
175
|
+
SU_RESULT SUDimensionStyleGetHighlightNonAssociativeDimensionsColor(
|
176
|
+
SUDimensionStyleRef style, SUColor* color);
|
177
|
+
|
178
|
+
/**
|
179
|
+
@brief Retrieves whether the dimension style specifies that radius/diameter
|
180
|
+
prefixes be displayed on radial dimensions.
|
181
|
+
@since SketchUp 2017, API 5.0
|
182
|
+
@param[in] style The dimension style object.
|
183
|
+
@param[out] show The flag value retrieved.
|
184
|
+
@related SUDimensionStyleRef
|
185
|
+
@return
|
186
|
+
- \ref SU_ERROR_NONE on success
|
187
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
188
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if show is NULL
|
189
|
+
*/
|
190
|
+
SU_RESULT SUDimensionStyleGetShowRadialPrefix(SUDimensionStyleRef style, bool* show);
|
191
|
+
|
192
|
+
/**
|
193
|
+
@brief Retrieves whether the dimension style specifies that out of plane
|
194
|
+
dimensions (dimensions which are not parallel to the view plane) be
|
195
|
+
hidden.
|
196
|
+
@since SketchUp 2017, API 5.0
|
197
|
+
@param[in] style The dimension style object.
|
198
|
+
@param[out] hide The flag value retrieved.
|
199
|
+
@related SUDimensionStyleRef
|
200
|
+
@return
|
201
|
+
- \ref SU_ERROR_NONE on success
|
202
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
203
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if hide is NULL
|
204
|
+
*/
|
205
|
+
SU_RESULT SUDimensionStyleGetHideOutOfPlane(SUDimensionStyleRef style, bool* hide);
|
206
|
+
|
207
|
+
/**
|
208
|
+
@brief Retrieves the dimension style's parameter specifying out of plane
|
209
|
+
tolerance for hiding dimensions.
|
210
|
+
@since SketchUp 2017, API 5.0
|
211
|
+
@param[in] style The dimension style object.
|
212
|
+
@param[out] tolerance The value retrieved.
|
213
|
+
@related SUDimensionStyleRef
|
214
|
+
@return
|
215
|
+
- \ref SU_ERROR_NONE on success
|
216
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
217
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if tolerance is NULL
|
218
|
+
*/
|
219
|
+
SU_RESULT SUDimensionStyleGetHideOutOfPlaneValue(SUDimensionStyleRef style, double* tolerance);
|
220
|
+
|
221
|
+
/**
|
222
|
+
@brief Retrieves whether the dimension style specifies that small dimensions be
|
223
|
+
hidden.
|
224
|
+
@since SketchUp 2017, API 5.0
|
225
|
+
@param[in] style The dimension style object.
|
226
|
+
@param[out] hide The flag value retrieved.
|
227
|
+
@related SUDimensionStyleRef
|
228
|
+
@return
|
229
|
+
- \ref SU_ERROR_NONE on success
|
230
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
231
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if hide is NULL
|
232
|
+
*/
|
233
|
+
SU_RESULT SUDimensionStyleGetHideSmall(SUDimensionStyleRef style, bool* hide);
|
234
|
+
|
235
|
+
/**
|
236
|
+
@brief Retrieves the minimum size under which dimensions will be hidden if \ref
|
237
|
+
SUDimensionStyleGetHideSmall returns true.
|
238
|
+
@since SketchUp 2017, API 5.0
|
239
|
+
@param[in] style The dimension style object.
|
240
|
+
@param[out] tolerance The value retrieved.
|
241
|
+
@related SUDimensionStyleRef
|
242
|
+
@return
|
243
|
+
- \ref SU_ERROR_NONE on success
|
244
|
+
- \ref SU_ERROR_INVALID_INPUT if style is not a valid object
|
245
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if tolerance is NULL
|
246
|
+
*/
|
247
|
+
SU_RESULT SUDimensionStyleGetHideSmallValue(SUDimensionStyleRef style, double* tolerance);
|
248
|
+
|
249
|
+
#ifdef __cplusplus
|
250
|
+
} // extern "C"
|
251
|
+
#endif
|
252
|
+
|
253
|
+
#endif // SKETCHUP_MODEL_DIMENSION_STYLE_H_
|
@@ -0,0 +1,198 @@
|
|
1
|
+
// Copyright 2013 Trimble Inc. All Rights Reserved.
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @file
|
5
|
+
* @brief Interfaces for SUDrawingElementRef.
|
6
|
+
*/
|
7
|
+
#ifndef SKETCHUP_MODEL_DRAWING_ELEMENT_H_
|
8
|
+
#define SKETCHUP_MODEL_DRAWING_ELEMENT_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 SUDrawingElementRef
|
19
|
+
@extends SUEntityRef
|
20
|
+
@brief References a drawing element, which is an abstract base type for some
|
21
|
+
API types.
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
@brief Converts from an SUDrawingElementRef to an SUEntityRef.
|
26
|
+
This is essentially an upcast operation.
|
27
|
+
@param[in] elem The given drawing element reference.
|
28
|
+
@related SUDrawingElementRef
|
29
|
+
@return
|
30
|
+
- The converted SUEntityRef if elem is a valid drawing element.
|
31
|
+
- If not, the returned reference will be invalid.
|
32
|
+
*/
|
33
|
+
SU_EXPORT SUEntityRef SUDrawingElementToEntity(SUDrawingElementRef elem);
|
34
|
+
|
35
|
+
/**
|
36
|
+
@brief Converts from an SUEntityRef to an SUDrawingElementRef.
|
37
|
+
This is essentially a downcast operation so the given entity must be
|
38
|
+
convertible to a drawing element.
|
39
|
+
@param[in] entity The given entity reference.
|
40
|
+
@related SUDrawingElementRef
|
41
|
+
@return
|
42
|
+
- The converted SUDrawingElementRef if the downcast operation succeeds.
|
43
|
+
- If not, the returned reference will be invalid.
|
44
|
+
*/
|
45
|
+
SU_EXPORT SUDrawingElementRef SUDrawingElementFromEntity(SUEntityRef entity);
|
46
|
+
|
47
|
+
/**
|
48
|
+
@brief Returns the concrete type of the given drawing element.
|
49
|
+
@param[in] elem The drawing element.
|
50
|
+
@related SUDrawingElementRef
|
51
|
+
@return
|
52
|
+
- The concrete type of the given drawing element reference.
|
53
|
+
- \ref SURefType_Unknown if entity is not a valid drawing element.
|
54
|
+
*/
|
55
|
+
SU_EXPORT enum SURefType SUDrawingElementGetType(SUDrawingElementRef elem);
|
56
|
+
|
57
|
+
/**
|
58
|
+
@brief Retrieves the bounding box of a drawing element.
|
59
|
+
@param[in] elem The drawing element.
|
60
|
+
@param[out] bbox The bounding box retrieved.
|
61
|
+
@related SUDrawingElementRef
|
62
|
+
@return
|
63
|
+
- \ref SU_ERROR_NONE on success
|
64
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
65
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if bbox is NULL
|
66
|
+
*/
|
67
|
+
SU_RESULT SUDrawingElementGetBoundingBox(SUDrawingElementRef elem, struct SUBoundingBox3D* bbox);
|
68
|
+
|
69
|
+
/**
|
70
|
+
@brief Retrieves the material object of a drawing element.
|
71
|
+
|
72
|
+
The material object must not be subsequently deallocated while still associated
|
73
|
+
with the drawing element.
|
74
|
+
@param[in] elem The drawing element.
|
75
|
+
@param[out] material The drawing element retrieved.
|
76
|
+
@related SUDrawingElementRef
|
77
|
+
@return
|
78
|
+
- \ref SU_ERROR_NONE on success
|
79
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is an invalid object
|
80
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if material is NULL
|
81
|
+
- \ref SU_ERROR_NO_DATA if the drawing element does not have a front face
|
82
|
+
material
|
83
|
+
*/
|
84
|
+
SU_RESULT SUDrawingElementGetMaterial(SUDrawingElementRef elem, SUMaterialRef* material);
|
85
|
+
|
86
|
+
/**
|
87
|
+
@brief Sets the material of a drawing element.
|
88
|
+
|
89
|
+
The material object must not be subsequently deallocated while associated with
|
90
|
+
the drawing element.
|
91
|
+
@param[in] elem The drawing element.
|
92
|
+
@param[in] material The material object to set. If an invalid reference is
|
93
|
+
given, then the material of the element will be removed.
|
94
|
+
@related SUDrawingElementRef
|
95
|
+
@return
|
96
|
+
- \ref SU_ERROR_NONE on success
|
97
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is invalid
|
98
|
+
- \ref SU_ERROR_INVALID_ARGUMENT is the material is owned by a layer or image
|
99
|
+
*/
|
100
|
+
SU_RESULT SUDrawingElementSetMaterial(SUDrawingElementRef elem, SUMaterialRef material);
|
101
|
+
|
102
|
+
/**
|
103
|
+
@brief Retrieves the layer object associated with a drawing element.
|
104
|
+
@param[in] elem The drawing element.
|
105
|
+
@param[out] layer The layer object retrieved.
|
106
|
+
@related SUDrawingElementRef
|
107
|
+
@return
|
108
|
+
- \ref SU_ERROR_NONE on success
|
109
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
110
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if layer is NULL
|
111
|
+
*/
|
112
|
+
SU_RESULT SUDrawingElementGetLayer(SUDrawingElementRef elem, SULayerRef* layer);
|
113
|
+
|
114
|
+
/**
|
115
|
+
@brief Sets the layer object to be associated with a drawing element.
|
116
|
+
@param[in] elem The drawing element.
|
117
|
+
@param[in] layer The layer object to set.
|
118
|
+
@related SUDrawingElementRef
|
119
|
+
@return
|
120
|
+
- \ref SU_ERROR_NONE on success
|
121
|
+
- \ref SU_ERROR_INVALID_INPUT if elem or layer are invalid objects
|
122
|
+
*/
|
123
|
+
SU_RESULT SUDrawingElementSetLayer(SUDrawingElementRef elem, SULayerRef layer);
|
124
|
+
|
125
|
+
/**
|
126
|
+
@brief Sets the hide flag of a drawing element.
|
127
|
+
@param[in] elem The drawing element.
|
128
|
+
@param[in] hide_flag The hide flag to set.
|
129
|
+
@related SUDrawingElementRef
|
130
|
+
@return
|
131
|
+
- \ref SU_ERROR_NONE on success
|
132
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
133
|
+
*/
|
134
|
+
SU_RESULT SUDrawingElementSetHidden(SUDrawingElementRef elem, bool hide_flag);
|
135
|
+
|
136
|
+
/**
|
137
|
+
@brief Retrieves the hide flag of a drawing element.
|
138
|
+
@param[in] elem The drawing element.
|
139
|
+
@param[out] hide_flag The hide flag retrieved.
|
140
|
+
@related SUDrawingElementRef
|
141
|
+
@return
|
142
|
+
- \ref SU_ERROR_NONE on success
|
143
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
144
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if hide_flag is NULL
|
145
|
+
*/
|
146
|
+
SU_RESULT SUDrawingElementGetHidden(SUDrawingElementRef elem, bool* hide_flag);
|
147
|
+
|
148
|
+
/**
|
149
|
+
@brief Sets the casts shadows flag of a drawing element.
|
150
|
+
@param[in] elem The drawing element.
|
151
|
+
@param[in] casts_shadows_flag The casts shadows flag to set.
|
152
|
+
@related SUDrawingElementRef
|
153
|
+
@return
|
154
|
+
- \ref SU_ERROR_NONE on success
|
155
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
156
|
+
*/
|
157
|
+
SU_RESULT SUDrawingElementSetCastsShadows(SUDrawingElementRef elem, bool casts_shadows_flag);
|
158
|
+
|
159
|
+
/**
|
160
|
+
@brief Retrieves the casts shadows flag of a drawing element.
|
161
|
+
@param[in] elem The drawing element.
|
162
|
+
@param[out] casts_shadows_flag The casts shadows flag retrieved.
|
163
|
+
@related SUDrawingElementRef
|
164
|
+
@return
|
165
|
+
- \ref SU_ERROR_NONE on success
|
166
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
167
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if hide_flag is NULL
|
168
|
+
*/
|
169
|
+
SU_RESULT SUDrawingElementGetCastsShadows(SUDrawingElementRef elem, bool* casts_shadows_flag);
|
170
|
+
|
171
|
+
/**
|
172
|
+
@brief Sets the receives shadows flag of a drawing element.
|
173
|
+
@param[in] elem The drawing element.
|
174
|
+
@param[in] receives_shadows_flag The casts shadows flag to set.
|
175
|
+
@related SUDrawingElementRef
|
176
|
+
@return
|
177
|
+
- \ref SU_ERROR_NONE on success
|
178
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
179
|
+
*/
|
180
|
+
SU_RESULT SUDrawingElementSetReceivesShadows(SUDrawingElementRef elem, bool receives_shadows_flag);
|
181
|
+
|
182
|
+
/**
|
183
|
+
@brief Retrieves the receives shadows flag of a drawing element.
|
184
|
+
@param[in] elem The drawing element.
|
185
|
+
@param[out] receives_shadows_flag The casts shadows flag retrieved.
|
186
|
+
@related SUDrawingElementRef
|
187
|
+
@return
|
188
|
+
- \ref SU_ERROR_NONE on success
|
189
|
+
- \ref SU_ERROR_INVALID_INPUT if elem is not a valid object
|
190
|
+
- \ref SU_ERROR_NULL_POINTER_OUTPUT if hide_flag is NULL
|
191
|
+
*/
|
192
|
+
SU_RESULT SUDrawingElementGetReceivesShadows(SUDrawingElementRef elem, bool* receives_shadows_flag);
|
193
|
+
|
194
|
+
#ifdef __cplusplus
|
195
|
+
} // extern "C"
|
196
|
+
#endif
|
197
|
+
|
198
|
+
#endif // SKETCHUP_MODEL_DRAWING_ELEMENT_H_
|