vtk
Class vtkDepthSortPolyData

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

public class vtkDepthSortPolyData
extends vtkPolyDataToPolyDataFilter
implements java.io.Serializable

vtkDepthSortPolyData - sort poly data along camera view direction. vtkDepthSortPolyData rearranges the order of cells so that certain rendering operations (e.g., transparency or Painter's algorithms) generate correct results. To use this filter you must specify the direction vector along which to sort the cells. You can do this by specifying a camera and/or prop to define a view direction; or explicitly set a view direction. JavaBean wrapper for vtkDepthSortPolyData 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
  vtkDepthSortPolyData()
           
protected vtkDepthSortPolyData(int dmy)
           
 
Method Summary
 vtkCamera getCamera()
          Specify a camera that is used to define a view direction along which the cells are sorted.
 java.lang.String getClassName()
          Return the class name as a string.
 int getDepthSortMode()
          Specify the point to use when sorting.
 int getDirection()
          Specify the sort method for the polygonal primitives.
 int getMTime()
          Return MTime also considering the dependent objects: the camera and/or the prop3D.
 double[] getOrigin()
          Set/Get the sort origin.
 vtkProp3D getProp3D()
          Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation.
 int getSortScalars()
          Set/Get a flag that controls the generation of scalar values corresponding to the sort order.
 vtkDepthSortPolyData getThisDepthSortPolyData()
           
 double[] getVector()
          Set/Get the sort direction.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setCamera(vtkCamera id0)
          Specify a camera that is used to define a view direction along which the cells are sorted.
 void setDepthSortMode(int id0)
          Specify the point to use when sorting.
 void setDepthSortModeToBoundsCenter()
          Specify the point to use when sorting.
 void setDepthSortModeToFirstPoint()
          Specify the point to use when sorting.
 void setDepthSortModeToParametricCenter()
          Specify a camera that is used to define a view direction along which the cells are sorted.
 void setDirection(int id0)
          Specify the sort method for the polygonal primitives.
 void setDirectionToBackToFront()
          Specify the sort method for the polygonal primitives.
 void setDirectionToFrontToBack()
          Specify the sort method for the polygonal primitives.
 void setDirectionToSpecifiedVector()
          Specify the point to use when sorting.
 void setOrigin(double[] id0)
          Set/Get the sort origin.
 void setOrigin(double id0, double id1, double id2)
          Set/Get the sort origin.
 void setProp3D(vtkProp3D id0)
          Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation.
 void setSortScalars(int id0)
          Set/Get a flag that controls the generation of scalar values corresponding to the sort order.
 void setVector(double[] id0)
          Set/Get the sort direction.
 void setVector(double id0, double id1, double id2)
          Set/Get the sort direction.
 void sortScalarsOff()
          Set/Get a flag that controls the generation of scalar values corresponding to the sort order.
 void sortScalarsOn()
          Set/Get a flag that controls the generation of scalar values corresponding to the sort order.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkPolyDataToPolyDataFilter
getInput, getThisPolyDataToPolyDataFilter, setInput
 
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, 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

vtkDepthSortPolyData

public vtkDepthSortPolyData()

vtkDepthSortPolyData

protected vtkDepthSortPolyData(int dmy)
Method Detail

getThisDepthSortPolyData

public vtkDepthSortPolyData getThisDepthSortPolyData()

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 vtkPolyDataToPolyDataFilter

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 vtkPolyDataToPolyDataFilter

setDirection

public void setDirection(int id0)
Specify the sort method for the polygonal primitives. By default, the poly data is sorted from back to front.


getDirection

public int getDirection()
Specify the sort method for the polygonal primitives. By default, the poly data is sorted from back to front.


setDirectionToFrontToBack

public void setDirectionToFrontToBack()
Specify the sort method for the polygonal primitives. By default, the poly data is sorted from back to front.


setDirectionToBackToFront

public void setDirectionToBackToFront()
Specify the sort method for the polygonal primitives. By default, the poly data is sorted from back to front.


setDirectionToSpecifiedVector

public void setDirectionToSpecifiedVector()
Specify the point to use when sorting. The fastest is to just take the first cell point. Other options are to take the bounding box center or the parametric center of the cell. By default, the first cell point is used.


setDepthSortMode

public void setDepthSortMode(int id0)
Specify the point to use when sorting. The fastest is to just take the first cell point. Other options are to take the bounding box center or the parametric center of the cell. By default, the first cell point is used.


getDepthSortMode

public int getDepthSortMode()
Specify the point to use when sorting. The fastest is to just take the first cell point. Other options are to take the bounding box center or the parametric center of the cell. By default, the first cell point is used.


setDepthSortModeToFirstPoint

public void setDepthSortModeToFirstPoint()
Specify the point to use when sorting. The fastest is to just take the first cell point. Other options are to take the bounding box center or the parametric center of the cell. By default, the first cell point is used.


setDepthSortModeToBoundsCenter

public void setDepthSortModeToBoundsCenter()
Specify the point to use when sorting. The fastest is to just take the first cell point. Other options are to take the bounding box center or the parametric center of the cell. By default, the first cell point is used.


setDepthSortModeToParametricCenter

public void setDepthSortModeToParametricCenter()
Specify a camera that is used to define a view direction along which the cells are sorted. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified.


setCamera

public void setCamera(vtkCamera id0)
Specify a camera that is used to define a view direction along which the cells are sorted. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified.


getCamera

public vtkCamera getCamera()
Specify a camera that is used to define a view direction along which the cells are sorted. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified.


setProp3D

public void setProp3D(vtkProp3D id0)
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified. Specifying the vtkProp3D is optional.


getProp3D

public vtkProp3D getProp3D()
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation. This ivar only has effect if the direction is set to front-to-back or back-to-front, and a camera is specified. Specifying the vtkProp3D is optional.


setVector

public void setVector(double id0,
                      double id1,
                      double id2)
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector.


setVector

public void setVector(double[] id0)
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector.


getVector

public double[] getVector()
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector.


setOrigin

public void setOrigin(double id0,
                      double id1,
                      double id2)
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector, with this point specifying the origin.


setOrigin

public void setOrigin(double[] id0)
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector, with this point specifying the origin.


getOrigin

public double[] getOrigin()
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The sort occurs in the direction of the vector, with this point specifying the origin.


setSortScalars

public void setSortScalars(int id0)
Set/Get a flag that controls the generation of scalar values corresponding to the sort order. If enabled, the output of this filter will include scalar values that range from 0 to (ncells-1), where 0 is closest to the sort direction.


getSortScalars

public int getSortScalars()
Set/Get a flag that controls the generation of scalar values corresponding to the sort order. If enabled, the output of this filter will include scalar values that range from 0 to (ncells-1), where 0 is closest to the sort direction.


sortScalarsOn

public void sortScalarsOn()
Set/Get a flag that controls the generation of scalar values corresponding to the sort order. If enabled, the output of this filter will include scalar values that range from 0 to (ncells-1), where 0 is closest to the sort direction.


sortScalarsOff

public void sortScalarsOff()
Set/Get a flag that controls the generation of scalar values corresponding to the sort order. If enabled, the output of this filter will include scalar values that range from 0 to (ncells-1), where 0 is closest to the sort direction.


getMTime

public int getMTime()
Return MTime also considering the dependent objects: the camera and/or the prop3D.

Overrides:
getMTime in class vtkObject

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataToPolyDataFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.