de.steeringbehaviors.creator.editor
Class GeometrieObject

java.lang.Object
  extended by de.steeringbehaviors.creator.editor.GeometrieObject

public class GeometrieObject
extends java.lang.Object

class GeometrieObject Implements all the functions for a viewable object in the editor canvas


Field Summary
protected  double m_angle
          The rotation-angle of the object
protected  double m_farthestX
          Value of the farthest x point of the shape
protected  double m_farthestY
          Value of the farthest y point of the shape
protected  double m_localX
          The x component of the local x-axis
protected  double m_localY
          The y component of the local x-axis
protected  Geometrie m_objectDescription
          Geometrie which describes the object
protected  Geometrie m_rotationNode
          Geometrie which describes the rotation node
protected  Geometrie m_scaleNode
          Geometrie which describes the scale node
protected  double m_scaleNodeX
          The x position of the scale node
protected  double m_scaleNodeY
          The y position of the scale node
protected  double m_scaleX
          The scale factor in x-direction
protected  double m_scaleY
          The scale factor in y-direction
protected  boolean m_selected
          Flag to set the object selected
protected  Geometrie m_selection
          Geometrie which describes the selection box
protected  int m_type
          Type of the object
protected  Geometrie m_velocityNode
          Geometrie which describes a node to change the velocity with the mouse.
protected  Geometrie m_velocityVector
          Geometrie which describes the velocity vector
protected  VectorShape m_velocityVectorShape
          A shape of type RenderInfo which describes the vector
protected  double m_velX
          If type is vehicle, the x component of the velocity
protected  double m_velY
          If type is vehicle, the y component of the velocity
protected  double m_x
          x-position of the object
protected  Geometrie m_xAxis
          The x axis
protected  Geometrie m_xAxisLabel
          The x axis label
protected  InfoBox m_xAxisLabelShape
          The InfoBox object for the x axis label
protected  VectorShape m_xAxisShape
          The x axis vector shape
protected  double m_y
          y-position of the object
protected  Geometrie m_yAxis
          The y axis
protected  Geometrie m_yAxisLabel
          The y axis label
protected  InfoBox m_yAxisLabelShape
          The InfoBox object for the y axis label
protected  VectorShape m_yAxisShape
          The y axis vector shape
static int OBSTACLE
           
static int VEHICLE
           
 
Method Summary
 java.lang.Object clone()
          Clones the GeometrieObject object
 double getFarthestX()
          Returns the x value of the farthest x point of the shape
 double getFarthestY()
          Returns the y value of the farthest y point of the shape
 Geometrie getObjectDescription()
          Returns the description of the object
 Geometrie getRotationNode()
          Returns the description of the rotation node
 Geometrie getScaleNode()
          Returns the description of the scale node
 Geometrie getSelection()
          Returns the selection geometrie
 Geometrie getVelocityNode()
          Returns the description of the velocity node
 Geometrie getVelocityVector()
          Returns the description of the velocity vector
 java.util.Vector getVisibleDescriptions()
          Returns all actually visible descriptions
 void setAttribute(java.lang.String name, java.lang.String value)
          Sets an attribute
 void setObjectDescription(Geometrie description)
          Sets the description of the object
 void setSelected(boolean select)
          Sets the object selected
 void update()
          Updates all objects, its descriptions and attributes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_objectDescription

protected Geometrie m_objectDescription
Geometrie which describes the object


m_selection

protected Geometrie m_selection
Geometrie which describes the selection box


m_x

protected double m_x
x-position of the object


m_y

protected double m_y
y-position of the object


m_selected

protected boolean m_selected
Flag to set the object selected


m_type

protected int m_type
Type of the object


m_velocityVector

protected Geometrie m_velocityVector
Geometrie which describes the velocity vector


m_velocityVectorShape

protected VectorShape m_velocityVectorShape
A shape of type RenderInfo which describes the vector


m_velocityNode

protected Geometrie m_velocityNode
Geometrie which describes a node to change the velocity with the mouse.


m_velX

protected double m_velX
If type is vehicle, the x component of the velocity


m_velY

protected double m_velY
If type is vehicle, the y component of the velocity


m_scaleNode

protected Geometrie m_scaleNode
Geometrie which describes the scale node


m_rotationNode

protected Geometrie m_rotationNode
Geometrie which describes the rotation node


m_localX

protected double m_localX
The x component of the local x-axis


m_localY

protected double m_localY
The y component of the local x-axis


m_angle

protected double m_angle
The rotation-angle of the object


m_scaleX

protected double m_scaleX
The scale factor in x-direction


m_scaleY

protected double m_scaleY
The scale factor in y-direction


m_farthestX

protected double m_farthestX
Value of the farthest x point of the shape


m_farthestY

protected double m_farthestY
Value of the farthest y point of the shape


m_scaleNodeX

protected double m_scaleNodeX
The x position of the scale node


m_scaleNodeY

protected double m_scaleNodeY
The y position of the scale node


m_xAxis

protected Geometrie m_xAxis
The x axis


m_yAxis

protected Geometrie m_yAxis
The y axis


m_xAxisShape

protected VectorShape m_xAxisShape
The x axis vector shape


m_yAxisShape

protected VectorShape m_yAxisShape
The y axis vector shape


m_xAxisLabel

protected Geometrie m_xAxisLabel
The x axis label


m_yAxisLabel

protected Geometrie m_yAxisLabel
The y axis label


m_xAxisLabelShape

protected InfoBox m_xAxisLabelShape
The InfoBox object for the x axis label


m_yAxisLabelShape

protected InfoBox m_yAxisLabelShape
The InfoBox object for the y axis label


VEHICLE

public static final int VEHICLE
See Also:
Constant Field Values

OBSTACLE

public static final int OBSTACLE
See Also:
Constant Field Values
Method Detail

setObjectDescription

public void setObjectDescription(Geometrie description)
Sets the description of the object

Parameters:
description - Geometrie which describes the object

setSelected

public void setSelected(boolean select)
Sets the object selected

Parameters:
select - Selection of the object

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Sets an attribute

Parameters:
name - Name of the attribute
value - Value of the attribute

getFarthestX

public double getFarthestX()
Returns the x value of the farthest x point of the shape

Returns:
The farthest x value

getFarthestY

public double getFarthestY()
Returns the y value of the farthest y point of the shape

Returns:
The farthest y value

getSelection

public Geometrie getSelection()
Returns the selection geometrie

Returns:
Geometrie of the selection object

getObjectDescription

public Geometrie getObjectDescription()
Returns the description of the object

Returns:
Geometrie which describes the main object

getVelocityNode

public Geometrie getVelocityNode()
Returns the description of the velocity node

Returns:
Geometrie which describes the velocity node

getVelocityVector

public Geometrie getVelocityVector()
Returns the description of the velocity vector

Returns:
Geometrie which describes the velocity vector

getScaleNode

public Geometrie getScaleNode()
Returns the description of the scale node

Returns:
Geometrie which describes the scale node

getRotationNode

public Geometrie getRotationNode()
Returns the description of the rotation node

Returns:
Geometrie which describes the rotation node

getVisibleDescriptions

public java.util.Vector getVisibleDescriptions()
Returns all actually visible descriptions

Returns:
Vector with all descriptions of the visible objects

clone

public java.lang.Object clone()
Clones the GeometrieObject object

Overrides:
clone in class java.lang.Object
Returns:
The cloned GeometrieObject

update

public void update()
Updates all objects, its descriptions and attributes