Class: GraphKit::VTKObjectGroup
- Inherits:
-
Object
- Object
- GraphKit::VTKObjectGroup
- Defined in:
- lib/graphkit-vtk.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
The vtkActor which is responsible for the data within the window.
-
#interactor ⇒ Object
The VTK interactor.
-
#large_image_renderer ⇒ Object
The VTK object which connects to the renderer and should be connected to an image writer to write image files.
-
#mapper ⇒ Object
The VTK mapper (which converts the data to image data).
-
#other_objects ⇒ Object
readonly
A hash containing other VTK objects.
-
#output ⇒ Object
The output of the Reader.
-
#reader ⇒ Object
The VTK object which reads the file.
-
#renderer ⇒ Object
The VTK renderer which renders the image data.
-
#renderer_window ⇒ Object
The VTK window object into which the data is rendered It is what causes the renderer to act.
-
#volume ⇒ Object
The vtkVolume which is responsible for the data within the window in the case of volume rendering.
-
#vtk_module ⇒ Object
The Python vtk module.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize ⇒ VTKObjectGroup
constructor
A new instance of VTKObjectGroup.
Constructor Details
#initialize ⇒ VTKObjectGroup
Returns a new instance of VTKObjectGroup.
6 7 8 |
# File 'lib/graphkit-vtk.rb', line 6 def initialize @other_objects = {} end |
Instance Attribute Details
#actor ⇒ Object
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 |
#interactor ⇒ Object
The VTK interactor
43 44 45 |
# File 'lib/graphkit-vtk.rb', line 43 def interactor @interactor end |
#large_image_renderer ⇒ Object
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 |
#mapper ⇒ Object
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_objects ⇒ Object (readonly)
A hash containing other VTK objects
46 47 48 |
# File 'lib/graphkit-vtk.rb', line 46 def other_objects @other_objects end |
#output ⇒ Object
The output of the Reader
16 17 18 |
# File 'lib/graphkit-vtk.rb', line 16 def output @output end |
#reader ⇒ Object
The VTK object which reads the file
13 14 15 |
# File 'lib/graphkit-vtk.rb', line 13 def reader @reader end |
#renderer ⇒ Object
The VTK renderer which renders the image data
31 32 33 |
# File 'lib/graphkit-vtk.rb', line 31 def renderer @renderer end |
#renderer_window ⇒ Object
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 |
#volume ⇒ Object
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_module ⇒ Object
The Python vtk module
10 11 12 |
# File 'lib/graphkit-vtk.rb', line 10 def vtk_module @vtk_module end |
Instance Method Details
#delete ⇒ Object
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 |