Class: OpenCV::CvDTreeNode

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


40997
40998
40999
41000
41001
41002
41003
41004
# File 'lib/ropencv/ropencv_types.rb', line 40997

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvDTreeNodeStruct)
        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

.nullObject

returns a null pointer to the object



40993
40994
40995
# File 'lib/ropencv/ropencv_types.rb', line 40993

def self.null
    new(CvDTreeNodeStruct.new)
end

Instance Method Details

#to_sObject

converts CvDTreeNode into a string by crawling through all its attributes



41070
41071
41072
# File 'lib/ropencv/ropencv_types.rb', line 41070

def to_s
    "#<CvDTreeNode >"
end