Class: OpenCV::Cv::Vec6i

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

Constant Summary collapse

SIZE =
6

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Vecxi

#[], #[]=, #to_a

Class Method Details

.vec_6iObject .vec_6i(other) ⇒ Object .vec_6i(_t0, _t1, _t2, _t3, _t4, _t5) ⇒ Object

Overloads:

  • .vec_6i(other) ⇒ Object

    Parameters:

  • .vec_6i(_t0, _t1, _t2, _t3, _t4, _t5) ⇒ Object

    Parameters:

    • _t0 (Fixnum)
    • _t1 (Fixnum)
    • _t2 (Fixnum)
    • _t3 (Fixnum)
    • _t4 (Fixnum)
    • _t5 (Fixnum)

Raises:

  • (ArgumentError)


7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
# File 'lib/ropencv/ropencv_types.rb', line 7509

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Vec6iStruct)
        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::Vec6i::Vec6i()
    @@cv_vec_6i_vec_6i_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_vec_6i_vec_6i_defaults0[i]
        end
        begin
                return Rbind::cv_vec_6i_vec_6i(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Vec6i::Vec6i(cv::Vec6i other)
    @@cv_vec_6i_vec_6i2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_vec_6i_vec_6i2_defaults1[i]
        end
        begin
                return Rbind::cv_vec_6i_vec_6i2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Vec6i::Vec6i(int t0, int t1, int t2, int t3, int t4, int t5)
    @@cv_vec_6i_vec_6i3_defaults2 ||= [nil, nil, nil, nil, nil, nil]
    if(args.size >= 6 && args.size <= 6)
        targs = args.clone
        targs.size.upto(5) do |i|
            targs[i] = @@cv_vec_6i_vec_6i3_defaults2[i]
        end
        begin
                return Rbind::cv_vec_6i_vec_6i3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



7493
7494
7495
# File 'lib/ropencv/ropencv_types.rb', line 7493

def self.null
    new(Vec6iStruct.new)
end

Instance Method Details

#!=(vec) ⇒ Bool

Note:

method wrapper for bool cv::Vec6i::operator!=(cv::Vec6i vec)

Parameters:

Returns:

  • (Bool)


7677
7678
7679
7680
# File 'lib/ropencv/ropencv_types.rb', line 7677

def !=(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_unequal( self, vec)
end

#*(vec) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::operator*(int vec)

Parameters:

  • vec (Fixnum)

Returns:



7701
7702
7703
7704
# File 'lib/ropencv/ropencv_types.rb', line 7701

def *(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_mult( self, vec)
end

#+(vec) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::operator+(cv::Vec6i vec)

Parameters:

Returns:



7685
7686
7687
7688
# File 'lib/ropencv/ropencv_types.rb', line 7685

def +(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_plus( self, vec)
end

#-(vec) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::operator-(cv::Vec6i vec)

Parameters:

Returns:



7693
7694
7695
7696
# File 'lib/ropencv/ropencv_types.rb', line 7693

def -(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_minus( self, vec)
end

#/(vec) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::operator/(int vec)

Parameters:

  • vec (Fixnum)

Returns:



7709
7710
7711
7712
# File 'lib/ropencv/ropencv_types.rb', line 7709

def /(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_div( self, vec)
end

#==(vec) ⇒ Bool

Note:

method wrapper for bool cv::Vec6i::operator==(cv::Vec6i vec)

Parameters:

Returns:

  • (Bool)


7669
7670
7671
7672
# File 'lib/ropencv/ropencv_types.rb', line 7669

def ==(vec)
    __validate_pointer__
    Rbind::cv_vec_6i_operator_equal( self, vec)
end

#all(alpha) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::all(int alpha)

Parameters:

  • alpha (Fixnum)

Returns:



7643
7644
7645
7646
7647
7648
7649
7650
7651
# File 'lib/ropencv/ropencv_types.rb', line 7643

def all(alpha)
    __validate_pointer__
    result = Rbind::cv_vec_6i_all( self, alpha)
    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

#mul(other) ⇒ Cv::Vec6i

Note:

method wrapper for cv::Vec6i cv::Vec6i::mul(cv::Vec6i other)

Parameters:

Returns:



7656
7657
7658
7659
7660
7661
7662
7663
7664
# File 'lib/ropencv/ropencv_types.rb', line 7656

def mul(other)
    __validate_pointer__
    result = Rbind::cv_vec_6i_mul( self, other)
    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

#to_sObject

converts Vec6i into a string by crawling through all its attributes



7623
7624
7625
# File 'lib/ropencv/ropencv_types.rb', line 7623

def to_s
    "#<cv::Vec6i val=#{self.val}>"
end

#valFixnum Also known as: get_val

Note:

method wrapper for int* val

methods

Returns:

  • (Fixnum)


7634
7635
7636
7637
# File 'lib/ropencv/ropencv_types.rb', line 7634

def val()
    __validate_pointer__
    Rbind::cv_vec_6i_get_val( self)
end