de.fhg.igd.earth.view
Class ProjectorManager

java.lang.Object
  extended byde.fhg.igd.earth.view.ProjectorManager

public class ProjectorManager
extends Object

This class manages the projectors. Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
private  ModelGraph model_
          The ModelGraph object (root)
private  Vector projectorList_
          list of all projectors
 
Constructor Summary
ProjectorManager(ModelGraph model)
          Creates an instance of this class and sets the model graph root object
 
Method Summary
 void addProjector(Projector p)
          Adds a projector to the projector list
 JavaProjector get3dProjector()
          Returns the Java3D projector
 Projector getProjector(int index)
          Returns a projector by index
 int numProjectors()
          Returns the number of projectors in list
 void remove(Projector proj)
          Removes a projector out of the list
 void remove3DProjector()
          Removes the Java3D projector
 void removeAll()
          Removes all projectors
 void reset()
          Resets the projector manager (=> removeAll)
 void resizePanelEvent(JPanel panel)
          GUI (resize the panel of the projector)
 void updateAll()
          Updates all projectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model_

private ModelGraph model_
The ModelGraph object (root)


projectorList_

private Vector projectorList_
list of all projectors

Constructor Detail

ProjectorManager

public ProjectorManager(ModelGraph model)
Creates an instance of this class and sets the model graph root object

Parameters:
model -
Method Detail

getProjector

public Projector getProjector(int index)
Returns a projector by index

Parameters:
index -
Returns:
Projector

get3dProjector

public JavaProjector get3dProjector()
Returns the Java3D projector

Returns:
JavaProjector

addProjector

public void addProjector(Projector p)
Adds a projector to the projector list


numProjectors

public int numProjectors()
Returns the number of projectors in list

Returns:
number

remove

public void remove(Projector proj)
Removes a projector out of the list


remove3DProjector

public void remove3DProjector()
Removes the Java3D projector


removeAll

public void removeAll()
Removes all projectors


reset

public void reset()
Resets the projector manager (=> removeAll)


updateAll

public void updateAll()
Updates all projectors


resizePanelEvent

public void resizePanelEvent(JPanel panel)
GUI (resize the panel of the projector)



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.