GR.gr3 Reference¶
- module
GR3¶ -
- type
PNG¶
- type
HTML¶
- function
show(io::IO, ::#= none:18 =# @MIME_str "image/png", x::PNG)¶
- function
show(io::IO, ::#= none:19 =# @MIME_str "text/html", x::HTML)¶
- function
_readfile(path)¶
- type
GR3Exception<: Exception¶
- function
showerror(io::IO, e::GR3Exception)¶
- function
_check_error()¶
- function
init(attrib_list)¶
- function
free(pointer)¶
- function
terminate()¶
- function
useframebuffer(framebuffer)¶
- function
usecurrentframebuffer()¶
- function
getimage(width, height, use_alpha = true)¶
- function
save(filename, width, height)¶
- function
getrenderpathstring()¶
- function
drawimage(xmin, xmax, ymin, ymax, pixel_width, pixel_height, window)¶
- function
createmesh(n, vertices, normals, colors)¶
- function
createindexedmesh(num_vertices, vertices, normals, colors, num_indices, indices)¶
- function
drawmesh(mesh::Int32, n, positions::#= none:161 =# @triplet Real, directions::#= none:161 =# @triplet Real, ups::#= none:161 =# @triplet Real, colors::#= none:161 =# @triplet Real, scales::#= none:161 =# @triplet Real)¶
- function
createheightmapmesh(heightmap, num_columns, num_rows)¶
- function
drawheightmap(heightmap, num_columns, num_rows, positions, scales)¶
- function
deletemesh(mesh)¶
- function
setquality(quality)¶
- function
clear()¶
- function
cameralookat(camera_x, camera_y, camera_z, center_x, center_y, center_z, up_x, up_y, up_z)¶
- function
setcameraprojectionparameters(vertical_field_of_view, zNear, zFar)¶
- function
setlightdirection(x, y, z)¶
- function
drawcylindermesh(n, positions, directions, colors, radii, lengths)¶
- function
drawconemesh(n, positions, directions, colors, radii, lengths)¶
- function
drawspheremesh(n, positions, colors, radii)¶
- function
drawcubemesh(n, positions, directions, ups, colors, scales)¶
- function
setbackgroundcolor(red, green, blue, alpha)¶
- function
createisosurfacemesh(grid::Array{UInt16, 3}, step::#= none:319 =# @triplet Float64, offset::#= none:319 =# @triplet Float64, isolevel::Int64)¶
- function
surface(px, py, pz, option::Int)¶
- function
setalphamode(mode)¶
- function
getalphamode(mode)¶
- function
setlightparameters(ambient, diffuse, specular, specular_power)¶
- function
getlightparameters()¶
- function
isosurface(data::Array{Float64, 3}, iso::Float64, color)¶
- function
volume(data::Array{Float64, 3}, algorithm::Int64)¶
- function
createslicemeshes(grid; x::Union{Real, Nothing} = nothing, y::Union{Real, Nothing} = nothing, z::Union{Real, Nothing} = nothing, step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing)¶
- function
createxslicemesh(grid, x::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing)¶
- function
createyslicemesh(grid, y::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing)¶
- function
createzslicemesh(grid, z::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing)¶
- function
drawxslicemesh(grid, x::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing, position::Tuple{Real, Real, Real} = (0, 0, 0), direction::Tuple{Real, Real, Real} = (0, 0, 1), up::Tuple{Real, Real, Real} = (0, 1, 0), color::Tuple{Real, Real, Real} = (1, 1, 1), scale::Tuple{Real, Real, Real} = (1, 1, 1))¶
- function
drawyslicemesh(grid, y::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing, position::Tuple{Real, Real, Real} = (0, 0, 0), direction::Tuple{Real, Real, Real} = (0, 0, 1), up::Tuple{Real, Real, Real} = (0, 1, 0), color::Tuple{Real, Real, Real} = (1, 1, 1), scale::Tuple{Real, Real, Real} = (1, 1, 1))¶
- function
drawzslicemesh(grid, z::Real = 0.5; step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing, position::Tuple{Real, Real, Real} = (0, 0, 0), direction::Tuple{Real, Real, Real} = (0, 0, 1), up::Tuple{Real, Real, Real} = (0, 1, 0), color::Tuple{Real, Real, Real} = (1, 1, 1), scale::Tuple{Real, Real, Real} = (1, 1, 1))¶
- function
drawslicemeshes(data; x::Union{Real, Nothing} = nothing, y::Union{Real, Nothing} = nothing, z::Union{Real, Nothing} = nothing, step::Union{Tuple{Real, Real, Real}, Nothing} = nothing, offset::Union{Tuple{Real, Real, Real}, Nothing} = nothing, position::Tuple{Real, Real, Real} = (0, 0, 0), direction::Tuple{Real, Real, Real} = (0, 0, 1), up::Tuple{Real, Real, Real} = (0, 1, 0), color::Tuple{Real, Real, Real} = (1, 1, 1), scale::Tuple{Real, Real, Real} = (1, 1, 1))¶
- function
setlightsources(num_lights, directions, colors)¶
- function
getlightsources(num_lights)¶
- type