public static final class AssembliesGetShadedViewsRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
AssembliesGetShadedViewsResponse |
call(OnshapeDocument document) |
Calls getShadedViews method, Get a shaded image rendering of an Assembly
|
AssembliesGetShadedViewsResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls getShadedViews method, Get a shaded image rendering of an Assembly
|
String |
edges() |
Get The treatment to be applied to edges in the display.
|
AssembliesGetShadedViewsRequest.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.
|
AssembliesGetShadedViewsRequest.Builder |
includeSurfaces(Boolean value) |
Set Whether or not surfaces should be shown in the element.
|
Boolean |
includeWires() |
Get Whether or not curves should be shown in the element.
|
AssembliesGetShadedViewsRequest.Builder |
includeWires(Boolean value) |
Set Whether or not curves should be shown in the element.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
AssembliesGetShadedViewsRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
outputHeight() |
Get Output image height (in pixels)
|
AssembliesGetShadedViewsRequest.Builder |
outputHeight(Number value) |
Set Output image height (in pixels)
|
Number |
outputWidth() |
Get Output image width (in pixels)
|
AssembliesGetShadedViewsRequest.Builder |
outputWidth(Number value) |
Set Output image width (in pixels)
|
Number |
pixelSize() |
Get Height and width represented by each pixel (in meters).
|
AssembliesGetShadedViewsRequest.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.
|
AssembliesGetShadedViewsRequest.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.
|
AssembliesGetShadedViewsRequest.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.
|
AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.Builder outputHeight(Number value)
value - Output image height (in pixels)public final Number outputWidth()
public final AssembliesGetShadedViewsRequest.Builder outputWidth(Number value)
value - Output image width (in pixels)public final Number pixelSize()
public final AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.Builder includeSurfaces(Boolean value)
value - Whether or not surfaces should be shown in the element. If false, surfaces will be excluded. If true, all surfaces will be shown.public final Boolean includeWires()
public final AssembliesGetShadedViewsRequest.Builder includeWires(Boolean value)
value - Whether or not curves should be shown in the element. If false, curves will be excluded. If true, all curves will be shown.public final Boolean useAntiAliasing()
public final AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsRequest.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 AssembliesGetShadedViewsResponse 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 AssembliesGetShadedViewsResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.