motris.model
Class Actor

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.model.Actor
All Implemented Interfaces:
ParameterizedObject, ParameterizedObject.ParameterChangedListener

public class Actor
extends ParameterizedObjectAdaptor
implements ParameterizedObject.ParameterChangedListener

Represents a 3-dimensional, trackable model

Author:
preuter, dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
 int actorGroupNumber
           
 int actorNumber
           
private  boolean addShadowEdges
           
private  State currentState
           
private  int edgeParentCollisionTreatment
           
private  ImageGeometry imageGeometry
           
private  boolean needUpdate
           
private  int numofrigidmodels
           
 RigidModel root
           
private  SceneGeometry sceneGeometry
           
 int XTrackReferenceNumber
           
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
Actor(ParameterSet _param, java.lang.String inputFileName, ParameterSet defaultActorParams)
           
 
Method Summary
private  void calculateDerivatives()
           
 java.lang.String getActorBasename()
           
 ImageGeometry getImageGeometry(Camera cam, boolean _needUpdate)
           
 void getMatrixArrays(DoubleMatrix[] toGlobals, DoubleMatrix[][] firstDerivation, DoubleMatrix[][] secondDerivation)
           
 int getNumOfDOF()
           
 int getNumOfPartialModels()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 ParameterSet getParameters(boolean forSave)
           
 Double2Vector getPosition()
          Used by GUI to position Actor by mouse
 SceneGeometry getSceneGeometry(Camera cam, boolean _needUpdate)
           
 State getState()
           
 void parameterChanged(ParameterizedObject source)
           
 void setAngle(double angle)
          Used by GUI to position Actor by mouse
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 void setPosition(double xpos, double ypos)
          Used by GUI to position Actor by mouse
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, parameterEdited, removeParameterChangedListener
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

public RigidModel root

currentState

private State currentState

edgeParentCollisionTreatment

private int edgeParentCollisionTreatment

numofrigidmodels

private int numofrigidmodels

addShadowEdges

private boolean addShadowEdges

needUpdate

private boolean needUpdate

sceneGeometry

private SceneGeometry sceneGeometry

imageGeometry

private ImageGeometry imageGeometry

XTrackReferenceNumber

public int XTrackReferenceNumber

actorNumber

public int actorNumber

actorGroupNumber

public int actorGroupNumber
Constructor Detail

Actor

public Actor(ParameterSet _param,
             java.lang.String inputFileName,
             ParameterSet defaultActorParams)
Method Detail

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Overrides:
getParameters in class ParameterizedObjectAdaptor

getParameters

public ParameterSet getParameters(boolean forSave)

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject
Overrides:
setParameters in class ParameterizedObjectAdaptor

getState

public State getState()

getActorBasename

public java.lang.String getActorBasename()

setPosition

public void setPosition(double xpos,
                        double ypos)
Used by GUI to position Actor by mouse

Parameters:
xpos - in global scene coordinates
ypos - in global scene coordinates

getPosition

public Double2Vector getPosition()
Used by GUI to position Actor by mouse

Returns:
Actor origin in global scene coordinates

setAngle

public void setAngle(double angle)
Used by GUI to position Actor by mouse

Parameters:
angle - in DEGREES

getNumOfPartialModels

public int getNumOfPartialModels()

getNumOfDOF

public int getNumOfDOF()

calculateDerivatives

private void calculateDerivatives()

parameterChanged

public void parameterChanged(ParameterizedObject source)
Specified by:
parameterChanged in interface ParameterizedObject.ParameterChangedListener

getMatrixArrays

public void getMatrixArrays(DoubleMatrix[] toGlobals,
                            DoubleMatrix[][] firstDerivation,
                            DoubleMatrix[][] secondDerivation)

getImageGeometry

public ImageGeometry getImageGeometry(Camera cam,
                                      boolean _needUpdate)

getSceneGeometry

public SceneGeometry getSceneGeometry(Camera cam,
                                      boolean _needUpdate)