Class ModelSearchRequest
java.lang.Object
org.vrspace.server.connect.sketchfab.ModelSearchRequest
Sketchfab model search API parameters, passed to sketchfab as it is. Most interesting parameters are: q, animated, rigged,
archives_max_size
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIf true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending).We set this to gltf.Searches models by collection (uid)getCount()Items displayed per page, max 24, default 24Starting item number, used for paging.getDate()Limit search to a specific period only (in days)Irrelevant, we always deal with GLTF, but this seems to specify original fileOne of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, stFilter by PBR type.getQ()Space separated keywordsfalse by default.How to sort results.getSound()getTags()getType()Constant, type=modelsgetUser()Searches models by a user (sketchfab username)inthashCode()booleanAlways truevoidsetAnimated(Boolean animated) voidsetArchives_flavours(Boolean archives_flavours) If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending).voidsetArchives_max_face_count(Integer archives_max_face_count) voidsetArchives_max_size(Integer archives_max_size) voidsetArchives_max_texture_count(Integer archives_max_texture_count) voidsetArchives_max_vertex_count(Integer archives_max_vertex_count) voidsetArchives_texture_max_resolution(Integer archives_texture_max_resolution) voidsetAvailable_archive_type(String available_archive_type) We set this to gltf.voidsetCategories(List<String> categories) voidsetCollection(String collection) Searches models by collection (uid)voidItems displayed per page, max 24, default 24voidStarting item number, used for paging.voidLimit search to a specific period only (in days)voidsetDownloadable(boolean downloadable) Always truevoidsetFile_format(String file_format) Irrelevant, we always deal with GLTF, but this seems to specify original filevoidsetLicense(String license) One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, stvoidsetMax_face_count(Integer max_face_count) voidsetMax_uv_layer_count(Integer max_uv_layer_count) voidsetMin_face_count(Integer min_face_count) voidsetPbr_type(String pbr_type) Filter by PBR type.voidSpace separated keywordsvoidfalse by default.voidsetSort_by(String sort_by) How to sort results.voidvoidsetStaffpicked(Boolean staffpicked) voidvoidConstant, type=modelsvoidSearches models by a user (sketchfab username)toString()
-
Constructor Details
-
ModelSearchRequest
public ModelSearchRequest()
-
-
Method Details
-
toURI
-
getQ
Space separated keywords -
getUser
Searches models by a user (sketchfab username) -
getTags
-
getCategories
-
getDate
Limit search to a specific period only (in days) -
isDownloadable
public boolean isDownloadable()Always true -
getAnimated
-
getStaffpicked
-
getSound
-
getMin_face_count
-
getMax_face_count
-
getPbr_type
Filter by PBR type. Set to metalness to search Metalness/Roughness models only. Set to specular to search Specular/Glossiness models only. Set to true to search PBR models only. Set to false to search non-PBR models only. -
getRigged
false by default. Set to true to search rigged models only. Set to false to search all models -
getCollection
Searches models by collection (uid) -
getSort_by
How to sort results. When omitted, results are sorted by relevance. One of likeCount, -likeCount, viewCount, -viewCount, publishedAt, -publishedAt, processedAt, -processedAt -
getFile_format
Irrelevant, we always deal with GLTF, but this seems to specify original file -
getLicense
One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, st -
getMax_uv_layer_count
-
getAvailable_archive_type
We set this to gltf. Always available, and allows for search limit by size -
getArchives_max_size
-
getArchives_max_face_count
-
getArchives_max_vertex_count
-
getArchives_max_texture_count
-
getArchives_texture_max_resolution
-
getArchives_flavours
If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending). If false, only the texture with the highest reslution is returned for each archive type. -
getCount
Items displayed per page, max 24, default 24 -
getCursor
Starting item number, used for paging. -
getType
Constant, type=models -
setQ
Space separated keywords -
setUser
Searches models by a user (sketchfab username) -
setTags
-
setCategories
-
setDate
Limit search to a specific period only (in days) -
setDownloadable
public void setDownloadable(boolean downloadable) Always true -
setAnimated
-
setStaffpicked
-
setSound
-
setMin_face_count
-
setMax_face_count
-
setPbr_type
Filter by PBR type. Set to metalness to search Metalness/Roughness models only. Set to specular to search Specular/Glossiness models only. Set to true to search PBR models only. Set to false to search non-PBR models only. -
setRigged
false by default. Set to true to search rigged models only. Set to false to search all models -
setCollection
Searches models by collection (uid) -
setSort_by
How to sort results. When omitted, results are sorted by relevance. One of likeCount, -likeCount, viewCount, -viewCount, publishedAt, -publishedAt, processedAt, -processedAt -
setFile_format
Irrelevant, we always deal with GLTF, but this seems to specify original file -
setLicense
One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, st -
setMax_uv_layer_count
-
setAvailable_archive_type
We set this to gltf. Always available, and allows for search limit by size -
setArchives_max_size
-
setArchives_max_face_count
-
setArchives_max_vertex_count
-
setArchives_max_texture_count
-
setArchives_texture_max_resolution
-
setArchives_flavours
If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending). If false, only the texture with the highest reslution is returned for each archive type. -
setCount
Items displayed per page, max 24, default 24 -
setCursor
Starting item number, used for paging. -
setType
Constant, type=models -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-