Class: OpenCV::Cv::Viz::WMesh

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

.w_mesh(mesh) ⇒ Object .w_mesh(cloud, polygons, colors = Cv::Mat.new(), normals = Cv::Mat.new()) ⇒ Object

Overloads:

  • .w_mesh(mesh) ⇒ Object

    Parameters:

  • .w_mesh(cloud, polygons, colors = Cv::Mat.new(), normals = Cv::Mat.new()) ⇒ Object

    Parameters:

Raises:

  • (ArgumentError)


78230
78231
78232
78233
78234
78235
78236
78237
78238
78239
78240
78241
78242
78243
78244
78245
78246
78247
78248
78249
78250
78251
78252
78253
78254
78255
78256
78257
78258
78259
78260
78261
78262
78263
78264
# File 'lib/ropencv/ropencv_types.rb', line 78230

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(WMeshStruct)
        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::viz::WMesh::WMesh(const cv::viz::Mesh mesh)
    @@cv_viz_w_mesh_w_mesh_defaults0 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_viz_w_mesh_w_mesh_defaults0[i]
        end
        begin
                return Rbind::cv_viz_w_mesh_w_mesh(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::viz::WMesh::WMesh(const cv::Mat cloud, const cv::Mat polygons, const cv::Mat colors = Mat(), const cv::Mat normals = Mat())
    @@cv_viz_w_mesh_w_mesh__2_defaults1 ||= [nil, nil, Cv::Mat.new(), Cv::Mat.new()]
    if(args.size >= 2 && args.size <= 4)
        targs = args.clone
        targs.size.upto(3) do |i|
            targs[i] = @@cv_viz_w_mesh_w_mesh__2_defaults1[i]
        end
        begin
                return Rbind::cv_viz_w_mesh_w_mesh__2(*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



78218
78219
78220
# File 'lib/ropencv/ropencv_types.rb', line 78218

def self.null
    new(WMeshStruct.new)
end

Instance Method Details

#to_sObject

converts WMesh into a string by crawling through all its attributes



78330
78331
78332
# File 'lib/ropencv/ropencv_types.rb', line 78330

def to_s
    "#<cv::viz::WMesh >"
end