Public Member Functions | Protected Member Functions | Private Attributes
org.ros.android.view.visualization.shape.BaseShape Class Reference
Inheritance diagram for org.ros.android.view.visualization.shape.BaseShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BaseShape ()
void draw (VisualizationView view, GL10 gl)
Color getColor ()
Transform getTransform ()
void setColor (Color color)
void setTransform (Transform pose)

Protected Member Functions

abstract void drawShape (VisualizationView view, GL10 gl)
void scale (VisualizationView view, GL10 gl)

Private Attributes

Color color
Transform transform

Detailed Description

Defines the getters and setters that are required for all Shape implementors.

Author:
damonkohler@google.com (Damon Kohler)

Definition at line 18 of file BaseShape.java.


Constructor & Destructor Documentation

Definition at line 23 of file BaseShape.java.


Member Function Documentation

Implements org.ros.android.view.visualization.OpenGlDrawable.

Definition at line 28 of file BaseShape.java.

abstract void org.ros.android.view.visualization.shape.BaseShape.drawShape ( VisualizationView  view,
GL10  gl 
) [protected, pure virtual]

To be implemented by children. Draws the shape after the shape's transform and scaling have been applied.

Implemented in org.ros.android.view.visualization.shape.MetricSpacePolygon, org.ros.android.view.visualization.shape.TextShape, and org.ros.android.view.visualization.shape.TriangleFanShape.

Returns:
the Color of this Shape

Implements org.ros.android.view.visualization.shape.Shape.

Definition at line 53 of file BaseShape.java.

Returns:
the Transform that will be applied to this Shape before it is drawn

Implements org.ros.android.view.visualization.shape.Shape.

Definition at line 64 of file BaseShape.java.

void org.ros.android.view.visualization.shape.BaseShape.scale ( VisualizationView  view,
GL10  gl 
) [inline, protected]

Scales the coordinate system.

This is called after transforming the surface according to transform.

Reimplemented in org.ros.android.view.visualization.shape.TextShape, org.ros.android.view.visualization.shape.PixelSpacePoiShape, and org.ros.android.view.visualization.shape.PixelSpacePoseShape.

Definition at line 48 of file BaseShape.java.

Parameters:
colorthe Color of this Shape

Implements org.ros.android.view.visualization.shape.Shape.

Definition at line 59 of file BaseShape.java.

Parameters:
transformthe Transform that will be applied to this Shape before it is drawn

Implements org.ros.android.view.visualization.shape.Shape.

Definition at line 70 of file BaseShape.java.


Member Data Documentation

Definition at line 20 of file BaseShape.java.

Definition at line 21 of file BaseShape.java.


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


android_core
Author(s): Damon Kohler
autogenerated on Thu Jun 6 2019 21:20:07