Class: OpenCV::Cv::Ptr::Cv_TonemapMantiuk

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Specializing collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



29365
29366
29367
29368
# File 'lib/ropencv/ropencv_types.rb', line 29365

def method_missing(m,*args)
    raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty
    get.method(m).call(*args)
end

Class Method Details

.ptrObject .ptrObject .ptrObject .ptrObject .ptrObject

Overloads:

Raises:

  • (ArgumentError)


29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
# File 'lib/ropencv/ropencv_types.rb', line 29169

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_TonemapMantiukStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end
    # overloaded method wrapper for cv::Ptr<cv::TonemapMantiuk>::Ptr<cv::TonemapMantiuk>()
    @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::TonemapMantiuk>::Ptr<cv::TonemapMantiuk>(cv::Ptr<cv::TonemapMantiuk> other)
    @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__2_defaults1[i]
        end
        begin
                return Rbind::cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::TonemapMantiuk>::Ptr<cv::TonemapMantiuk>(cv::Ptr<cv::TonemapMantiuk> owner, cv::TonemapMantiuk* p)
    @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__3_defaults2 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__3_defaults2[i]
        end
        begin
                return Rbind::cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::TonemapMantiuk>::Ptr<cv::TonemapMantiuk>(cv::TonemapMantiuk* p)
    @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__4_defaults3 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__4_defaults3[i]
        end
        begin
                return Rbind::cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__4(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::TonemapMantiuk>::Ptr<cv::TonemapMantiuk>(cv::Ptr<cv::Tonemap> owner, cv::TonemapMantiuk* p)
    @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__5_defaults4 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_tonemap_mantiuk_ptr_cv_tonemap_mantiuk__5(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



29150
29151
29152
# File 'lib/ropencv/ropencv_types.rb', line 29150

def self.null
    new(Ptr::Cv_TonemapMantiukStruct.new)
end

Instance Method Details

#emptyBool

Note:

method wrapper for bool cv::Ptrcv::TonemapMantiuk::empty()

Returns:

  • (Bool)


29357
29358
29359
29360
# File 'lib/ropencv/ropencv_types.rb', line 29357

def empty()
    __validate_pointer__
    Rbind::cv_ptr_cv_tonemap_mantiuk_empty( self)
end

#getCv::TonemapMantiuk

Note:

method wrapper for cv::TonemapMantiuk* cv::Ptrcv::TonemapMantiuk::get()

Returns:



29345
29346
29347
29348
29349
29350
29351
29352
29353
# File 'lib/ropencv/ropencv_types.rb', line 29345

def get()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_tonemap_mantiuk_get( self)
    if result.respond_to?(:__owner__?) && !result.__owner__?
    # store owner insight the pointer to not get garbage collected
        result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) 
    end
    result
end

#releaseVoid

Note:

method wrapper for void cv::Ptrcv::TonemapMantiuk::release()

methods

Returns:

  • (Void)


29322
29323
29324
29325
# File 'lib/ropencv/ropencv_types.rb', line 29322

def release()
    __validate_pointer__
    Rbind::cv_ptr_cv_tonemap_mantiuk_release( self)
end

#reset(p) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::TonemapMantiuk::reset(cv::TonemapMantiuk* p)

Parameters:

Returns:

  • (Void)


29330
29331
29332
29333
# File 'lib/ropencv/ropencv_types.rb', line 29330

def reset(p)
    __validate_pointer__
    Rbind::cv_ptr_cv_tonemap_mantiuk_reset( self, p)
end

#swap(other) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::TonemapMantiuk::swap(cv::Ptrcv::TonemapMantiuk other)

Parameters:

Returns:

  • (Void)


29338
29339
29340
29341
# File 'lib/ropencv/ropencv_types.rb', line 29338

def swap(other)
    __validate_pointer__
    Rbind::cv_ptr_cv_tonemap_mantiuk_swap( self, other)
end

#to_sObject

converts Ptr::Cv_TonemapMantiuk into a string by crawling through all its attributes



29311
29312
29313
# File 'lib/ropencv/ropencv_types.rb', line 29311

def to_s
    "#<cv::Ptr<cv::TonemapMantiuk> >"
end