|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SurfaceAppearance
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 |
---|
void addNormal(Point p)
p
- void setNormalAt(int position, Point p)
position
- the array position to set the normal vectorp
- the normal vector to set (dimension 3)Point getNormalAt(int position)
position
- the direct position
int getNumNormals()
void removeNormal(int position)
position
- the direct positionvoid setNormalBinding(SurfaceAppearance.AttributeBinding binding)
binding
- Value of the bindingSurfaceAppearance.AttributeBinding getNormalBinding()
void addTextureCoord(Point p)
p
- the texture coordinate (dimension 2)void setTextureCoordAt(int position, Point p)
position
- the concrete positionp
- the texture coordinate valuePoint getTextureCoordAt(int position)
position
- the concrete position
int getNumTextureCoords()
void removeTextureCoord(int position)
position
- void addIndex(int element)
element
- the index to addint getIndexAt(int position)
position
- the concrete position
void setIndexAt(int position, int element)
position
- the concrete positionelement
- the index elementvoid removeIndex(int position)
position
- the concrete positionint getNumIndices()
SurfaceAppearance.PrimitiveMode getPrimitiveMode()
void setPrimitiveMode(SurfaceAppearance.PrimitiveMode mode)
mode
- the primitive modeSurfaceAppearance.PrimitiveType getPrimitiveType()
void setPrimitiveType(SurfaceAppearance.PrimitiveType type)
type
- the primitive typevoid addColor(Point p)
p
- the color(dimension 4 rgba)void setColorAt(int position, Point p)
position
- the concrete positionp
- the color(dimension 4 rgba)Point getColorAt(int position)
position
- the concrete position
void removeColor(int position)
position
- the concrete positionint getNumColors()
void setColorBinding(SurfaceAppearance.AttributeBinding binding)
binding
- attribute binding representing color bindingSurfaceAppearance.AttributeBinding getColorBinding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |