artofillusion.texture
Class Mapping2D

java.lang.Object
  extended by artofillusion.texture.TextureMapping
      extended by artofillusion.texture.Mapping2D
Direct Known Subclasses:
NonlinearMapping2D, ProjectionMapping, UVMapping

public abstract class Mapping2D
extends TextureMapping

Mapping2D is an abstract class describing a linear mapping between 2D texture coordinates and 3D space.


Field Summary
 
Fields inherited from class artofillusion.texture.TextureMapping
BACK_ONLY, FRONT_AND_BACK, FRONT_ONLY
 
Constructor Summary
Mapping2D(Object3D theObject, Texture theTexture)
           
 
Method Summary
abstract  Vec2[] findTextureCoordinates(Mesh mesh)
          Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex.
 Object3D getObject()
          Get the object this mapping is applied to.
 Texture getTexture()
          Get the Texture associated with this TextureMapping.
static boolean legalMapping(Object3D obj, Texture tex)
           
 
Methods inherited from class artofillusion.texture.TextureMapping
appliesTo, appliesToFace, copy, duplicate, duplicate, getDisplacement, getEditingPanel, getName, getParameters, getTextureSpec, getTransparency, mapTriangle, setAppliesTo, setParameters, writeToFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapping2D

public Mapping2D(Object3D theObject,
                 Texture theTexture)
Method Detail

getTexture

public Texture getTexture()
Description copied from class: TextureMapping
Get the Texture associated with this TextureMapping.

Specified by:
getTexture in class TextureMapping

getObject

public Object3D getObject()
Description copied from class: TextureMapping
Get the object this mapping is applied to.

Specified by:
getObject in class TextureMapping

legalMapping

public static boolean legalMapping(Object3D obj,
                                   Texture tex)

findTextureCoordinates

public abstract Vec2[] findTextureCoordinates(Mesh mesh)
Given a Mesh to which this mapping has been applied, return the texture coordinates at each vertex.



Copyright © 1999-2011 by Peter Eastman.