|
||||||||||
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.vtkSuperquadricSource
vtkSuperquadricSource - create a polygonal superquadric centered . vtkSuperquadricSource creates a superquadric (represented by polygons) of specified size centered at the origin. The resolution (polygonal discretization) in both the latitude (phi) and longitude (theta) directions can be specified. 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 vtkSuperquadricSource object.
Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkSuperquadricSource()
|
protected |
vtkSuperquadricSource(int dmy)
|
Method Summary | |
double[] |
getCenter()
Set the center of the superquadric. |
java.lang.String |
getClassName()
Return the class name as a string. |
int |
getPhiResolution()
Set the number of points in the latitude direction. |
double |
getPhiRoundness()
Set/Get Superquadric north/south roundness. |
double[] |
getScale()
Set the scale factors of the superquadric. |
double |
getSize()
Set/Get Superquadric isotropic size. |
int |
getThetaResolution()
Set the number of points in the longitude direction. |
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). |
vtkSuperquadricSource |
getThisSuperquadricSource()
|
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 |
setPhiResolution(int id0)
Set the number of points in the latitude direction. |
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 |
setThetaResolution(int id0)
Set the number of points in the longitude direction. |
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.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 vtkSuperquadricSource()
protected vtkSuperquadricSource(int dmy)
Method Detail |
public vtkSuperquadricSource getThisSuperquadricSource()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkPolyDataSource
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkPolyDataSource
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 int getThetaResolution()
public void setThetaResolution(int id0)
public int getPhiResolution()
public void setPhiResolution(int id0)
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 vtkPolyDataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |