ShadingTriangle Class
A triangular mesh cell in a Gouraud shading fill.
Declaration
public class ShadingTriangle extends JavaObject implements ICloneable
Implements
com.devexpress.system.ICloneable
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
com.devexpress.system.JavaObject
ShadingTriangle
ShadingTriangle(ShadingVertex vertex1, ShadingVertex vertex2, ShadingVertex vertex3)
Initializes a new instance of the ShadingTriangle class with specified settings.
Declaration
public ShadingTriangle(ShadingVertex vertex1, ShadingVertex vertex2, ShadingVertex vertex3)
Parameters
| Name | Type | Description |
|---|---|---|
| vertex1 | ShadingVertex | The first vertex of the triangle. |
| vertex2 | ShadingVertex | The second vertex of the triangle. |
| vertex3 | ShadingVertex | The third vertex of the triangle. |
Methods
deepClone() Method
Creates a deep copy of the current object.
Declaration
public ShadingTriangle deepClone()
Returns
| Type | Description |
|---|---|
ShadingTriangle |
A deep copy of the current object. |
getVertex1() Method
Returns the first vertex of the triangle.
Declaration
public ShadingVertex getVertex1()
Returns
| Type | Description |
|---|---|
| ShadingVertex | The first vertex. |
getVertex2() Method
Returns the second vertex of the triangle.
Declaration
public ShadingVertex getVertex2()
Returns
| Type | Description |
|---|---|
| ShadingVertex | The second vertex. |
getVertex3() Method
Returns the third vertex of the triangle.
Declaration
public ShadingVertex getVertex3()
Returns
| Type | Description |
|---|---|
| ShadingVertex | The third vertex. |
objectClone() Method
Creates a copy of the current object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the current object. |