Class: OpenCV::Cv::Ptr::Cv_AlignExposures
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_AlignExposures
- 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::AlignExposures
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_AlignExposures 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
30178 30179 30180 30181 |
# File 'lib/ropencv/ropencv_types.rb', line 30178 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
29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 |
# File 'lib/ropencv/ropencv_types.rb', line 29982 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_AlignExposuresStruct) 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::AlignExposures>::Ptr<cv::AlignExposures>() @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures_defaults0[i] end begin return Rbind::cv_ptr_cv_align_exposures_ptr_cv_align_exposures(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AlignExposures>::Ptr<cv::AlignExposures>(cv::Ptr<cv::AlignExposures> other) @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__2_defaults1[i] end begin return Rbind::cv_ptr_cv_align_exposures_ptr_cv_align_exposures__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AlignExposures>::Ptr<cv::AlignExposures>(cv::Ptr<cv::AlignExposures> owner, cv::AlignExposures* p) @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__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_align_exposures_ptr_cv_align_exposures__3_defaults2[i] end begin return Rbind::cv_ptr_cv_align_exposures_ptr_cv_align_exposures__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AlignExposures>::Ptr<cv::AlignExposures>(cv::AlignExposures* p) @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__4_defaults3[i] end begin return Rbind::cv_ptr_cv_align_exposures_ptr_cv_align_exposures__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AlignExposures>::Ptr<cv::AlignExposures>(cv::Ptr<cv::Algorithm> owner, cv::AlignExposures* p) @@cv_ptr_cv_align_exposures_ptr_cv_align_exposures__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_align_exposures_ptr_cv_align_exposures__5_defaults4[i] end begin return Rbind::cv_ptr_cv_align_exposures_ptr_cv_align_exposures__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
29963 29964 29965 |
# File 'lib/ropencv/ropencv_types.rb', line 29963 def self.null new(Ptr::Cv_AlignExposuresStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::AlignExposures::empty()
30170 30171 30172 30173 |
# File 'lib/ropencv/ropencv_types.rb', line 30170 def empty() __validate_pointer__ Rbind::cv_ptr_cv_align_exposures_empty( self) end |
#get ⇒ Cv::AlignExposures
Note:
method wrapper for cv::AlignExposures* cv::Ptrcv::AlignExposures::get()
30158 30159 30160 30161 30162 30163 30164 30165 30166 |
# File 'lib/ropencv/ropencv_types.rb', line 30158 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_align_exposures_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::AlignExposures::release()
methods
30135 30136 30137 30138 |
# File 'lib/ropencv/ropencv_types.rb', line 30135 def release() __validate_pointer__ Rbind::cv_ptr_cv_align_exposures_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::AlignExposures::reset(cv::AlignExposures* p)
30143 30144 30145 30146 |
# File 'lib/ropencv/ropencv_types.rb', line 30143 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_align_exposures_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::AlignExposures::swap(cv::Ptrcv::AlignExposures other)
30151 30152 30153 30154 |
# File 'lib/ropencv/ropencv_types.rb', line 30151 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_align_exposures_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_AlignExposures into a string by crawling through all its attributes
30124 30125 30126 |
# File 'lib/ropencv/ropencv_types.rb', line 30124 def to_s "#<cv::Ptr<cv::AlignExposures> >" end |