sugr.example
Class MyChair

java.lang.Object
  extended bysugr.example.MyChair

public class MyChair
extends java.lang.Object

Show some features of SUGR. This program constructs a virtual chair.

Author:
Daniel Beer, Institute for Photogrammetry, Bonn, Germany

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

points

private Point_3D[] points

lines

private Line_3D[] lines

planes

private Plane_3D[] planes

points2D

private Point_2D[] points2D

lines2D

private Line_2D[] lines2D
Constructor Detail

MyChair

public MyChair(Point_3D base)
MyChair Simple Constructor

Parameters:
base - Contains base point (lower left leg)
Method Detail

calcPoints

private void calcPoints(Point_3D base)
Compute all points relative to base point.

Parameters:
base - Point_3D base point of chair

calcLines

private void calcLines()
Calculate all wireframe lines of the chair.


calcPlanes

private void calcPlanes()
Compute two planes from chair.


getPoints

public Point_3D[] getPoints()
Returns array of copied points.

Returns:
Point-Array

getPoints2D

public Point_2D[] getPoints2D()
Returns copy of array of 2D points.

Returns:
Point-Array

getLines

public Line_3D[] getLines()
Returns array of copied lines .

Returns:
Line-Array

getLines2D

public Line_2D[] getLines2D()
Returns array of copied 2D-lines .

Returns:
Line-Array

getPlanes

public Plane_3D[] getPlanes()
Returns array of copied planes

Returns:
Plane-Array

doHomography

public void doHomography(Homography_3D H)
Applies Homography H to all elements (points, lines, planes)

Parameters:
H - contains Homography

useProjectiveCamera

public void useProjectiveCamera(ProjectiveCamera P)
Project all Points and lines according to given projective camera P.

Parameters:
P - the ProjectiveCamera

main

public static void main(java.lang.String[] args)
Create Test-instance of class MyChair