vtk
Class vtkPropAssembly

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

public class vtkPropAssembly
extends vtkProp
implements java.io.Serializable

vtkPropAssembly - create hierarchies of props. vtkPropAssembly is an object that groups props and other prop assemblies into a tree-like hierarchy. The props can then be treated as a group (e.g., turning visibility on and off). A vtkPropAssembly object can be used in place of an vtkProp since it is a subclass of vtkProp. The difference is that vtkPropAssembly maintains a list of other prop and prop assembly instances (its "parts") that form the assembly. Note that this process is recursive: you can create groups consisting of prop assemblies to arbitrary depth. vtkPropAssembly's and vtkProp's that compose a prop assembly need not be added to a renderer's list of props, as long as the parent assembly is in the prop list. This is because they are automatically renderered during the hierarchical traversal process. JavaBean wrapper for vtkPropAssembly object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkProp3D, vtkActor, vtkAssembly, vtkActor2D, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkPropAssembly()
           
protected vtkPropAssembly(int dmy)
           
 
Method Summary
 void addPart(vtkProp id0)
          Add a part to the list of parts.
 double[] getBounds()
          Get the bounds for this prop assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
 java.lang.String getClassName()
          Return the class name as a string.
 int getMTime()
          Override default GetMTime method to also consider all of the prop assembly's parts.
 vtkAssemblyPath getNextPath()
          Methods to traverse the paths (i.e., leaf nodes) of a prop assembly.
 int getNumberOfPaths()
          Methods to traverse the paths (i.e., leaf nodes) of a prop assembly.
 vtkPropCollection getParts()
          Return the list of parts.
 vtkPropAssembly getThisPropAssembly()
           
 void initPathTraversal()
          Methods to traverse the paths (i.e., leaf nodes) of a prop assembly.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void releaseGraphicsResources(vtkWindow id0)
          Release any graphics resources that are being consumed by this actor.
 void removePart(vtkProp id0)
          Remove a part from the list of parts,
 int renderOpaqueGeometry(vtkViewport id0)
          Render this assembly and all its parts.
 int renderOverlay(vtkViewport id0)
          Render this assembly and all its parts.
 int renderTranslucentGeometry(vtkViewport id0)
          Render this assembly and all its parts.
 void shallowCopy(vtkProp id0)
          Shallow copy of this vtkPropAssembly.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkProp
dragableOff, dragableOn, getActors, getActors2D, getDragable, getMatrix, getPickable, getRedrawMTime, getThisProp, getVisibility, getVolumes, pick, pickableOff, pickableOn, pokeMatrix, setDragable, setPickable, setVisibility, visibilityOff, visibilityOn
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, 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

vtkPropAssembly

public vtkPropAssembly()

vtkPropAssembly

protected vtkPropAssembly(int dmy)
Method Detail

getThisPropAssembly

public vtkPropAssembly getThisPropAssembly()

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 vtkProp

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 vtkProp

addPart

public void addPart(vtkProp id0)
Add a part to the list of parts.


removePart

public void removePart(vtkProp id0)
Remove a part from the list of parts,


getParts

public vtkPropCollection getParts()
Return the list of parts.


renderOpaqueGeometry

public int renderOpaqueGeometry(vtkViewport id0)
Render this assembly and all its parts. The rendering process is recursive. The parts of each assembly are rendered only if the visibility for the prop is turned on.


renderTranslucentGeometry

public int renderTranslucentGeometry(vtkViewport id0)
Render this assembly and all its parts. The rendering process is recursive. The parts of each assembly are rendered only if the visibility for the prop is turned on.


renderOverlay

public int renderOverlay(vtkViewport id0)
Render this assembly and all its parts. The rendering process is recursive. The parts of each assembly are rendered only if the visibility for the prop is turned on.


releaseGraphicsResources

public void releaseGraphicsResources(vtkWindow id0)
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.


getBounds

public double[] getBounds()
Get the bounds for this prop assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). May return NULL in some cases (meaning the bounds is undefined).


shallowCopy

public void shallowCopy(vtkProp id0)
Shallow copy of this vtkPropAssembly.

Overrides:
shallowCopy in class vtkProp

getMTime

public int getMTime()
Override default GetMTime method to also consider all of the prop assembly's parts.

Overrides:
getMTime in class vtkObject

initPathTraversal

public void initPathTraversal()
Methods to traverse the paths (i.e., leaf nodes) of a prop assembly. These methods should be contrasted to those that traverse the list of parts using GetParts(). GetParts() returns a list of children of this assembly, not necessarily the leaf nodes of the assembly. To use the methods below - first invoke InitPathTraversal() followed by repeated calls to GetNextPath(). GetNextPath() returns a NULL pointer when the list is exhausted. (See the superclass vtkProp for more information about paths.)

Overrides:
initPathTraversal in class vtkProp

getNextPath

public vtkAssemblyPath getNextPath()
Methods to traverse the paths (i.e., leaf nodes) of a prop assembly. These methods should be contrasted to those that traverse the list of parts using GetParts(). GetParts() returns a list of children of this assembly, not necessarily the leaf nodes of the assembly. To use the methods below - first invoke InitPathTraversal() followed by repeated calls to GetNextPath(). GetNextPath() returns a NULL pointer when the list is exhausted. (See the superclass vtkProp for more information about paths.)

Overrides:
getNextPath in class vtkProp

getNumberOfPaths

public int getNumberOfPaths()
Methods to traverse the paths (i.e., leaf nodes) of a prop assembly. These methods should be contrasted to those that traverse the list of parts using GetParts(). GetParts() returns a list of children of this assembly, not necessarily the leaf nodes of the assembly. To use the methods below - first invoke InitPathTraversal() followed by repeated calls to GetNextPath(). GetNextPath() returns a NULL pointer when the list is exhausted. (See the superclass vtkProp for more information about paths.)

Overrides:
getNumberOfPaths in class vtkProp

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkProp


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.