Class DefLine
In: liteline.rb
Parent: Object

this should just be a placeholder for an array of litelines It is called DefLine because it is created from a line definition

Methods

create   deselect   hide   new   refdeselect   refselect   select   show   update  

Included Modules

CommonTasks Mesh

Attributes

child  [RW] 
firstpoint  [RW] 
imesh  [RW] 
info  [RW] 
l  [RW] 
lastpoint  [RW] 
meshNoFromRow  [RW] 
meshnum  [RW] 
parent  [RW] 
selected  [RW] 
visible  [RW] 
x  [RW] 
y  [RW] 
z  [RW] 

Public Class methods

[Source]

# File liteline.rb, line 35
   def initialize(parent, text)
      @imesh = nil
      @child = Array.new
      @firstpoint = nil
      @lastpoint = nil
      @meshNoFromRow = nil
      @visible = false
      @parent = parent
      @text = text
      @info = [@parent, self, @text]
      @selected = false
      @x = Array.new
      @y = Array.new
      @z = Array.new
      @meshnum = nil
      @created = false
   end

Public Instance methods

[Source]

# File liteline.rb, line 52
   def create(linedef, x, y, z)
      @meshnum = x.size 
      @l = Array.new
      @l,@x[0], @y[0], @z[0] = createdefline(linedef, x, y, z, @parent , self, @text)
      @created = true
   end

[Source]

# File liteline.rb, line 68
   def deselect
      @selected = false
      if @created
      @l.each do |tmp|
         tmp.deselect
      end
      end
   end

[Source]

# File liteline.rb, line 98
   def hide
      @visible = false
      if @created
      @l.each do |tmp|
         tmp.hide
      end
      end
   end

[Source]

# File liteline.rb, line 83
   def refdeselect
      if @created
      @l.each do |tmp|
         tmp.refdeselect
      end
      end
   end

[Source]

# File liteline.rb, line 76
   def refselect
      if @created
      @l.each do |tmp|
         tmp.refselect
      end
      end
   end

[Source]

# File liteline.rb, line 60
   def select
      @selected = true
      if @created
      @l.each do |tmp|
         tmp.select
      end
      end
   end

[Source]

# File liteline.rb, line 90
   def show
      @visible = true
      if @created
      @l.each do |tmp|
         tmp.show
      end
      end
   end

[Source]

# File liteline.rb, line 58
   def update
   end

[Validate]