SectionBox
Class in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Class
class SectionBoxMembers#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| getAnnotationMode | Method | |
| getAnnotationReach | Method | |
| isVisible | Method | |
| setAnnotationMode | Method | Set the annotation mode of all six faces of the box (SectionPlane.setAnnotationMode). A new box starts with the mode of SectionPlanes.annotationDefaults, "hi… |
| setAnnotationReach | Method | Set the annotation reach of all six faces of the box (SectionPlane.setAnnotationReach): around one storey in "project" with a reach of a storey height, the s… |
| setVisible | Method | Draw all six faces of the box or none (SectionPlane.setVisible): hidden, the box still cuts. A new box is drawn. Has no effect once this box is no longer the… |
constructor#
constructor()getAnnotationMode#
getAnnotationMode(): SectionPlaneAnnotationMode | nullReturns#
The annotation mode of the faces of the box, null while they differ
getAnnotationReach#
getAnnotationReach(): number | nullReturns#
The annotation reach of the faces of the box in mm (Infinity for no limit), null while they differ
isVisible#
isVisible(): boolean | nullReturns#
Whether the faces of the box are drawn, null while they differ
setAnnotationMode#
setAnnotationMode(mode: SectionPlaneAnnotationMode): voidSet the annotation mode of all six faces of the box (SectionPlane.setAnnotationMode).
A new box starts with the mode of SectionPlanes.annotationDefaults, "hide" by default. Has no
effect once this box is no longer the active one (another box was started, a face was removed or put
back, or the planes were disabled).
Parameters#
| Name | Type | Description |
|---|---|---|
mode |
SectionPlaneAnnotationMode |
Exceptions#
- Error for an unknown mode
setAnnotationReach#
setAnnotationReach(reach: number): voidSet the annotation reach of all six faces of the box (SectionPlane.setAnnotationReach): around
one storey in "project" with a reach of a storey height, the storey above lands on the top face and the
one below on the bottom face, and the others are hidden. A new box starts with the reach of
SectionPlanes.annotationDefaults, no limit by default. Has no effect once this box is no longer
the active one.
Parameters#
| Name | Type | Description |
|---|---|---|
reach |
number |
mm, 0 or more; Infinity for no limit |
Exceptions#
- Error for a negative distance, NaN or a value that is not a number
setVisible#
setVisible(visible: boolean): voidDraw all six faces of the box or none (SectionPlane.setVisible): hidden, the box still cuts. A new box
is drawn. Has no effect once this box is no longer the active one.
Parameters#
| Name | Type | Description |
|---|---|---|
visible |
boolean |
Exceptions#
- Error when visible is not a boolean