|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkImplicitFunction vtk.vtkSuperquadric
vtkSuperquadric - implicit function for a Superquadric. vtkSuperquadric computes the implicit function and function gradient for a superquadric. vtkSuperquadric is a concrete implementation of vtkImplicitFunction. The superquadric is centered at Center and axes of rotation is along the y-axis. (Use the superclass' vtkImplicitFunction transformation matrix if necessary to reposition.) Roundness parameters (PhiRoundness and ThetaRoundness) control the shape of the superquadric. The Toroidal boolean controls whether a toroidal superquadric is produced. If so, the Thickness parameter controls the thickness of the toroid: 0 is the thinnest allowable toroid, and 1 has a minimum sized hole. The Scale parameters allow the superquadric to be scaled in x, y, and z (normal vectors are correctly generated in any case). The Size parameter controls size of the superquadric. This code is based on "Rigid physically based superquadrics", A. H. Barr, in "Graphics Gems III", David Kirk, ed., Academic Press, 1992. JavaBean wrapper for vtkSuperquadric object.
Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkSuperquadric()
|
protected |
vtkSuperquadric(int dmy)
|
Method Summary | |
double |
evaluateFunction(double[] id0)
Evaluate function at position x-y-z and return value. |
double |
evaluateFunction(double id0,
double id1,
double id2)
Evaluate function at position x-y-z and return value. |
void |
evaluateGradient(double[] id0,
double[] id1)
Evaluate function gradient at position x-y-z and pass back vector. |
double[] |
getCenter()
Set the center of the superquadric. |
java.lang.String |
getClassName()
Return the class name as a string. |
double |
getPhiRoundness()
Set/Get Superquadric north/south roundness. |
double[] |
getScale()
Set the scale factors of the superquadric. |
double |
getSize()
Set/Get Superquadric isotropic size. |
double |
getThetaRoundness()
Set/Get Superquadric east/west roundness. |
double |
getThickness()
Set/Get Superquadric ring thickness (toroids only). |
double |
getThicknessMaxValue()
Set/Get Superquadric ring thickness (toroids only). |
double |
getThicknessMinValue()
Set/Get Superquadric ring thickness (toroids only). |
vtkSuperquadric |
getThisSuperquadric()
|
int |
getToroidal()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0). |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
setCenter(double[] id0)
Set the center of the superquadric. |
void |
setCenter(double id0,
double id1,
double id2)
Set the center of the superquadric. |
void |
setPhiRoundness(double id0)
Set/Get Superquadric north/south roundness. |
void |
setScale(double[] id0)
Set the scale factors of the superquadric. |
void |
setScale(double id0,
double id1,
double id2)
Set the scale factors of the superquadric. |
void |
setSize(double id0)
Set/Get Superquadric isotropic size. |
void |
setThetaRoundness(double id0)
Set/Get Superquadric east/west roundness. |
void |
setThickness(double id0)
Set/Get Superquadric ring thickness (toroids only). |
void |
setToroidal(int id0)
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0). |
void |
toroidalOff()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0). |
void |
toroidalOn()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0). |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
Methods inherited from class vtk.vtkImplicitFunction |
functionGradient, functionGradient, functionGradient, functionValue, functionValue, getMTime, getThisImplicitFunction, getTransform, setTransform |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister |
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 vtkSuperquadric()
protected vtkSuperquadric(int dmy)
Method Detail |
public vtkSuperquadric getThisSuperquadric()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkImplicitFunction
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkImplicitFunction
public double evaluateFunction(double[] id0)
vtkImplicitFunction
evaluateFunction
in class vtkImplicitFunction
public double evaluateFunction(double id0, double id1, double id2)
vtkImplicitFunction
evaluateFunction
in class vtkImplicitFunction
public void evaluateGradient(double[] id0, double[] id1)
vtkImplicitFunction
evaluateGradient
in class vtkImplicitFunction
public void setCenter(double id0, double id1, double id2)
public void setCenter(double[] id0)
public double[] getCenter()
public void setScale(double id0, double id1, double id2)
public void setScale(double[] id0)
public double[] getScale()
public double getThickness()
public void setThickness(double id0)
public double getThicknessMinValue()
public double getThicknessMaxValue()
public double getPhiRoundness()
public void setPhiRoundness(double id0)
public double getThetaRoundness()
public void setThetaRoundness(double id0)
public void setSize(double id0)
public double getSize()
public void toroidalOn()
public void toroidalOff()
public int getToroidal()
public void setToroidal(int id0)
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkImplicitFunction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |