|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.VertexDescription
public class VertexDescription
Describes the vertex format of a Geometry.
Geometry objects store vertices. The vertex is a multi attribute entity.
It has mandatory X, Y coordinates. In addition it may have Z, M, ID, and other user specified attributes.
Geometries point to VertexDescription instances. If the two Geometries have same set of attributes, they point to the same VertexDescription instance.
To create a new VertexDescription use the VertexDescriptionDesigner class.
The VertexDescription allows to add new attribute types easily (see ID2).
The attributes are stored sorted by Semantics value.
Note: You could also think of the VertexDescription as a schema of a database table. You may look the vertices of a Geometry as if they are stored in a database table,
and the VertexDescription defines the fields of the table.
| Nested Class Summary | |
|---|---|
static interface |
VertexDescription.Semantics
Describes the attribute and, in case of predefined attributes, provides a hint of the attribute use. |
| Constructor Summary | |
|---|---|
VertexDescription()
|
|
| Method Summary | |
|---|---|
int |
_getSemanticsImpl(int attributeIndex)
|
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. |
static int |
getInterpolation(int semantics)
Returns the interpolation type for the attribute. |
static int |
getPersistence(int semantics)
Returns the persistence type for the attribute. |
static int |
getPersistenceFromInt(int size)
|
static int |
getPersistenceSize(int persistence)
Returns the size of the persistence type in bytes. |
static int |
getPersistenceSizeSemantics(int semantics)
Returns the size of the semantics in bytes. |
int |
getSemantics(int attrbuteIndex)
Returns the semantics of the given attribute. |
boolean |
hasAttribute(int semantics)
Returns True if the attribute with the given name and given set exists. |
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. |
static boolean |
isIntegerPersistence(int persistence)
Returns True for integer persistence type. |
static boolean |
isIntegerSemantics(int semantics)
Returns True for integer semantics type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VertexDescription()
| Method Detail |
|---|
public int getAttributeCount()
public int getSemantics(int attrbuteIndex)
attributeIndex - The index of the attribute in the description. Max value is GetAttributeCount() - 1.public int getAttributeIndex(int semantics)
semantics - \return Returns the attribute index or -1 of the attribute does not existpublic static int getInterpolation(int semantics)
semantics - The semantics of the attribute.public static int getPersistence(int semantics)
semantics - The semantics of the attribute.public static int getPersistenceSize(int persistence)
persistence - The persistence type to query.public static int getPersistenceSizeSemantics(int semantics)
public static int getComponentCount(int semantics)
semantics - The semantics of the attribute.public static boolean isIntegerPersistence(int persistence)
public static boolean isIntegerSemantics(int semantics)
public boolean hasAttribute(int semantics)
semantics - The semantics of the attribute.public boolean hasZ()
public boolean hasM()
public boolean hasID()
public static double getDefaultValue(int semantics)
public static boolean isDefaultValue(int semantics,
double v)
public static int getPersistenceFromInt(int size)
public boolean equals(Object _other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int _getSemanticsImpl(int attributeIndex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||