org.gvsig.fmap.geom.primitive
Interface SurfaceAppearance

All Superinterfaces:
Appearance

public interface SurfaceAppearance
extends Appearance

Author:
Jordi Torres Fabra

Nested Class Summary
static class SurfaceAppearance.AttributeBinding
           
static class SurfaceAppearance.PrimitiveMode
           
static class SurfaceAppearance.PrimitiveType
           
 
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.primitive.Appearance
Appearance.Material
 
Method Summary
 void addColor(Point p)
          Add a color to teh color array of the surface
 void addIndex(int element)
          Add a index in the index array of the surface
 void addNormal(Point p)
          Add a normal vector to the normal array of the surface
 void addTextureCoord(Point p)
          Adds a texture coordinate to TexCoord array in Surface
 Point getColorAt(int position)
          Get the color at concrete position
 SurfaceAppearance.AttributeBinding getColorBinding()
          Get the color binding of the color array of the surface
 int getIndexAt(int position)
          Get the index element at concrete position
 Point getNormalAt(int position)
          Gets the normal vector in a concrete position
 SurfaceAppearance.AttributeBinding getNormalBinding()
          Gets the binding of normal array
 int getNumColors()
          Get the number of colors in the color array of the surface
 int getNumIndices()
          Get number of indices in the index array of the surface
 int getNumNormals()
          Get the number of normals in the surface
 int getNumTextureCoords()
          Gets the number of texture coordinates in the texcoord array of the surface
 SurfaceAppearance.PrimitiveMode getPrimitiveMode()
          Get the primitive mode of the surface
 SurfaceAppearance.PrimitiveType getPrimitiveType()
          Get the primitive type of the surface
 Point getTextureCoordAt(int position)
          Get texture coordinate at concrete position
 void removeColor(int position)
          Remove color in a concrete position
 void removeIndex(int position)
          Remove index element at concrete position
 void removeNormal(int position)
          Remove normal vector in a concrete position
 void removeTextureCoord(int position)
          Remove texture coordinate at concrete position
 void setColorAt(int position, Point p)
          Set a color in a concrete position of the color array
 void setColorBinding(SurfaceAppearance.AttributeBinding binding)
          Sets the colorbinding of the color array of the surface
 void setIndexAt(int position, int element)
          Set an index element in a concrete position
 void setNormalAt(int position, Point p)
          Sets normal vector in a concrete position.
 void setNormalBinding(SurfaceAppearance.AttributeBinding binding)
          Sets the binding of normal array to Surface Geometry.
 void setPrimitiveMode(SurfaceAppearance.PrimitiveMode mode)
          Sets the primitive mode of the surface
 void setPrimitiveType(SurfaceAppearance.PrimitiveType type)
          Set the primitive type of the surface
 void setTextureCoordAt(int position, Point p)
          Set texture coordinate at concrete position
 
Methods inherited from interface org.gvsig.fmap.geom.primitive.Appearance
addTexture, getEnabledBlending, getEnabledLighting, getMaterial, getTexture, setEnabledBlending, setEnabledLighting, setMaterial
 

Method Detail

addNormal

void addNormal(Point p)
Add a normal vector to the normal array of the surface

Parameters:
p -

setNormalAt

void setNormalAt(int position,
                 Point p)
Sets normal vector in a concrete position.

Parameters:
position - the array position to set the normal vector
p - the normal vector to set (dimension 3)

getNormalAt

Point getNormalAt(int position)
Gets the normal vector in a concrete position

Parameters:
position - the direct position
Returns:
the normal vector

getNumNormals

int getNumNormals()
Get the number of normals in the surface

Returns:
an integer representing the number of normals

removeNormal

void removeNormal(int position)
Remove normal vector in a concrete position

Parameters:
position - the direct position

setNormalBinding

void setNormalBinding(SurfaceAppearance.AttributeBinding binding)
Sets the binding of normal array to Surface Geometry.

Parameters:
binding - Value of the binding

getNormalBinding

SurfaceAppearance.AttributeBinding getNormalBinding()
Gets the binding of normal array

Returns:
Value representing attributeBinding

addTextureCoord

void addTextureCoord(Point p)
Adds a texture coordinate to TexCoord array in Surface

Parameters:
p - the texture coordinate (dimension 2)

setTextureCoordAt

void setTextureCoordAt(int position,
                       Point p)
Set texture coordinate at concrete position

Parameters:
position - the concrete position
p - the texture coordinate value

getTextureCoordAt

Point getTextureCoordAt(int position)
Get texture coordinate at concrete position

Parameters:
position - the concrete position
Returns:
the texure coordinate (dimension 2)

getNumTextureCoords

int getNumTextureCoords()
Gets the number of texture coordinates in the texcoord array of the surface

Returns:
the number of texture coordinates

removeTextureCoord

void removeTextureCoord(int position)
Remove texture coordinate at concrete position

Parameters:
position -

addIndex

void addIndex(int element)
Add a index in the index array of the surface

Parameters:
element - the index to add

getIndexAt

int getIndexAt(int position)
Get the index element at concrete position

Parameters:
position - the concrete position
Returns:
teh index element

setIndexAt

void setIndexAt(int position,
                int element)
Set an index element in a concrete position

Parameters:
position - the concrete position
element - the index element

removeIndex

void removeIndex(int position)
Remove index element at concrete position

Parameters:
position - the concrete position

getNumIndices

int getNumIndices()
Get number of indices in the index array of the surface

Returns:
the number of indices

getPrimitiveMode

SurfaceAppearance.PrimitiveMode getPrimitiveMode()
Get the primitive mode of the surface

Returns:
the primitive mode

setPrimitiveMode

void setPrimitiveMode(SurfaceAppearance.PrimitiveMode mode)
Sets the primitive mode of the surface

Parameters:
mode - the primitive mode

getPrimitiveType

SurfaceAppearance.PrimitiveType getPrimitiveType()
Get the primitive type of the surface

Returns:
the primitive type

setPrimitiveType

void setPrimitiveType(SurfaceAppearance.PrimitiveType type)
Set the primitive type of the surface

Parameters:
type - the primitive type

addColor

void addColor(Point p)
Add a color to teh color array of the surface

Parameters:
p - the color(dimension 4 rgba)

setColorAt

void setColorAt(int position,
                Point p)
Set a color in a concrete position of the color array

Parameters:
position - the concrete position
p - the color(dimension 4 rgba)

getColorAt

Point getColorAt(int position)
Get the color at concrete position

Parameters:
position - the concrete position
Returns:
the color

removeColor

void removeColor(int position)
Remove color in a concrete position

Parameters:
position - the concrete position

getNumColors

int getNumColors()
Get the number of colors in the color array of the surface

Returns:

setColorBinding

void setColorBinding(SurfaceAppearance.AttributeBinding binding)
Sets the colorbinding of the color array of the surface

Parameters:
binding - attribute binding representing color binding

getColorBinding

SurfaceAppearance.AttributeBinding getColorBinding()
Get the color binding of the color array of the surface

Returns:
Attribute binding representing color binding


Copyright © 2004-2012 gvSIG. All Rights Reserved.