Class: OpenCV::Cv::Ptr::Cv_GeneralizedHoughGuil

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



37759
37760
37761
37762
# File 'lib/ropencv/ropencv_types.rb', line 37759

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)


37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598
37599
37600
37601
37602
37603
37604
37605
37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
# File 'lib/ropencv/ropencv_types.rb', line 37563

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

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

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

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

    # overloaded method wrapper for cv::Ptr<cv::GeneralizedHoughGuil>::Ptr<cv::GeneralizedHoughGuil>(cv::Ptr<cv::GeneralizedHough> owner, cv::GeneralizedHoughGuil* p)
    @@cv_ptr_cv_generalized_hough_guil_ptr_cv_generalized_hough_guil__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_generalized_hough_guil_ptr_cv_generalized_hough_guil__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_generalized_hough_guil_ptr_cv_generalized_hough_guil__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



37544
37545
37546
# File 'lib/ropencv/ropencv_types.rb', line 37544

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

Instance Method Details

#emptyBool

Note:

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

Returns:

  • (Bool)


37751
37752
37753
37754
# File 'lib/ropencv/ropencv_types.rb', line 37751

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

#getCv::GeneralizedHoughGuil

Note:

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



37739
37740
37741
37742
37743
37744
37745
37746
37747
# File 'lib/ropencv/ropencv_types.rb', line 37739

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

methods

Returns:

  • (Void)


37716
37717
37718
37719
# File 'lib/ropencv/ropencv_types.rb', line 37716

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

#reset(p) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


37724
37725
37726
37727
# File 'lib/ropencv/ropencv_types.rb', line 37724

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

#swap(other) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


37732
37733
37734
37735
# File 'lib/ropencv/ropencv_types.rb', line 37732

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

#to_sObject

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



37705
37706
37707
# File 'lib/ropencv/ropencv_types.rb', line 37705

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