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 boolean
boolean
If 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)int
hashCode()
boolean
Always truevoid
setAnimated
(Boolean animated) void
setArchives_flavours
(Boolean archives_flavours) If true, returns all archives flavours, listed by archive type, and sorted by texture resolution (descending).void
setArchives_max_face_count
(Integer archives_max_face_count) void
setArchives_max_size
(Integer archives_max_size) void
setArchives_max_texture_count
(Integer archives_max_texture_count) void
setArchives_max_vertex_count
(Integer archives_max_vertex_count) void
setArchives_texture_max_resolution
(Integer archives_texture_max_resolution) void
setAvailable_archive_type
(String available_archive_type) void
setCategories
(List<String> categories) void
setCollection
(String collection) Searches models by collection (uid)void
Items displayed per page, seems ignored by sketchfab but returned in pagingvoid
Starting item number, used for paging.void
Limit search to a specific period only (in days)void
setDownloadable
(boolean downloadable) Always truevoid
setFile_format
(String file_format) Irrelevant, we always deal with GLTFvoid
setLicense
(String license) One of by, by-sa, by-nd, by-nc, by-nc-sa, by-nc-nd, cc0, ed, stvoid
setMax_face_count
(Integer max_face_count) void
setMax_uv_layer_count
(Integer max_uv_layer_count) void
setMin_face_count
(Integer min_face_count) void
setPbr_type
(String pbr_type) Filter by PBR type.void
Space separated keywordsvoid
void
setSort_by
(String sort_by) How to sort results.void
setStaffpicked
(Boolean staffpicked) void
void
Constant, type=modelsvoid
Searches 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
-