Class: OpenCV::Cv::Ptr::Cv_LineSegmentDetector
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_LineSegmentDetector
- 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::LineSegmentDetector
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_LineSegmentDetector 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
36492 36493 36494 36495 |
# File 'lib/ropencv/ropencv_types.rb', line 36492 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
36296 36297 36298 36299 36300 36301 36302 36303 36304 36305 36306 36307 36308 36309 36310 36311 36312 36313 36314 36315 36316 36317 36318 36319 36320 36321 36322 36323 36324 36325 36326 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 |
# File 'lib/ropencv/ropencv_types.rb', line 36296 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_LineSegmentDetectorStruct) 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::LineSegmentDetector>::Ptr<cv::LineSegmentDetector>() @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector_defaults0[i] end begin return Rbind::cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::LineSegmentDetector>::Ptr<cv::LineSegmentDetector>(cv::Ptr<cv::LineSegmentDetector> other) @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__2_defaults1[i] end begin return Rbind::cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::LineSegmentDetector>::Ptr<cv::LineSegmentDetector>(cv::Ptr<cv::LineSegmentDetector> owner, cv::LineSegmentDetector* p) @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__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_line_segment_detector_ptr_cv_line_segment_detector__3_defaults2[i] end begin return Rbind::cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::LineSegmentDetector>::Ptr<cv::LineSegmentDetector>(cv::LineSegmentDetector* p) @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__4_defaults3[i] end begin return Rbind::cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::LineSegmentDetector>::Ptr<cv::LineSegmentDetector>(cv::Ptr<cv::Algorithm> owner, cv::LineSegmentDetector* p) @@cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__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_line_segment_detector_ptr_cv_line_segment_detector__5_defaults4[i] end begin return Rbind::cv_ptr_cv_line_segment_detector_ptr_cv_line_segment_detector__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
36277 36278 36279 |
# File 'lib/ropencv/ropencv_types.rb', line 36277 def self.null new(Ptr::Cv_LineSegmentDetectorStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::LineSegmentDetector::empty()
36484 36485 36486 36487 |
# File 'lib/ropencv/ropencv_types.rb', line 36484 def empty() __validate_pointer__ Rbind::cv_ptr_cv_line_segment_detector_empty( self) end |
#get ⇒ Cv::LineSegmentDetector
Note:
method wrapper for cv::LineSegmentDetector* cv::Ptrcv::LineSegmentDetector::get()
36472 36473 36474 36475 36476 36477 36478 36479 36480 |
# File 'lib/ropencv/ropencv_types.rb', line 36472 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_line_segment_detector_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::LineSegmentDetector::release()
methods
36449 36450 36451 36452 |
# File 'lib/ropencv/ropencv_types.rb', line 36449 def release() __validate_pointer__ Rbind::cv_ptr_cv_line_segment_detector_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::LineSegmentDetector::reset(cv::LineSegmentDetector* p)
36457 36458 36459 36460 |
# File 'lib/ropencv/ropencv_types.rb', line 36457 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_line_segment_detector_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::LineSegmentDetector::swap(cv::Ptrcv::LineSegmentDetector other)
36465 36466 36467 36468 |
# File 'lib/ropencv/ropencv_types.rb', line 36465 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_line_segment_detector_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_LineSegmentDetector into a string by crawling through all its attributes
36438 36439 36440 |
# File 'lib/ropencv/ropencv_types.rb', line 36438 def to_s "#<cv::Ptr<cv::LineSegmentDetector> >" end |