Class FutureRadius
In: futureref.rb
Parent: Object

Methods

create   deselect   hide   new   reset   select   show   update  

Attributes

axis  [RW]  dialog attributes
changed  [RW] 
csys  [RW] 
defaultprefix  [RW] 
info  [RW] 
parent  [RW] 
radius  [RW]  dialog attributes
ref  [RW] 
refattr  [RW]  dialog attributes
refcol  [RW] 
reflist  [RW] 
reforder  [RW] 
row  [RW] 
selected  [RW] 
visible  [RW] 
xaxis  [RW]  dialog attributes
yaxis  [RW]  dialog attributes
zaxis  [RW]  dialog attributes

Public Class methods

reftype is line, face, cube

[Source]

# File futureref.rb, line 134
   def initialize(reftype, csys, ref, parent, *args)
      @defaultprefix = "line"
      @reforder = [ "radius", "axis", "refattr" ]
      @reftype = reftype
      @csys = csys
      @ref = ref
      @parent = parent
      @selected = false
      @visible = true
      @info = [ self, @parent, "rad#{@@count}" ]
      case @reftype
         when "line"
            @radius, @axis, @yaxis, @zaxis, @axis, @refattr = args
      end
      update
      @@count += 1
   end

Public Instance methods

[Source]

# File futureref.rb, line 185
   def create
   end

[Source]

# File futureref.rb, line 156
   def deselect
      @parent.deselect
      @selected = false
   end

[Source]

# File futureref.rb, line 180
   def hide
   end

[Source]

# File futureref.rb, line 182
   def reset
      @@count = 0
   end

[Source]

# File futureref.rb, line 151
   def select
      # puts "parent class #{@parent.class}"
      @parent.select
      @selected = true
   end

[Source]

# File futureref.rb, line 178
   def show
   end

[Source]

# File futureref.rb, line 160
   def update
      case @axis
         when "x"
            @xaxis = @csys.x.x1-@csys.x.x0 if @csys != nil
            @yaxis = @csys.x.y1-@csys.x.y0 if @csys != nil
            @zaxis = @csys.x.z1-@csys.x.z0 if @csys != nil
         when "y"
            @xaxis = @csys.y.x1-@csys.y.x0 if @csys != nil
            @yaxis = @csys.y.y1-@csys.y.y0 if @csys != nil
            @zaxis = @csys.y.z1-@csys.y.z0 if @csys != nil
        when "z"
            @xaxis = @csys.z.x1-@csys.z.x0 if @csys != nil
            @yaxis = @csys.z.y1-@csys.z.y0 if @csys != nil
            @zaxis = @csys.z.z1-@csys.z.z0 if @csys != nil
      end
      @reflist = {"radius" => @radius, "axis" => @axis, "xaxis" => @xaxis, "yaxis" => @yaxis, "zaxis" => @zaxis, "refattr" => @refattr}
      @parent.update
   end

[Validate]