Class: OpenCV::Cv::Ptr::Cv_ORB
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_ORB
- 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::ORB
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_ORB 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
58987 58988 58989 58990 |
# File 'lib/ropencv/ropencv_types.rb', line 58987 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 .ptr ⇒ Object
58791 58792 58793 58794 58795 58796 58797 58798 58799 58800 58801 58802 58803 58804 58805 58806 58807 58808 58809 58810 58811 58812 58813 58814 58815 58816 58817 58818 58819 58820 58821 58822 58823 58824 58825 58826 58827 58828 58829 58830 58831 58832 58833 58834 58835 58836 58837 58838 58839 58840 58841 58842 58843 58844 58845 58846 58847 58848 58849 58850 58851 58852 58853 58854 58855 58856 58857 58858 58859 58860 58861 58862 58863 58864 58865 58866 58867 |
# File 'lib/ropencv/ropencv_types.rb', line 58791 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_ORBStruct) 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::ORB>::Ptr<cv::ORB>() @@cv_ptr_cv_orb_ptr_cv_orb_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_orb_ptr_cv_orb_defaults0[i] end begin return Rbind::cv_ptr_cv_orb_ptr_cv_orb(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::ORB>::Ptr<cv::ORB>(cv::Ptr<cv::ORB> other) @@cv_ptr_cv_orb_ptr_cv_orb_2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_orb_ptr_cv_orb_2_defaults1[i] end begin return Rbind::cv_ptr_cv_orb_ptr_cv_orb_2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::ORB>::Ptr<cv::ORB>(cv::Ptr<cv::ORB> owner, cv::ORB* p) @@cv_ptr_cv_orb_ptr_cv_orb_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_orb_ptr_cv_orb_3_defaults2[i] end begin return Rbind::cv_ptr_cv_orb_ptr_cv_orb_3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::ORB>::Ptr<cv::ORB>(cv::ORB* p) @@cv_ptr_cv_orb_ptr_cv_orb_4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_orb_ptr_cv_orb_4_defaults3[i] end begin return Rbind::cv_ptr_cv_orb_ptr_cv_orb_4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::ORB>::Ptr<cv::ORB>(cv::Ptr<cv::Feature2D> owner, cv::ORB* p) @@cv_ptr_cv_orb_ptr_cv_orb_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_orb_ptr_cv_orb_5_defaults4[i] end begin return Rbind::cv_ptr_cv_orb_ptr_cv_orb_5(*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
58772 58773 58774 |
# File 'lib/ropencv/ropencv_types.rb', line 58772 def self.null new(Ptr::Cv_ORBStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::ORB::empty()
58979 58980 58981 58982 |
# File 'lib/ropencv/ropencv_types.rb', line 58979 def empty() __validate_pointer__ Rbind::cv_ptr_cv_orb_empty( self) end |
#get ⇒ Cv::ORB
Note:
method wrapper for cv::ORB* cv::Ptrcv::ORB::get()
58967 58968 58969 58970 58971 58972 58973 58974 58975 |
# File 'lib/ropencv/ropencv_types.rb', line 58967 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_orb_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::ORB::release()
methods
58944 58945 58946 58947 |
# File 'lib/ropencv/ropencv_types.rb', line 58944 def release() __validate_pointer__ Rbind::cv_ptr_cv_orb_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::ORB::reset(cv::ORB* p)
58952 58953 58954 58955 |
# File 'lib/ropencv/ropencv_types.rb', line 58952 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_orb_reset( self, p) end |
#swap(other) ⇒ Void
58960 58961 58962 58963 |
# File 'lib/ropencv/ropencv_types.rb', line 58960 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_orb_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_ORB into a string by crawling through all its attributes
58933 58934 58935 |
# File 'lib/ropencv/ropencv_types.rb', line 58933 def to_s "#<cv::Ptr<cv::ORB> >" end |