public static final class PartStudiosGetShadedViewsRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
PartStudiosGetShadedViewsResponse |
call(OnshapeDocument document) |
Calls getShadedViews method, Get a shaded image rendering of a Part Studio
|
PartStudiosGetShadedViewsResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls getShadedViews method, Get a shaded image rendering of a Part Studio
|
String |
configuration() |
Get Configuration string
|
PartStudiosGetShadedViewsRequest.Builder |
configuration(String value) |
Set Configuration string
|
String |
edges() |
Get The treatment to be applied to edges in the display.
|
PartStudiosGetShadedViewsRequest.Builder |
edges(String value) |
Set The treatment to be applied to edges in the display.
|
Boolean |
includeSurfaces() |
Get Whether or not surfaces should be shown in the element.
|
PartStudiosGetShadedViewsRequest.Builder |
includeSurfaces(Boolean value) |
Set Whether or not surfaces should be shown in the element.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartStudiosGetShadedViewsRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
outputHeight() |
Get Output image height (in pixels)
|
PartStudiosGetShadedViewsRequest.Builder |
outputHeight(Number value) |
Set Output image height (in pixels)
|
Number |
outputWidth() |
Get Output image width (in pixels)
|
PartStudiosGetShadedViewsRequest.Builder |
outputWidth(Number value) |
Set Output image width (in pixels)
|
Number |
pixelSize() |
Get Height and width represented by each pixel (in meters).
|
PartStudiosGetShadedViewsRequest.Builder |
pixelSize(Number value) |
Set Height and width represented by each pixel (in meters).
|
Boolean |
showAllParts() |
Get Whether or not all parts should be shown in the element, regardless of user setting.
|
PartStudiosGetShadedViewsRequest.Builder |
showAllParts(Boolean value) |
Set Whether or not all parts should be shown in the element, regardless of user setting.
|
Boolean |
useAntiAliasing() |
Get If true, an anti-aliasing factor will be used to smooth model boundaries in the final image result.
|
PartStudiosGetShadedViewsRequest.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.
|
PartStudiosGetShadedViewsRequest.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 PartStudiosGetShadedViewsRequest.Builder outputHeight(Number value)
value - Output image height (in pixels)public final Number outputWidth()
public final PartStudiosGetShadedViewsRequest.Builder outputWidth(Number value)
value - Output image width (in pixels)public final Number pixelSize()
public final PartStudiosGetShadedViewsRequest.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 PartStudiosGetShadedViewsRequest.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 showAllParts()
public final PartStudiosGetShadedViewsRequest.Builder showAllParts(Boolean value)
value - Whether or not all parts should be shown in the element, regardless of user setting. If false, the visibility setting made by the user will be reflected in the image. If true, all parts will be shown.public final Boolean includeSurfaces()
public final PartStudiosGetShadedViewsRequest.Builder includeSurfaces(Boolean value)
value - Whether or not surfaces should be shown in the element. It is applicable only when showAllParts is true. If false, surfaces will be excluded. If true, all surfaces will be shown.public final Boolean useAntiAliasing()
public final PartStudiosGetShadedViewsRequest.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 viewMatrix()
public final PartStudiosGetShadedViewsRequest.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 String linkDocumentId()
public final PartStudiosGetShadedViewsRequest.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 PartStudiosGetShadedViewsRequest.Builder configuration(String value)
value - Configuration stringpublic final PartStudiosGetShadedViewsResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final PartStudiosGetShadedViewsResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.