vtk
Class vtkProperty

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProperty
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkOpenGLProperty, vtkRIBProperty

public class vtkProperty
extends vtkObject
implements java.io.Serializable

vtkProperty - represent surface properties of a geometric object. vtkProperty is an object that represents lighting and other surface properties of a geometric object. The primary properties that can be set are colors (overall, ambient, diffuse, specular, and edge color); specular power; opacity of the object; the representation of the object (points, wireframe, or surface); and the shading method to be used (flat, Gouraud, and Phong). Also, some special graphics features like backface properties can be set and manipulated with this object. JavaBean wrapper for vtkProperty object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkProperty()
           
protected vtkProperty(int dmy)
           
 
Method Summary
 void backfaceCullingOff()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 void backfaceCullingOn()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 void backfaceRender(vtkActor id0, vtkRenderer id1)
          This method renders the property as a backface property.
 void deepCopy(vtkProperty id0)
          Assign one property to another.
 void edgeVisibilityOff()
          Turn on/off the visibility of edges.
 void edgeVisibilityOn()
          Turn on/off the visibility of edges.
 void frontfaceCullingOff()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 void frontfaceCullingOn()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 double getAmbient()
          Set/Get the ambient lighting coefficient.
 double[] getAmbientColor()
          Set/Get the ambient surface color.
 double getAmbientMaxValue()
          Set/Get the ambient lighting coefficient.
 double getAmbientMinValue()
          Set/Get the ambient lighting coefficient.
 int getBackfaceCulling()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 java.lang.String getClassName()
          Return the class name as a string.
 double[] getColor()
          Set the color of the object.
 void getColor(double[] id0)
          Set the color of the object.
 double getDiffuse()
          Set/Get the diffuse lighting coefficient.
 double[] getDiffuseColor()
          Set/Get the diffuse surface color.
 double getDiffuseMaxValue()
          Set/Get the diffuse lighting coefficient.
 double getDiffuseMinValue()
          Set/Get the diffuse lighting coefficient.
 double[] getEdgeColor()
          Set/Get the color of primitive edges (if edge visibility is enabled).
 int getEdgeVisibility()
          Turn on/off the visibility of edges.
 int getFrontfaceCulling()
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 int getInterpolation()
          Set the shading interpolation method for an object.
 java.lang.String getInterpolationAsString()
          Set the shading interpolation method for an object.
 int getInterpolationMaxValue()
          Set the shading interpolation method for an object.
 int getInterpolationMinValue()
          Set the shading interpolation method for an object.
 int getLineStipplePattern()
          Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off).
 int getLineStippleRepeatFactor()
          Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
 int getLineStippleRepeatFactorMaxValue()
          Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
 int getLineStippleRepeatFactorMinValue()
          Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
 double getLineWidth()
          Set/Get the width of a Line.
 double getLineWidthMaxValue()
          Set/Get the width of a Line.
 double getLineWidthMinValue()
          Set/Get the width of a Line.
 double getOpacity()
          Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
 double getOpacityMaxValue()
          Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
 double getOpacityMinValue()
          Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
 double getPointSize()
          Set/Get the diameter of a point.
 double getPointSizeMaxValue()
          Set/Get the diameter of a point.
 double getPointSizeMinValue()
          Set/Get the diameter of a point.
 int getRepresentation()
          Control the surface geometry representation for the object.
 java.lang.String getRepresentationAsString()
          Control the surface geometry representation for the object.
 int getRepresentationMaxValue()
          Control the surface geometry representation for the object.
 int getRepresentationMinValue()
          Control the surface geometry representation for the object.
 double getSpecular()
          Set/Get the specular lighting coefficient.
 double[] getSpecularColor()
          Set/Get the specular surface color.
 double getSpecularMaxValue()
          Set/Get the specular lighting coefficient.
 double getSpecularMinValue()
          Set/Get the specular lighting coefficient.
 double getSpecularPower()
          Set/Get the specular power.
 double getSpecularPowerMaxValue()
          Set/Get the specular power.
 double getSpecularPowerMinValue()
          Set/Get the specular power.
 vtkProperty getThisProperty()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void render(vtkActor id0, vtkRenderer id1)
          This method causes the property to set up whatever is required for its instance variables.
 void setAmbient(double id0)
          Set/Get the ambient lighting coefficient.
 void setAmbientColor(double[] id0)
          Set/Get the ambient surface color.
 void setAmbientColor(double id0, double id1, double id2)
          Set/Get the ambient surface color.
 void setBackfaceCulling(int id0)
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 void setColor(double[] id0)
          Set the color of the object.
 void setColor(double id0, double id1, double id2)
          Set the color of the object.
 void setDiffuse(double id0)
          Set/Get the diffuse lighting coefficient.
 void setDiffuseColor(double[] id0)
          Set/Get the diffuse surface color.
 void setDiffuseColor(double id0, double id1, double id2)
          Set/Get the diffuse surface color.
 void setEdgeColor(double[] id0)
          Set/Get the color of primitive edges (if edge visibility is enabled).
 void setEdgeColor(double id0, double id1, double id2)
          Set/Get the color of primitive edges (if edge visibility is enabled).
 void setEdgeVisibility(int id0)
          Turn on/off the visibility of edges.
 void setFrontfaceCulling(int id0)
          Turn on/off fast culling of polygons based on orientation of normal with respect to camera.
 void setInterpolation(int id0)
          Set the shading interpolation method for an object.
 void setInterpolationToFlat()
          Set the shading interpolation method for an object.
 void setInterpolationToGouraud()
          Set the shading interpolation method for an object.
 void setInterpolationToPhong()
          Set the shading interpolation method for an object.
 void setLineStipplePattern(int id0)
          Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off).
 void setLineStippleRepeatFactor(int id0)
          Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
 void setLineWidth(double id0)
          Set/Get the width of a Line.
 void setOpacity(double id0)
          Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
 void setPointSize(double id0)
          Set/Get the diameter of a point.
 void setRepresentation(int id0)
          Control the surface geometry representation for the object.
 void setRepresentationToPoints()
          Control the surface geometry representation for the object.
 void setRepresentationToSurface()
          Control the surface geometry representation for the object.
 void setRepresentationToWireframe()
          Control the surface geometry representation for the object.
 void setSpecular(double id0)
          Set/Get the specular lighting coefficient.
 void setSpecularColor(double[] id0)
          Set/Get the specular surface color.
 void setSpecularColor(double id0, double id1, double id2)
          Set/Get the specular surface color.
 void setSpecularPower(double id0)
          Set/Get the specular power.
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

vtkProperty

public vtkProperty()

vtkProperty

protected vtkProperty(int dmy)
Method Detail

getThisProperty

public vtkProperty getThisProperty()

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

deepCopy

public void deepCopy(vtkProperty id0)
Assign one property to another.


render

public void render(vtkActor id0,
                   vtkRenderer id1)
This method causes the property to set up whatever is required for its instance variables. This is actually handled by a subclass of vtkProperty, which is created automatically. This method includes the invoking actor as an argument which can be used by property devices that require the actor.


backfaceRender

public void backfaceRender(vtkActor id0,
                           vtkRenderer id1)
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property.


setInterpolation

public void setInterpolation(int id0)
Set the shading interpolation method for an object.


getInterpolationMinValue

public int getInterpolationMinValue()
Set the shading interpolation method for an object.


getInterpolationMaxValue

public int getInterpolationMaxValue()
Set the shading interpolation method for an object.


getInterpolation

public int getInterpolation()
Set the shading interpolation method for an object.


setInterpolationToFlat

public void setInterpolationToFlat()
Set the shading interpolation method for an object.


setInterpolationToGouraud

public void setInterpolationToGouraud()
Set the shading interpolation method for an object.


setInterpolationToPhong

public void setInterpolationToPhong()
Set the shading interpolation method for an object.


getInterpolationAsString

public java.lang.String getInterpolationAsString()
Set the shading interpolation method for an object.


setRepresentation

public void setRepresentation(int id0)
Control the surface geometry representation for the object.


getRepresentationMinValue

public int getRepresentationMinValue()
Control the surface geometry representation for the object.


getRepresentationMaxValue

public int getRepresentationMaxValue()
Control the surface geometry representation for the object.


getRepresentation

public int getRepresentation()
Control the surface geometry representation for the object.


setRepresentationToPoints

public void setRepresentationToPoints()
Control the surface geometry representation for the object.


setRepresentationToWireframe

public void setRepresentationToWireframe()
Control the surface geometry representation for the object.


setRepresentationToSurface

public void setRepresentationToSurface()
Control the surface geometry representation for the object.


getRepresentationAsString

public java.lang.String getRepresentationAsString()
Control the surface geometry representation for the object.


setColor

public void setColor(double id0,
                     double id1,
                     double id2)
Set the color of the object. Has the side effect of setting the ambient diffuse and specular colors as well. This is basically a quick overall color setting method.


setColor

public void setColor(double[] id0)
Set the color of the object. Has the side effect of setting the ambient diffuse and specular colors as well. This is basically a quick overall color setting method.


getColor

public double[] getColor()
Set the color of the object. Has the side effect of setting the ambient diffuse and specular colors as well. This is basically a quick overall color setting method.


getColor

public void getColor(double[] id0)
Set the color of the object. Has the side effect of setting the ambient diffuse and specular colors as well. This is basically a quick overall color setting method.


setAmbient

public void setAmbient(double id0)
Set/Get the ambient lighting coefficient.


getAmbientMinValue

public double getAmbientMinValue()
Set/Get the ambient lighting coefficient.


getAmbientMaxValue

public double getAmbientMaxValue()
Set/Get the ambient lighting coefficient.


getAmbient

public double getAmbient()
Set/Get the ambient lighting coefficient.


setDiffuse

public void setDiffuse(double id0)
Set/Get the diffuse lighting coefficient.


getDiffuseMinValue

public double getDiffuseMinValue()
Set/Get the diffuse lighting coefficient.


getDiffuseMaxValue

public double getDiffuseMaxValue()
Set/Get the diffuse lighting coefficient.


getDiffuse

public double getDiffuse()
Set/Get the diffuse lighting coefficient.


setSpecular

public void setSpecular(double id0)
Set/Get the specular lighting coefficient.


getSpecularMinValue

public double getSpecularMinValue()
Set/Get the specular lighting coefficient.


getSpecularMaxValue

public double getSpecularMaxValue()
Set/Get the specular lighting coefficient.


getSpecular

public double getSpecular()
Set/Get the specular lighting coefficient.


setSpecularPower

public void setSpecularPower(double id0)
Set/Get the specular power.


getSpecularPowerMinValue

public double getSpecularPowerMinValue()
Set/Get the specular power.


getSpecularPowerMaxValue

public double getSpecularPowerMaxValue()
Set/Get the specular power.


getSpecularPower

public double getSpecularPower()
Set/Get the specular power.


setOpacity

public void setOpacity(double id0)
Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.


getOpacityMinValue

public double getOpacityMinValue()
Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.


getOpacityMaxValue

public double getOpacityMaxValue()
Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.


getOpacity

public double getOpacity()
Set/Get the object's opacity. 1.0 is totally opaque and 0.0 is completely transparent.


setAmbientColor

public void setAmbientColor(double id0,
                            double id1,
                            double id2)
Set/Get the ambient surface color. Not all renderers support separate ambient and diffuse colors. From a physical standpoint it really doesn't make too much sense to have both. For the rendering libraries that don't support both, the diffuse color is used.


setAmbientColor

public void setAmbientColor(double[] id0)
Set/Get the ambient surface color. Not all renderers support separate ambient and diffuse colors. From a physical standpoint it really doesn't make too much sense to have both. For the rendering libraries that don't support both, the diffuse color is used.


getAmbientColor

public double[] getAmbientColor()
Set/Get the ambient surface color. Not all renderers support separate ambient and diffuse colors. From a physical standpoint it really doesn't make too much sense to have both. For the rendering libraries that don't support both, the diffuse color is used.


setDiffuseColor

public void setDiffuseColor(double id0,
                            double id1,
                            double id2)
Set/Get the diffuse surface color.


setDiffuseColor

public void setDiffuseColor(double[] id0)
Set/Get the diffuse surface color.


getDiffuseColor

public double[] getDiffuseColor()
Set/Get the diffuse surface color.


setSpecularColor

public void setSpecularColor(double id0,
                             double id1,
                             double id2)
Set/Get the specular surface color.


setSpecularColor

public void setSpecularColor(double[] id0)
Set/Get the specular surface color.


getSpecularColor

public double[] getSpecularColor()
Set/Get the specular surface color.


getEdgeVisibility

public int getEdgeVisibility()
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior.


setEdgeVisibility

public void setEdgeVisibility(int id0)
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior.


edgeVisibilityOn

public void edgeVisibilityOn()
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior.


edgeVisibilityOff

public void edgeVisibilityOff()
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior.


setEdgeColor

public void setEdgeColor(double id0,
                         double id1,
                         double id2)
Set/Get the color of primitive edges (if edge visibility is enabled).


setEdgeColor

public void setEdgeColor(double[] id0)
Set/Get the color of primitive edges (if edge visibility is enabled).


getEdgeColor

public double[] getEdgeColor()
Set/Get the color of primitive edges (if edge visibility is enabled).


setLineWidth

public void setLineWidth(double id0)
Set/Get the width of a Line. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getLineWidthMinValue

public double getLineWidthMinValue()
Set/Get the width of a Line. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getLineWidthMaxValue

public double getLineWidthMaxValue()
Set/Get the width of a Line. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getLineWidth

public double getLineWidth()
Set/Get the width of a Line. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


setLineStipplePattern

public void setLineStipplePattern(int id0)
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF.


getLineStipplePattern

public int getLineStipplePattern()
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF.


setLineStippleRepeatFactor

public void setLineStippleRepeatFactor(int id0)
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1.


getLineStippleRepeatFactorMinValue

public int getLineStippleRepeatFactorMinValue()
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1.


getLineStippleRepeatFactorMaxValue

public int getLineStippleRepeatFactorMaxValue()
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1.


getLineStippleRepeatFactor

public int getLineStippleRepeatFactor()
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1.


setPointSize

public void setPointSize(double id0)
Set/Get the diameter of a point. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getPointSizeMinValue

public double getPointSizeMinValue()
Set/Get the diameter of a point. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getPointSizeMaxValue

public double getPointSizeMaxValue()
Set/Get the diameter of a point. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getPointSize

public double getPointSize()
Set/Get the diameter of a point. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.


getBackfaceCulling

public int getBackfaceCulling()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If backface culling is on, polygons facing away from camera are not drawn.


setBackfaceCulling

public void setBackfaceCulling(int id0)
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If backface culling is on, polygons facing away from camera are not drawn.


backfaceCullingOn

public void backfaceCullingOn()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If backface culling is on, polygons facing away from camera are not drawn.


backfaceCullingOff

public void backfaceCullingOff()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If backface culling is on, polygons facing away from camera are not drawn.


getFrontfaceCulling

public int getFrontfaceCulling()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If frontface culling is on, polygons facing towards camera are not drawn.


setFrontfaceCulling

public void setFrontfaceCulling(int id0)
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If frontface culling is on, polygons facing towards camera are not drawn.


frontfaceCullingOn

public void frontfaceCullingOn()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If frontface culling is on, polygons facing towards camera are not drawn.


frontfaceCullingOff

public void frontfaceCullingOff()
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If frontface culling is on, polygons facing towards camera are not drawn.


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.