|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.IRadar
public class IRadar
Interface for the radar.
Constructor Summary | |
---|---|
IRadar(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
boolean |
add(IGeometry geometry)
|
void |
delete()
|
float |
getBorder()
width of the border See: setBorder |
static long |
getCPtr(IRadar obj)
|
Vector3d |
getObjectScale(IGeometry geometry)
|
Vector3d |
getObjectsScale()
a vector containing relative scale of the object. |
float |
getObjectsSize()
size of the radar objects See: setSize |
int |
getRelativeToScreen()
One or combination of screen anchors. |
Vector3d |
getScale()
The scaling vector (x,y,z). |
float |
getSize()
size of the radar See: setSize |
Vector3d |
getTranslation()
A 3D vector containing the translation in millimeters. |
float |
getTransparency()
transparency The transparency value, where 0 corresponds to a non- transparent radar, 1 to a fully transparent radar. |
boolean |
isPickingEnabled()
true, if enabled, false otherwise See: setPickingEnabled |
boolean |
isVisible()
True if the radar is set visible, false otherwise. |
boolean |
remove(IGeometry geometry)
|
void |
removeAll()
|
boolean |
setBackgroundTexture(String texturePath)
Supported formats are PNG and JPG. |
boolean |
setBackgroundTexture(String textureName,
ImageStruct image)
|
boolean |
setBackgroundTexture(String textureName,
ImageStruct image,
boolean updateable)
|
void |
setBorder(float border)
|
void |
setObjectScale(IGeometry geometry,
float scale)
|
void |
setObjectScale(IGeometry geometry,
Vector3d scale)
|
boolean |
setObjectsDefaultTexture(String texturePath)
The new texture is applied to all radar objects in case of success.Supported formats are PNG and JPG. |
boolean |
setObjectsDefaultTexture(String textureName,
ImageStruct image)
|
boolean |
setObjectsDefaultTexture(String textureName,
ImageStruct image,
boolean updateable)
|
void |
setObjectsScale(float scale)
|
void |
setObjectsScale(Vector3d scale)
|
void |
setObjectsSize(float size)
|
boolean |
setObjectTexture(IGeometry geometry,
String texturePath)
The new texture is applied to all radar objects in case of success.Supported formats are PNG and JPG. |
boolean |
setObjectTexture(IGeometry geometry,
String textureName,
ImageStruct image)
|
boolean |
setObjectTexture(IGeometry geometry,
String textureName,
ImageStruct image,
boolean updateable)
|
void |
setPickingEnabled(boolean enabled)
|
void |
setRelativeToScreen(int anchor)
|
void |
setRelativeToScreen(int anchor,
int flags)
|
void |
setScale(float scale)
|
void |
setScale(Vector3d scale)
|
void |
setSize(float size)
|
void |
setTranslation(Vector3d translation)
|
void |
setTranslation(Vector3d translation,
boolean concat)
|
void |
setTransparency(float transparency)
|
void |
setVisible(boolean visible)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IRadar(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(IRadar obj)
public void delete()
public boolean add(IGeometry geometry)
geometry
- Pointer to the geometry to add
true if the geometry has been added, else falsepublic boolean remove(IGeometry geometry)
geometry
- Pointer to the geometry to remove
true if the geometry has been removed, else falsepublic void removeAll()
public boolean setBackgroundTexture(String texturePath)
texturePath
- Path to the texture image file.
true on successpublic boolean setBackgroundTexture(String textureName, ImageStruct image, boolean updateable)
textureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated.
true on successpublic boolean setBackgroundTexture(String textureName, ImageStruct image)
textureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated.
true on successpublic boolean setObjectsDefaultTexture(String texturePath)
texturePath
- Path to the texture image file.
true on successpublic boolean setObjectsDefaultTexture(String textureName, ImageStruct image, boolean updateable)
textureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated.
true on successpublic boolean setObjectsDefaultTexture(String textureName, ImageStruct image)
textureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated.
true on successpublic boolean setObjectTexture(IGeometry geometry, String texturePath)
geometry
- Geometry for which corresponding object's texture is settexturePath
- Path to the texture image file.
true on successpublic boolean setObjectTexture(IGeometry geometry, String textureName, ImageStruct image, boolean updateable)
geometry
- Geometry for which corresponding object's texture is settextureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated. It should
always be true on Android.
true on successpublic boolean setObjectTexture(IGeometry geometry, String textureName, ImageStruct image)
geometry
- Geometry for which corresponding object's texture is settextureName
- A name that should be assigned to the texture (for reuse).image
- The actual image.updateable
- Flag to signal, that this image will be frequently updated. It should
always be true on Android.
true on successpublic void setObjectsSize(float size)
size
- new size
See: getObjectSizepublic float getObjectsSize()
public Vector3d getObjectsScale()
public void setObjectsScale(Vector3d scale)
scale
- a vector containing relative scale
See: getObjectsScalepublic void setObjectsScale(float scale)
scale
- relative scale
See: getObjectsScalepublic Vector3d getObjectScale(IGeometry geometry)
geometry
- Geometry for which the corresponding object scale is returned
a vector containing relative scale of the object, if geometry is not
found, the scale will be invalid, i.e. (-1,-1,-1).
See: setObjectScalepublic void setObjectScale(IGeometry geometry, Vector3d scale)
geometry
- Geometry that has been added to the radarscale
- a vector containing relative scale
See: getObjectScalepublic void setObjectScale(IGeometry geometry, float scale)
geometry
- Geometry that has been added to the radarscale
- relative scale
See: getObjectScalepublic float getSize()
public void setSize(float size)
size
- new size
See: getSizepublic void setBorder(float border)
border
- width of the border
See: getBorderpublic float getBorder()
public void setRelativeToScreen(int anchor, int flags)
anchor
- one of the screen anchor pointsflags
- additional flags to ignore some geometric transforms, default is
IGeometry::FLAG_MATCH_DISPLAY
See: IGeometry::setRelativeToScreenpublic void setRelativeToScreen(int anchor)
anchor
- one of the screen anchor pointsflags
- additional flags to ignore some geometric transforms, default is
IGeometry::FLAG_MATCH_DISPLAY
See: IGeometry::setRelativeToScreenpublic int getRelativeToScreen()
public void setTranslation(Vector3d translation, boolean concat)
translation
- The 3D translation vector in millimeters.concat
- If true, the new translation is added to the existing one, otherwise
it is overwritten.
See: getTranslationpublic void setTranslation(Vector3d translation)
translation
- The 3D translation vector in millimeters.concat
- If true, the new translation is added to the existing one, otherwise
it is overwritten.
See: getTranslationpublic Vector3d getTranslation()
public void setScale(Vector3d scale)
scale
- Scaling vector (x,y,z).
See: getScalepublic void setScale(float scale)
scale
- scale factor for all dimensions
See: getScalepublic Vector3d getScale()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- True if the radar should be visible, false if it should be hidden.
See: isVisiblepublic void setTransparency(float transparency)
transparency
- The transparency value, where 0 corresponds to a non-transparent
radar, 1 to a fully transparent radar.
See: getTransparency setVisible and getIsVisiblepublic float getTransparency()
public void setPickingEnabled(boolean enabled)
enabled
- true to enable picking of the radar, false to disable it.
See: isPickingEnabledpublic boolean isPickingEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |