vtk
Class vtkByteSwap

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

public class vtkByteSwap
extends vtkObject
implements java.io.Serializable

vtkByteSwap - perform machine dependent byte swapping. vtkByteSwap is used by other classes to perform machine dependent byte swapping. Byte swapping is often used when reading or writing binary files. JavaBean wrapper for vtkByteSwap 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
  vtkByteSwap()
           
protected vtkByteSwap(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkByteSwap getThisByteSwap()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void swap2BERange(java.lang.String id0, int id1)
          Swap bunch of bytes to BE.
 void swap2LERange(java.lang.String id0, int id1)
          Swap bunch of bytes to LE.
 void swap4BE(java.lang.String id0)
          For writing, swap four byte word to be BE.
 void swap4BERange(java.lang.String id0, int id1)
          Swap bunch of bytes to be BE.
 void swap4LE(java.lang.String id0)
          Swap four byte word to be LE.
 void swap4LERange(java.lang.String id0, int id1)
          Swap bunch of bytes to be LE.
 void swap8BE(java.lang.String id0)
          For writing, swap eight byte word to be BE.
 void swap8BERange(java.lang.String id0, int id1)
          Swap bunch of bytes to be BE.
 void swap8LE(java.lang.String id0)
          Swap eight byte word to be LE.
 void swap8LERange(java.lang.String id0, int id1)
          Swap bunch of bytes to be LE.
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

vtkByteSwap

public vtkByteSwap()

vtkByteSwap

protected vtkByteSwap(int dmy)
Method Detail

getThisByteSwap

public vtkByteSwap getThisByteSwap()

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

swap4LE

public void swap4LE(java.lang.String id0)
Swap four byte word to be LE.


swap8LE

public void swap8LE(java.lang.String id0)
Swap eight byte word to be LE. Currently implemented for doubles, but will be necessary for 64bit integers? 16bit chars?


swap2LERange

public void swap2LERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to LE. Num is the number of two byte words to swap.


swap4LERange

public void swap4LERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to be LE. Num is the number of four byte words to swap.


swap8LERange

public void swap8LERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to be LE. Num is the number of eight byte words to swap. Currently implemented for doubles...


swap4BE

public void swap4BE(java.lang.String id0)
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation.


swap8BE

public void swap8BE(java.lang.String id0)
For writing, swap eight byte word to be BE. For reading, swap eight byte word from BE to machine's internal representation.


swap2BERange

public void swap2BERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to BE. Num is the number of two byte words to swap.


swap4BERange

public void swap4BERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to be BE. Num is the number of four byte words to swap.


swap8BERange

public void swap8BERange(java.lang.String id0,
                         int id1)
Swap bunch of bytes to be BE. Num is the number of eight byte words to swap.


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.