vtk
Class vtkEdgeTable

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

public class vtkEdgeTable
extends vtkObject
implements java.io.Serializable

vtkEdgeTable - keep track of edges (edge is pair of integer id's). vtkEdgeTable is a general object for keeping track of lists of edges. An edge is defined by the pair of point id's (p1,p2). Methods are available to insert edges, check if edges exist, and traverse the list of edges. Also, it's possible to associate attribute information with each edge. The attribute information may take the form of vtkIdType id's, void* pointers, or points. To store attributes, make sure that InitEdgeInsertion() is invoked with the storeAttributes flag set properly. If points are inserted, use the methods InitPointInsertion() and InsertUniquePoint(). JavaBean wrapper for vtkEdgeTable 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
  vtkEdgeTable()
           
protected vtkEdgeTable(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getNumberOfEdges()
          Return the number of edges that have been inserted thus far.
 vtkEdgeTable getThisEdgeTable()
           
 int initEdgeInsertion(int id0, int id1)
          Initialize the edge insertion process.
 void initialize()
          Free memory and return to the initially instantiated state.
 int initPointInsertion(vtkPoints id0, int id1)
          Initialize the point insertion process.
 void initTraversal()
          Intialize traversal of edges in table.
 int insertEdge(int id0, int id1)
          Insert the edge (p1,p2) into the table.
 void insertEdge(int id0, int id1, int id2)
          Insert the edge (p1,p2) into the table with the attribute id specified (make sure the attributeId >= 0).
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 int isEdge(int id0, int id1)
          Return an integer id for the edge, or an attribute id of the edge (p1,p2) if the edge has been previously defined (it depends upon which version of InsertEdge() is being used); otherwise -1.
 void reset()
          Reset the object and prepare for reinsertion of edges.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
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

vtkEdgeTable

public vtkEdgeTable()

vtkEdgeTable

protected vtkEdgeTable(int dmy)
Method Detail

getThisEdgeTable

public vtkEdgeTable getThisEdgeTable()

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 vtkObject

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 vtkObject

initialize

public void initialize()
Free memory and return to the initially instantiated state.


initEdgeInsertion

public int initEdgeInsertion(int id0,
                             int id1)
Initialize the edge insertion process. Provide an estimate of the number of points in a dataset (the maximum range value of p1 or p2). The storeAttributes variable controls whether attributes are to be stored with the edge, and what type of attributes. If storeAttributes==1, then attributes of vtkIdType can be stored. If storeAttributes==2, then attributes of type void* can be stored. In either case, additional memory will be required by the data structure to store attribute data per each edge. This method is used in conjunction with one of the three InsertEdge() methods described below (don't mix the InsertEdge() methods---make sure that the one used is consistent with the storeAttributes flag set in InitEdgeInsertion()).


insertEdge

public int insertEdge(int id0,
                      int id1)
Insert the edge (p1,p2) into the table. It is the user's responsibility to check if the edge has already been inserted (use IsEdge()). If the storeAttributes flag in InitEdgeInsertion() has been set, then the method returns a unique integer id (i.e., the edge id) that can be used to set and get edge attributes. Otherwise, the method will return 1. Do not mix this method with the InsertEdge() method that follows.


insertEdge

public void insertEdge(int id0,
                       int id1,
                       int id2)
Insert the edge (p1,p2) into the table with the attribute id specified (make sure the attributeId >= 0). Note that the attributeId is ignored if the storeAttributes variable was set to 0 in the InitEdgeInsertion() method. It is the user's responsibility to check if the edge has already been inserted (use IsEdge()). Do not mix this method with the other two InsertEdge() methods.


isEdge

public int isEdge(int id0,
                  int id1)
Return an integer id for the edge, or an attribute id of the edge (p1,p2) if the edge has been previously defined (it depends upon which version of InsertEdge() is being used); otherwise -1. The unique integer id can be used to set and retrieve attributes to the edge.


initPointInsertion

public int initPointInsertion(vtkPoints id0,
                              int id1)
Initialize the point insertion process. The newPts is an object representing point coordinates into which incremental insertion methods place their data. The points are associated with the edge.


getNumberOfEdges

public int getNumberOfEdges()
Return the number of edges that have been inserted thus far.


initTraversal

public void initTraversal()
Intialize traversal of edges in table.


reset

public void reset()
Reset the object and prepare for reinsertion of edges. Does not delete memory like the Initialize() method.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkObject


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.