public class VtkUtil extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
VTK_BIT |
static int |
VTK_CHAR |
static int |
VTK_CUBIC_INTERPOLATION |
static int |
VTK_DOUBLE |
static int |
VTK_FLOAT |
static int |
VTK_FLY_CLOSEST_TRIAD |
static int |
VTK_FLY_FURTHEST_TRIAD |
static int |
VTK_FLY_OUTER_EDGES |
static int |
VTK_FLY_STATIC_EDGES |
static int |
VTK_FLY_STATIC_TRIAD |
static int |
VTK_GRID_LINES_ALL |
static int |
VTK_GRID_LINES_CLOSEST |
static int |
VTK_GRID_LINES_FURTHEST |
static int |
VTK_ID |
static int |
VTK_INT |
static int |
VTK_LINEAR_INTERPOLATION |
static int |
VTK_LONG |
static int |
VTK_NEAREST_INTERPOLATION |
static int |
VTK_SHORT |
static int |
VTK_SIGNED_CHAR |
static int |
VTK_TICKS_BOTH |
static int |
VTK_TICKS_INSIDE |
static int |
VTK_TICKS_OUTSIDE |
static int |
VTK_UNSIGNED_CHAR |
static int |
VTK_UNSIGNED_INT |
static int |
VTK_UNSIGNED_LONG |
static int |
VTK_UNSIGNED_SHORT |
static int |
VTK_VOID |
Constructor and Description |
---|
VtkUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addActor(vtk.vtkRenderer renderer,
vtk.vtkActor actor)
Deprecated.
Use
addProp(vtkRenderer, vtkProp) instead. |
static void |
addActor2D(vtk.vtkRenderer renderer,
vtk.vtkActor2D actor)
Deprecated.
Use
addProp(vtkRenderer, vtkProp) instead. |
static void |
addProp(vtk.vtkRenderer renderer,
vtk.vtkProp prop)
Add an actor to the specified renderer.
|
static boolean |
findActor(vtk.vtkRenderer renderer,
vtk.vtkActor actor)
Deprecated.
Use
findProp(vtkRenderer, vtkProp) instead. |
static boolean |
findActor2D(vtk.vtkRenderer renderer,
vtk.vtkActor2D actor)
Deprecated.
Use
findProp(vtkRenderer, vtkProp) instead. |
static boolean |
findProp(vtk.vtkRenderer renderer,
vtk.vtkProp actor)
Return true if the renderer contains the specified actor
|
static int[] |
getArray(vtk.vtkIdTypeArray array) |
static vtk.vtkCellArray |
getCells(int numCell,
int[] cells)
Get vtkCellArray from a 1D prepared cells array ( {n, i1, i2, ..., n, i1, i2,...} )
|
static vtk.vtkColorTransferFunction |
getColorMap(LUT.LUTChannel lutChannel)
Creates and returns the color map in
vtkColorTransferFunction format from the
specified LUT.LUTChannel . |
static vtk.vtkDoubleArray |
getDoubleArray(double[] array) |
static vtk.vtkFloatArray |
getFloatArray(float[] array) |
static vtk.vtkIdTypeArray |
getIdTypeArray(int[] array) |
static vtk.vtkImageData |
getImageData(java.lang.Object data,
DataType dataType,
int sizeX,
int sizeY,
int sizeZ,
int sizeC)
Creates and returns a
vtkImageData object from the specified 1D array data. |
static vtk.vtkIntArray |
getIntArray(int[] array) |
static vtk.vtkLongArray |
getLongArray(long[] array) |
static vtk.vtkPiecewiseFunction |
getOpacityMap(LUT.LUTChannel lutChannel)
Creates and returns the opacity map in
vtkPiecewiseFunction format from the specified
LUT.LUTChannel . |
static vtk.vtkPoints |
getPoints(double[] points)
Get vtkPoints from double[]
|
static vtk.vtkPoints |
getPoints(double[][] points)
Get vtkPoints from double[][3]
|
static vtk.vtkPoints |
getPoints(float[] points)
Get vtkPoints from float[]
|
static vtk.vtkPoints |
getPoints(float[][] points)
Get vtkPoints from float[][3]
|
static vtk.vtkShortArray |
getShortArray(short[] array) |
static vtk.vtkUnsignedCharArray |
getUCharArray(byte[] array) |
static vtk.vtkUnsignedIntArray |
getUIntArray(int[] array) |
static vtk.vtkUnsignedLongArray |
getULongArray(long[] array) |
static vtk.vtkUnsignedShortArray |
getUShortArray(short[] array) |
static vtk.vtkDataArray |
getVtkArray(java.lang.Object array,
boolean signed) |
static int |
getVtkType(DataType type)
Returns the VTK type corresponding to the specified DataType
|
static int[] |
prepareCells(int[][] indexes)
Return a 1D cells array from a 2D indexes array
|
static int[] |
prepareCells(int numVertexPerCell,
int[] indexes)
Return a 1D cells array from a 1D indexes array and num vertex per cell (polygon)
|
static void |
removeProp(vtk.vtkRenderer renderer,
vtk.vtkProp actor)
Remove an actor from the specified renderer.
|
public static final int VTK_VOID
public static final int VTK_BIT
public static final int VTK_CHAR
public static final int VTK_SIGNED_CHAR
public static final int VTK_UNSIGNED_CHAR
public static final int VTK_SHORT
public static final int VTK_UNSIGNED_SHORT
public static final int VTK_INT
public static final int VTK_UNSIGNED_INT
public static final int VTK_LONG
public static final int VTK_UNSIGNED_LONG
public static final int VTK_FLOAT
public static final int VTK_DOUBLE
public static final int VTK_ID
public static final int VTK_NEAREST_INTERPOLATION
public static final int VTK_LINEAR_INTERPOLATION
public static final int VTK_CUBIC_INTERPOLATION
public static final int VTK_FLY_OUTER_EDGES
public static final int VTK_FLY_CLOSEST_TRIAD
public static final int VTK_FLY_FURTHEST_TRIAD
public static final int VTK_FLY_STATIC_TRIAD
public static final int VTK_FLY_STATIC_EDGES
public static final int VTK_TICKS_INSIDE
public static final int VTK_TICKS_OUTSIDE
public static final int VTK_TICKS_BOTH
public static final int VTK_GRID_LINES_ALL
public static final int VTK_GRID_LINES_CLOSEST
public static final int VTK_GRID_LINES_FURTHEST
public VtkUtil()
public static int getVtkType(DataType type)
public static void addProp(vtk.vtkRenderer renderer, vtk.vtkProp prop)
@Deprecated public static void addActor(vtk.vtkRenderer renderer, vtk.vtkActor actor)
addProp(vtkRenderer, vtkProp)
instead.@Deprecated public static void addActor2D(vtk.vtkRenderer renderer, vtk.vtkActor2D actor)
addProp(vtkRenderer, vtkProp)
instead.public static void removeProp(vtk.vtkRenderer renderer, vtk.vtkProp actor)
public static boolean findProp(vtk.vtkRenderer renderer, vtk.vtkProp actor)
@Deprecated public static boolean findActor(vtk.vtkRenderer renderer, vtk.vtkActor actor)
findProp(vtkRenderer, vtkProp)
instead.@Deprecated public static boolean findActor2D(vtk.vtkRenderer renderer, vtk.vtkActor2D actor)
findProp(vtkRenderer, vtkProp)
instead.public static int[] prepareCells(int[][] indexes)
public static int[] prepareCells(int numVertexPerCell, int[] indexes)
public static vtk.vtkDataArray getVtkArray(java.lang.Object array, boolean signed)
public static vtk.vtkUnsignedCharArray getUCharArray(byte[] array)
public static vtk.vtkUnsignedShortArray getUShortArray(short[] array)
public static vtk.vtkUnsignedIntArray getUIntArray(int[] array)
public static vtk.vtkUnsignedLongArray getULongArray(long[] array)
public static vtk.vtkShortArray getShortArray(short[] array)
public static vtk.vtkIntArray getIntArray(int[] array)
public static vtk.vtkLongArray getLongArray(long[] array)
public static vtk.vtkFloatArray getFloatArray(float[] array)
public static vtk.vtkDoubleArray getDoubleArray(double[] array)
public static vtk.vtkIdTypeArray getIdTypeArray(int[] array)
public static int[] getArray(vtk.vtkIdTypeArray array)
public static vtk.vtkPoints getPoints(double[] points)
public static vtk.vtkPoints getPoints(double[][] points)
public static vtk.vtkPoints getPoints(float[] points)
public static vtk.vtkPoints getPoints(float[][] points)
public static vtk.vtkCellArray getCells(int numCell, int[] cells)
public static vtk.vtkImageData getImageData(java.lang.Object data, DataType dataType, int sizeX, int sizeY, int sizeZ, int sizeC)
vtkImageData
object from the specified 1D array data.public static vtk.vtkColorTransferFunction getColorMap(LUT.LUTChannel lutChannel)
vtkColorTransferFunction
format from the
specified LUT.LUTChannel
.public static vtk.vtkPiecewiseFunction getOpacityMap(LUT.LUTChannel lutChannel)
vtkPiecewiseFunction
format from the specified
LUT.LUTChannel
.