sketchup-api-stubs 0.1.2 → 0.2.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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/SketchUp/Geom/BoundingBox.rb +17 -20
  3. data/SketchUp/Geom/Bounds2d.rb +172 -0
  4. data/SketchUp/Geom/LatLong.rb +31 -16
  5. data/SketchUp/Geom/OrientedBounds2d.rb +102 -0
  6. data/SketchUp/Geom/Point2d.rb +365 -0
  7. data/SketchUp/Geom/Point3d.rb +121 -110
  8. data/SketchUp/Geom/PolygonMesh.rb +30 -21
  9. data/SketchUp/Geom/Transformation.rb +8 -4
  10. data/SketchUp/Geom/Transformation2d.rb +125 -0
  11. data/SketchUp/Geom/UTM.rb +43 -37
  12. data/SketchUp/Geom/Vector2d.rb +497 -0
  13. data/SketchUp/Geom/Vector3d.rb +143 -131
  14. data/SketchUp/Layout.rb +25 -0
  15. data/SketchUp/Layout/AngularDimension.rb +569 -0
  16. data/SketchUp/Layout/AutoTextDefinition.rb +417 -0
  17. data/SketchUp/Layout/AutoTextDefinitions.rb +186 -0
  18. data/SketchUp/Layout/ConnectionPoint.rb +70 -0
  19. data/SketchUp/Layout/Document.rb +458 -0
  20. data/SketchUp/Layout/Ellipse.rb +29 -0
  21. data/SketchUp/Layout/Entities.rb +155 -0
  22. data/SketchUp/Layout/Entity.rb +363 -0
  23. data/SketchUp/Layout/FormattedText.rb +349 -0
  24. data/SketchUp/Layout/Grid.rb +131 -0
  25. data/SketchUp/Layout/Group.rb +261 -0
  26. data/SketchUp/Layout/Image.rb +86 -0
  27. data/SketchUp/Layout/Label.rb +371 -0
  28. data/SketchUp/Layout/Layer.rb +222 -0
  29. data/SketchUp/Layout/LayerInstance.rb +128 -0
  30. data/SketchUp/Layout/Layers.rb +232 -0
  31. data/SketchUp/Layout/LinearDimension.rb +563 -0
  32. data/SketchUp/Layout/LockedEntityError.rb +10 -0
  33. data/SketchUp/Layout/LockedLayerError.rb +11 -0
  34. data/SketchUp/Layout/Page.rb +187 -0
  35. data/SketchUp/Layout/PageInfo.rb +393 -0
  36. data/SketchUp/Layout/Pages.rb +216 -0
  37. data/SketchUp/Layout/Path.rb +326 -0
  38. data/SketchUp/Layout/Rectangle.rb +174 -0
  39. data/SketchUp/Layout/SketchUpModel.rb +522 -0
  40. data/SketchUp/Layout/Style.rb +1520 -0
  41. data/SketchUp/Layout/Table.rb +290 -0
  42. data/SketchUp/Layout/TableCell.rb +149 -0
  43. data/SketchUp/Layout/TableColumn.rb +139 -0
  44. data/SketchUp/Layout/TableRow.rb +135 -0
  45. data/SketchUp/Sketchup/Animation.rb +7 -4
  46. data/SketchUp/Sketchup/ArcCurve.rb +10 -10
  47. data/SketchUp/Sketchup/AttributeDictionaries.rb +13 -4
  48. data/SketchUp/Sketchup/AttributeDictionary.rb +12 -12
  49. data/SketchUp/Sketchup/Color.rb +68 -78
  50. data/SketchUp/Sketchup/ComponentDefinition.rb +60 -60
  51. data/SketchUp/Sketchup/ComponentInstance.rb +57 -55
  52. data/SketchUp/Sketchup/DefinitionList.rb +34 -17
  53. data/SketchUp/Sketchup/Drawingelement.rb +19 -21
  54. data/SketchUp/Sketchup/Edge.rb +22 -24
  55. data/SketchUp/Sketchup/Entities.rb +173 -162
  56. data/SketchUp/Sketchup/Entity.rb +71 -55
  57. data/SketchUp/Sketchup/Face.rb +45 -44
  58. data/SketchUp/Sketchup/Group.rb +47 -49
  59. data/SketchUp/Sketchup/Image.rb +16 -0
  60. data/SketchUp/Sketchup/ImageRep.rb +226 -0
  61. data/SketchUp/Sketchup/InstancePath.rb +13 -13
  62. data/SketchUp/Sketchup/Layer.rb +15 -17
  63. data/SketchUp/Sketchup/Material.rb +40 -30
  64. data/SketchUp/Sketchup/Materials.rb +40 -22
  65. data/SketchUp/Sketchup/Menu.rb +5 -5
  66. data/SketchUp/Sketchup/Model.rb +230 -228
  67. data/SketchUp/Sketchup/Page.rb +32 -0
  68. data/SketchUp/Sketchup/Pages.rb +3 -4
  69. data/SketchUp/Sketchup/RenderingOptions.rb +21 -16
  70. data/SketchUp/Sketchup/SectionPlane.rb +64 -0
  71. data/SketchUp/Sketchup/Selection.rb +20 -28
  72. data/SketchUp/Sketchup/ShadowInfo.rb +14 -14
  73. data/SketchUp/Sketchup/Text.rb +24 -26
  74. data/SketchUp/Sketchup/Texture.rb +28 -12
  75. data/SketchUp/Sketchup/Vertex.rb +14 -11
  76. data/SketchUp/Sketchup/View.rb +126 -116
  77. data/SketchUp/UI/Command.rb +17 -17
  78. data/SketchUp/UI/HtmlDialog.rb +8 -5
  79. data/SketchUp/UI/Notification.rb +1 -1
  80. data/SketchUp/UI/Toolbar.rb +13 -14
  81. data/SketchUp/UI/WebDialog.rb +55 -59
  82. data/SketchUp/_top_level.rb +139 -27
  83. data/SketchUp/{Array.rb → array.rb} +167 -30
  84. data/SketchUp/{Geom.rb → geom.rb} +9 -7
  85. data/SketchUp/{LanguageHandler.rb → languagehandler.rb} +15 -15
  86. data/SketchUp/{Length.rb → length.rb} +15 -15
  87. data/SketchUp/{Numeric.rb → numeric.rb} +19 -19
  88. data/SketchUp/sketchup.rb +167 -156
  89. data/SketchUp/{SketchupExtension.rb → sketchupextension.rb} +27 -27
  90. data/SketchUp/{String.rb → string.rb} +1 -1
  91. data/SketchUp/ui.rb +113 -87
  92. metadata +46 -9
@@ -0,0 +1,25 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The LayOut module is the root of the LayOut Ruby API. Many of the classes in
5
+ # the API are implemented beneath this module.
6
+ #
7
+ # @example
8
+ # # Open an existing LayOut document.
9
+ # doc = Layout::Document.open("C:/path/to/document.layout")
10
+ #
11
+ # # Grab other handles to commonly used collections inside the model.
12
+ # layers = doc.layers
13
+ # pages = doc.pages
14
+ # entities = doc.shared_entities
15
+ #
16
+ # # Now that we have our handles, we can start pulling objects and making
17
+ # # method calls that are useful.
18
+ # first_entity = entities.first
19
+ #
20
+ # number_pages = pages.length
21
+ #
22
+ # @version LayOut 2018
23
+ module Layout
24
+
25
+ end
@@ -0,0 +1,569 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # References an angular dimension entity. An {Layout::AngularDimension} is
5
+ # composed of the following sub-entities:
6
+ # - two 'extension lines' that extend from the {Layout::Entity} being
7
+ # dimensioned.
8
+ # - a 'dimension line' connecting the ends of the leaders. This may be
9
+ # represented by one or two {Layout::Path}s depending on appearance.
10
+ # - an optional 'leader line' that is used for small {Layout::AngularDimension}s.
11
+ # - a 'dimension text' that displays the {Layout::AngularDimension}'s text.
12
+ #
13
+ # There are seven points that may be modified for an {Layout::AngularDimension}:
14
+ # - two 'connection points' that define the start and end of the
15
+ # {Layout::AngularDimension}.
16
+ # - two 'extent points' that define the start and end of the dimension line and
17
+ # are the ends of the two extension lines.
18
+ # - two 'offset points' that define the starting points of the extension lines.
19
+ # - one 'arc center point' that defines the center of the
20
+ # {Layout::AngularDimension}, where the extension lines intersect.
21
+ #
22
+ # @version LayOut 2018
23
+ class Layout::AngularDimension < Layout::Entity
24
+
25
+ # Constants
26
+
27
+ LEADER_LINE_TYPE_BEZIER = nil # Stub value.
28
+ LEADER_LINE_TYPE_HIDDEN = nil # Stub value.
29
+ LEADER_LINE_TYPE_SINGLE_SEGMENT = nil # Stub value.
30
+ LEADER_LINE_TYPE_TWO_SEGMENT = nil # Stub value.
31
+
32
+ # Instance Methods
33
+
34
+ # The {#angle} method returns the {Layout::AngularDimension}'s angle. The angle
35
+ # is represented in radians.
36
+ #
37
+ # @example
38
+ # start_point = Geom::Point2d.new(1, 1)
39
+ # end_point = Geom::Point2d.new(5, 5)
40
+ # start_extent = Geom::Point2d.new(1, 2)
41
+ # end_extent = Geom::Point2d.new(5, 6)
42
+ # inner_angle = true
43
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
44
+ # angle = dim.angle
45
+ #
46
+ # @return [Numeric]
47
+ #
48
+ # @version LayOut 2018
49
+ def angle
50
+ end
51
+
52
+ # The {#arc_center_point} method returns the paper space location for the
53
+ # dimension arc center point.
54
+ #
55
+ # @example
56
+ # start_point = Geom::Point2d.new(1, 1)
57
+ # end_point = Geom::Point2d.new(5, 5)
58
+ # start_extent = Geom::Point2d.new(1, 2)
59
+ # end_extent = Geom::Point2d.new(5, 6)
60
+ # inner_angle = true
61
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
62
+ # center = dim.arc_center_point
63
+ #
64
+ # @return [Geom::Point2d]
65
+ #
66
+ # @version LayOut 2018
67
+ def arc_center_point
68
+ end
69
+
70
+ # The {#custom_text=} sets whether or not the {Layout::AngularDimension} uses
71
+ # custom text. When +true+, the text will display a custom string that doesn't
72
+ # change. When +false+, the text will display the length measurement and wil
73
+ # update automatically.
74
+ #
75
+ # @example
76
+ # start_point = Geom::Point2d.new(1, 1)
77
+ # end_point = Geom::Point2d.new(5, 5)
78
+ # start_extent = Geom::Point2d.new(1, 2)
79
+ # end_extent = Geom::Point2d.new(5, 6)
80
+ # inner_angle = true
81
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
82
+ # dim.custom_text = true
83
+ #
84
+ # @param [Boolean] uses_custom_text
85
+ #
86
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
87
+ #
88
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
89
+ # {Layout::Layer}
90
+ #
91
+ # @version LayOut 2018
92
+ def custom_text=(uses_custom_text)
93
+ end
94
+
95
+ # The {#custom_text?} method returns whether the {Layout::AngularDimension}
96
+ # uses custom text. When +true+, the text will display a custom string that
97
+ # doesn't change. When +false+, the text will display the length measurement
98
+ # and will update automatically.
99
+ #
100
+ # @example
101
+ # start_point = Geom::Point2d.new(1, 1)
102
+ # end_point = Geom::Point2d.new(5, 5)
103
+ # start_extent = Geom::Point2d.new(1, 2)
104
+ # end_extent = Geom::Point2d.new(5, 6)
105
+ # inner_angle = true
106
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
107
+ # # returns false
108
+ # uses_custom_text = dim.custom_text?
109
+ #
110
+ # @return [Boolean]
111
+ #
112
+ # @version LayOut 2018
113
+ def custom_text?
114
+ end
115
+
116
+ # The {#end_connection_point} method returns the paper space location for the
117
+ # second connection.
118
+ #
119
+ # @example
120
+ # start_point = Geom::Point2d.new(1, 1)
121
+ # end_point = Geom::Point2d.new(5, 5)
122
+ # start_extent = Geom::Point2d.new(1, 2)
123
+ # end_extent = Geom::Point2d.new(5, 6)
124
+ # inner_angle = true
125
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
126
+ # end_connection = dim.end_connection_point
127
+ #
128
+ # @return [Geom::Point2d]
129
+ #
130
+ # @version LayOut 2018
131
+ def end_connection_point
132
+ end
133
+
134
+ # The {#end_connection_point=} method sets the paper space location for the
135
+ # second connection.
136
+ #
137
+ # @example
138
+ # start_point = Geom::Point2d.new(1, 1)
139
+ # end_point = Geom::Point2d.new(5, 5)
140
+ # start_extent = Geom::Point2d.new(1, 2)
141
+ # end_extent = Geom::Point2d.new(5, 6)
142
+ # inner_angle = true
143
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
144
+ # dim.end_connection_point = Geom::Point2d.new(6, 6)
145
+ #
146
+ # @param [Geom::Point2d] end_point
147
+ #
148
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
149
+ #
150
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
151
+ # {Layout::Layer}
152
+ #
153
+ # @version LayOut 2018
154
+ def end_connection_point=(end_point)
155
+ end
156
+
157
+ # The {#end_extent_point} method returns the paper space location for the
158
+ # end of the dimension line.
159
+ #
160
+ # @example
161
+ # start_point = Geom::Point2d.new(1, 1)
162
+ # end_point = Geom::Point2d.new(5, 5)
163
+ # start_extent = Geom::Point2d.new(1, 2)
164
+ # end_extent = Geom::Point2d.new(5, 6)
165
+ # inner_angle = true
166
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
167
+ # end_ext_point = dim.end_extent_point
168
+ #
169
+ # @return [Geom::Point2d] end_extent
170
+ #
171
+ # @version LayOut 2018
172
+ def end_extent_point
173
+ end
174
+
175
+ # The {#end_extent_point=} method sets the paper space location for the
176
+ # end of the dimension line.
177
+ #
178
+ # @example
179
+ # start_point = Geom::Point2d.new(1, 1)
180
+ # end_point = Geom::Point2d.new(5, 5)
181
+ # start_extent = Geom::Point2d.new(1, 2)
182
+ # end_extent = Geom::Point2d.new(5, 6)
183
+ # inner_angle = true
184
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
185
+ # end_ext_point = Geom::Point2d.new(5, 6)
186
+ # dim.end_extent_point = Geom::Point2d.new(6, 6)
187
+ #
188
+ # @param [Geom::Point2d] end_extent
189
+ #
190
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
191
+ #
192
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
193
+ # {Layout::Layer}
194
+ #
195
+ # @version LayOut 2018
196
+ def end_extent_point=(end_extent)
197
+ end
198
+
199
+ # The {#end_offset_length=} method sets the length of the offset from the
200
+ # second connection point to the start of the second extension line. The
201
+ # connection and extent points will not move.
202
+ #
203
+ # @example
204
+ # start_point = Geom::Point2d.new(1, 1)
205
+ # end_point = Geom::Point2d.new(5, 5)
206
+ # start_extent = Geom::Point2d.new(1, 2)
207
+ # end_extent = Geom::Point2d.new(5, 6)
208
+ # inner_angle = true
209
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
210
+ # end_ext_point = Geom::Point2d.new(5, 6)
211
+ # dim.end_offset_length = 0.5
212
+ #
213
+ # @param [Numeric] offset_length
214
+ #
215
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
216
+ #
217
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
218
+ # {Layout::Layer}
219
+ #
220
+ # @version LayOut 2018
221
+ def end_offset_length=(offset_length)
222
+ end
223
+
224
+ # The {#end_offset_point} method returns the paper space location for the
225
+ # end of the first extension line. The first extension line runs from this
226
+ # offset point to the end extent point.
227
+ #
228
+ # @example
229
+ # start_point = Geom::Point2d.new(1, 1)
230
+ # end_point = Geom::Point2d.new(5, 5)
231
+ # start_extent = Geom::Point2d.new(1, 2)
232
+ # end_extent = Geom::Point2d.new(5, 6)
233
+ # inner_angle = true
234
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
235
+ # end_offset = dim.end_offset_point
236
+ #
237
+ # @return [Geom::Point2d] end_offset
238
+ #
239
+ # @version LayOut 2018
240
+ def end_offset_point
241
+ end
242
+
243
+ # The {#entities} method returns the {Layout::Entities} that represent the
244
+ # {Layout::AngularDimension} in its exploded form. Depending on the appearance
245
+ # of the {Layout::AngularDimension} being exploded, this may return anywhere
246
+ # from four to six {Layout::Entity}s: start extension line, end extension line,
247
+ # one or two dimension lines, dimension text, and optionally the leader line.
248
+ #
249
+ # @example
250
+ # start_point = Geom::Point2d.new(1, 1)
251
+ # end_point = Geom::Point2d.new(5, 5)
252
+ # start_extent = Geom::Point2d.new(1, 2)
253
+ # end_extent = Geom::Point2d.new(5, 6)
254
+ # inner_angle = true
255
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
256
+ # entites = dim.entities
257
+ #
258
+ # @return [Layout::Entities]
259
+ #
260
+ # @version LayOut 2018
261
+ def entities
262
+ end
263
+
264
+ # The {#initialize} method creates a new disconnected
265
+ # {Layout::AngularDimension}.
266
+ #
267
+ # @example
268
+ # start_point = Geom::Point2d.new(1, 1)
269
+ # end_point = Geom::Point2d.new(5, 5)
270
+ # start_extent = Geom::Point2d.new(1, 2)
271
+ # end_extent = Geom::Point2d.new(5, 6)
272
+ # inner_angle = true
273
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
274
+ #
275
+ # @param [Geom::Point2d] start_point
276
+ # Where the {Layout::AngularDimension}
277
+ # should start
278
+ #
279
+ # @param [Geom::Point2d] end_point
280
+ # Where the {Layout::AngularDimension} should
281
+ # end
282
+ #
283
+ # @param [Geom::Point2d] start_extent_point
284
+ # The extent point where the
285
+ # dimension line should start
286
+ #
287
+ # @param [Boolean] inner_angle
288
+ # Whether or not the {Layout::AngularDimension}
289
+ # should measure the inner angle. If +false+, it will measure the outer angle.
290
+ #
291
+ # @param [Geom::Point2d] end_extent_point
292
+ # The extent point where the dimension
293
+ # line should end
294
+ #
295
+ # @return [Layout::AngularDimension]
296
+ #
297
+ # @version LayOut 2018
298
+ def initialize(start_point, end_point, start_extent_point, end_extent_point, inner_angle)
299
+ end
300
+
301
+ # The {#leader_line_type} method returns the type of leader line the
302
+ # {Layout::AngularDimension} is using.
303
+ #
304
+ # The leader line type can be one of the following:
305
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_SINGLE_SEGMENT+]
306
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_TWO_SEGMENT+]
307
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER+]
308
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_HIDDEN+]
309
+ #
310
+ # @example
311
+ # start_point = Geom::Point2d.new(1, 1)
312
+ # end_point = Geom::Point2d.new(5, 5)
313
+ # start_extent = Geom::Point2d.new(1, 2)
314
+ # end_extent = Geom::Point2d.new(5, 6)
315
+ # inner_angle = true
316
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
317
+ # type = dim.leader_line_type
318
+ #
319
+ # @return [Integer]
320
+ #
321
+ # @version LayOut 2018
322
+ def leader_line_type
323
+ end
324
+
325
+ # The {#leader_line_type=} method sets the type of leader line the
326
+ # {Layout::AngularDimension} is using.
327
+ #
328
+ # The leader line type can be one of the following:
329
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_SINGLE_SEGMENT+]
330
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_TWO_SEGMENT+]
331
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER+]
332
+ # [+Layout::AngularDimension::LEADER_LINE_TYPE_HIDDEN+]
333
+ #
334
+ # @example
335
+ # start_point = Geom::Point2d.new(1, 1)
336
+ # end_point = Geom::Point2d.new(5, 5)
337
+ # start_extent = Geom::Point2d.new(1, 2)
338
+ # end_extent = Geom::Point2d.new(5, 6)
339
+ # inner_angle = true
340
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
341
+ # dim.leader_line_type = Layout::AngularDimension::LEADER_LINE_TYPE_BEZIER
342
+ #
343
+ # @param [Integer] type
344
+ # The leader line type
345
+ #
346
+ # @raise [ArgumentError] if type is not a valid leader line type
347
+ #
348
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
349
+ #
350
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
351
+ # {Layout::Layer}
352
+ #
353
+ # @version LayOut 2018
354
+ def leader_line_type=(type)
355
+ end
356
+
357
+ # The {#radius} method returns the {Layout::AngularDimension}'s radius. This is
358
+ # the distance from the arc center point to the dimension line.
359
+ #
360
+ # @example
361
+ # start_point = Geom::Point2d.new(1, 1)
362
+ # end_point = Geom::Point2d.new(5, 5)
363
+ # start_extent = Geom::Point2d.new(1, 2)
364
+ # end_extent = Geom::Point2d.new(5, 6)
365
+ # inner_angle = true
366
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
367
+ # radius = dim.radius
368
+ #
369
+ # @return [Numeric]
370
+ #
371
+ # @version LayOut 2018
372
+ def radius
373
+ end
374
+
375
+ # The {#radius=} method sets the the {Layout::AngularDimension}'s radius. This
376
+ # is the distance from the arc center point to the dimension line.
377
+ #
378
+ # @example
379
+ # start_point = Geom::Point2d.new(1, 1)
380
+ # end_point = Geom::Point2d.new(5, 5)
381
+ # start_extent = Geom::Point2d.new(1, 2)
382
+ # end_extent = Geom::Point2d.new(5, 6)
383
+ # inner_angle = true
384
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
385
+ # dim.radius = 2.0
386
+ #
387
+ # @param [Numeric] radius
388
+ #
389
+ # @raise [ArgumentError] is radius is negative
390
+ #
391
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
392
+ #
393
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
394
+ # {Layout::Layer}
395
+ #
396
+ # @version LayOut 2018
397
+ def radius=(radius)
398
+ end
399
+
400
+ # The {#start_connection_point} method returns the paper space location for the
401
+ # first connection.
402
+ #
403
+ # @example
404
+ # start_point = Geom::Point2d.new(1, 1)
405
+ # end_point = Geom::Point2d.new(5, 5)
406
+ # start_extent = Geom::Point2d.new(1, 2)
407
+ # end_extent = Geom::Point2d.new(5, 6)
408
+ # inner_angle = true
409
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
410
+ # start_connection = dim.start_connection_point
411
+ #
412
+ # @return [Geom::Point2d]
413
+ #
414
+ # @version LayOut 2018
415
+ def start_connection_point
416
+ end
417
+
418
+ # The {#start_connection_point=} method sets the paper space location for the
419
+ # first connection.
420
+ #
421
+ # @example
422
+ # start_point = Geom::Point2d.new(1, 1)
423
+ # end_point = Geom::Point2d.new(5, 5)
424
+ # start_extent = Geom::Point2d.new(1, 2)
425
+ # end_extent = Geom::Point2d.new(5, 6)
426
+ # inner_angle = true
427
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
428
+ # dim.start_connection_point = Geom::Point2d.new(2, 2)
429
+ #
430
+ # @param [Geom::Point2d] start_point
431
+ #
432
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
433
+ #
434
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
435
+ # {Layout::Layer}
436
+ #
437
+ # @version LayOut 2018
438
+ def start_connection_point=(start_point)
439
+ end
440
+
441
+ # The {#start_extent_point} method returns the paper space location for the
442
+ # start of the dimension line.
443
+ #
444
+ # @example
445
+ # start_point = Geom::Point2d.new(1, 1)
446
+ # end_point = Geom::Point2d.new(5, 5)
447
+ # start_extent = Geom::Point2d.new(1, 2)
448
+ # end_extent = Geom::Point2d.new(5, 6)
449
+ # inner_angle = true
450
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
451
+ # start_ext_point = dim.start_extent_point
452
+ #
453
+ # @return [Geom::Point2d] start_extent
454
+ #
455
+ # @version LayOut 2018
456
+ def start_extent_point
457
+ end
458
+
459
+ # The {#start_extent_point=} method sets the paper space location for the
460
+ # start of the dimension line.
461
+ #
462
+ # @example
463
+ # start_point = Geom::Point2d.new(1, 1)
464
+ # end_point = Geom::Point2d.new(5, 5)
465
+ # start_extent = Geom::Point2d.new(1, 2)
466
+ # end_extent = Geom::Point2d.new(5, 6)
467
+ # inner_angle = true
468
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
469
+ # start_ext_point = Geom::Point2d.new(2, 3)
470
+ # dim.start_extent_point = Geom::Point2d.new(2, 2)
471
+ #
472
+ # @param [Geom::Point2d] start_extent
473
+ #
474
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
475
+ #
476
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
477
+ # {Layout::Layer}
478
+ #
479
+ # @version LayOut 2018
480
+ def start_extent_point=(start_extent)
481
+ end
482
+
483
+ # The {#start_offset_length=} method sets the length of the offset from the
484
+ # first connection point to the start of the first extension line. The
485
+ # connection and extent points will not move.
486
+ #
487
+ # @example
488
+ # start_point = Geom::Point2d.new(1, 1)
489
+ # end_point = Geom::Point2d.new(5, 5)
490
+ # start_extent = Geom::Point2d.new(1, 2)
491
+ # end_extent = Geom::Point2d.new(5, 6)
492
+ # inner_angle = true
493
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
494
+ # end_ext_point = Geom::Point2d.new(5, 6)
495
+ # dim.start_offset_length = 0.5
496
+ #
497
+ # @param [Numeric] offset_length
498
+ #
499
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
500
+ #
501
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
502
+ # {Layout::Layer}
503
+ #
504
+ # @version LayOut 2018
505
+ def start_offset_length=(offset_length)
506
+ end
507
+
508
+ # The {#start_offset_point} method returns the paper space location for the
509
+ # start of the first extension line. The first extension line runs from this
510
+ # offset point to the start extent point.
511
+ #
512
+ # @example
513
+ # start_point = Geom::Point2d.new(1, 1)
514
+ # end_point = Geom::Point2d.new(5, 5)
515
+ # start_extent = Geom::Point2d.new(1, 2)
516
+ # end_extent = Geom::Point2d.new(5, 6)
517
+ # inner_angle = true
518
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
519
+ # start_offset = dim.start_offset_point
520
+ #
521
+ # @return [Geom::Point2d] start_offset
522
+ #
523
+ # @version LayOut 2018
524
+ def start_offset_point
525
+ end
526
+
527
+ # The {#text} method returns a copy of the {Layout::AngularDimension}'s
528
+ # {Layout::FormattedText}.
529
+ #
530
+ # @example
531
+ # start_point = Geom::Point2d.new(1, 1)
532
+ # end_point = Geom::Point2d.new(5, 5)
533
+ # start_extent = Geom::Point2d.new(1, 2)
534
+ # end_extent = Geom::Point2d.new(5, 6)
535
+ # inner_angle = true
536
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
537
+ # text = dim.text
538
+ #
539
+ # @return [Layout::FormattedText]
540
+ #
541
+ # @version LayOut 2018
542
+ def text
543
+ end
544
+
545
+ # The {#text=} method sets the {Layout::AngularDimension}'s
546
+ # {Layout::FormattedText}.
547
+ #
548
+ # @example
549
+ # start_point = Geom::Point2d.new(1, 1)
550
+ # end_point = Geom::Point2d.new(5, 5)
551
+ # start_extent = Geom::Point2d.new(1, 2)
552
+ # end_extent = Geom::Point2d.new(5, 6)
553
+ # inner_angle = true
554
+ # dim = Layout::AngularDimension.new(start_point, end_point, start_extent, end_extent, inner_angle)
555
+ # anchor_type = Layout::FormattedText::ANCHOR_TYPE_TOP_LEFT
556
+ # dim.text = Layout::FormattedText.new("Hello LayOut", start_point, anchor_type)
557
+ #
558
+ # @param [Layout::FormattedText] formatted_text
559
+ #
560
+ # @raise [LockedEntityError] if the {Layout::AngularDimension} is locked
561
+ #
562
+ # @raise [LockedLayerError] if the {Layout::AngularDimension} is on a locked
563
+ # {Layout::Layer}
564
+ #
565
+ # @version LayOut 2018
566
+ def text=(formatted_text)
567
+ end
568
+
569
+ end