|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkProcessObject vtk.vtkSource vtk.vtkPolyDataSource vtk.vtkDataSetToPolyDataFilter vtk.vtkTensorGlyph
vtkTensorGlyph - scale and orient glyph(s) according to tensor eigenvalues and eigenvectors. vtkTensorGlyph is a filter that copies a geometric representation (specified as polygonal data) to every input point. The geometric representation, or glyph, can be scaled and/or rotated according to the tensor at the input point. Scaling and rotation is controlled by the eigenvalues/eigenvectors of the tensor as follows. For each tensor, the eigenvalues (and associated eigenvectors) are sorted to determine the major, medium, and minor eigenvalues/eigenvectors. If the boolean variable ThreeGlyphs is not set the major eigenvalue scales the glyph in the x-direction, the medium in the y-direction, and the minor in the z-direction. Then, the glyph is rotated so that the glyph's local x-axis lies along the major eigenvector, y-axis along the medium eigenvector, and z-axis along the minor. If the boolean variable ThreeGlyphs is set three glyphs are produced, each of them oriented along an eigenvector and scaled according to the corresponding eigenvector. If the boolean variable Symmetric is set each glyph is mirrored (2 or 6 glyphs will be produced) The x-axis of the source glyph will correspond to the eigenvector on output. Point (0,0,0) in the source will be placed in the data point. Variable Length will normally correspond to the distance from the origin to the tip of the source glyph along the x-axis, but can be changed to produce other results when Symmetric is on, e.g. glyphs that do not touch or that overlap. Please note that when Symmetric is false it will generally be better to place the source glyph from (-0.5,0,0) to (0.5,0,0), i.e. centred at the origin. When symmetric is true the placement from (0,0,0) to (1,0,0) will generally be more convenient. A scale factor is provided to control the amount of scaling. Also, you can turn off scaling completely if desired. The boolean variable ClampScaling controls the maximum scaling (in conjunction with MaxScaleFactor.) This is useful in certain applications where singularities or large order of magnitude differences exist in the eigenvalues. If the boolean variable ColorGlyphs is set to true the glyphs are colored. The glyphs can be colored using the input scalars (SetColorModeToScalars), which is the default, or colored using the eigenvalues (SetColorModeToEigenvalues). Another instance variable, ExtractEigenvalues, has been provided to control extraction of eigenvalues/eigenvectors. If this boolean is false, then eigenvalues/eigenvectors are not extracted, and the columns of the tensor are taken as the eigenvectors (the norm of column, always positive, is the eigenvalue). This allows additional capability over the vtkGlyph3D object. That is, the glyph can be oriented in three directions instead of one. JavaBean wrapper for vtkTensorGlyph object.
vtkGlyph3D
,
vtkPointLoad
,
Serialized FormField Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkTensorGlyph()
|
protected |
vtkTensorGlyph(int dmy)
|
Method Summary | |
void |
clampScalingOff()
Turn on/off scalar clamping. |
void |
clampScalingOn()
Turn on/off scalar clamping. |
void |
colorGlyphsOff()
Turn on/off coloring of glyph with input scalar data or eigenvalues. |
void |
colorGlyphsOn()
Turn on/off coloring of glyph with input scalar data or eigenvalues. |
void |
extractEigenvaluesOff()
Turn on/off extraction of eigenvalues from tensor. |
void |
extractEigenvaluesOn()
Turn on/off extraction of eigenvalues from tensor. |
int |
getClampScaling()
Turn on/off scalar clamping. |
java.lang.String |
getClassName()
Return the class name as a string. |
int |
getColorGlyphs()
Turn on/off coloring of glyph with input scalar data or eigenvalues. |
int |
getColorMode()
Set the color mode to be used for the glyphs. |
int |
getColorModeMaxValue()
Set the color mode to be used for the glyphs. |
int |
getColorModeMinValue()
Set the color mode to be used for the glyphs. |
int |
getExtractEigenvalues()
Turn on/off extraction of eigenvalues from tensor. |
double |
getLength()
Set/Get the distance, along x, from the origin to the end of the source glyph. |
double |
getMaxScaleFactor()
Set/Get the maximum allowable scale factor. |
double |
getScaleFactor()
Specify scale factor to scale object by. |
int |
getScaling()
Turn on/off scaling of glyph with eigenvalues. |
vtkPolyData |
getSource()
Specify the geometry to copy to each point. |
int |
getSymmetric()
Turn on/off drawing a mirror of each glyph |
vtkTensorGlyph |
getThisTensorGlyph()
|
int |
getThreeGlyphs()
Turn on/off drawing three glyphs |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
scalingOff()
Turn on/off scaling of glyph with eigenvalues. |
void |
scalingOn()
Turn on/off scaling of glyph with eigenvalues. |
void |
setClampScaling(int id0)
Turn on/off scalar clamping. |
void |
setColorGlyphs(int id0)
Turn on/off coloring of glyph with input scalar data or eigenvalues. |
void |
setColorMode(int id0)
Set the color mode to be used for the glyphs. |
void |
setColorModeToEigenvalues()
Set the color mode to be used for the glyphs. |
void |
setColorModeToScalars()
Set the color mode to be used for the glyphs. |
void |
setExtractEigenvalues(int id0)
Turn on/off extraction of eigenvalues from tensor. |
void |
setLength(double id0)
Set/Get the distance, along x, from the origin to the end of the source glyph. |
void |
setMaxScaleFactor(double id0)
Set/Get the maximum allowable scale factor. |
void |
setScaleFactor(double id0)
Specify scale factor to scale object by. |
void |
setScaling(int id0)
Turn on/off scaling of glyph with eigenvalues. |
void |
setSource(vtkPolyData id0)
Specify the geometry to copy to each point. |
void |
setSymmetric(int id0)
Turn on/off drawing a mirror of each glyph |
void |
setThreeGlyphs(int id0)
Turn on/off drawing three glyphs |
void |
symmetricOff()
Turn on/off drawing a mirror of each glyph |
void |
symmetricOn()
Turn on/off drawing a mirror of each glyph |
void |
threeGlyphsOff()
Turn on/off drawing three glyphs |
void |
threeGlyphsOn()
Turn on/off drawing three glyphs |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
Methods inherited from class vtk.vtkDataSetToPolyDataFilter |
computeInputUpdateExtents, getInput, getThisDataSetToPolyDataFilter, setInput |
Methods inherited from class vtk.vtkPolyDataSource |
getOutput, getOutput, getThisPolyDataSource, setOutput |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay |
Methods inherited from class vtk.vtkObjectBase |
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkTensorGlyph()
protected vtkTensorGlyph(int dmy)
Method Detail |
public vtkTensorGlyph getThisTensorGlyph()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkDataSetToPolyDataFilter
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkDataSetToPolyDataFilter
public void setSource(vtkPolyData id0)
public vtkPolyData getSource()
public void setScaling(int id0)
public int getScaling()
public void scalingOn()
public void scalingOff()
public void setScaleFactor(double id0)
public double getScaleFactor()
public void setThreeGlyphs(int id0)
public int getThreeGlyphs()
public void threeGlyphsOn()
public void threeGlyphsOff()
public void setSymmetric(int id0)
public int getSymmetric()
public void symmetricOn()
public void symmetricOff()
public void setLength(double id0)
public double getLength()
public void setExtractEigenvalues(int id0)
public void extractEigenvaluesOn()
public void extractEigenvaluesOff()
public int getExtractEigenvalues()
public void setColorGlyphs(int id0)
public int getColorGlyphs()
public void colorGlyphsOn()
public void colorGlyphsOff()
public void setColorMode(int id0)
public int getColorModeMinValue()
public int getColorModeMaxValue()
public int getColorMode()
public void setColorModeToScalars()
public void setColorModeToEigenvalues()
public void setClampScaling(int id0)
public int getClampScaling()
public void clampScalingOn()
public void clampScalingOff()
public void setMaxScaleFactor(double id0)
public double getMaxScaleFactor()
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkDataSetToPolyDataFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |