Class: Hornetseye::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/hornetseye-openexr/node.rb

Instance Method Summary collapse

Instance Method Details

#save_dfloat(file) ⇒ Object



31
32
33
# File 'lib/hornetseye-openexr/node.rb', line 31

def save_dfloat( file )
  to_type( DFLOAT ).save_openexr file
end

#save_dfloatrgb(file) ⇒ Object



39
40
41
# File 'lib/hornetseye-openexr/node.rb', line 39

def save_dfloatrgb( file )
  to_type( DFLOATRGB ).save_openexr file
end

#save_openexr(file) ⇒ Object



20
21
22
23
24
25
# File 'lib/hornetseye-openexr/node.rb', line 20

def save_openexr( file )
  output = OpenEXROutput.new file
  output.write self
  output.close
  self
end

#save_sfloat(file) ⇒ Object



27
28
29
# File 'lib/hornetseye-openexr/node.rb', line 27

def save_sfloat( file )
  to_type( SFLOAT ).save_openexr file
end

#save_sfloatrgb(file) ⇒ Object



35
36
37
# File 'lib/hornetseye-openexr/node.rb', line 35

def save_sfloatrgb( file )
  to_type( SFLOATRGB ).save_openexr file
end