Package org.vrspace.server.api.sketchfab
Class ModelSearchRequest
java.lang.Object
org.vrspace.server.api.sketchfab.ModelSearchRequest
Sketchfab model search API parameters, passed to sketchfab as it is. Most
interesting parameters are: q, animated, rigged
- 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).Searches models by collection (uid)getCount()Items displayed per page, seems ignored by sketchfab but returned in pagingStarting item number, used for paging.getDate()Limit search to a specific period only (in days)Irrelevant, we always deal with GLTFOne of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, stFilter by PBR type.getQ()Space separated keywordsHow to sort results.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) voidsetCategories(List<String> categories) voidsetCollection(String collection) Searches models by collection (uid)voidItems displayed per page, seems ignored by sketchfab but returned in pagingvoidStarting 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 GLTFvoidsetLicense(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 keywordsvoidvoidsetSort_by(String sort_by) How to sort results.voidsetStaffpicked(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
-
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
-
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 -
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
-
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, seems ignored by sketchfab but returned in paging -
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
-
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
-
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 -
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
-
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, seems ignored by sketchfab but returned in paging -
setCursor
Starting item number, used for paging. -
setType
Constant, type=models -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-