Class CubeCommon
In: infocube.rb
Parent: Object

Methods

deselect   getopposingline   hide   select   show  

Included Modules

Mesh CommonTasks MeshExport

Attributes

changed  [RW] 
csys  [RW] 
defaultprefix  [RW]  for the write2table method
f0  [RW] 
f1  [RW] 
f2  [RW] 
f3  [RW] 
f4  [RW] 
f5  [RW] 
if  [RW] 
info  [RW] 
l0  [RW] 
l1  [RW] 
l10  [RW] 
l11  [RW] 
l2  [RW] 
l3  [RW] 
l4  [RW] 
l5  [RW] 
l6  [RW] 
l7  [RW] 
l8  [RW] 
l9  [RW] 
p0  [RW] 
p1  [RW] 
p2  [RW] 
p3  [RW] 
p4  [RW] 
p5  [RW] 
p6  [RW] 
p7  [RW] 
ref  [RW] 
reflist  [RW]  for the write2table method
reforder  [RW]  for the write2table method
row  [RW] 
selected  [RW] 
visible  [RW] 

Public Instance methods

[Source]

# File infocube.rb, line 198
      def deselect
         @selected = false
         @f0.deselect
         @f1.deselect
         @f2.deselect
         @f3.deselect
         @f4.deselect
         @f5.deselect
      end

[Source]

# File infocube.rb, line 225
      def getopposingline(line)
         # :l0, :l1, :l2, :l3, :l4, :l5, :l6, :l7, :l8, :l9, :l10, :l11
         #i: l0, l2, l10, l8
         #j: l1, l3, l9, l11
         #k: l4, l5, l6, l7
         if line == @l0
            return @l2, @l10, @l8
         elsif line == @l1
            return @l3, @l9, @l11
         elsif line == @l2
            return @l0, @l10, @l8
         elsif line == @l3
            return @l1, @l9, @l11
         elsif line == @l4
            return @l5, @l6, @l7
         elsif line == @l5
            return @l4, @l6, @l7
         elsif line == @l6
            return @l4, @l5, @l7
         elsif line == @l7
            return @l4, @l5, @l6
         elsif line == @l8
            return @l0, @l2, @l10
         elsif line == @l9
            return @l1, @l3, @l11
         elsif line == @l10
            return @l0, @l2, @l8
         elsif line == @l11
            return @l1, @l3, @l9
         end
      end

[Source]

# File infocube.rb, line 216
      def hide
         @visible = false
         @f0.hide
         @f1.hide
         @f3.hide
         @f5.hide
         @f2.hide
         @f4.hide
      end

[Source]

# File infocube.rb, line 189
      def select
         @selected = true
         @f0.select
         @f1.select
         @f2.select
         @f3.select
         @f4.select
         @f5.select
      end

[Source]

# File infocube.rb, line 207
      def show
         @visible = true
         @f0.show
         @f1.show
         @f3.show
         @f5.show
         @f2.show
         @f4.show
      end

[Validate]