Sha256: ce7cf75a96ed60b7860a581dec73c5598839caab8840d11eca166c73ca3140b2
Contents?: true
Size: 1.95 KB
Versions: 9
Compression:
Stored size: 1.95 KB
Contents
# frozen_string_literal: true require 'ffi' require_relative 'rect_obj' require_relative '../../ext/ffi_library_function_checks' module FFI module CPL module QuadTree extend ::FFI::Library ffi_lib [FFI::CURRENT_PROCESS, FFI::GDAL.gdal_library_path] #------------------------------------------------------------------------- # Typedefs #------------------------------------------------------------------------- callback :CPLQuadTreeGetBoundsFunc, [:pointer, RectObj.ptr], :void callback :CPLQuadTreeForeachFunc, %i[pointer pointer], :int callback :CPLQuadTreeDumpFeatureFunc, %i[pointer int pointer], :void # Taking liberties here... typedef :pointer, :CPLQuadTreeH #------------------------------------------------------------------------- # Functions #------------------------------------------------------------------------- attach_function :CPLQuadTreeCreate, [RectObj.ptr, :CPLQuadTreeGetBoundsFunc], :CPLQuadTreeH attach_function :CPLQuadTreeDestroy, %i[CPLQuadTreeH], :void attach_function :CPLQuadTreeSetBucketCapacity, %i[CPLQuadTreeH int], :void attach_function :CPLQuadTreeGetAdvisedMaxDepth, %i[int], :int attach_function :CPLQuadTreeSetMaxDepth, %i[CPLQuadTreeH int], :void attach_function :CPLQuadTreeInsert, %i[CPLQuadTreeH pointer], :void attach_function :CPLQuadTreeInsertWithBounds, [:CPLQuadTreeH, :pointer, RectObj.ptr], :void attach_function :CPLQuadTreeSearch, [:CPLQuadTreeH, RectObj.ptr, :pointer], :void attach_function :CPLQuadTreeForeach, %i[CPLQuadTreeH CPLQuadTreeForeachFunc pointer], :void attach_function :CPLQuadTreeDump, %i[CPLQuadTreeH CPLQuadTreeDumpFeatureFunc pointer], :void attach_function :CPLQuadTreeGetStats, %i[CPLQuadTreeH pointer pointer pointer pointer], :void end end end
Version data entries
9 entries across 9 versions & 1 rubygems