|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcae.mesh.amibe.ds.Triangle
public class Triangle
A triangle containing adjacency relations.
Nested Class Summary | |
---|---|
static class |
Triangle.List
Singly linked list of triangles. |
Field Summary | |
---|---|
protected boolean |
readable
|
protected Traits |
traits
|
protected TriangleTraitsBuilder |
traitsBuilder
|
Vertex[] |
vertex
Three vertices. |
protected boolean |
writable
|
Constructor Summary | |
---|---|
Triangle(TriangleTraitsBuilder builder)
|
Method Summary | |
---|---|
void |
clearAttributes(int attr)
Resets attributes for all edges of this triangle. |
void |
copy(Triangle src)
|
AbstractHalfEdge |
getAbstractHalfEdge()
Gets an AbstractHalfEdge instance bound to this triangle. |
AbstractHalfEdge |
getAbstractHalfEdge(AbstractHalfEdge that)
Gets an AbstractHalfEdge instance bound to this triangle. |
int |
getGroupId()
Return the group identifier of this triangle. |
boolean |
hasAttributes(int attr)
Checks if some attributes of this triangle are set. |
boolean |
isReadable()
|
boolean |
isWritable()
|
void |
setAttributes(int attr)
Sets attributes for all edges of this triangle. |
void |
setGroupId(int g)
Set the group identifier of this triangle. |
void |
setReadable(boolean b)
|
void |
setWritable(boolean b)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final TriangleTraitsBuilder traitsBuilder
protected final Traits traits
public Vertex[] vertex
protected boolean readable
protected boolean writable
Constructor Detail |
---|
public Triangle(TriangleTraitsBuilder builder)
Method Detail |
---|
public void copy(Triangle src)
public void setAttributes(int attr)
attr
- attributes to set on edgespublic void clearAttributes(int attr)
attr
- attributes to reset on edgespublic boolean hasAttributes(int attr)
attr
- attributes to check
true
if any edge of this triangle has
one of these attributes set, false
otherwisepublic AbstractHalfEdge getAbstractHalfEdge()
AbstractHalfEdge
instance bound to this triangle.
public AbstractHalfEdge getAbstractHalfEdge(AbstractHalfEdge that)
AbstractHalfEdge
instance bound to this triangle.
public int getGroupId()
public void setGroupId(int g)
g
- the group identifier of this triangle.public void setReadable(boolean b)
public void setWritable(boolean b)
public boolean isReadable()
public boolean isWritable()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |