org.jcae.mesh.amibe.ds
Class TriangleHE

java.lang.Object
  extended by org.jcae.mesh.amibe.ds.Triangle
      extended by org.jcae.mesh.amibe.ds.TriangleHE
All Implemented Interfaces:
java.io.Serializable

public class TriangleHE
extends Triangle

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jcae.mesh.amibe.ds.Triangle
Triangle.List
 
Field Summary
 
Fields inherited from class org.jcae.mesh.amibe.ds.Triangle
readable, traits, traitsBuilder, vertex, writable
 
Constructor Summary
TriangleHE(TriangleTraitsBuilder ttb)
          Constructor.
 
Method Summary
 void clearAttributes(int attr)
          Resets attributes for all edges of this triangle.
 void copy(Triangle src)
           
 HalfEdge getAbstractHalfEdge()
          Gets an AbstractHalfEdge instance bound to this triangle.
 HalfEdge getAbstractHalfEdge(AbstractHalfEdge that)
          Gets an AbstractHalfEdge instance bound to this triangle.
 boolean hasAttributes(int attr)
          Checks if some attributes of this triangle are set.
 void setAttributes(int attr)
          Sets attributes for all edges of this triangle.
 java.lang.String toString()
           
 
Methods inherited from class org.jcae.mesh.amibe.ds.Triangle
getGroupId, isReadable, isWritable, setGroupId, setReadable, setWritable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriangleHE

public TriangleHE(TriangleTraitsBuilder ttb)
Constructor.

Method Detail

copy

public final void copy(Triangle src)
Overrides:
copy in class Triangle

getAbstractHalfEdge

public HalfEdge getAbstractHalfEdge()
Gets an AbstractHalfEdge instance bound to this triangle. This method returns HalfEdge 0.

Overrides:
getAbstractHalfEdge in class Triangle
Returns:
an HalfEdge instance bound to this triangle

getAbstractHalfEdge

public HalfEdge getAbstractHalfEdge(AbstractHalfEdge that)
Gets an AbstractHalfEdge instance bound to this triangle. This method returns HalfEdge 0, argument is unused

Overrides:
getAbstractHalfEdge in class Triangle
Parameters:
that - dummy argument
Returns:
an HalfEdge instance bound to this triangle

setAttributes

public void setAttributes(int attr)
Sets attributes for all edges of this triangle.

Overrides:
setAttributes in class Triangle
Parameters:
attr - attributes to set on edges

clearAttributes

public void clearAttributes(int attr)
Resets attributes for all edges of this triangle.

Overrides:
clearAttributes in class Triangle
Parameters:
attr - attributes to reset on edges

hasAttributes

public boolean hasAttributes(int attr)
Checks if some attributes of this triangle are set.

Overrides:
hasAttributes in class Triangle
Parameters:
attr - attributes to check
Returns:
true if any edge of this triangle has one of these attributes set, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class Triangle