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,192 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The Importer interface lets you build your own importers for SketchUp. To
5
+ # use this, you create a subclass of Importer and implement all of the
6
+ # methods described below. This will make your importer appear in the list
7
+ # that users see under File > Import, and you can use Ruby to do all of the
8
+ # work of opening the file and creating whatever you need inside SketchUp.
9
+ #
10
+ # Here is an example of a complete script that imports a .txt file and
11
+ # displays its contents in a messagebox.
12
+ #
13
+ # @example
14
+ # class TextImporter < Sketchup::Importer
15
+ #
16
+ # # This method is called by SketchUp to determine the description that
17
+ # # appears in the File > Import dialog's pulldown list of valid
18
+ # # importers.
19
+ # def description
20
+ # return "Custom Text Importer (*.txt)"
21
+ # end
22
+ #
23
+ # # This method is called by SketchUp to determine what file extension
24
+ # # is associated with your importer.
25
+ # def file_extension
26
+ # return "txt"
27
+ # end
28
+ #
29
+ # # This method is called by SketchUp to get a unique importer id.
30
+ # def id
31
+ # return "com.sketchup.importers.custom_txt"
32
+ # end
33
+ #
34
+ # # This method is called by SketchUp to determine if the "Options"
35
+ # # button inside the File > Import dialog should be enabled while your
36
+ # # importer is selected.
37
+ # def supports_options?
38
+ # return true
39
+ # end
40
+ #
41
+ # # This method is called by SketchUp when the user clicks on the
42
+ # # "Options" button inside the File > Import dialog. You can use it to
43
+ # # gather and store settings for your importer.
44
+ # def do_options
45
+ # # In a real use you would probably store this information in an
46
+ # # instance variable.
47
+ # my_settings = UI.inputbox(['My Import Option:'], ['1'],
48
+ # "Import Options")
49
+ # end
50
+ #
51
+ # # This method is called by SketchUp after the user has selected a file
52
+ # # to import. This is where you do the real work of opening and
53
+ # # processing the file.
54
+ # def load_file(file_path, status)
55
+ # UI.messagebox(file_path)
56
+ # return 0 # 0 is the code for a successful import
57
+ # end
58
+ # end
59
+ #
60
+ # Sketchup.register_importer(TextImporter.new)
61
+ #
62
+ # @version SketchUp 6.0
63
+ class Sketchup::Importer
64
+
65
+ # Constants
66
+
67
+ ImportCanceled = nil # Stub value.
68
+ ImportFail = nil # Stub value.
69
+ ImportFileNotFound = nil # Stub value.
70
+ ImportSuccess = nil # Stub value.
71
+ ImporterNotFound = nil # Stub value.
72
+
73
+ # Instance Methods
74
+
75
+ # This method is called by SketchUp to determine the description that appears
76
+ # in the File > Import dialog's pulldown list of valid importers.
77
+ #
78
+ # Though it is common for the description to include the file extension
79
+ # supported by the importer (such as "Text Importer (.txt)"), the actual
80
+ # extension is defined in the file_extension method.
81
+ #
82
+ # @example
83
+ # def description
84
+ # return "Custom Text Importer (*.txt)"
85
+ # end
86
+ #
87
+ # @return description - a brief string description
88
+ #
89
+ # @version SketchUp 6.0
90
+ def description
91
+ end
92
+
93
+ # This method is called by SketchUp when the user clicks on the "Options"
94
+ # button inside the File > Import dialog. You can use it to gather and store
95
+ # settings for your importer.
96
+ #
97
+ # Only applicable if the importer supports options, meaning its
98
+ # supports_options method returns true.
99
+ #
100
+ # @example
101
+ # def id
102
+ # return "com.sketchup.importers.custom_txt"
103
+ # end
104
+ #
105
+ # @return id - an id string
106
+ #
107
+ # @version SketchUp 6.0
108
+ def do_options
109
+ end
110
+
111
+ # This method is called by SketchUp to determine a single file extension is
112
+ # associated with your importer. Only files that match this extension will be
113
+ # shown to the user as they browse their harddrive for things to import.
114
+ #
115
+ # Ruby importers are only allowed to support a single extension.
116
+ #
117
+ # @example
118
+ # def file_extension
119
+ # return "txt"
120
+ # end
121
+ #
122
+ # @return extension - typically a 3-letter string
123
+ #
124
+ # @version SketchUp 6.0
125
+ def file_extension
126
+ end
127
+
128
+ # This method is called by SketchUp to determine a unique identifier for
129
+ # your importer, typically something like "com.sketchup.importers.dxf".
130
+ #
131
+ # @example
132
+ # def id
133
+ # return "com.sketchup.importers.custom_txt"
134
+ # end
135
+ #
136
+ # @return id - an id string
137
+ #
138
+ # @version SketchUp 6.0
139
+ def id
140
+ end
141
+
142
+ # This method is called by SketchUp after the user has selected a file to
143
+ # import. This is where you do the real work by opening the file via Ruby's
144
+ # File object and processing it in whatever way you need.
145
+ #
146
+ # You must return an integer success code to SketchUp when you are done.
147
+ # These are the codes that SketchUp understands and what will happen when
148
+ # SketchUp receives each key.
149
+ #
150
+ # - 0 = Import Success (no additional dialog shown)
151
+ # - 1 = Import Failed (no additional dialog shown)
152
+ # - 2 = Import Cancelled by User (SketchUp will show a "cancelled" dialog)
153
+ # - 4 = Import File not Found (SketchUp will show a "not found" dialog)
154
+ # - 5 = SketchUp version not supported (no additional dialog shown)
155
+ #
156
+ # @example
157
+ # def load_file(file_path, status)
158
+ # # Here is where you would open the file and process it.
159
+ # UI.messagebox(file_path)
160
+ # return 0 # Success
161
+ # end
162
+ #
163
+ # @param file_path
164
+ # Absolute path to the file the user selected
165
+ #
166
+ # @param status
167
+ # The status of the import so far. Contains true.
168
+ #
169
+ # @return success - an integer status code. See above.
170
+ #
171
+ # @version SketchUp 6.0
172
+ def load_file(file_path, status)
173
+ end
174
+
175
+ # This method is called by SketchUp to determine if the "Options"
176
+ # button inside the File > Import dialog should be enabled while your
177
+ # importer is selected.
178
+ #
179
+ # @example
180
+ # def supports_options?
181
+ # return true
182
+ # end
183
+ #
184
+ # @return supports_options - a boolean
185
+ #
186
+ # @return [Boolean]
187
+ #
188
+ # @version SketchUp 6.0
189
+ def supports_options?
190
+ end
191
+
192
+ end
@@ -0,0 +1,393 @@
1
+ # Copyright:: Copyright 2017 Trimble Inc.
2
+ # License:: The MIT License (MIT)
3
+
4
+ # The InputPoint used to pick entities that reside under the current cursor
5
+ # location. InputPoint and PickHelper are similar, but InputPoint also uses
6
+ # inferencing. Only tools react to cursor location. Therefore, most of the
7
+ # methods in this class are only useful in the context of a tool you are
8
+ # writing. For example, if you want to determine the entity that you just
9
+ # clicked on with the mouse, you would use InputPoint.pick from within your
10
+ # onLMouseButton method in a tool. See the example script linetool.rb for
11
+ # examples of using the InputPoint class.
12
+ #
13
+ # @version SketchUp 6.0
14
+ class Sketchup::InputPoint
15
+
16
+ # Instance Methods
17
+
18
+ # The == method is used to determine if two input points are the same.
19
+ #
20
+ # @example
21
+ # view = Sketchup.active_model.active_view
22
+ # x = 100
23
+ # y = 100
24
+ # ip1 = Sketchup::InputPoint.new
25
+ # ip2 = view.inputpoint x,y
26
+ # # Copy the contents of inputpoint2 into inputpoint1
27
+ # ip1.copy! ip2
28
+ # # Returns true
29
+ # status = ip1 == ip2
30
+ #
31
+ # @param inputpoint2
32
+ # The second input point in the comparison.
33
+ #
34
+ # @return status - true if the InputPoint objects are the same
35
+ # object. False if the objects are not the same.
36
+ #
37
+ # @version SketchUp 6.0
38
+ def ==(inputpoint2)
39
+ end
40
+
41
+ # The clear method is used to clear the input point.
42
+ #
43
+ # This sets it to an empty state. After calling this, valid? will return
44
+ # false.
45
+ #
46
+ # @example
47
+ # view = Sketchup.active_model.active_view
48
+ # x = 100
49
+ # y = 100
50
+ # ip1 = view.inputpoint x,y
51
+ # # Returns true
52
+ # ip = ip1.clear
53
+ #
54
+ # @return inputpoint - the cleared (empty) input point if this
55
+ # successful
56
+ #
57
+ # @version SketchUp 6.0
58
+ def clear
59
+ end
60
+
61
+ # The copy! method is used to copy the data from a second input point into
62
+ # this input point.
63
+ #
64
+ # @example
65
+ # view = Sketchup.active_model.active_view
66
+ # x = 100
67
+ # y = 100
68
+ # ip1 = Sketchup::InputPoint.new
69
+ # ip2 = view.inputpoint x,y
70
+ # # Copy the contents of inputpoint2 into inputpoint1
71
+ # ip = ip1.copy! ip2
72
+ #
73
+ # @param inputpoint
74
+ # The second input point.
75
+ #
76
+ # @return inputpoint - the new input point that received the copy
77
+ # if successful
78
+ #
79
+ # @version SketchUp 6.0
80
+ def copy!(inputpoint)
81
+ end
82
+
83
+ # The degrees_of_freedom method retrieves the number of degrees of freedom
84
+ # there are for an input point.
85
+ #
86
+ # If you are just getting a point in space, then the degrees_of_freedom will
87
+ # be 3 - meaning that there is nothing about the point that would constrain
88
+ # its position.
89
+ #
90
+ # If you are on a face, then the degrees_of_freedom will be 2
91
+ # meaning that you can only move on the plane of the face.
92
+ #
93
+ # If you are on an Edge or an axis, then the degrees_of_freedom will be 1
94
+ # meaning that you can only move in the direction of the edge or axis.
95
+ #
96
+ # If you get an end point of an Edge, or an intersection point, then the
97
+ # degrees_of_freedom will be 0.
98
+ #
99
+ # @example
100
+ # view = Sketchup.active_model.active_view
101
+ # x = 100
102
+ # y = 100
103
+ # ip1 = view.inputpoint x,y
104
+ # dof = ip1.degrees_of_freedom
105
+ #
106
+ # @return degrees_of_freedom - see comments.
107
+ #
108
+ # @version SketchUp 6.0
109
+ def degrees_of_freedom
110
+ end
111
+
112
+ # The depth method retrieves the depth of an inference if it is coming from a
113
+ # component.
114
+ #
115
+ # If the InputPoint is not getting a position from inside a component, this
116
+ # method will return 0. Otherwise it returns the depth of the entity in a
117
+ # nested component that is providing the position.
118
+ #
119
+ # @example
120
+ # view = Sketchup.active_model.active_view
121
+ # x = 100
122
+ # y = 100
123
+ # ip1 = view.inputpoint x,y
124
+ # d = ip1.depth
125
+ #
126
+ # @return depth - a number representing the depth of the
127
+ # inputpoint (inside groups and components) if successful
128
+ #
129
+ # @version SketchUp 6.0
130
+ def depth
131
+ end
132
+
133
+ # The display? method is used to determine if the input point has anything to
134
+ # draw.
135
+ #
136
+ # If the method returns true, then the draw method will draw something.
137
+ #
138
+ # @example
139
+ # view = Sketchup.active_model.active_view
140
+ # x = 100
141
+ # y = 100
142
+ # ip1 = view.inputpoint x,y
143
+ # status = ip1.display
144
+ #
145
+ # @return status - true if the draw method will draw something,
146
+ # false if the draw method has nothing to draw
147
+ #
148
+ # @return [Boolean]
149
+ #
150
+ # @version SketchUp 6.0
151
+ def display?
152
+ end
153
+
154
+ # The draw method is used to draw the input point.
155
+ #
156
+ # This is useful for showing an InputPoint from within the draw method of a
157
+ # tool that you have implemented in Ruby. Additional examples are available in
158
+ # the Plugins/examples directory.
159
+ #
160
+ # @example
161
+ # view = Sketchup.active_model.active_view
162
+ # x = 100
163
+ # y = 100
164
+ # ip1 = view.inputpoint x,y
165
+ # ip = ip1.draw view
166
+ #
167
+ # @param view
168
+ # The current view.
169
+ #
170
+ # @return view
171
+ #
172
+ # @version SketchUp 6.0
173
+ def draw(view)
174
+ end
175
+
176
+ # The edge method is used to retrieve the edge if the input point is getting
177
+ # its position from a point on an Edge.
178
+ #
179
+ # @example
180
+ # view = Sketchup.active_model.active_view
181
+ # x = 100
182
+ # y = 100
183
+ # ip1 = view.inputpoint x,y
184
+ # e = ip1.edge
185
+ #
186
+ # @return edge - an Edge object if successful, or nil if
187
+ # unsuccessful
188
+ #
189
+ # @version SketchUp 6.0
190
+ def edge
191
+ end
192
+
193
+ # The face method retrieves the face if the input point is getting its
194
+ # position from a face.
195
+ #
196
+ # Otherwise it returns nil.
197
+ #
198
+ # @example
199
+ # view = Sketchup.active_model.active_view
200
+ # x = 100
201
+ # y = 100
202
+ # ip1 = view.inputpoint x,y
203
+ # f = ip1.face
204
+ #
205
+ # @return face - a Face object if successful, or nil if
206
+ # unsuccessful
207
+ #
208
+ # @version SketchUp 6.0
209
+ def face
210
+ end
211
+
212
+ # The new method is used to create a new InputPoint object.
213
+ #
214
+ # @example
215
+ # ip1 = Sketchup::InputPoint.new
216
+ #
217
+ # # Or you can construct it at an arbitrary location.
218
+ # starting_point = Geom::Point3d.new(100, 200, 300)
219
+ # ip2 = Sketchup::InputPoint.new(starting_point)
220
+ #
221
+ # @param pt_or_vertex
222
+ # An optional Point3d or Vertex where the new InputPoint
223
+ # should be created.
224
+ #
225
+ # @return inputpoint - the newly created InputPoint object if
226
+ # successful
227
+ #
228
+ # @version SketchUp 6.0
229
+ def initialize(pt_or_vertex)
230
+ end
231
+
232
+ # The {#instance_path} method retrieves the instance path for the picked point.
233
+ #
234
+ # The returned instance_path is a copy of what the input point is holding on to
235
+ # at the moment you access it. Your copy will not update if you make new picks
236
+ # with the input point.
237
+ #
238
+ # If there has been no valid pick it will return `nil`.
239
+ #
240
+ # @example
241
+ # view = Sketchup.active_model.active_view
242
+ # x = 100
243
+ # y = 100
244
+ # ip = view.inputpoint(x, y)
245
+ # instance_path = ip.instance_path
246
+ #
247
+ # @return [Sketchup::InstancePath, nil]
248
+ #
249
+ # @version SketchUp 2017
250
+ def instance_path
251
+ end
252
+
253
+ # The pick method is used to get the input point at a specific screen
254
+ # position.
255
+ #
256
+ # The first form just uses the screen position to compute the InputPoint. It
257
+ # is used when you don't want the InputPoint to be dependent on another
258
+ # InputPoint.
259
+ #
260
+ # The second form uses the screen position and another InputPoint. It will
261
+ # find additional inferences such as along one of the axis directions from the
262
+ # first point.
263
+ #
264
+ # @example
265
+ # view = Sketchup.active_model.active_view
266
+ # x = 100
267
+ # y = 100
268
+ # inputpoint = view.inputpoint x, y
269
+ # inputpoint2 = Sketchup::InputPoint.new
270
+ # inputpoint.pick view, x, y
271
+ # inputpoint.pick view, x, y, inputpoint2
272
+ #
273
+ # @param view
274
+ # The current view.
275
+ #
276
+ # @param x
277
+ # A x value.
278
+ #
279
+ # @param [optional] inputpoint
280
+ # A second input point used as a reference
281
+ # for the pick.
282
+ #
283
+ # @param y
284
+ # A y value.
285
+ #
286
+ # @return status - true if a valid InputPoint was picked and it
287
+ # is different than it was before.
288
+ #
289
+ # @version SketchUp 6.0
290
+ def pick(view, x, y, inputpoint)
291
+ end
292
+
293
+ # The position method is used to get the 3D point from the input point.
294
+ #
295
+ # @example
296
+ # view = Sketchup.active_model.active_view
297
+ # x = 100
298
+ # y = 100
299
+ # ip1 = view.inputpoint x,y
300
+ # point = ip1.position
301
+ #
302
+ # @return point - a Point3d object position for the input point
303
+ # if successful
304
+ #
305
+ # @version SketchUp 6.0
306
+ def position
307
+ end
308
+
309
+ # The tooltip method is used to retrieve the string that is the tool tip to
310
+ # display for the input point.
311
+ #
312
+ # @example
313
+ # view = Sketchup.active_model.active_view
314
+ # x = 100
315
+ # y = 100
316
+ # ip1 = view.inputpoint x,y
317
+ # # Click on a face and you get "On Face"
318
+ # tip = ip1.tooltip
319
+ #
320
+ # @return tip - a string tooltip or an empty string (if the input
321
+ # point doesn't provide a tooltip).
322
+ #
323
+ # @version SketchUp 6.0
324
+ def tooltip
325
+ end
326
+
327
+ # The transformation method retrieves the Transformation object for the input
328
+ # point.
329
+ #
330
+ # If the InputPoint object is getting its position from something inside of a
331
+ # component instance, this method returns the Transformation of the component
332
+ # instance. Otherwise it returns the identity Transformation.
333
+ #
334
+ # Note that the position method on a input point always returns a point that is
335
+ # transformed into model space. If you are using the edge, face or vertex
336
+ # method on the InputPoint though, you will probably need to use the
337
+ # transformation method to transform the data that you get back from the
338
+ # selected entity.
339
+ #
340
+ # @example
341
+ # view = Sketchup.active_model.active_view
342
+ # x = 100
343
+ # y = 100
344
+ # ip1 = view.inputpoint x,y
345
+ # # In this case, returning the identity transformation
346
+ # tform = ip1.transformation
347
+ #
348
+ # @return transformation - the Transformation for the input point
349
+ # if successful
350
+ #
351
+ # @version SketchUp 6.0
352
+ def transformation
353
+ end
354
+
355
+ # The valid? method is used to determine if an input point has valid data.
356
+ #
357
+ # You must have called the pick method to set the data before it is valid.
358
+ #
359
+ # @example
360
+ # view = Sketchup.active_model.active_view
361
+ # x = 100
362
+ # y = 100
363
+ # ip1 = view.inputpoint x,y
364
+ # status = ip1.valid?
365
+ #
366
+ # @return status - true if the input point has valid data, false
367
+ # if it does not have valid data.
368
+ #
369
+ # @return [Boolean]
370
+ #
371
+ # @version SketchUp 6.0
372
+ def valid?
373
+ end
374
+
375
+ # The vertex method returns a Vertex associated with the InputPoint. If the
376
+ # InputPoint is on the end of a line, then it will return the Vertex. If the
377
+ # InputPoint does not select any vertices this method returns nil.
378
+ #
379
+ # @example
380
+ # view = Sketchup.active_model.active_view
381
+ # x = 100
382
+ # y = 100
383
+ # ip1 = view.inputpoint x,y
384
+ # # Click on a face and you get "On Face"
385
+ # tip = ip1.vertex
386
+ #
387
+ # @return vertex - The associated vertex
388
+ #
389
+ # @version SketchUp 6.0
390
+ def vertex
391
+ end
392
+
393
+ end