Class: Autocad::Circle

Inherits:
Element show all
Defined in:
lib/autocad/line.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

Methods included from ElementTrait

#autocad_type, #block_reference?, #bounds, #cell?, #def, #drawing, #explode, #graphical?, #has_tags?, #highlight, #id_from_record, #line?, #model, #parent, #pviewport?, #select, #text?, #to_ole, #visible?

Constructor Details

This class inherits a constructor from Autocad::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Autocad::Element

Instance Method Details

#centerObject

The center point of the circle in World Coordinate System (WCS)



126
127
128
# File 'lib/autocad/line.rb', line 126

def center
  Point3d.new(ole_obj.Center)
end

#inspectObject



136
137
138
# File 'lib/autocad/line.rb', line 136

def inspect
  "#<#{self.class} center=#{center} radius=#{radius}>"
end

#radiusObject

The radius of the circle



132
133
134
# File 'lib/autocad/line.rb', line 132

def radius
  ole_obj.Radius
end