|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsugr.example.MyChair
Show some features of SUGR. This program constructs a virtual chair.
Field Summary | |
private Line_3D[] |
lines
|
private Line_2D[] |
lines2D
|
private Plane_3D[] |
planes
|
private Point_3D[] |
points
|
private Point_2D[] |
points2D
|
Constructor Summary | |
MyChair(Point_3D base)
MyChair Simple Constructor |
Method Summary | |
private void |
calcLines()
Calculate all wireframe lines of the chair. |
private void |
calcPlanes()
Compute two planes from chair. |
private void |
calcPoints(Point_3D base)
Compute all points relative to base point. |
void |
doHomography(Homography_3D H)
Applies Homography H to all elements (points, lines, planes) |
Line_3D[] |
getLines()
Returns array of copied lines . |
Line_2D[] |
getLines2D()
Returns array of copied 2D-lines . |
Plane_3D[] |
getPlanes()
Returns array of copied planes |
Point_3D[] |
getPoints()
Returns array of copied points. |
Point_2D[] |
getPoints2D()
Returns copy of array of 2D points. |
static void |
main(java.lang.String[] args)
Create Test-instance of class MyChair |
void |
useProjectiveCamera(ProjectiveCamera P)
Project all Points and lines according to given projective camera P. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Point_3D[] points
private Line_3D[] lines
private Plane_3D[] planes
private Point_2D[] points2D
private Line_2D[] lines2D
Constructor Detail |
public MyChair(Point_3D base)
base
- Contains base point (lower left leg)Method Detail |
private void calcPoints(Point_3D base)
base
- Point_3D base point of chairprivate void calcLines()
private void calcPlanes()
public Point_3D[] getPoints()
public Point_2D[] getPoints2D()
public Line_3D[] getLines()
public Line_2D[] getLines2D()
public Plane_3D[] getPlanes()
public void doHomography(Homography_3D H)
H
- contains Homographypublic void useProjectiveCamera(ProjectiveCamera P)
P
- the ProjectiveCamerapublic static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |