-
Notifications
You must be signed in to change notification settings - Fork 32
VTKUtils
subject to change - please see the latest code
Collection of static methods
Source:
Modes when interacting with the vtk canvas
Source:
- interactionModes
Type
Object
(static) buildBoundingBox(bounds, padPct) → {BoxBundle}
Builds a wireframe box with the specified bounds and optional padding
Name | Type | Default | Description |
---|---|---|---|
bounds |
Array.<number> | the bounds in the format [xMin, xMax, yMin, yMax, zMin, zMax] | |
padPct |
number | 0 | additional padding as a percentage of the size |
Source:
Type
BoxBundle
(static) buildOrientationMarker(actor, interactor, location) → {vtk.Interaction.Widgets.vtkOrientationMarkerWidget}
Makes an orientation widget out of the given vtk actor and interactor, placed in the given corner of the viewport
Name | Type | Description |
---|---|---|
actor |
vtk.Rendering.Core.vtkActor | vtk actor |
interactor |
vtk.Rendering.Core.vtkRenderWindowInteractor | interactor from a render window |
location |
vtk.Interaction.Widgets.vtkOrientationMarkerWidget.Corners | which corner to place the widget |
Source:
Type
vtk.Interaction.Widgets.vtkOrientationMarkerWidget
Converts a string or an array of floats to an array of floats using vtk's conversion util, for use in colors
Name | Type | Description |
---|---|---|
hexStringOrArray |
string | Array.<number> | a color string (#rrggbb) or array of floats |
Source:
- array of floats ranging from 0 - 1.
Type
Array.<number>
Converts a string or an array of floats to a string using vtk's conversion util, for use in colors
Name | Type | Description |
---|---|---|
hexStringOrArray |
string | Array.<number> | a color string (#rrggbb) or array of floats |
Source:
- a color string (#rrggbb)
Type
string
Creates a vtk user matrix from a SquareMatrix.
Name | Type | Description |
---|---|---|
matrix |
SquareMatrix | vtk actor |
Source:
Type
Array.<Array.<number>>
License: http://www.apache.org/licenses/LICENSE-2.0.html
Copyright ©️ 2015–2020 RadiaSoft LLC. All Rights Reserved.
- Activait
- Controls
- elegant
- FLASH
- Genesis
- JSPEC
- JupyterHub
- MAD-X
- OPAL
- Radia
- Shadow
- Synchrotron Radiation Workshop (SRW)
- Warp PBA
- Warp VND
- Zgoubi
- Authentication and Account Creation
- How Your Sirepo Workspace Works
- Navigating the Sirepo Simulations Interface
- How to upload a lattice file
- How to share a Sirepo simulation via URL
- How Example simulations work
- How to report a bug in Sirepo
- Using lattice files in Sirepo
- Resetting an Example Simulation to default
- Backup SRW Sirepo simulations
- SRW Aperture
- SRW Brilliance Report
- SRW Circular Cylinder Mirror
- SRW CRL
- SRW Crystal
- SRW Electron Beam
- SRW Elliptical Cylinder Mirror
- SRW Fiber
- SRW Flux
- SRW Fully Coherent Gaussian Beam
- SRW Import Python or JSON Simulation File
- SRW Initial Wavefront Simulation Grid
- SRW Intensity Report
- SRW Planar Mirror
- SRW Power Density Report
- SRW Propagation Parameters
- SRW Single Electron Spectrum Report
- SRW Spherical Mirror
- SRW Toroid Mirror
- SRW Watchpoint
- SRW Additional Documentation