vtk
Class vtkActor

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProp
              extended byvtk.vtkProp3D
                  extended byvtk.vtkActor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkFollower, vtkLODActor, vtkOpenGLActor

public class vtkActor
extends vtkProp3D
implements java.io.Serializable

vtkActor - represents an object (geometry & properties) in a rendered scene . vtkActor is used to represent an entity in a rendering scene. It inherits functions related to the actors position, and orientation from vtkProp. The actor also has scaling and maintains a reference to the defining geometry (i.e., the mapper), rendering properties, and possibly a texture map. vtkActor combines these instance variables into one 4x4 transformation matrix as follows: [x y z 1] = [x y z 1] Translate(-origin) Scale(scale) Rot(y) Rot(x) Rot (z) Trans(origin) Trans(position) JavaBean wrapper for vtkActor object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkProperty, vtkTexture, vtkMapper, vtkAssembly, vtkFollower, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkActor()
           
protected vtkActor(int dmy)
           
 
Method Summary
 void applyProperties()
          Apply the current properties to all parts that compose this actor.
 void getActors(vtkPropCollection id0)
          For some exporters and other other operations we must be able to collect all the actors or volumes.
 vtkProperty getBackfaceProperty()
          Set/Get the property object that controls this actors backface surface properties.
 double[] getBounds()
          Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
 void getBounds(double[] id0)
          Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
 java.lang.String getClassName()
          Return the class name as a string.
 vtkMapper getMapper()
          Returns the Mapper that this actor is getting its data from.
 int getMTime()
          Get the actors mtime plus consider its properties and texture if set.
 vtkActor getNextPart()
          The following methods are for compatibility.
 int getNumberOfParts()
          The following methods are for compatibility.
 vtkProperty getProperty()
          Set/Get the property object that controls this actors surface properties.
 int getRedrawMTime()
          Return the mtime of anything that would cause the rendered image to appear differently.
 vtkTexture getTexture()
          Set/Get the texture object to control rendering texture maps.
 vtkActor getThisActor()
           
 void initPartTraversal()
          The following methods are for compatibility.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 vtkProperty makeProperty()
          Create a new property sutible for use with this type of Actor.
 void releaseGraphicsResources(vtkWindow id0)
          Release any graphics resources that are being consumed by this actor.
 void render(vtkRenderer id0, vtkMapper id1)
          This causes the actor to be rendered.
 int renderOpaqueGeometry(vtkViewport id0)
          Support the standard render methods.
 int renderTranslucentGeometry(vtkViewport id0)
          Support the standard render methods.
 void setBackfaceProperty(vtkProperty id0)
          Set/Get the property object that controls this actors backface surface properties.
 void setMapper(vtkMapper id0)
          This is the method that is used to connect an actor to the end of a visualization pipeline, i.e. the mapper.
 void setProperty(vtkProperty id0)
          Set/Get the property object that controls this actors surface properties.
 void setTexture(vtkTexture id0)
          Set/Get the texture object to control rendering texture maps.
 void shallowCopy(vtkProp id0)
          Shallow copy of an actor.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkProp3D
addOrientation, addOrientation, addPosition, addPosition, computeMatrix, getCenter, getIsIdentity, getLength, getMatrix, getMatrix, getMatrix, getOrientation, getOrientation, getOrientationWXYZ, getOrigin, getPosition, getScale, getThisProp3D, getUserMatrix, getUserTransform, getUserTransformMatrixMTime, getXRange, getYRange, getZRange, initPathTraversal, pokeMatrix, rotateWXYZ, rotateX, rotateY, rotateZ, setOrientation, setOrientation, setOrigin, setOrigin, setPosition, setPosition, setScale, setScale, setScale, setUserMatrix, setUserTransform
 
Methods inherited from class vtk.vtkProp
dragableOff, dragableOn, getActors2D, getDragable, getNextPath, getNumberOfPaths, getPickable, getThisProp, getVisibility, getVolumes, pick, pickableOff, pickableOn, 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

vtkActor

public vtkActor()

vtkActor

protected vtkActor(int dmy)
Method Detail

getThisActor

public vtkActor getThisActor()

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 vtkProp3D

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 vtkProp3D

getActors

public void getActors(vtkPropCollection id0)
For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.

Overrides:
getActors in class vtkProp

renderOpaqueGeometry

public int renderOpaqueGeometry(vtkViewport id0)
Support the standard render methods.


renderTranslucentGeometry

public int renderTranslucentGeometry(vtkViewport id0)
Support the standard render methods.


render

public void render(vtkRenderer id0,
                   vtkMapper id1)
This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically. Note that a side effect of this method is that the pipeline will be updated.


shallowCopy

public void shallowCopy(vtkProp id0)
Shallow copy of an actor. Overloads the virtual vtkProp method.

Overrides:
shallowCopy in class vtkProp3D

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.


setProperty

public void setProperty(vtkProperty id0)
Set/Get the property object that controls this actors surface properties. This should be an instance of a vtkProperty object. Every actor must have a property associated with it. If one isn't specified, then one will be generated automatically. Multiple actors can share one property object.


getProperty

public vtkProperty getProperty()
Set/Get the property object that controls this actors surface properties. This should be an instance of a vtkProperty object. Every actor must have a property associated with it. If one isn't specified, then one will be generated automatically. Multiple actors can share one property object.


makeProperty

public vtkProperty makeProperty()
Create a new property sutible for use with this type of Actor. For example, a vtkMesaActor should create a vtkMesaProperty in this function. The default is to just call vtkProperty::New.


setBackfaceProperty

public void setBackfaceProperty(vtkProperty id0)
Set/Get the property object that controls this actors backface surface properties. This should be an instance of a vtkProperty object. If one isn't specified, then the front face properties will be used. Multiple actors can share one property object.


getBackfaceProperty

public vtkProperty getBackfaceProperty()
Set/Get the property object that controls this actors backface surface properties. This should be an instance of a vtkProperty object. If one isn't specified, then the front face properties will be used. Multiple actors can share one property object.


setTexture

public void setTexture(vtkTexture id0)
Set/Get the texture object to control rendering texture maps. This will be a vtkTexture object. An actor does not need to have an associated texture map and multiple actors can share one texture.


getTexture

public vtkTexture getTexture()
Set/Get the texture object to control rendering texture maps. This will be a vtkTexture object. An actor does not need to have an associated texture map and multiple actors can share one texture.


setMapper

public void setMapper(vtkMapper id0)
This is the method that is used to connect an actor to the end of a visualization pipeline, i.e. the mapper. This should be a subclass of vtkMapper. Typically vtkPolyDataMapper and vtkDataSetMapper will be used.


getMapper

public vtkMapper getMapper()
Returns the Mapper that this actor is getting its data from.


getBounds

public void getBounds(double[] id0)
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The method GetBounds(double bounds[6]) is available from the superclass.)

Overrides:
getBounds in class vtkProp3D

getBounds

public double[] getBounds()
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The method GetBounds(double bounds[6]) is available from the superclass.)

Overrides:
getBounds in class vtkProp3D

applyProperties

public void applyProperties()
Apply the current properties to all parts that compose this actor. This method is overloaded in vtkAssembly to apply the assemblies' properties to all its parts in a recursive manner. Typically the use of this method is to set the desired properties in the assembly, and then push the properties down to the assemblies parts with ApplyProperties().


getMTime

public int getMTime()
Get the actors mtime plus consider its properties and texture if set.

Overrides:
getMTime in class vtkProp3D

getRedrawMTime

public int getRedrawMTime()
Return the mtime of anything that would cause the rendered image to appear differently. Usually this involves checking the mtime of the prop plus anything else it depends on such as properties, textures etc.

Overrides:
getRedrawMTime in class vtkProp

initPartTraversal

public void initPartTraversal()
The following methods are for compatibility. The methods will be deprecated in the near future. Use vtkProp::GetNextPath() (and related functionality) to get the parts in an assembly (or more correctly, the paths in the assembly).


getNextPart

public vtkActor getNextPart()
The following methods are for compatibility. The methods will be deprecated in the near future. Use vtkProp::GetNextPath() (and related functionality) to get the parts in an assembly (or more correctly, the paths in the assembly).


getNumberOfParts

public int getNumberOfParts()
The following methods are for compatibility. The methods will be deprecated in the near future. Use vtkProp::GetNextPath() (and related functionality) to get the parts in an assembly (or more correctly, the paths in the assembly).


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkProp3D


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.