sketchup-api-stubs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/SketchUp/Geom/BoundingBox.rb +335 -0
  3. data/SketchUp/Geom/LatLong.rb +123 -0
  4. data/SketchUp/Geom/Point3d.rb +643 -0
  5. data/SketchUp/Geom/PolygonMesh.rb +478 -0
  6. data/SketchUp/Geom/Transformation.rb +476 -0
  7. data/SketchUp/Geom/UTM.rb +135 -0
  8. data/SketchUp/Geom/Vector3d.rb +684 -0
  9. data/SketchUp/Sketchup/Animation.rb +137 -0
  10. data/SketchUp/Sketchup/AppObserver.rb +157 -0
  11. data/SketchUp/Sketchup/ArcCurve.rb +209 -0
  12. data/SketchUp/Sketchup/AttributeDictionaries.rb +146 -0
  13. data/SketchUp/Sketchup/AttributeDictionary.rb +280 -0
  14. data/SketchUp/Sketchup/Axes.rb +149 -0
  15. data/SketchUp/Sketchup/Behavior.rb +338 -0
  16. data/SketchUp/Sketchup/Camera.rb +594 -0
  17. data/SketchUp/Sketchup/ClassificationSchema.rb +63 -0
  18. data/SketchUp/Sketchup/Classifications.rb +118 -0
  19. data/SketchUp/Sketchup/Color.rb +291 -0
  20. data/SketchUp/Sketchup/ComponentDefinition.rb +562 -0
  21. data/SketchUp/Sketchup/ComponentInstance.rb +597 -0
  22. data/SketchUp/Sketchup/Console.rb +78 -0
  23. data/SketchUp/Sketchup/ConstructionLine.rb +257 -0
  24. data/SketchUp/Sketchup/ConstructionPoint.rb +32 -0
  25. data/SketchUp/Sketchup/Curve.rb +196 -0
  26. data/SketchUp/Sketchup/DefinitionList.rb +312 -0
  27. data/SketchUp/Sketchup/DefinitionObserver.rb +73 -0
  28. data/SketchUp/Sketchup/DefinitionsObserver.rb +102 -0
  29. data/SketchUp/Sketchup/Dimension.rb +167 -0
  30. data/SketchUp/Sketchup/DimensionLinear.rb +232 -0
  31. data/SketchUp/Sketchup/DimensionObserver.rb +38 -0
  32. data/SketchUp/Sketchup/DimensionRadial.rb +87 -0
  33. data/SketchUp/Sketchup/Drawingelement.rb +400 -0
  34. data/SketchUp/Sketchup/Edge.rb +517 -0
  35. data/SketchUp/Sketchup/EdgeUse.rb +213 -0
  36. data/SketchUp/Sketchup/Entities.rb +1011 -0
  37. data/SketchUp/Sketchup/EntitiesObserver.rb +125 -0
  38. data/SketchUp/Sketchup/Entity.rb +522 -0
  39. data/SketchUp/Sketchup/EntityObserver.rb +59 -0
  40. data/SketchUp/Sketchup/ExtensionsManager.rb +129 -0
  41. data/SketchUp/Sketchup/Face.rb +737 -0
  42. data/SketchUp/Sketchup/FrameChangeObserver.rb +104 -0
  43. data/SketchUp/Sketchup/Group.rb +705 -0
  44. data/SketchUp/Sketchup/Http.rb +27 -0
  45. data/SketchUp/Sketchup/Http/Request.rb +285 -0
  46. data/SketchUp/Sketchup/Http/Response.rb +62 -0
  47. data/SketchUp/Sketchup/Image.rb +393 -0
  48. data/SketchUp/Sketchup/Importer.rb +192 -0
  49. data/SketchUp/Sketchup/InputPoint.rb +393 -0
  50. data/SketchUp/Sketchup/InstanceObserver.rb +82 -0
  51. data/SketchUp/Sketchup/InstancePath.rb +297 -0
  52. data/SketchUp/Sketchup/Layer.rb +240 -0
  53. data/SketchUp/Sketchup/Layers.rb +235 -0
  54. data/SketchUp/Sketchup/LayersObserver.rb +136 -0
  55. data/SketchUp/Sketchup/Licensing.rb +47 -0
  56. data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +88 -0
  57. data/SketchUp/Sketchup/Loop.rb +141 -0
  58. data/SketchUp/Sketchup/Material.rb +384 -0
  59. data/SketchUp/Sketchup/Materials.rb +283 -0
  60. data/SketchUp/Sketchup/MaterialsObserver.rb +141 -0
  61. data/SketchUp/Sketchup/Menu.rb +97 -0
  62. data/SketchUp/Sketchup/Model.rb +1459 -0
  63. data/SketchUp/Sketchup/ModelObserver.rb +356 -0
  64. data/SketchUp/Sketchup/OptionsManager.rb +135 -0
  65. data/SketchUp/Sketchup/OptionsProvider.rb +277 -0
  66. data/SketchUp/Sketchup/OptionsProviderObserver.rb +58 -0
  67. data/SketchUp/Sketchup/Page.rb +636 -0
  68. data/SketchUp/Sketchup/Pages.rb +349 -0
  69. data/SketchUp/Sketchup/PagesObserver.rb +76 -0
  70. data/SketchUp/Sketchup/PickHelper.rb +457 -0
  71. data/SketchUp/Sketchup/RegionalSettings.rb +43 -0
  72. data/SketchUp/Sketchup/RenderingOptions.rb +337 -0
  73. data/SketchUp/Sketchup/RenderingOptionsObserver.rb +44 -0
  74. data/SketchUp/Sketchup/SectionPlane.rb +88 -0
  75. data/SketchUp/Sketchup/Selection.rb +470 -0
  76. data/SketchUp/Sketchup/SelectionObserver.rb +115 -0
  77. data/SketchUp/Sketchup/Set.rb +253 -0
  78. data/SketchUp/Sketchup/ShadowInfo.rb +257 -0
  79. data/SketchUp/Sketchup/ShadowInfoObserver.rb +57 -0
  80. data/SketchUp/Sketchup/Style.rb +77 -0
  81. data/SketchUp/Sketchup/Styles.rb +204 -0
  82. data/SketchUp/Sketchup/Text.rb +241 -0
  83. data/SketchUp/Sketchup/Texture.rb +211 -0
  84. data/SketchUp/Sketchup/TextureWriter.rb +237 -0
  85. data/SketchUp/Sketchup/Tool.rb +808 -0
  86. data/SketchUp/Sketchup/Tools.rb +120 -0
  87. data/SketchUp/Sketchup/ToolsObserver.rb +154 -0
  88. data/SketchUp/Sketchup/UVHelper.rb +61 -0
  89. data/SketchUp/Sketchup/Vertex.rb +143 -0
  90. data/SketchUp/Sketchup/View.rb +965 -0
  91. data/SketchUp/Sketchup/ViewObserver.rb +40 -0
  92. data/SketchUp/UI/Command.rb +307 -0
  93. data/SketchUp/UI/HtmlDialog.rb +346 -0
  94. data/SketchUp/UI/Notification.rb +229 -0
  95. data/SketchUp/UI/Toolbar.rb +243 -0
  96. data/SketchUp/UI/WebDialog.rb +623 -0
  97. data/SketchUp/_top_level.rb +193 -0
  98. data/SketchUp/array.rb +593 -0
  99. data/SketchUp/geom.rb +231 -0
  100. data/SketchUp/languagehandler.rb +92 -0
  101. data/SketchUp/length.rb +210 -0
  102. data/SketchUp/numeric.rb +249 -0
  103. data/SketchUp/sketchup.rb +1290 -0
  104. data/SketchUp/sketchupextension.rb +355 -0
  105. data/SketchUp/string.rb +24 -0
  106. data/SketchUp/ui.rb +637 -0
  107. metadata +176 -0
@@ -0,0 +1,43 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The {Sketchup::RegionalSettings} module contains methods getting information about the
5
+ # user's locale settings.
6
+ #
7
+ # Note that when you convert between units and strings you don't need to parse
8
+ # it yourself and you can instead use {String#to_l} and {Length#to_s}.
9
+ #
10
+ # @version SketchUp 2016 M1
11
+ module Sketchup::RegionalSettings
12
+
13
+ # Class Methods
14
+
15
+ # Returns the decimal character for the current user's locale.
16
+ #
17
+ # @example
18
+ # # Format a Float using the user's locale settings.
19
+ # # Ruby's Float.to_s always use period as decimal separator.
20
+ # formatted = 0.123.to_s.tr('.', Sketchup::RegionalSettings.decimal_separator)
21
+ #
22
+ # @return [String] the decimal separator character
23
+ #
24
+ # @version SketchUp 2016 M1
25
+ def self.decimal_separator
26
+ end
27
+
28
+ # Returns the list separator character for the current user's locale.
29
+ #
30
+ # @example
31
+ # # Format a CSV list in user's locale:
32
+ # decimal = Sketchup::RegionalSettings.decimal_separator
33
+ # list = Sketchup::RegionalSettings.list_separator
34
+ # row = [3.14, 1.618, 2.718]
35
+ # csv = row.map { |value| value.to_s.tr('.', decimal) }.join(list)
36
+ #
37
+ # @return [String] the list separator character
38
+ #
39
+ # @version SketchUp 2016 M1
40
+ def self.list_separator
41
+ end
42
+
43
+ end
@@ -0,0 +1,337 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The RenderingOptions class contains method to extract the rendering
5
+ # information for a model. The majority of the rendering information returned
6
+ # exists in the Styles dialog. The following
7
+ # rendering information keys are maintained in SketchUp:
8
+ #
9
+ # - +BackgroundColor+
10
+ # - +BandColor+
11
+ # - +ConstructionColor+
12
+ # - +DepthQueWidth+
13
+ # - +DisplayColorByLayer+
14
+ # - +DisplayFog+
15
+ # - +DisplayInstanceAxes+
16
+ # - +DisplayWatermarks+
17
+ # - +DrawDepthQue+
18
+ # - +DrawGround+
19
+ # - +DrawHidden+
20
+ # - +DrawHorizon+
21
+ # - +DrawLineEnds+
22
+ # - +DrawProfilesOnly+
23
+ # - +DrawSilhouettes+
24
+ # - +DrawUnderground+
25
+ # - +EdgeColorMode+
26
+ # - +EdgeDisplayMode+
27
+ # - +EdgeType+
28
+ # - +ExtendLines+
29
+ # - +FaceBackColor+
30
+ # - +FaceColorMode+
31
+ # - +FaceFrontColor+
32
+ # - +FogColor+
33
+ # - +FogEndDist+
34
+ # - +FogStartDist+
35
+ # - +FogUseBkColor+
36
+ # - +ForegroundColor+
37
+ # - +GroundColor+
38
+ # - +GroundTransparency+
39
+ # - +HideConstructionGeometry+
40
+ # - +HighlightColor+
41
+ # - +HorizonColor+
42
+ # - +InactiveHidden+
43
+ # - +InstanceHidden+
44
+ # - +JitterEdges+
45
+ # - +LineEndWidth+
46
+ # - +LineExtension+
47
+ # - +LockedColor+
48
+ # - +MaterialTransparency+
49
+ # - +ModelTransparency+
50
+ # - +RenderMode+
51
+ # - +SectionActiveColor+
52
+ # - +SectionCutWidth+
53
+ # - +SectionDefaultCutColor+
54
+ # - +SectionInactiveColor+
55
+ # - +ShowViewName+
56
+ # - +SilhouetteWidth+
57
+ # - +SkyColor+
58
+ # - +Texture+
59
+ # - +TransparencySort+ SketchUp 2017 treats Medium transparency as Faster.
60
+ #
61
+ # Added in SketchUp 7:
62
+ # - +DisplayDims+
63
+ # - +DisplaySketchAxes+
64
+ # - +DisplayText+
65
+ #
66
+ # Added in SketchUp 8:
67
+ # - +InactiveFade+
68
+ # - +InstanceFade+
69
+ #
70
+ # Added in SketchUp 2014:
71
+ # - +DisplaySectionPlanes+
72
+ #
73
+ # Added in SketchUp 2015:
74
+ # - +DisplaySectionCuts+
75
+ # - +DrawBackEdges+
76
+ # - +SectionCutDrawEdges+
77
+ #
78
+ # @version SketchUp 6.0
79
+ class Sketchup::RenderingOptions < Sketchup::Entity
80
+
81
+ # Includes
82
+
83
+ include Enumerable
84
+
85
+ # Constants
86
+
87
+ ROPAssign = nil # Stub value.
88
+ ROPDrawHidden = nil # Stub value.
89
+ ROPEditComponent = nil # Stub value.
90
+ ROPSetBackgroundColor = nil # Stub value.
91
+ ROPSetConstructionColor = nil # Stub value.
92
+ ROPSetDepthQueEdges = nil # Stub value.
93
+ ROPSetDepthQueWidth = nil # Stub value.
94
+ ROPSetDisplayColorByLayer = nil # Stub value.
95
+ ROPSetDisplayDims = nil # Stub value.
96
+ ROPSetDisplayFog = nil # Stub value.
97
+ ROPSetDisplayInstanceAxes = nil # Stub value.
98
+ ROPSetDisplaySketchAxes = nil # Stub value.
99
+ ROPSetDisplayText = nil # Stub value.
100
+ ROPSetDisplayWatermarks = nil # Stub value.
101
+ ROPSetDrawBackEdges = nil # Stub value.
102
+ ROPSetDrawGround = nil # Stub value.
103
+ ROPSetDrawHorizon = nil # Stub value.
104
+ ROPSetDrawUnderground = nil # Stub value.
105
+ ROPSetEdgeColorMode = nil # Stub value.
106
+ ROPSetEdgeDisplayMode = nil # Stub value.
107
+ ROPSetEdgeType = nil # Stub value.
108
+ ROPSetExtendEdges = nil # Stub value.
109
+ ROPSetExtendLines = nil # Stub value.
110
+ ROPSetFaceColor = nil # Stub value.
111
+ ROPSetFaceColorMode = nil # Stub value.
112
+ ROPSetFogColor = nil # Stub value.
113
+ ROPSetFogDist = nil # Stub value.
114
+ ROPSetFogHint = nil # Stub value.
115
+ ROPSetFogUseBkColor = nil # Stub value.
116
+ ROPSetForegroundColor = nil # Stub value.
117
+ ROPSetGroundColor = nil # Stub value.
118
+ ROPSetGroundTransparency = nil # Stub value.
119
+ ROPSetHideConstructionGeometry = nil # Stub value.
120
+ ROPSetHighlightColor = nil # Stub value.
121
+ ROPSetJitterEdges = nil # Stub value.
122
+ ROPSetLineEndEdges = nil # Stub value.
123
+ ROPSetLineEndWidth = nil # Stub value.
124
+ ROPSetLineExtension = nil # Stub value.
125
+ ROPSetLockedColor = nil # Stub value.
126
+ ROPSetMaterialTransparency = nil # Stub value.
127
+ ROPSetModelTransparency = nil # Stub value.
128
+ ROPSetPhotomatchBackgroundOpacity = nil # Stub value.
129
+ ROPSetPhotomatchDrawBackground = nil # Stub value.
130
+ ROPSetPhotomatchDrawOverlay = nil # Stub value.
131
+ ROPSetPhotomatchOverlayOpacity = nil # Stub value.
132
+ ROPSetProfileEdges = nil # Stub value.
133
+ ROPSetProfileWidth = nil # Stub value.
134
+ ROPSetProfilesOnlyEdges = nil # Stub value.
135
+ ROPSetRenderMode = nil # Stub value.
136
+ ROPSetSectionActiveColor = nil # Stub value.
137
+ ROPSetSectionCutWidth = nil # Stub value.
138
+ ROPSetSectionDefaultCutColor = nil # Stub value.
139
+ ROPSetSectionDisplayMode = nil # Stub value.
140
+ ROPSetSectionInactiveColor = nil # Stub value.
141
+ ROPSetSkyColor = nil # Stub value.
142
+ ROPSetTexture = nil # Stub value.
143
+ ROPSetTransparencyObsolete = nil # Stub value.
144
+ ROPSetXRayOpacity = nil # Stub value.
145
+ ROPTransparencySortMethod = nil # Stub value.
146
+
147
+ # Class Methods
148
+
149
+ # The each_key method iterates through all of the rendering options keys.
150
+ #
151
+ # @example
152
+ # Sketchup.active_model.rendering_options.each_key { |key|
153
+ # puts key
154
+ # }
155
+ #
156
+ # @return nil
157
+ #
158
+ # @version SketchUp 6.0
159
+ #
160
+ # @yield [key] Variable to hold each key as they are found.
161
+ def self.each_key
162
+ end
163
+
164
+ # The keys method returns an array with all of the attribute keys.
165
+ #
166
+ # @example
167
+ # keys = Sketchup.active_model.rendering_options.keys
168
+ #
169
+ # @return keys - an array of keys
170
+ #
171
+ # @version SketchUp 6.0
172
+ def self.keys
173
+ end
174
+
175
+ # Instance Methods
176
+
177
+ # The set value [] method is used to get the value in the array of
178
+ # rendering options.
179
+ #
180
+ # @example
181
+ # result = Sketchup.active_model.rendering_options["DisplayInstanceAxes"]
182
+ #
183
+ # @param key
184
+ # The key of the rendering option value to set.
185
+ #
186
+ # @return value - the value that was found.
187
+ #
188
+ # @version SketchUp 6.0
189
+ def [](key)
190
+ end
191
+
192
+ # The set value []= method is used to set the value in the array of
193
+ # rendering options.
194
+ #
195
+ # @example
196
+ # Sketchup.active_model.rendering_options["DisplayInstanceAxes"] = false
197
+ #
198
+ # @param key
199
+ # The key of the rendering option value to set.
200
+ #
201
+ # @param value
202
+ # The value to be set.
203
+ #
204
+ # @return value - the value that was set
205
+ #
206
+ # @version SketchUp 6.0
207
+ def []=(key, value)
208
+ end
209
+
210
+ # The add_observer method is used to add an observer to the current object.
211
+ #
212
+ # @example
213
+ # observer = Sketchup::RenderingOptionsObserver.new # Dummy observer.
214
+ # result = Sketchup.active_model.rendering_options.add_observer(observer)
215
+ #
216
+ # @param observer
217
+ # An observer.
218
+ #
219
+ # @return true if successful, false if unsuccessful.
220
+ #
221
+ # @version SketchUp 6.0
222
+ def add_observer(observer)
223
+ end
224
+
225
+ # The {#count} method is inherited from the +Enumerable+ mix-in module.
226
+ #
227
+ # @example
228
+ # options = Sketchup.active_model.rendering_options
229
+ # number = options.count
230
+ #
231
+ # @return integer
232
+ #
233
+ # @version SketchUp 2014
234
+ def count
235
+ end
236
+
237
+ # An alias for each. See RenderingOptions.each.
238
+ #
239
+ # @example
240
+ # Sketchup.active_model.rendering_options.each_pair { |key, value|
241
+ # puts "#{key} : #{value}"
242
+ # }
243
+ #
244
+ # @return nil
245
+ #
246
+ # @version SketchUp 6.0
247
+ def each
248
+ end
249
+
250
+ # The each_key method iterates through all of the rendering options keys.
251
+ #
252
+ # @example
253
+ # Sketchup.active_model.rendering_options.each_key { |key|
254
+ # puts key
255
+ # }
256
+ #
257
+ # @return nil
258
+ #
259
+ # @version SketchUp 6.0
260
+ #
261
+ # @yield [key] Variable to hold each key as they are found.
262
+ def each_key
263
+ end
264
+
265
+ # An alias for each. See RenderingOptions.each.
266
+ #
267
+ # @example
268
+ # Sketchup.active_model.rendering_options.each_pair { |key, value|
269
+ # puts "#{key} : #{value}"
270
+ # }
271
+ #
272
+ # @return nil
273
+ #
274
+ # @version SketchUp 6.0
275
+ def each_pair
276
+ end
277
+
278
+ # The keys method returns an array with all of the attribute keys.
279
+ #
280
+ # @example
281
+ # keys = Sketchup.active_model.rendering_options.keys
282
+ #
283
+ # @return keys - an array of keys
284
+ #
285
+ # @version SketchUp 6.0
286
+ def keys
287
+ end
288
+
289
+ # The {#length} method returns the number of options in the rendering options
290
+ # collection
291
+ #
292
+ # The {#size} method is an alias for {#length}.
293
+ #
294
+ # @example
295
+ # options = Sketchup.active_model.rendering_options
296
+ # number = options.length
297
+ #
298
+ # @return integer
299
+ #
300
+ # @version SketchUp 2014
301
+ def length
302
+ end
303
+
304
+ # The remove_observer method is used to remove an observer from the current
305
+ # object.
306
+ #
307
+ # @example
308
+ # observer = Sketchup::RenderingOptionsObserver.new # Dummy observer.
309
+ # options = Sketchup.active_model.rendering_options
310
+ # options.add_observer(observer)
311
+ # result = options.remove_observer(observer)
312
+ #
313
+ # @param observer
314
+ # An observer.
315
+ #
316
+ # @return true if successful, false if unsuccessful.
317
+ #
318
+ # @version SketchUp 6.0
319
+ def remove_observer(observer)
320
+ end
321
+
322
+ # The {#length} method returns the number of options in the rendering options
323
+ # collection
324
+ #
325
+ # The {#size} method is an alias for {#length}.
326
+ #
327
+ # @example
328
+ # options = Sketchup.active_model.rendering_options
329
+ # number = options.length
330
+ #
331
+ # @return integer
332
+ #
333
+ # @version SketchUp 2014
334
+ def size
335
+ end
336
+
337
+ end
@@ -0,0 +1,44 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # This observer interface is implemented to react to rendering options events.
5
+ # To implement this observer, create a Ruby class of this type, implement the
6
+ # desired methods, and add an instance of the observer to the objects of
7
+ # interests.
8
+ #
9
+ # @example
10
+ # # This is an example of an observer that watches the rendering options
11
+ # # for changes.
12
+ # class MyRenderingOptionsObserver < Sketchup::RenderingOptionsObserver
13
+ # def onRenderingOptionsChanged(rendering_options, type)
14
+ # puts "onRenderingOptionsChanged(#{rendering_options}, #{type})"
15
+ # end
16
+ # end
17
+ #
18
+ # # Attach the observer.
19
+ # rendering_options = Sketchup.active_model.rendering_options
20
+ # rendering_options.add_observer(MyRenderingOptionsObserver.new)
21
+ class Sketchup::RenderingOptionsObserver
22
+
23
+ # Instance Methods
24
+
25
+ # The onRenderingOptionsChanged method is invoked whenever the user changes
26
+ # their rendering options.
27
+ #
28
+ # @example
29
+ # def onRenderingOptionsChanged(rendering_options, type)
30
+ # puts "onRenderingOptionsChanged(#{rendering_options}, #{type})"
31
+ # end
32
+ #
33
+ # @param [Integer] type
34
+ # A number indicating which option was changed
35
+ # represented by one of the constants defined in
36
+ # {Sketchup::RenderingOptions}.
37
+ #
38
+ # @param [Sketchup::RenderingOptions] rendering_options
39
+ #
40
+ # @version SketchUp 6.0
41
+ def onRenderingOptionsChanged(rendering_options, type)
42
+ end
43
+
44
+ end
@@ -0,0 +1,88 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The SectionPlane class represents a section plane in a SketchUp model. Note
5
+ # that prior to SketchUp 2014 there was no way to create a SectionPlane object
6
+ # using Ruby. For older versions of SketchUp, you must manually create a
7
+ # section plane with the Section Plane Tool in SketchUp and then query the
8
+ # entities array to find the SectionPlane object.
9
+ #
10
+ # @version SketchUp 6.0
11
+ class Sketchup::SectionPlane < Sketchup::Drawingelement
12
+
13
+ # Instance Methods
14
+
15
+ # The activate method is used to make the section plane the active one of its
16
+ # parent component/group.
17
+ #
18
+ # @example
19
+ # entities = Sketchup.active_model.entities
20
+ # sp = entities.add_section_plane([50, 50, 0], [1.0, 1.0, 0])
21
+ # sp.activate
22
+ #
23
+ # @return self if successful
24
+ #
25
+ # @version SketchUp 2014
26
+ def activate
27
+ end
28
+
29
+ # The active? method indicates whether the section plane is active or not.
30
+ #
31
+ # @example
32
+ # entities = Sketchup.active_model.entities
33
+ # sp = entities.add_section_plane([50, 50, 0], [1.0, 1.0, 0])
34
+ # sp.activate
35
+ # if sp.active?
36
+ # puts "Yes, it is active"
37
+ # end
38
+ #
39
+ # @return boolean - true if active
40
+ #
41
+ # @return [Boolean]
42
+ #
43
+ # @version SketchUp 2014
44
+ def active?
45
+ end
46
+
47
+ # The get_plane method is used to retrieve the plane that the section plane is
48
+ # on.
49
+ #
50
+ # @example
51
+ # model = Sketchup.active_model
52
+ # entities = model.active_entities
53
+ # # Grab the first section plane from the model.
54
+ # sp = entities.grep(Sketchup::SectionPlane).first
55
+ # plane = sp.get_plane
56
+ # if (plane)
57
+ # puts plane.to_s
58
+ # else
59
+ # puts 'Failure'
60
+ # end
61
+ #
62
+ # @return plane - a plane. See the Geom module and Array class
63
+ # for further information on planes.
64
+ #
65
+ # @version SketchUp 6.0
66
+ def get_plane
67
+ end
68
+
69
+ # The set_plane method is used to set the plane that the section plane is
70
+ # on.
71
+ #
72
+ # @example
73
+ # model = Sketchup.active_model
74
+ # entities = model.active_entities
75
+ # # Grab the first section plane from the model.
76
+ # sp = entities.grep(Sketchup::SectionPlane).first
77
+ # sp = sp.set_plane my_plane_array
78
+ #
79
+ # @param plane
80
+ # An array representing the new plane,
81
+ #
82
+ # @return section_plane - the updated SectionPlane.
83
+ #
84
+ # @version SketchUp 6.0
85
+ def set_plane(plane)
86
+ end
87
+
88
+ end