|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.Clipper
public class Clipper
A clipper can take up to six arbitrary clipping planes, which can individually be enabled/disabled. All values are measured in Node-Local coordinates.
| Constructor Summary | |
|---|---|
Clipper()
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane[] planes)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3,
org.openmali.spatial.bodies.Plane plane4)
Creates a new Clipper. |
|
Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3,
org.openmali.spatial.bodies.Plane plane4,
org.openmali.spatial.bodies.Plane plane5)
Creates a new Clipper. |
|
| Method Summary | |
|---|---|
int |
getId()
Returns the unique id of this clipper instance. |
org.openmali.spatial.bodies.Plane |
getPlane(int i)
|
org.openmali.spatial.bodies.Plane |
getPlane(int i,
org.openmali.spatial.bodies.Plane plane)
Gets this Clipper's i-th Plane. |
void |
getPlaneEnables(boolean[] enables)
Gets the enabled states of this Clipper's Planes. |
boolean |
isEnabled()
|
boolean |
isPlaneEnabled(int i)
|
boolean |
isWorldCoordinateSystemUsed()
If this is true, the clipper uses world coordinates. |
void |
setEnabled(boolean enabled)
Enables/Disables this Clipper. |
void |
setPlane(int i,
org.openmali.spatial.bodies.Plane plane)
Sets the i-th Plane of this Clipper. |
void |
setPlaneEnabled(int i,
boolean enabled)
Sets the enabled states of this Clipper's i-th Plane. |
void |
setPlaneEnables(boolean[] enables)
Enables/Disables this Clipper's Planes. |
void |
setUseWorldCoordinateSystem(boolean ignored)
If this is true, the clipper uses world coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Clipper(org.openmali.spatial.bodies.Plane[] planes)
planes -
public Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3,
org.openmali.spatial.bodies.Plane plane4,
org.openmali.spatial.bodies.Plane plane5)
plane0 - plane1 - plane2 - plane3 - plane4 - plane5 - public Clipper(org.openmali.spatial.bodies.Plane plane0)
plane0 -
public Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1)
plane0 - plane1 -
public Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2)
plane0 - plane1 - plane2 -
public Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3)
plane0 - plane1 - plane2 - plane3 -
public Clipper(org.openmali.spatial.bodies.Plane plane0,
org.openmali.spatial.bodies.Plane plane1,
org.openmali.spatial.bodies.Plane plane2,
org.openmali.spatial.bodies.Plane plane3,
org.openmali.spatial.bodies.Plane plane4)
plane0 - plane1 - plane2 - plane3 - plane4 - public Clipper()
| Method Detail |
|---|
public final int getId()
public final void setUseWorldCoordinateSystem(boolean ignored)
ignored - public final boolean isWorldCoordinateSystemUsed()
public void setPlane(int i,
org.openmali.spatial.bodies.Plane plane)
i - plane - public org.openmali.spatial.bodies.Plane getPlane(int i)
i -
public org.openmali.spatial.bodies.Plane getPlane(int i,
org.openmali.spatial.bodies.Plane plane)
i - plane -
public void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.Enableableenabled - public boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableablepublic void setPlaneEnables(boolean[] enables)
enables - public void getPlaneEnables(boolean[] enables)
enables -
public void setPlaneEnabled(int i,
boolean enabled)
i - enabled - public boolean isPlaneEnabled(int i)
i -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||