Class: GraphKit::VTKObjectGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/graphkit-vtk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVTKObjectGroup

Returns a new instance of VTKObjectGroup.



6
7
8
# File 'lib/graphkit-vtk.rb', line 6

def initialize
  @other_objects = {}
end

Instance Attribute Details

#actorObject

The vtkActor which is responsible for the data within the window



23
24
25
# File 'lib/graphkit-vtk.rb', line 23

def actor
  @actor
end

#interactorObject

The VTK interactor



43
44
45
# File 'lib/graphkit-vtk.rb', line 43

def interactor
  @interactor
end

#large_image_rendererObject

The VTK object which connects to the renderer and should be connected to an image writer to write image files.



36
37
38
# File 'lib/graphkit-vtk.rb', line 36

def large_image_renderer
  @large_image_renderer
end

#mapperObject

The VTK mapper (which converts the data to image data)



19
20
21
# File 'lib/graphkit-vtk.rb', line 19

def mapper
  @mapper
end

#other_objectsObject (readonly)

A hash containing other VTK objects



46
47
48
# File 'lib/graphkit-vtk.rb', line 46

def other_objects
  @other_objects
end

#outputObject

The output of the Reader



16
17
18
# File 'lib/graphkit-vtk.rb', line 16

def output
  @output
end

#readerObject

The VTK object which reads the file



13
14
15
# File 'lib/graphkit-vtk.rb', line 13

def reader
  @reader
end

#rendererObject

The VTK renderer which renders the image data



31
32
33
# File 'lib/graphkit-vtk.rb', line 31

def renderer
  @renderer
end

#renderer_windowObject

The VTK window object into which the data is rendered It is what causes the renderer to act.



40
41
42
# File 'lib/graphkit-vtk.rb', line 40

def renderer_window
  @renderer_window
end

#volumeObject

The vtkVolume which is responsible for the data within the window in the case of volume rendering



28
29
30
# File 'lib/graphkit-vtk.rb', line 28

def volume
  @volume
end

#vtk_moduleObject

The Python vtk module



10
11
12
# File 'lib/graphkit-vtk.rb', line 10

def vtk_module
  @vtk_module
end

Instance Method Details

#deleteObject



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/graphkit-vtk.rb', line 48

def delete
  #([@reader, @mapper, @actor, @volume, @renderer, @renderer_window, @large_image_renderer, @interactor] + other_objects.values).each do |obj|
    #next unless obj
    #begin
      #obj.Delete
    #rescue NoMethodError => err
      #puts err, obj
      #next
    #end
  #end
end