Class: OpenCV::CvTermCriteria
- Inherits:
-
Object
- Object
- OpenCV::CvTermCriteria
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#to_s ⇒ Object
converts CvTermCriteria into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
41519 41520 41521 41522 41523 41524 41525 41526 |
# File 'lib/ropencv/ropencv_types.rb', line 41519 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvTermCriteriaStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
41515 41516 41517 |
# File 'lib/ropencv/ropencv_types.rb', line 41515 def self.null new(CvTermCriteriaStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts CvTermCriteria into a string by crawling through all its attributes
41592 41593 41594 |
# File 'lib/ropencv/ropencv_types.rb', line 41592 def to_s "#<CvTermCriteria >" end |