vtk
Class vtkPolygon

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkCell
              extended byvtk.vtkPolygon
All Implemented Interfaces:
java.io.Serializable

public class vtkPolygon
extends vtkCell
implements java.io.Serializable

vtkPolygon - a cell that represents an n-sided polygon. vtkPolygon is a concrete implementation of vtkCell to represent a 2D n-sided polygon. The polygons cannot have any internal holes, and cannot self-intersect. Define the polygon with n-points ordered in the clockwise direction; do not repeat the last point. JavaBean wrapper for vtkPolygon 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
  vtkPolygon()
           
protected vtkPolygon(int dmy)
           
 
Method Summary
 int cellBoundary(int id0, double[] id1, vtkIdList id2)
          See the vtkCell API for descriptions of these methods.
 void clip(double id0, vtkDataArray id1, vtkPointLocator id2, vtkCellArray id3, vtkPointData id4, vtkPointData id5, vtkCellData id6, int id7, vtkCellData id8, int id9)
          See the vtkCell API for descriptions of these methods.
 void computeNormal(vtkPoints id0, double[] id1)
          Polygon specific methods.
 void contour(double id0, vtkDataArray id1, vtkPointLocator id2, vtkCellArray id3, vtkCellArray id4, vtkCellArray id5, vtkPointData id6, vtkPointData id7, vtkCellData id8, int id9, vtkCellData id10)
          See the vtkCell API for descriptions of these methods.
 int getCellDimension()
          See the vtkCell API for descriptions of these methods.
 int getCellType()
          See the vtkCell API for descriptions of these methods.
 java.lang.String getClassName()
          Return the class name as a string.
 vtkCell getEdge(int id0)
          See the vtkCell API for descriptions of these methods.
 vtkCell getFace(int id0)
          See the vtkCell API for descriptions of these methods.
 int getNumberOfEdges()
          See the vtkCell API for descriptions of these methods.
 int getNumberOfFaces()
          See the vtkCell API for descriptions of these methods.
 vtkPolygon getThisPolygon()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 int isPrimaryCell()
          Polygon specific methods.
 int triangulate(int id0, vtkIdList id1, vtkPoints id2)
          See the vtkCell API for descriptions of these methods.
 int triangulate(vtkIdList id0)
          Triangulate this polygon.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkCell
deepCopy, getBounds, getBounds, getLength2, getNumberOfPoints, getParametricCenter, getParametricDistance, getPointId, getPointIds, getPoints, getThisCell, initialize, isExplicitCell, isLinear, requiresInitialization, shallowCopy
 
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, 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

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkPolygon

public vtkPolygon()

vtkPolygon

protected vtkPolygon(int dmy)
Method Detail

getThisPolygon

public vtkPolygon getThisPolygon()

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 vtkCell

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 vtkCell

getCellType

public int getCellType()
See the vtkCell API for descriptions of these methods.

Overrides:
getCellType in class vtkCell

getCellDimension

public int getCellDimension()
See the vtkCell API for descriptions of these methods.

Overrides:
getCellDimension in class vtkCell

getNumberOfEdges

public int getNumberOfEdges()
See the vtkCell API for descriptions of these methods.

Overrides:
getNumberOfEdges in class vtkCell

getNumberOfFaces

public int getNumberOfFaces()
See the vtkCell API for descriptions of these methods.

Overrides:
getNumberOfFaces in class vtkCell

getEdge

public vtkCell getEdge(int id0)
See the vtkCell API for descriptions of these methods.

Overrides:
getEdge in class vtkCell

getFace

public vtkCell getFace(int id0)
See the vtkCell API for descriptions of these methods.

Overrides:
getFace in class vtkCell

cellBoundary

public int cellBoundary(int id0,
                        double[] id1,
                        vtkIdList id2)
See the vtkCell API for descriptions of these methods.

Overrides:
cellBoundary in class vtkCell

contour

public void contour(double id0,
                    vtkDataArray id1,
                    vtkPointLocator id2,
                    vtkCellArray id3,
                    vtkCellArray id4,
                    vtkCellArray id5,
                    vtkPointData id6,
                    vtkPointData id7,
                    vtkCellData id8,
                    int id9,
                    vtkCellData id10)
See the vtkCell API for descriptions of these methods.

Overrides:
contour in class vtkCell

clip

public void clip(double id0,
                 vtkDataArray id1,
                 vtkPointLocator id2,
                 vtkCellArray id3,
                 vtkPointData id4,
                 vtkPointData id5,
                 vtkCellData id6,
                 int id7,
                 vtkCellData id8,
                 int id9)
See the vtkCell API for descriptions of these methods.

Overrides:
clip in class vtkCell

triangulate

public int triangulate(int id0,
                       vtkIdList id1,
                       vtkPoints id2)
See the vtkCell API for descriptions of these methods.

Overrides:
triangulate in class vtkCell

isPrimaryCell

public int isPrimaryCell()
Polygon specific methods.

Overrides:
isPrimaryCell in class vtkCell

computeNormal

public void computeNormal(vtkPoints id0,
                          double[] id1)
Polygon specific methods.


triangulate

public int triangulate(vtkIdList id0)
Triangulate this polygon. The user must provide the vtkIdList outTris. On output, the outTris list contains the ids of the points defining the triangulation. The ids are ordered into groups of three: each three-group defines one triangle.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkCell


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.