public final class VertexDescription extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
VertexDescription.Semantics
Describes the attribute and, in case of predefined attributes, provides a
hint of the attribute use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object _other) |
int |
getAttributeCount()
Returns the attribute count of this description.
|
int |
getAttributeIndex(int semantics)
Returns the index the given attribute in the vertex description.
|
static int |
getComponentCount(int semantics)
Returns the number of the components of the given semantics.
|
static double |
getDefaultValue(int semantics)
Returns default value for each ordinate of the vertex attribute with
given semantics.
|
int |
getSemantics(int attributeIndex)
Returns the semantics of the given attribute.
|
int |
getTotalComponentCount()
Returns the total component count.
|
boolean |
hasAttribute(int semantics)
Returns True if the attribute with the given name and given set exists.
|
boolean |
hasAttributesFrom(VertexDescription src)
Returns True if this vertex description includes all attributes from the
src.
|
int |
hashCode() |
boolean |
hasID()
Returns True, if the vertex has ID attribute.
|
boolean |
hasM()
Returns True, if the vertex has M attribute.
|
boolean |
hasZ()
Returns True, if the vertex has Z attribute.
|
static boolean |
isDefaultValue(int semantics,
double v)
Checks if the given value is the default one.
|
public final int getAttributeCount()
public final int getSemantics(int attributeIndex)
attributeIndex
- The index of the attribute in the description. Max value is
getAttributeCount() - 1.public final int getAttributeIndex(int semantics)
semantics
- public static int getComponentCount(int semantics)
semantics
- The semantics of the attribute.public boolean hasAttribute(int semantics)
semantics
- The semantics of the attribute.public final boolean hasAttributesFrom(VertexDescription src)
src
- The Vertex_description to compare with.public final boolean hasZ()
public final boolean hasM()
public final boolean hasID()
public static double getDefaultValue(int semantics)
public int getTotalComponentCount()
public static boolean isDefaultValue(int semantics, double v)
Copyright © 2018. All rights reserved.