java.lang.Object computational.geometry.rendering3d.Rendering3D
public abstract class Rendering3D
Field Summary | |
---|---|
protected Point3D |
eye
|
protected LogManager |
history
|
protected Point3D |
right
|
protected java.util.List |
triangles
|
protected Point3D |
up
|
protected boolean |
viewQuality
|
protected boolean |
viewShading
|
Constructor Summary | |
---|---|
Rendering3D()
Default constructor |
|
Rendering3D(java.util.Collection tr)
Constructor with collection of triangles |
|
Rendering3D(java.util.Collection tr,
LogManager history)
Constructor with collection of triangles and history |
Method Summary | |
---|---|
void |
addTriangle(Triangle3D tr)
Adds triangle to mesh |
void |
clearTriangles()
Clears triangles from mesh |
void |
deleteTriangle(Triangle3D tr)
Deletes triangle from mesh |
abstract void |
draw(java.awt.Graphics2D gfx,
int width,
int height)
|
LogManager |
getLogManager()
Returns log manager used for tracking changes. |
int |
getSize()
|
java.util.List |
getTriangles()
Returns list of triangles. |
boolean |
getViewQuality()
|
boolean |
getViewShading()
|
void |
hideQuality()
|
void |
hideShading()
|
boolean |
isUpdated()
Checks if structure is updated. |
void |
resetRotation()
|
void |
rotateFree(double x,
double y)
|
void |
setLogManager(LogManager history)
Sets log manager used for tracking changes. |
void |
setTriangles(java.util.Collection tr)
Sets triangle mesh |
void |
setUpdated(boolean updated)
Sets state of structure used for solving problem |
void |
showQuality()
|
void |
showShading()
|
abstract void |
update()
ABSTRACTION |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Point3D eye
protected LogManager history
protected Point3D right
protected java.util.List triangles
protected Point3D up
protected boolean viewQuality
protected boolean viewShading
Constructor Detail |
---|
public Rendering3D()
public Rendering3D(java.util.Collection tr)
tr
- collection of input trianglespublic Rendering3D(java.util.Collection tr, LogManager history)
tr
- collection of input triangleshistory
- log used for tracking changesMethod Detail |
---|
public void addTriangle(Triangle3D tr)
tr
- public void clearTriangles()
public void deleteTriangle(Triangle3D tr)
tr
- public abstract void draw(java.awt.Graphics2D gfx, int width, int height)
public LogManager getLogManager()
public int getSize()
public java.util.List getTriangles()
public boolean getViewQuality()
public boolean getViewShading()
public void hideQuality()
public void hideShading()
public boolean isUpdated()
public void resetRotation()
public void rotateFree(double x, double y)
public void setLogManager(LogManager history)
history
- public void setTriangles(java.util.Collection tr)
tr
- public void setUpdated(boolean updated)
updated
- public void showQuality()
public void showShading()
public abstract void update()