MarkupView
- 
class 
Markup.MarkupView() 
Methods
addMarkupItem()getCamera()getColorMap()getCuttingPlaneData()getDefaultVisibility()getExplodeMagnitude()getFaceVisibility()getLineVisibility()getMarkup()getName()getSheetId()getSnapshotImage()getUniqueId()getVisibilityExceptions()removeMarkup()setColorMap()setCuttingPlaneData()setDefaultVisibility()setExplodeMagnitude()setFaceVisibility()setLineVisibility()setName()setSnapshotImage()setVisibilityExceptions()toJson()
Methods
addMarkupItem
- 
MarkupView.addMarkupItem(markupItem) Arguments: - markupItem (
MarkupItem()) – the markup to be added to this view. 
Adds a markup item to this view
Return type: void - markupItem (
 
getCamera
- 
MarkupView.getCamera() Gets the camera of this view
Returns: the camera of this view Return type: Camera 
getColorMap
- 
MarkupView.getColorMap() Returns: A color map associating NodeIds to Colors. Return type: Map <number, Color> 
getCuttingPlaneData
- 
MarkupView.getCuttingPlaneData() Returns: a JSON object with the cutting plane data associated with this view Return type: object 
getExplodeMagnitude
- 
MarkupView.getExplodeMagnitude() Returns: the explode value associated with this view Return type: number 
getFaceVisibility
- 
MarkupView.getFaceVisibility() Gets face visibility setting for this view
Returns: face visibility setting for this view Return type: boolean 
getLineVisibility
- 
MarkupView.getLineVisibility() Gets line visibility setting for this view
Returns: line visibility setting for this view Return type: boolean 
getMarkup
- 
MarkupView.getMarkup() Gets an array of markup items associated with this view
Returns: face visibility setting for this view Return type: [MarkupItem] 
getName
- 
MarkupView.getName() Gets the name of this view
Returns: name of this view Return type: string 
getSheetId
- 
MarkupView.getSheetId() Gets the sheet id for this view
Returns: the id of the sheet for this view. If no view was active at the time of creation this function will return null. Return type: null | number 
getUniqueId
- 
MarkupView.getUniqueId() Gets the unique identifier of this view
Returns: unique identifier of this view Return type: string 
removeMarkup
- 
MarkupView.removeMarkup(item) Arguments: - item (
MarkupItem()) – None 
Removes a markup item from the view
Returns: result of the removal operation Return type: boolean - item (
 
setColorMap
- 
MarkupView.setColorMap(colorMap) Arguments: - colorMap (
Map) – None 
Takes a color map associating NodeIds to Colors and associates it with this view.
Return type: void - colorMap (
 
setCuttingPlaneData
- 
MarkupView.setCuttingPlaneData(cuttingPlaneData) Arguments: - cuttingPlaneData (
object()) – None 
Takes a JSON cutting plane data object and associates it with this view
Return type: void - cuttingPlaneData (
 
setDefaultVisibility
- 
MarkupView.setDefaultVisibility(defaultVisibility) Arguments: - defaultVisibility (
boolean()) – None 
Return type: void
- defaultVisibility (
 
setExplodeMagnitude
- 
MarkupView.setExplodeMagnitude(explodeMagnitude) Arguments: - explodeMagnitude (
number()) – None 
Takes an explode magnitude and associates it with this view
Return type: void - explodeMagnitude (
 
setFaceVisibility
- 
MarkupView.setFaceVisibility(faceVisibility) Arguments: - faceVisibility (
boolean()) – face visibility setting for this view 
Sets face visibility for this view
Return type: void - faceVisibility (
 
setLineVisibility
- 
MarkupView.setLineVisibility(lineVisibility) Arguments: - lineVisibility (
boolean()) – line visibility setting for this view 
Sets line visibility for this view
Return type: void - lineVisibility (
 
setName
- 
MarkupView.setName(name) Arguments: - name (
string()) – name to set 
Sets the name for this view
Return type: void - name (
 
setSnapshotImage
- 
MarkupView.setSnapshotImage(image) Arguments: - image (
HTMLImageElement()) – None 
Return type: void
- image (