Package org.gvsig.fmap.geom.primitive
Interface SurfaceAppearance
- All Superinterfaces:
Appearance
- Author:
- gvSIG team
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic classstatic classNested classes/interfaces inherited from interface org.gvsig.fmap.geom.primitive.Appearance
Appearance.Material -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a color to teh color array of the surfacevoidaddIndex(int element) Add a index in the index array of the surfacevoidAdd a normal vector to the normal array of the surfacevoidAdds a texture coordinate to TexCoord array in SurfacegetColorAt(int position) Get the color at concrete positionGet the color binding of the color array of the surfaceintgetIndexAt(int position) Get the index element at concrete positiongetNormalAt(int position) Gets the normal vector in a concrete positionGets the binding of normal arrayintGet the number of colors in the color array of the surfaceintGet number of indices in the index array of the surfaceintGet the number of normals in the surfaceintGets the number of texture coordinates in the texcoord array of the surfaceGet the primitive mode of the surfaceGet the primitive type of the surfacegetTextureCoordAt(int position) Get texture coordinate at concrete positionvoidremoveColor(int position) Remove color in a concrete positionvoidremoveIndex(int position) Remove index element at concrete positionvoidremoveNormal(int position) Remove normal vector in a concrete positionvoidremoveTextureCoord(int position) Remove texture coordinate at concrete positionvoidsetColorAt(int position, Point p) Set a color in a concrete position of the color arrayvoidSets the colorbinding of the color array of the surfacevoidsetIndexAt(int position, int element) Set an index element in a concrete positionvoidsetNormalAt(int position, Point p) Sets normal vector in a concrete position.voidSets the binding of normal array to Surface Geometry.voidSets the primitive mode of the surfacevoidSet the primitive type of the surfacevoidsetTextureCoordAt(int position, Point p) Set texture coordinate at concrete positionMethods inherited from interface org.gvsig.fmap.geom.primitive.Appearance
addTexture, getEnabledBlending, getEnabledLighting, getMaterial, getTexture, setEnabledBlending, setEnabledLighting, setMaterial
-
Method Details
-
addNormal
Add a normal vector to the normal array of the surface- Parameters:
p-
-
setNormalAt
Sets normal vector in a concrete position.- Parameters:
position- the array position to set the normal vectorp- the normal vector to set (dimension 3)
-
getNormalAt
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
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
Adds a texture coordinate to TexCoord array in Surface- Parameters:
p- the texture coordinate (dimension 2)
-
setTextureCoordAt
Set texture coordinate at concrete position- Parameters:
position- the concrete positionp- the texture coordinate value
-
getTextureCoordAt
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 positionelement- 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
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
Set the primitive type of the surface- Parameters:
type- the primitive type
-
addColor
Add a color to teh color array of the surface- Parameters:
p- the color(dimension 4 rgba)
-
setColorAt
Set a color in a concrete position of the color array- Parameters:
position- the concrete positionp- the color(dimension 4 rgba)
-
getColorAt
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
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
-