vtk
Class vtkSuperquadricSource

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkSuperquadricSource
All Implemented Interfaces:
java.io.Serializable

public class vtkSuperquadricSource
extends vtkPolyDataSource
implements java.io.Serializable

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.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

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.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
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

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkSuperquadricSource

public vtkSuperquadricSource()

vtkSuperquadricSource

protected vtkSuperquadricSource(int dmy)
Method Detail

getThisSuperquadricSource

public vtkSuperquadricSource getThisSuperquadricSource()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkPolyDataSource

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkPolyDataSource

setCenter

public void setCenter(double id0,
                      double id1,
                      double id2)
Set the center of the superquadric. Default is 0,0,0.


setCenter

public void setCenter(double[] id0)
Set the center of the superquadric. Default is 0,0,0.


getCenter

public double[] getCenter()
Set the center of the superquadric. Default is 0,0,0.


setScale

public void setScale(double id0,
                     double id1,
                     double id2)
Set the scale factors of the superquadric. Default is 1,1,1.


setScale

public void setScale(double[] id0)
Set the scale factors of the superquadric. Default is 1,1,1.


getScale

public double[] getScale()
Set the scale factors of the superquadric. Default is 1,1,1.


getThetaResolution

public int getThetaResolution()
Set the number of points in the longitude direction.


setThetaResolution

public void setThetaResolution(int id0)
Set the number of points in the longitude direction.


getPhiResolution

public int getPhiResolution()
Set the number of points in the latitude direction.


setPhiResolution

public void setPhiResolution(int id0)
Set the number of points in the latitude direction.


getThickness

public double getThickness()
Set/Get Superquadric ring thickness (toroids only). Changing thickness maintains the outside diameter of the toroid.


setThickness

public void setThickness(double id0)
Set/Get Superquadric ring thickness (toroids only). Changing thickness maintains the outside diameter of the toroid.


getThicknessMinValue

public double getThicknessMinValue()
Set/Get Superquadric ring thickness (toroids only). Changing thickness maintains the outside diameter of the toroid.


getThicknessMaxValue

public double getThicknessMaxValue()
Set/Get Superquadric ring thickness (toroids only). Changing thickness maintains the outside diameter of the toroid.


getPhiRoundness

public double getPhiRoundness()
Set/Get Superquadric north/south roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.


setPhiRoundness

public void setPhiRoundness(double id0)
Set/Get Superquadric north/south roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.


getThetaRoundness

public double getThetaRoundness()
Set/Get Superquadric east/west roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.


setThetaRoundness

public void setThetaRoundness(double id0)
Set/Get Superquadric east/west roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.


setSize

public void setSize(double id0)
Set/Get Superquadric isotropic size.


getSize

public double getSize()
Set/Get Superquadric isotropic size.


toroidalOn

public void toroidalOn()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).


toroidalOff

public void toroidalOff()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).


getToroidal

public int getToroidal()
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).


setToroidal

public void setToroidal(int id0)
Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataSource


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.