Class: OpenCV::Cv::Ptr::Cv_MergeDebevec

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



32941
32942
32943
32944
# File 'lib/ropencv/ropencv_types.rb', line 32941

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)


32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
# File 'lib/ropencv/ropencv_types.rb', line 32745

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_MergeDebevecStruct)
        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::MergeDebevec>::Ptr<cv::MergeDebevec>()
    @@cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec(*targs)
        rescue TypeError => e
            @error = e
        end
    end

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

    # overloaded method wrapper for cv::Ptr<cv::MergeDebevec>::Ptr<cv::MergeDebevec>(cv::Ptr<cv::MergeDebevec> owner, cv::MergeDebevec* p)
    @@cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec__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_merge_debevec_ptr_cv_merge_debevec__3_defaults2[i]
        end
        begin
                return Rbind::cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec__3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

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

    # overloaded method wrapper for cv::Ptr<cv::MergeDebevec>::Ptr<cv::MergeDebevec>(cv::Ptr<cv::MergeExposures> owner, cv::MergeDebevec* p)
    @@cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec__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_merge_debevec_ptr_cv_merge_debevec__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_merge_debevec_ptr_cv_merge_debevec__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



32726
32727
32728
# File 'lib/ropencv/ropencv_types.rb', line 32726

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

Instance Method Details

#emptyBool

Note:

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

Returns:

  • (Bool)


32933
32934
32935
32936
# File 'lib/ropencv/ropencv_types.rb', line 32933

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

#getCv::MergeDebevec

Note:

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

Returns:



32921
32922
32923
32924
32925
32926
32927
32928
32929
# File 'lib/ropencv/ropencv_types.rb', line 32921

def get()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_merge_debevec_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::MergeDebevec::release()

methods

Returns:

  • (Void)


32898
32899
32900
32901
# File 'lib/ropencv/ropencv_types.rb', line 32898

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

#reset(p) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


32906
32907
32908
32909
# File 'lib/ropencv/ropencv_types.rb', line 32906

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

#swap(other) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


32914
32915
32916
32917
# File 'lib/ropencv/ropencv_types.rb', line 32914

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

#to_sObject

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



32887
32888
32889
# File 'lib/ropencv/ropencv_types.rb', line 32887

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