Package com.aspose.threed
Class VertexElement
- java.lang.Object
-
- com.aspose.threed.VertexElement
-
- All Implemented Interfaces:
IIndexedVertexElement
- Direct Known Subclasses:
VertexElementDoublesTemplate
,VertexElementIntsTemplate
,VertexElementMaterial
,VertexElementTemplate
,VertexElementUserData
,VertexElementVector4
public abstract class VertexElement extends java.lang.Object implements IIndexedVertexElement
Base class of vertex elements. A vertex element type is identified by VertexElementType. A VertexElement describes how the vertex element is mapped to a geometry surface and how the mapping information is arranged in memory. A VertexElement contains Normals, UVs or other kind of information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
clear()
Clears all the data from this vertex element.VertexElement
clone(boolean withData)
Deep clone the vertex elementjava.util.List<java.lang.Integer>
getIndices()
Gets the indices dataMappingMode
getMappingMode()
Gets how the element is mapped.java.lang.String
getName()
Gets the name.ReferenceMode
getReferenceMode()
Gets how the element is referenced.VertexElementType
getVertexElementType()
Gets the type of theVertexElement
void
setIndices(int[] data)
Load indicesvoid
setMappingMode(MappingMode value)
Sets how the element is mapped.void
setName(java.lang.String value)
Sets the name.void
setReferenceMode(ReferenceMode value)
Sets how the element is referenced.java.lang.String
toString()
String representation of vertex element.
-
-
-
Method Detail
-
getVertexElementType
public VertexElementType getVertexElementType()
Gets the type of theVertexElement
-
getName
public java.lang.String getName()
Gets the name.
-
setName
public void setName(java.lang.String value)
Sets the name.- Parameters:
value
- New value
-
getMappingMode
public MappingMode getMappingMode()
Gets how the element is mapped.
-
setMappingMode
public void setMappingMode(MappingMode value)
Sets how the element is mapped.- Parameters:
value
- New value
-
getReferenceMode
public ReferenceMode getReferenceMode()
Gets how the element is referenced.
-
setReferenceMode
public void setReferenceMode(ReferenceMode value)
Sets how the element is referenced.- Parameters:
value
- New value
-
getIndices
public java.util.List<java.lang.Integer> getIndices()
Gets the indices data- Specified by:
getIndices
in interfaceIIndexedVertexElement
-
setIndices
public void setIndices(int[] data)
Load indices- Parameters:
data
-
-
clear
public abstract void clear()
Clears all the data from this vertex element.
-
clone
public VertexElement clone(boolean withData)
Deep clone the vertex element- Parameters:
withData
- Clone the vertex with direct and index array
-
toString
public java.lang.String toString()
String representation of vertex element.- Overrides:
toString
in classjava.lang.Object
-
-