artofillusion.texture
Interface ParameterValue

All Known Implementing Classes:
ConstantParameterValue, FaceParameterValue, FaceVertexParameterValue, VertexParameterValue

public interface ParameterValue

This interface represents a class that defines the value of a scalar parameter over the surface of a mesh.


Method Summary
 ParameterValue duplicate()
          Create a duplicate of this object.
 double getAverageValue()
          Get the average value of the parameter over the entire surface.
 double getValue(int tri, int v1, int v2, int v3, double u, double v, double w)
          Get the value of the parameter at a particular point in a particular triangle.
 void writeToStream(java.io.DataOutputStream out)
          Write out a serialized representation of this object to a stream.
 

Method Detail

getValue

double getValue(int tri,
                int v1,
                int v2,
                int v3,
                double u,
                double v,
                double w)
Get the value of the parameter at a particular point in a particular triangle.


getAverageValue

double getAverageValue()
Get the average value of the parameter over the entire surface.


duplicate

ParameterValue duplicate()
Create a duplicate of this object.


writeToStream

void writeToStream(java.io.DataOutputStream out)
                   throws java.io.IOException
Write out a serialized representation of this object to a stream.

Throws:
java.io.IOException


Copyright © 1999-2011 by Peter Eastman.