Class: Autocad::Spline

Inherits:
Element show all
Defined in:
lib/autocad/spline.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, #inspect, #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

#areaObject

[View source]

4
5
6
# File 'lib/autocad/spline.rb', line 4

def area
  @ole_obj.Area
end

#closed?Boolean

whether the spline is closed

Returns:

  • (Boolean)
[View source]

9
10
11
# File 'lib/autocad/spline.rb', line 9

def closed? # : bool
  @ole_obj.Closed
end

#control_pointsObject

ole obj Variant (array of doubles) 3D WCS Control Points for the spline

[View source]

16
17
# File 'lib/autocad/spline.rb', line 16

def control_points
end

#control_points=(pts) ⇒ Object

set the control points for the spline

[View source]

21
22
# File 'lib/autocad/spline.rb', line 21

def control_points=(pts)
end

#degreeObject

[View source]

24
25
# File 'lib/autocad/spline.rb', line 24

def degree
end