Class: OpenCV::Cv::Ptr::Cv_Stitcher
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_Stitcher
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Specializing collapse
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #empty ⇒ Bool
- #get ⇒ Cv::Stitcher
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_Stitcher into a string by crawling through all its attributes.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
76849 76850 76851 76852 |
# File 'lib/ropencv/ropencv_types.rb', line 76849 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
.ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object
76667 76668 76669 76670 76671 76672 76673 76674 76675 76676 76677 76678 76679 76680 76681 76682 76683 76684 76685 76686 76687 76688 76689 76690 76691 76692 76693 76694 76695 76696 76697 76698 76699 76700 76701 76702 76703 76704 76705 76706 76707 76708 76709 76710 76711 76712 76713 76714 76715 76716 76717 76718 76719 76720 76721 76722 76723 76724 76725 76726 76727 76728 76729 |
# File 'lib/ropencv/ropencv_types.rb', line 76667 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_StitcherStruct) 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::Stitcher>::Ptr<cv::Stitcher>() @@cv_ptr_cv_stitcher_ptr_cv_stitcher_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_stitcher_ptr_cv_stitcher_defaults0[i] end begin return Rbind::cv_ptr_cv_stitcher_ptr_cv_stitcher(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::Stitcher>::Ptr<cv::Stitcher>(cv::Ptr<cv::Stitcher> other) @@cv_ptr_cv_stitcher_ptr_cv_stitcher__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_stitcher_ptr_cv_stitcher__2_defaults1[i] end begin return Rbind::cv_ptr_cv_stitcher_ptr_cv_stitcher__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::Stitcher>::Ptr<cv::Stitcher>(cv::Ptr<cv::Stitcher> owner, cv::Stitcher* p) @@cv_ptr_cv_stitcher_ptr_cv_stitcher__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_stitcher_ptr_cv_stitcher__3_defaults2[i] end begin return Rbind::cv_ptr_cv_stitcher_ptr_cv_stitcher__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::Stitcher>::Ptr<cv::Stitcher>(cv::Stitcher* p) @@cv_ptr_cv_stitcher_ptr_cv_stitcher__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_stitcher_ptr_cv_stitcher__4_defaults3[i] end begin return Rbind::cv_ptr_cv_stitcher_ptr_cv_stitcher__4(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
76652 76653 76654 |
# File 'lib/ropencv/ropencv_types.rb', line 76652 def self.null new(Ptr::Cv_StitcherStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::Stitcher::empty()
76841 76842 76843 76844 |
# File 'lib/ropencv/ropencv_types.rb', line 76841 def empty() __validate_pointer__ Rbind::cv_ptr_cv_stitcher_empty( self) end |
#get ⇒ Cv::Stitcher
Note:
method wrapper for cv::Stitcher* cv::Ptrcv::Stitcher::get()
76829 76830 76831 76832 76833 76834 76835 76836 76837 |
# File 'lib/ropencv/ropencv_types.rb', line 76829 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_stitcher_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 |
#release ⇒ Void
Note:
method wrapper for void cv::Ptrcv::Stitcher::release()
methods
76806 76807 76808 76809 |
# File 'lib/ropencv/ropencv_types.rb', line 76806 def release() __validate_pointer__ Rbind::cv_ptr_cv_stitcher_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::Stitcher::reset(cv::Stitcher* p)
76814 76815 76816 76817 |
# File 'lib/ropencv/ropencv_types.rb', line 76814 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_stitcher_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::Stitcher::swap(cv::Ptrcv::Stitcher other)
76822 76823 76824 76825 |
# File 'lib/ropencv/ropencv_types.rb', line 76822 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_stitcher_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_Stitcher into a string by crawling through all its attributes
76795 76796 76797 |
# File 'lib/ropencv/ropencv_types.rb', line 76795 def to_s "#<cv::Ptr<cv::Stitcher> >" end |