Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Package Attributes
edu.tum.cs.ias.knowrob.vis.items.Trajectory Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.items.Trajectory:
Inheritance graph
[legend]

List of all members.

Classes

enum  AnimationMode
class  PointPair

Public Member Functions

void addPoint (float x, float y, float z)
void center ()
void draw (Canvas c, int step)
void draw (Canvas c)
void findOscillations ()
float getMaxAbsCoord ()
int getMaxStep ()
double getMinDistance ()
int getNumSteps ()
void getTransitionPoints ()
void merge (Point p1, Point p2)
void mergeLines ()
void mergePoints ()
void mergeRepeats ()
void readAsc (java.io.File matlabAsciiFile) throws NumberFormatException, IOException
void readAsc (java.io.File matlabAsciiFile, int startLine) throws NumberFormatException, IOException
void saveAsc (java.io.File f) throws FileNotFoundException
void setLabels (java.io.File ascFile) throws NumberFormatException, IOException
void smoothLines ()
 Trajectory ()
void updateMerge ()

Public Attributes

AnimationMode animationMode = AnimationMode.BuildUp
int lineColor = 0xffffffff
HashMap< Point, Set< Point > > mergeSet = new HashMap<Point,Set<Point>>()
double minDis
double minDistance = Double.MAX_VALUE
int minStep = 0
float minx
int pointColor = 0xffcbcbcb
Vector< Pointpoints
boolean pointsAsSpheres = true
float pointSize = 0.0f
float range

Protected Member Functions

void resetStats ()
void updateStats (float x, float y, float z)

Protected Attributes

Hashmap2List< Integer, DrawableanimationEffects

Package Attributes

float maxx
float maxy
float maxz
float miny
float minz
int sphereColor = 0x99ffff00
float sphereSize = 120.0f

Detailed Description

2D or 3D Trajectory

Author:
jain

Definition at line 21 of file Trajectory.java.


Constructor & Destructor Documentation

Definition at line 40 of file Trajectory.java.


Member Function Documentation

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.addPoint ( float  x,
float  y,
float  z 
) [inline]

Definition at line 65 of file Trajectory.java.

centers the trajectory around the mean position

Definition at line 504 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.draw ( Canvas  c,
int  step 
) [inline]
Parameters:
cthe canvas to draw to
stepthe animation step/frame to draw (0-based index)

Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.

Definition at line 90 of file Trajectory.java.

Implements edu.tum.cs.ias.knowrob.vis.Drawable.

Definition at line 146 of file Trajectory.java.

Definition at line 460 of file Trajectory.java.

Definition at line 82 of file Trajectory.java.

the maximum frame (0-based index) that can be drawn

Returns:

Implements edu.tum.cs.ias.knowrob.vis.DrawableAnimated.

Definition at line 721 of file Trajectory.java.

Definition at line 198 of file Trajectory.java.

Definition at line 142 of file Trajectory.java.

Definition at line 554 of file Trajectory.java.

Definition at line 213 of file Trajectory.java.

starts from already merged points and tries to merge their successors

Definition at line 331 of file Trajectory.java.

merges points that are close to each other

Definition at line 244 of file Trajectory.java.

looks for small repeats in the trajectory, i.e. small oscillations with only 2 points (z-y-z)

Definition at line 527 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.readAsc ( java.io.File  matlabAsciiFile) throws NumberFormatException, IOException [inline]

Definition at line 168 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.readAsc ( java.io.File  matlabAsciiFile,
int  startLine 
) throws NumberFormatException, IOException [inline]
Parameters:
matlabAsciiFile
startLine0-based line index indicating the first line to consider
Exceptions:
NumberFormatException
IOException

Definition at line 178 of file Trajectory.java.

Definition at line 46 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.saveAsc ( java.io.File  f) throws FileNotFoundException [inline]

saves the point sequence to a Matlab-style ASCII file

Parameters:
f
Exceptions:
FileNotFoundException

Definition at line 155 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.setLabels ( java.io.File  ascFile) throws NumberFormatException, IOException [inline]

Definition at line 70 of file Trajectory.java.

Detects straight lines in the isomap and smoothes them

Definition at line 415 of file Trajectory.java.

updates the mergeSet of the trajectory

Definition at line 401 of file Trajectory.java.

void edu.tum.cs.ias.knowrob.vis.items.Trajectory.updateStats ( float  x,
float  y,
float  z 
) [inline, protected]

Definition at line 52 of file Trajectory.java.


Member Data Documentation

Definition at line 36 of file Trajectory.java.

Definition at line 33 of file Trajectory.java.

Definition at line 32 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 24 of file Trajectory.java.

Definition at line 31 of file Trajectory.java.

Definition at line 25 of file Trajectory.java.

Definition at line 34 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 29 of file Trajectory.java.

Definition at line 28 of file Trajectory.java.

Definition at line 23 of file Trajectory.java.

Definition at line 27 of file Trajectory.java.

Definition at line 26 of file Trajectory.java.

Definition at line 30 of file Trajectory.java.

Definition at line 28 of file Trajectory.java.

Definition at line 26 of file Trajectory.java.


The documentation for this class was generated from the following file:


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Mon Oct 6 2014 01:30:01