|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.quinncurtis.chart3djava.ObjectPolygonList
public class ObjectPolygonList
A list of PolygonList objects.
| Constructor Summary | |
|---|---|
ObjectPolygonList()
The default constructor. |
|
ObjectPolygonList(ObjectPolygonList source)
Constructor initializes the ObjectPolygonList object as a copy of a another ObjectPolygonList object. |
|
| Method Summary | |
|---|---|
int |
addPolygonObject(PolygonList newpolygonlist)
Add the a PolygonList object to the he polygonObjectArray. |
int |
addPolygonObjectList(ObjectPolygonList newpolygonlist)
Add the objects in the source ObjectPolygonList object to the polygonObjectArray. |
void |
clampObjectPolygonListToCoordinateLimits()
Clamp the polygon vertex values to the coordinate systems limits. |
java.lang.Object |
clone()
Returns an object that is a clone of this object. |
void |
copy(ObjectPolygonList source)
Copies the source object. |
int |
count()
Returns the count of the polygonArray. |
PolygonList |
getElement(int index)
This accessor is the indexer for the class and get/sets the value of an individual PolygonList object in the polygonObjectArray list. |
PolygonList |
getObjectAtTestPoint(double x,
double y)
Get the index of the polygon with the smallest z-axis value in the polygonObjectArray object at the test point (x,y). |
PolygonList |
getObjectAtTestPointX(double x,
double y)
Get the index of the polygon with the smallest z-axis value in the polygonObjectArray object at the test point (x,y). |
int |
getPolygonAtTestPoint(double x,
double y,
int poly)
Get the index of the polygon with the smallest z-axis value in the PolygonList object at the test point (x,y). |
PolygonList |
getPolygonObject(int index)
Returns a specific PolygonList in the array of PolygonList objects. |
PolygonList[] |
getPolygonObjects()
Returns an array of the PolygonList objects in the polygonObjectArray array. |
boolean |
getSortPolygonsByZDepth()
Returns True if the polygons are sorted by z-depth. |
void |
markPolygonIndices(int datapoint,
int group)
Mark all of the PolygonList in the polygonObjectArray with data point and group indices. |
void |
reset()
Resets the ObjectPolygonList object back to it's default (empty) state. |
void |
setElement(int index,
PolygonList value)
This accessor is the indexer for the class and get/sets the value of an individual PolygonList object in the polygonObjectArray list. |
void |
setEnableCullRearFacing(boolean value)
Set to true to enable the culling of rear facing polygons |
void |
setSortPolygonsByZDepth(boolean value)
Set to True and the polygons are sorted by z-depth. |
void |
sort()
Sort the ObjectPolygonList objects in the ObjectPolygonList. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectPolygonList()
public ObjectPolygonList(ObjectPolygonList source)
source - The source ObjectPolygonList object.| Method Detail |
|---|
public void reset()
public void sort()
public void copy(ObjectPolygonList source)
source - The source object.public java.lang.Object clone()
clone in class java.lang.Objectpublic int addPolygonObject(PolygonList newpolygonlist)
newpolygonlist - Add this object to the polygonObjectArray.
public int addPolygonObjectList(ObjectPolygonList newpolygonlist)
newpolygonlist - Add this object to the polygonObjectArray.
public PolygonList[] getPolygonObjects()
public PolygonList getPolygonObject(int index)
index - The index of the PolygonList in the polygonObjectArray.
public void markPolygonIndices(int datapoint,
int group)
datapoint - The data point index of the polygon.group - The group index of the polygon.
public int getPolygonAtTestPoint(double x,
double y,
int poly)
x - The x-value of the test point.y - The y-value of the test point.poly - The PolygonList object in the polygonObjectArray to test.
public PolygonList getObjectAtTestPoint(double x,
double y)
x - The x-value of the test point.y - The y-value of the test point.
public PolygonList getObjectAtTestPointX(double x,
double y)
x - The x-value of the test point.y - The y-value of the test point.
public void clampObjectPolygonListToCoordinateLimits()
public PolygonList getElement(int index)
index - Get the PolygonList element at index.
public void setElement(int index,
PolygonList value)
index - Set the PolygonList element at index.value - Value for PolygonList element index.public int count()
public boolean getSortPolygonsByZDepth()
public void setSortPolygonsByZDepth(boolean value)
value - Set to True and the polygons are sorted by z-depth.public void setEnableCullRearFacing(boolean value)
value - Set to True and rear-facing polygons are culled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||