Class: Autocad::Arc
- Inherits:
-
Element
show all
- Defined in:
- lib/autocad/arc.rb,
lib/autocad/element.rb
Instance Attribute Summary
Attributes inherited from Element
#acad_type, #app, #ole_obj, #original
Instance Method Summary
collapse
Methods inherited from Element
#[], #app_ole_obj, #clone, convert_item, #delete, #do_update, #each_complex, #get_property_handler, #in_cell?, #initialize, #method_missing, #move, #move_ole, #move_x, #move_y, #ole_cell, ole_object?, #property_handler, #read_ole, #redraw, #update, #updated?, #write_ole
#autocad_type, #block_reference?, #bounds, #cell?, #def, #drawing, #explode, #graphical?, #has_tags?, #highlight, #id_from_record, #inspect, #line?, #model, #parent, #pviewport?, #select, #text?, #to_ole, #visible?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Autocad::Element
Instance Method Details
#end_angle ⇒ Object
24
25
26
|
# File 'lib/autocad/arc.rb', line 24
def end_angle
@ole_obj.EndAngle
end
|
#end_point ⇒ Object
16
17
18
|
# File 'lib/autocad/arc.rb', line 16
def end_point
Point3d(ole_obj.EndPoint)
end
|
#length ⇒ Object
6
7
8
|
# File 'lib/autocad/arc.rb', line 6
def length
@ole_obj.ArcLength
end
|
#start_angle ⇒ Object
20
21
22
|
# File 'lib/autocad/arc.rb', line 20
def start_angle
@ole_obj.StartAngle
end
|
#start_point ⇒ Object
11
12
13
|
# File 'lib/autocad/arc.rb', line 11
def start_point
Point3d(ole_obj.StartPoint)
end
|
#total_angle ⇒ Object
28
29
30
|
# File 'lib/autocad/arc.rb', line 28
def total_angle
@ole_obj.TotalAngle
end
|