Class: OpenCV::Cv::Ptr::Cv_Detail_Timelapser
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_Detail_Timelapser
- 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::Detail::Timelapser
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_Detail_Timelapser 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
77809 77810 77811 77812 |
# File 'lib/ropencv/ropencv_types.rb', line 77809 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
77627 77628 77629 77630 77631 77632 77633 77634 77635 77636 77637 77638 77639 77640 77641 77642 77643 77644 77645 77646 77647 77648 77649 77650 77651 77652 77653 77654 77655 77656 77657 77658 77659 77660 77661 77662 77663 77664 77665 77666 77667 77668 77669 77670 77671 77672 77673 77674 77675 77676 77677 77678 77679 77680 77681 77682 77683 77684 77685 77686 77687 77688 77689 |
# File 'lib/ropencv/ropencv_types.rb', line 77627 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_Detail_TimelapserStruct) 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::detail::Timelapser>::Ptr<cv::detail::Timelapser>() @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser_defaults0[i] end begin return Rbind::cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::detail::Timelapser>::Ptr<cv::detail::Timelapser>(cv::Ptr<cv::detail::Timelapser> other) @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__2_defaults1[i] end begin return Rbind::cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::detail::Timelapser>::Ptr<cv::detail::Timelapser>(cv::Ptr<cv::detail::Timelapser> owner, cv::detail::Timelapser* p) @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__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_detail_timelapser_ptr_cv_detail_timelapser__3_defaults2[i] end begin return Rbind::cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::detail::Timelapser>::Ptr<cv::detail::Timelapser>(cv::detail::Timelapser* p) @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__4_defaults3[i] end begin return Rbind::cv_ptr_cv_detail_timelapser_ptr_cv_detail_timelapser__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
77612 77613 77614 |
# File 'lib/ropencv/ropencv_types.rb', line 77612 def self.null new(Ptr::Cv_Detail_TimelapserStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::detail::Timelapser::empty()
77801 77802 77803 77804 |
# File 'lib/ropencv/ropencv_types.rb', line 77801 def empty() __validate_pointer__ Rbind::cv_ptr_cv_detail_timelapser_empty( self) end |
#get ⇒ Cv::Detail::Timelapser
Note:
method wrapper for cv::detail::Timelapser* cv::Ptrcv::detail::Timelapser::get()
77789 77790 77791 77792 77793 77794 77795 77796 77797 |
# File 'lib/ropencv/ropencv_types.rb', line 77789 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_detail_timelapser_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::detail::Timelapser::release()
methods
77766 77767 77768 77769 |
# File 'lib/ropencv/ropencv_types.rb', line 77766 def release() __validate_pointer__ Rbind::cv_ptr_cv_detail_timelapser_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::detail::Timelapser::reset(cv::detail::Timelapser* p)
77774 77775 77776 77777 |
# File 'lib/ropencv/ropencv_types.rb', line 77774 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_detail_timelapser_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::detail::Timelapser::swap(cv::Ptrcv::detail::Timelapser other)
77782 77783 77784 77785 |
# File 'lib/ropencv/ropencv_types.rb', line 77782 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_detail_timelapser_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_Detail_Timelapser into a string by crawling through all its attributes
77755 77756 77757 |
# File 'lib/ropencv/ropencv_types.rb', line 77755 def to_s "#<cv::Ptr<cv::detail::Timelapser> >" end |