Class ModellViewer

java.lang.Object
  |
  +--ModellViewer

public class ModellViewer
extends java.lang.Object

Title: ModellViewer Description: The ModellViewer Class is used to visualize the 3D representation of the Hive. It is possible to add Honeycombs and Bees.

Author:
Dimitri Missoh & Daniel Schlosser

Field Summary
(package private)  javax.media.j3d.BranchGroup alltogether
           
(package private)  javax.vecmath.Vector3d aVector
           
(package private)  javax.media.j3d.BranchGroup BeesAddPoint
           
private  Koord3D crystalisationPoint
           
(package private)  javax.media.j3d.Canvas3D cv
           
private  Honeycomb firstCell
           
(package private)  javax.media.j3d.BranchGroup HoneycombAddPoint
           
(package private)  MarkViewDialog markviewd
           
(package private)  javax.media.j3d.Transform3D mulTransform3D
           
private  PickDragBehavior PDB
           
(package private)  javax.media.j3d.Transform3D pufferTransform3D
           
(package private)  java.util.LinkedList temporaryRemoved
           
(package private)  MyUniverse universe
           
(package private)  double xAngle
           
(package private)  int xTrans
           
(package private)  double yAngle
           
(package private)  int yTrans
           
(package private)  double zAngle
           
(package private)  int zTrans
           
 
Constructor Summary
ModellViewer(javax.media.j3d.Canvas3D cv, TheHive theHive)
           
 
Method Summary
 void addBee(Koord3D pos)
           
 void addBee(Koord3D[] pos)
           
 void addCell(Koord3D cell)
           
 void addCell(Koord3D[] waben)
           
 void allSolid()
           
 void allTempRemovedBack()
           
 void changeHoneycombColor(Koord3D pos, java.awt.Color col)
           
 void clearall()
           
 void demarkHoneycomb(Koord3D pos)
           
private  void deselectEverything()
           
 double getDichte(long Bloecke)
           
 int getNumberOfHoneycombs()
           
 Koord3D getSize()
           
 void initDialogConection(MarkViewDialog mv)
           
 void markHoneycomb(Koord3D pos, java.awt.Color col)
           
 void moveBees(Koord3D[] pos)
           
 void removeCell(Koord3D cell)
           
 void removeCell(Koord3D[] waben)
           
 void reportMarkingOperationToDialogs(Koord3D coordinate)
           
 void rotateAbsolutX(double a)
           
 void rotateAbsolutY(double a)
           
 void rotateAbsolutZ(double a)
           
 void rotateRelativToView(int dx, int dy)
           
 boolean selectArea(Koord3D[] chosen)
           
 boolean selectCube(Koord3D[] chosen)
           
 void selectedRemove()
           
 void selectedToLines()
           
 boolean selectPolygon2D(Koord3D[] chosen)
           
 boolean selectPolygon3D(Koord3D[] chosen)
           
 void setPositionOfFirstHoneycomb(Koord3D coordinate)
           
 void translateAbsolutX(int t)
           
 void translateAbsolutY(int t)
           
 void translateAbsolutZ(int t)
           
 void translateToCoordinates(Koord3D coordinate)
           
 void zoomAbsolut(double t)
           
 void zoomRelativToView(int dy)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cv

javax.media.j3d.Canvas3D cv

universe

MyUniverse universe

xAngle

double xAngle

yAngle

double yAngle

zAngle

double zAngle

xTrans

int xTrans

yTrans

int yTrans

zTrans

int zTrans

aVector

javax.vecmath.Vector3d aVector

pufferTransform3D

javax.media.j3d.Transform3D pufferTransform3D

mulTransform3D

javax.media.j3d.Transform3D mulTransform3D

alltogether

javax.media.j3d.BranchGroup alltogether

HoneycombAddPoint

javax.media.j3d.BranchGroup HoneycombAddPoint

BeesAddPoint

javax.media.j3d.BranchGroup BeesAddPoint

temporaryRemoved

java.util.LinkedList temporaryRemoved

markviewd

MarkViewDialog markviewd

PDB

private PickDragBehavior PDB

firstCell

private Honeycomb firstCell

crystalisationPoint

private Koord3D crystalisationPoint
Constructor Detail

ModellViewer

public ModellViewer(javax.media.j3d.Canvas3D cv,
                    TheHive theHive)
Method Detail

initDialogConection

public void initDialogConection(MarkViewDialog mv)

getNumberOfHoneycombs

public int getNumberOfHoneycombs()

getSize

public Koord3D getSize()

getDichte

public double getDichte(long Bloecke)

setPositionOfFirstHoneycomb

public void setPositionOfFirstHoneycomb(Koord3D coordinate)

reportMarkingOperationToDialogs

public void reportMarkingOperationToDialogs(Koord3D coordinate)

addCell

public void addCell(Koord3D cell)

addCell

public void addCell(Koord3D[] waben)

removeCell

public void removeCell(Koord3D[] waben)

removeCell

public void removeCell(Koord3D cell)

addBee

public void addBee(Koord3D pos)

addBee

public void addBee(Koord3D[] pos)

moveBees

public void moveBees(Koord3D[] pos)

rotateAbsolutX

public void rotateAbsolutX(double a)

rotateAbsolutY

public void rotateAbsolutY(double a)

rotateAbsolutZ

public void rotateAbsolutZ(double a)

rotateRelativToView

public void rotateRelativToView(int dx,
                                int dy)

translateAbsolutX

public void translateAbsolutX(int t)

translateAbsolutY

public void translateAbsolutY(int t)

translateAbsolutZ

public void translateAbsolutZ(int t)

translateToCoordinates

public void translateToCoordinates(Koord3D coordinate)

zoomAbsolut

public void zoomAbsolut(double t)

zoomRelativToView

public void zoomRelativToView(int dy)

markHoneycomb

public void markHoneycomb(Koord3D pos,
                          java.awt.Color col)

demarkHoneycomb

public void demarkHoneycomb(Koord3D pos)

changeHoneycombColor

public void changeHoneycombColor(Koord3D pos,
                                 java.awt.Color col)

clearall

public void clearall()

selectedToLines

public void selectedToLines()

selectedRemove

public void selectedRemove()

allTempRemovedBack

public void allTempRemovedBack()

allSolid

public void allSolid()

selectPolygon2D

public boolean selectPolygon2D(Koord3D[] chosen)

selectArea

public boolean selectArea(Koord3D[] chosen)

selectCube

public boolean selectCube(Koord3D[] chosen)

selectPolygon3D

public boolean selectPolygon3D(Koord3D[] chosen)

deselectEverything

private void deselectEverything()