public class VehicleModelInfo extends java.lang.Object implements ModelLoader.Callback
Modifier and Type | Field and Description |
---|---|
java.lang.String |
category |
static java.util.Comparator<VehicleModelInfo> |
COMP_NAME |
java.io.File |
file |
java.lang.String |
fileName |
java.lang.String |
name |
PointD |
offset |
Constructor and Description |
---|
VehicleModelInfo(java.lang.String category,
java.lang.String name,
java.io.File file) |
VehicleModelInfo(java.lang.String category,
java.lang.String name,
java.io.File file,
PointD offset) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
android.graphics.Bitmap |
getCachedIcon()
Get the cached vehicle icon
|
java.io.File |
getCachedIconFile()
Get the file this vehicle icon uses in cache
|
PendingDrawable |
getIcon()
Get a drawable icon for this vehicle
Note: The drawable returned may show a generic placeholder icon while
the real vehicle icon is busy being generated.
|
VehicleModelCaptureRequest |
getIconRequest()
Get the capture request used to create an icon for this vehicle
|
java.lang.String |
getIconURI()
Get a URI for this vehicle's icon
|
ModelInfo |
getInfo() |
Model |
getModel() |
java.util.List<android.graphics.PointF> |
getOutline(java.lang.Runnable cb)
Get points which make up an outline of this vehicle
|
java.lang.String |
getUID() |
boolean |
isCancelled() |
void |
onLoad(ModelInfo info,
Model model) |
void |
onProgress(int progress) |
java.lang.String |
toString() |
public static final java.util.Comparator<VehicleModelInfo> COMP_NAME
public final java.io.File file
public final java.lang.String category
public final java.lang.String name
public final java.lang.String fileName
public final PointD offset
public VehicleModelInfo(java.lang.String category, java.lang.String name, java.io.File file, PointD offset)
public VehicleModelInfo(java.lang.String category, java.lang.String name, java.io.File file)
public void dispose()
public java.lang.String getUID()
public PendingDrawable getIcon()
Drawable.setCallback(Drawable.Callback)
to listen for the update
event.public VehicleModelCaptureRequest getIconRequest()
public java.io.File getCachedIconFile()
public android.graphics.Bitmap getCachedIcon()
public java.lang.String getIconURI()
public ModelInfo getInfo()
public Model getModel()
public java.util.List<android.graphics.PointF> getOutline(java.lang.Runnable cb)
cb
- Callback to fire once points are finished loading
(if they need to be loaded)public void onLoad(ModelInfo info, Model model)
onLoad
in interface ModelLoader.Callback
public void onProgress(int progress)
onProgress
in interface ModelLoader.Callback
public boolean isCancelled()
isCancelled
in interface ModelLoader.Callback
public java.lang.String toString()
toString
in class java.lang.Object