vtk
Class vtkPoints

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

public class vtkPoints
extends vtkObject
implements java.io.Serializable

vtkPoints - represent and manipulate 3D points. vtkPoints represents 3D points. The data model for vtkPoints is an array of vx-vy-vz triplets accessible by (point or cell) id. JavaBean wrapper for vtkPoints 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
  vtkPoints()
           
protected vtkPoints(int dmy)
           
 
Method Summary
 int allocate(int id0, int id1)
          Allocate initial memory size.
 void computeBounds()
          Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.
 void deepCopy(vtkPoints id0)
          Different ways to copy data.
 int getActualMemorySize()
          Return the memory in kilobytes consumed by this attribute data.
 double[] getBounds()
          Return the bounds of the points.
 void getBounds(double[] id0)
          Return the bounds of the points.
 java.lang.String getClassName()
          Return the class name as a string.
 vtkDataArray getData()
          Set/Get the underlying data array.
 int getDataType()
          Return the underlying data type.
 int getNumberOfPoints()
          Return number of points in array.
 double[] getPoint(int id0)
          Return a pointer to a double point x[3] for a specific id.
 void getPoint(int id0, double[] id1)
          Copy point components into user provided array v[3] for specified id.
 void getPoints(vtkIdList id0, vtkPoints id1)
          Given a list of pt ids, return an array of points.
 vtkPoints getThisPoints()
           
 void initialize()
          Return object to instantiated state.
 int insertNextPoint(double[] id0)
          Insert point into next available slot.
 int insertNextPoint(double id0, double id1, double id2)
          Insert point into next available slot.
 void insertPoint(int id0, double[] id1)
          Insert point into object.
 void insertPoint(int id0, double id1, double id2, double id3)
          Insert point into object.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void reset()
          Make object look empty but do not delete memory.
 void setData(vtkDataArray id0)
          Set/Get the underlying data array.
 void setDataType(int id0)
          Specify the underlying data type of the object.
 void setDataTypeToBit()
          Specify the underlying data type of the object.
 void setDataTypeToChar()
          Specify the underlying data type of the object.
 void setDataTypeToDouble()
          Specify the underlying data type of the object.
 void setDataTypeToFloat()
          Specify the underlying data type of the object.
 void setDataTypeToInt()
          Specify the underlying data type of the object.
 void setDataTypeToLong()
          Specify the underlying data type of the object.
 void setDataTypeToShort()
          Specify the underlying data type of the object.
 void setDataTypeToUnsignedChar()
          Specify the underlying data type of the object.
 void setDataTypeToUnsignedInt()
          Specify the underlying data type of the object.
 void setDataTypeToUnsignedLong()
          Specify the underlying data type of the object.
 void setDataTypeToUnsignedShort()
          Specify the underlying data type of the object.
 void setNumberOfPoints(int id0)
          Specify the number of points for this object to hold.
 void setPoint(int id0, double[] id1)
          Insert point into object.
 void setPoint(int id0, double id1, double id2, double id3)
          Insert point into object.
 void shallowCopy(vtkPoints id0)
          Different ways to copy data.
 void squeeze()
          Reclaim any extra memory.
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

vtkPoints

public vtkPoints()

vtkPoints

protected vtkPoints(int dmy)
Method Detail

getThisPoints

public vtkPoints getThisPoints()

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

allocate

public int allocate(int id0,
                    int id1)
Allocate initial memory size.


initialize

public void initialize()
Return object to instantiated state.


setData

public void setData(vtkDataArray id0)
Set/Get the underlying data array. This function must be implemented in a concrete subclass to check for consistency. (The tuple size must match the type of data. For example, 3-tuple data array can be assigned to a vector, normal, or points object, but not a tensor object, which has a tuple dimension of 9. Scalars, on the other hand, can have tuple dimension from 1-4, depending on the type of scalar.)


getData

public vtkDataArray getData()
Set/Get the underlying data array. This function must be implemented in a concrete subclass to check for consistency. (The tuple size must match the type of data. For example, 3-tuple data array can be assigned to a vector, normal, or points object, but not a tensor object, which has a tuple dimension of 9. Scalars, on the other hand, can have tuple dimension from 1-4, depending on the type of scalar.)


getDataType

public int getDataType()
Return the underlying data type. An integer indicating data type is returned as specified in vtkSetGet.h.


setDataType

public void setDataType(int id0)
Specify the underlying data type of the object.


setDataTypeToBit

public void setDataTypeToBit()
Specify the underlying data type of the object.


setDataTypeToChar

public void setDataTypeToChar()
Specify the underlying data type of the object.


setDataTypeToUnsignedChar

public void setDataTypeToUnsignedChar()
Specify the underlying data type of the object.


setDataTypeToShort

public void setDataTypeToShort()
Specify the underlying data type of the object.


setDataTypeToUnsignedShort

public void setDataTypeToUnsignedShort()
Specify the underlying data type of the object.


setDataTypeToInt

public void setDataTypeToInt()
Specify the underlying data type of the object.


setDataTypeToUnsignedInt

public void setDataTypeToUnsignedInt()
Specify the underlying data type of the object.


setDataTypeToLong

public void setDataTypeToLong()
Specify the underlying data type of the object.


setDataTypeToUnsignedLong

public void setDataTypeToUnsignedLong()
Specify the underlying data type of the object.


setDataTypeToFloat

public void setDataTypeToFloat()
Specify the underlying data type of the object.


setDataTypeToDouble

public void setDataTypeToDouble()
Specify the underlying data type of the object.


squeeze

public void squeeze()
Reclaim any extra memory.


reset

public void reset()
Make object look empty but do not delete memory.


deepCopy

public void deepCopy(vtkPoints id0)
Different ways to copy data. Shallow copy does reference count (i.e., assigns pointers and updates reference count); deep copy runs through entire data array assigning values.


shallowCopy

public void shallowCopy(vtkPoints id0)
Different ways to copy data. Shallow copy does reference count (i.e., assigns pointers and updates reference count); deep copy runs through entire data array assigning values.


getActualMemorySize

public int getActualMemorySize()
Return the memory in kilobytes consumed by this attribute data. Used to support streaming and reading/writing data. The value returned is guaranteed to be greater than or equal to the memory required to actually represent the data represented by this object. The information returned is valid only after the pipeline has been updated.


getNumberOfPoints

public int getNumberOfPoints()
Return number of points in array.


getPoint

public double[] getPoint(int id0)
Return a pointer to a double point x[3] for a specific id.


getPoint

public void getPoint(int id0,
                     double[] id1)
Copy point components into user provided array v[3] for specified id.


setPoint

public void setPoint(int id0,
                     double[] id1)
Insert point into object. No range checking performed (fast!). Make sure you use SetNumberOfPoints() to allocate memory prior to using SetPoint().


setPoint

public void setPoint(int id0,
                     double id1,
                     double id2,
                     double id3)
Insert point into object. No range checking performed (fast!). Make sure you use SetNumberOfPoints() to allocate memory prior to using SetPoint().


insertPoint

public void insertPoint(int id0,
                        double[] id1)
Insert point into object. Range checking performed and memory allocated as necessary.


insertPoint

public void insertPoint(int id0,
                        double id1,
                        double id2,
                        double id3)
Insert point into object. Range checking performed and memory allocated as necessary.


insertNextPoint

public int insertNextPoint(double[] id0)
Insert point into next available slot. Returns id of slot.


insertNextPoint

public int insertNextPoint(double id0,
                           double id1,
                           double id2)
Insert point into next available slot. Returns id of slot.


setNumberOfPoints

public void setNumberOfPoints(int id0)
Specify the number of points for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetPoint() method for fast insertion.


getPoints

public void getPoints(vtkIdList id0,
                      vtkPoints id1)
Given a list of pt ids, return an array of points.


computeBounds

public void computeBounds()
Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.


getBounds

public double[] getBounds()
Return the bounds of the points.


getBounds

public void getBounds(double[] id0)
Return the bounds of the points.


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.