public static final class PartsGetShadedViewsRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
PartsGetShadedViewsResponse |
call(OnshapeDocument document,
String partid) |
Calls getShadedViews method, Get a shaded image rendering of a part
|
PartsGetShadedViewsResponse |
call(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls getShadedViews method, Get a shaded image rendering of a part
|
String |
configuration() |
Get Configuration string
|
PartsGetShadedViewsRequest.Builder |
configuration(String value) |
Set Configuration string
|
String |
edges() |
Get The treatment to be applied to edges in the display.
|
PartsGetShadedViewsRequest.Builder |
edges(String value) |
Set The treatment to be applied to edges in the display.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartsGetShadedViewsRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
outputHeight() |
Get Output image height (in pixels)
|
PartsGetShadedViewsRequest.Builder |
outputHeight(Number value) |
Set Output image height (in pixels)
|
Number |
outputWidth() |
Get Output image width (in pixels)
|
PartsGetShadedViewsRequest.Builder |
outputWidth(Number value) |
Set Output image width (in pixels)
|
Number |
pixelSize() |
Get Height and width represented by each pixel (in meters).
|
PartsGetShadedViewsRequest.Builder |
pixelSize(Number value) |
Set Height and width represented by each pixel (in meters).
|
Boolean |
useAntiAliasing() |
Get If true, an anti-aliasing factor will be used to smooth model boundaries in the final image result.
|
PartsGetShadedViewsRequest.Builder |
useAntiAliasing(Boolean value) |
Set If true, an anti-aliasing factor will be used to smooth model boundaries in the final image result.
|
String |
viewMatrix() |
Get 12-number view matrix (comma-separated), or one of the following named views: top, bottom, front, back, left, right The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
|
PartsGetShadedViewsRequest.Builder |
viewMatrix(String value) |
Set 12-number view matrix (comma-separated), or one of the following named views: top, bottom, front, back, left, right The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
|
public final Number outputHeight()
public final PartsGetShadedViewsRequest.Builder outputHeight(Number value)
value - Output image height (in pixels)public final Number outputWidth()
public final PartsGetShadedViewsRequest.Builder outputWidth(Number value)
value - Output image width (in pixels)public final Number pixelSize()
public final PartsGetShadedViewsRequest.Builder pixelSize(Number value)
value - Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.public final String edges()
public final PartsGetShadedViewsRequest.Builder edges(String value)
value - The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edgespublic final Boolean useAntiAliasing()
public final PartsGetShadedViewsRequest.Builder useAntiAliasing(Boolean value)
value - If true, an anti-aliasing factor will be used to smooth model boundaries in the final image result. If false, the image will be rasterized at the given resolution. Setting to true can have negative performance implications with respect to rendering time and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server may not be able to fulfill the request.public final String linkDocumentId()
public final PartsGetShadedViewsRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final String configuration()
public final PartsGetShadedViewsRequest.Builder configuration(String value)
value - Configuration stringpublic final String viewMatrix()
public final PartsGetShadedViewsRequest.Builder viewMatrix(String value)
value - 12-number view matrix (comma-separated), or one of the following named views: top, bottom, front, back, left, right The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself. The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters). The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up. For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view. The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.public final PartsGetShadedViewsResponse call(String did, WVM wvmType, String wvm, String eid, String partid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDpartid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorpublic final PartsGetShadedViewsResponse call(OnshapeDocument document, String partid) throws OnshapeException
document - Document object from Onshape URL.partid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.