public class RubberModel extends AbstractSheet implements ModelLoader.Callback
Modifier and Type | Class and Description |
---|---|
static interface |
RubberModel.OnChangedListener |
AbstractSheet.OnAlphaChangedListener, AbstractSheet.OnLoadListener
DrawingRectangle.Builder, DrawingRectangle.KmlDrawingRectangleImportFactory
Rectangle.MovePointAction, Rectangle.OnMoveListener
Shape.OnBasicLineStyleChangedListener, Shape.OnFillColorChangedListener, Shape.OnPointsChangedListener, Shape.OnStrokeColorChangedListener, Shape.OnStrokeWeightChangedListener, Shape.OnStyleChangedListener
MapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
_file
KEY_BPHA
BASIC_LINE_STYLE_DASHED, BASIC_LINE_STYLE_DOTTED, BASIC_LINE_STYLE_OUTLINED, BASIC_LINE_STYLE_SOLID, STYLE_FILLED_MASK, STYLE_STROKE_MASK
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
Modifier | Constructor and Description |
---|---|
protected |
RubberModel(RubberModelData data) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(RubberModel.OnChangedListener l) |
static RubberModel |
create(RubberModelData data,
ModelInfo info,
Model model) |
protected java.util.List<RubberModel.OnChangedListener> |
getChangeListeners() |
ModelInfo |
getInfo()
Get the high-level model metadata
|
protected java.lang.String |
getMenuPath() |
Model |
getModel()
Get the model data
|
double[] |
getModelDimensions() |
double[] |
getModelDimensions(boolean scaled)
Get the unscaled model dimensions in meters
|
double[] |
getModelRotation()
Get the rotation of the model in degrees (true north)
|
double[] |
getModelScale()
Get the scale for each model dimension (all 1.0 by default)
|
ModelProjection |
getProjection()
Get the user-specified model projection (how x-y-z is mapped)
|
java.lang.String |
getSubModelURI()
Sub-model URI - used for KMZ DAE
|
boolean |
isCancelled() |
protected boolean |
isModelVisible() |
boolean |
isSharedModel() |
protected LoadState |
loadImpl()
Underlying load implementation
|
void |
onLoad(ModelInfo info,
Model model) |
protected void |
onPointsChanged() |
void |
onProgress(int progress) |
void |
removeChangeListener(RubberModel.OnChangedListener l) |
void |
setAltitude(double altitude,
GeoPoint.AltitudeReference ref)
Set the model altitude
|
void |
setModelRotation(double[] rotation) |
void |
setModelScale(double[] scale) |
void |
setRenderer(GLRubberModel renderer)
Deprecated.
This was previously used for hit testing but is no longer needed
|
void |
setSharedModel(boolean shared)
Set whether the underling Model object is shared across different instances
Determines if the model should be disposed on removal
|
addLoadListener, addOnAlphaChangedListener, getAlpha, getCenterMarker, getCenterPoint, getFile, getFillColor, getHeading, getLabelVisibility, getLoadProgress, getLoadState, getPoint, isLoaded, load, removeLoadListener, removeOnAlphaChangedListener, setAlpha, setEditable, setFillColor, setHeading, setLoadProgress, setLoadState, setMenu, setPoints, setPoints
drawCanvas, getAssocType, getCenterMarkerType, getCornerPointType, getCotType, getSideMarkerType, getUIDKey, isSupported, preDrawCanvas, toCot, toGpx, toKml, toKmz, toObjectOf, toOgrGeometry
addOnMovedListener, computeCorners, getAnchorItem, getAnchorMarkers, getArea, getAssociationMarkerIndex, getAvgAltitude, getBounds, getCenter, getChildMapGroup, getColor, getEditable, getFilled, getGeoPoints, getIndexOfPoint, getLength, getLineStyle, getMetaDataPoints, getMirrorWidth, getNumPoints, getPerimeterOrLength, getPointAt, getPoints, getStrokeColor, getTitle, getWidth, hasPoint, isCenterShapeMarker, move, move, onGroupChanged, onItemAdded, onItemRemoved, onMoved, onPointChanged, onSharedPreferenceChanged, onVisibleChanged, removeOnMovedListener, setBasicLineStyle, setCenterMarker, setCenterPoint, setClickable, setFilled, setHeight, setLabelVisibility, setLength, setLineStyle, setMovable, setPoint, setPointNoRecalc, setStrokeColor, setStrokeWeight, setTitle, setWidth, setZOrder, showLines, showLines, showTacticalOverlay, showTacticalOverlay, toggleMetaData
getAssociationAt, getAssociations, setAssociations
addOnBasicLineStyleChangedListener, addOnFillColorChangedListener, addOnPointsChangedListener, addOnStrokeColorChangedListener, addOnStrokeWeightChangedListener, addOnStyleChangedListener, addStyleBits, findTouchPoint, getBasicLineStyle, getClickPoint, getGeoPointMetaData, getIconColor, getStrokeStyle, getStrokeWeight, getStyle, onBasicLineStyleChanged, onFillColorChanged, onStrokeColorChanged, onStrokeStyleChanged, onStrokeWeightChanged, onStyleChanged, removeOnBasicLineStyleChangedListener, removeOnFillColorChangedListener, removeOnPointsChangedListener, removeOnStrokeColorChangedListener, removeOnStrokeWeightChangedListener, removeOnStyleChangedListener, removeStyleBits, setColor, setColor, setFillAlpha, setStrokeStyle, setStyle, setTouchPoint, wrap180
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, getGroup, getHashtags, getHeight, getHitRadius, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getType, getUID, getUniqueMapItemName, getURI, getVisible, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onHeightChanged, onMetadataChanged, onRemoved, onTypeChanged, onVisibilityConditions, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickPoint, setHashtags, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setRadialMenu, setRemarks, setTag, setTouchable, setType, setVisible, setVisible, testOrthoHit, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl
protected RubberModel(RubberModelData data)
protected LoadState loadImpl()
AbstractSheet
loadImpl
in class AbstractSheet
public boolean isCancelled()
isCancelled
in interface ModelLoader.Callback
public void onProgress(int progress)
onProgress
in interface ModelLoader.Callback
public void onLoad(ModelInfo info, Model model)
onLoad
in interface ModelLoader.Callback
public ModelInfo getInfo()
public Model getModel()
public java.lang.String getSubModelURI()
public ModelProjection getProjection()
public double[] getModelDimensions(boolean scaled)
scaled
- True to multiply the dimensions by the scale factorpublic double[] getModelDimensions()
public double[] getModelScale()
public void setModelScale(double[] scale)
public double[] getModelRotation()
public void setModelRotation(double[] rotation)
public void setAltitude(double altitude, GeoPoint.AltitudeReference ref)
altitude
- Altitude in metersref
- Altitude referencepublic void setSharedModel(boolean shared)
shared
- True if sharedpublic boolean isSharedModel()
protected java.lang.String getMenuPath()
getMenuPath
in class DrawingRectangle
protected void onPointsChanged()
onPointsChanged
in class Rectangle
protected boolean isModelVisible()
@Deprecated public void setRenderer(GLRubberModel renderer)
public void addChangeListener(RubberModel.OnChangedListener l)
public void removeChangeListener(RubberModel.OnChangedListener l)
protected java.util.List<RubberModel.OnChangedListener> getChangeListeners()
public static RubberModel create(RubberModelData data, ModelInfo info, Model model)