vtk
Class vtkStructuredVisibilityConstraint

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

public class vtkStructuredVisibilityConstraint
extends vtkObject
implements java.io.Serializable

vtkStructuredVisibilityConstraint - helper object to manage the. vtkStructuredVisibilityConstraint is a general class to manage a list of points/cell marked as invalid or invisible. Currently, it does this by maintaining an unsigned char array associated with points/cells. To conserve memory, this array is allocated only when it is needed (when Blank() is called the first time). Make sure to call Initialize() with the right dimensions before calling any methods that set/get visibility. JavaBean wrapper for vtkStructuredVisibilityConstraint 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
  vtkStructuredVisibilityConstraint()
           
protected vtkStructuredVisibilityConstraint(int dmy)
           
 
Method Summary
 void blank(int id0)
          Sets the visibility flag of the given point/cell off.
 void deepCopy(vtkStructuredVisibilityConstraint id0)
          Copies the dimensions, the visibility array and the initialized flag.
 java.lang.String getClassName()
          Return the class name as a string.
 int[] getDimensions()
          Get the dimensions used to initialize the object.
 vtkStructuredVisibilityConstraint getThisStructuredVisibilityConstraint()
           
 vtkUnsignedCharArray getVisibilityById()
          Set/Get the array used to store the visibility flags.
 void initialize(int[] id0)
          Set the dimensions and set the Initialized flag to 1.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 char isConstrained()
           
 char isVisible(int id0)
          Returns 1 is the point/cell is visible, 0 otherwise.
 void setVisibilityById(vtkUnsignedCharArray id0)
          Set/Get the array used to store the visibility flags.
 void shallowCopy(vtkStructuredVisibilityConstraint id0)
          Copies the dimensions, the visibility array pointer and the initialized flag.
 void unBlank(int id0)
          Sets the visibility flag of the given point/cell on.
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

vtkStructuredVisibilityConstraint

public vtkStructuredVisibilityConstraint()

vtkStructuredVisibilityConstraint

protected vtkStructuredVisibilityConstraint(int dmy)
Method Detail

getThisStructuredVisibilityConstraint

public vtkStructuredVisibilityConstraint getThisStructuredVisibilityConstraint()

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

isVisible

public char isVisible(int id0)
Returns 1 is the point/cell is visible, 0 otherwise.


blank

public void blank(int id0)
Sets the visibility flag of the given point/cell off. The first time blank is called, a new visibility array is created if it doesn't exist.


unBlank

public void unBlank(int id0)
Sets the visibility flag of the given point/cell on.


getDimensions

public int[] getDimensions()
Get the dimensions used to initialize the object.


initialize

public void initialize(int[] id0)
Set the dimensions and set the Initialized flag to 1. Once an object is initialized, it's dimensions can not be changed anymore.


setVisibilityById

public void setVisibilityById(vtkUnsignedCharArray id0)
Set/Get the array used to store the visibility flags.


getVisibilityById

public vtkUnsignedCharArray getVisibilityById()
Set/Get the array used to store the visibility flags.


shallowCopy

public void shallowCopy(vtkStructuredVisibilityConstraint id0)
Copies the dimensions, the visibility array pointer and the initialized flag.


deepCopy

public void deepCopy(vtkStructuredVisibilityConstraint id0)
Copies the dimensions, the visibility array and the initialized flag.


isConstrained

public char isConstrained()

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.