|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.jni.IMetaioSDK
public class IMetaioSDK
The common interface for all platforms. LicenseThis code is the property of the metaio GmbH (www.metaio.com). It is absolutely not free to be used, copied or be modified without prior written permission from metaio GmbH. The code is provided "as is" with no expressed or implied warranty. The author accepts no liability if it causes any damage to your computer, or any harm at all.
Constructor Summary | |
---|---|
IMetaioSDK(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
IBillboardGroup |
createBillboardGroup(float nearValue,
float farValue)
Calling this function the first time will create a billboard group. |
IGeometry |
createGeometry(String filepath)
This function loads a 3D geometry from the given file. |
IGeometry |
createGeometryFromImage(String filepath)
This function loads an image from a given file and places it on a generated 3D-plane. |
IGeometry |
createGeometryFromImage(String filepath,
boolean displayAsBillboard)
This function loads an image from a given file and places it on a generated 3D-plane. |
IGeometry |
createGeometryFromMovie(String filepath)
This function loads a movie from a given file and places it on a generated 3d-plane. |
IGeometry |
createGeometryFromMovie(String filepath,
boolean transparentMovie)
This function loads a movie from a given file and places it on a generated 3d-plane. |
IGeometry |
createGeometryFromMovie(String filepath,
boolean transparentMovie,
boolean displayAsBillboard)
This function loads a movie from a given file and places it on a generated 3d-plane. |
IRadar |
createRadar()
The radar object is destroyed with the metaio SDK destructor. |
IRadar |
createRadar(float size)
The radar object is destroyed with the metaio SDK destructor. |
void |
delete()
|
Vector3d |
get3DPositionFromScreenCoordinates(int coordinateSystemID,
Vector2d point)
Note: There must be a model loaded for the specific coordinateSystemID, otherwise the function will only return (0,0,0) |
void |
getCameraParameters(Vector2di imageResolution,
Vector2d focalLengths,
Vector2d principalPoint)
|
int |
getCoordinateSystemID(String name)
In the XML configuration each coordinate system can have a name tag, the |
String |
getCoordinateSystemName(int coordinateSystemID)
Use this to find out the given name of a coordinate system according to it's ID. |
TrackingValues |
getCosOffset(int coordinateSystemID)
|
boolean |
getCosRelation(int baseCos,
int relativeCos,
TrackingValues relation)
This function computes the spatial relationship between the two given coordinate systems. |
static long |
getCPtr(IMetaioSDK obj)
|
boolean |
getFreezeTracking()
This function will return the state set by setFreezeTracking();true if the tracking currently frozen. |
IGeometry |
getGeometryFromScreenCoordinates(int x,
int y)
|
IGeometry |
getGeometryFromScreenCoordinates(int x,
int y,
boolean useTriangleTest)
|
IGeometryVector |
getLoadedGeometries()
This function returns a vector containing pointers to all loaded 3D geometries. |
int |
getNumberOfDefinedCoordinateSystems()
This function returns the number of coordinate systems that are currently defined.The number of defined coordinate systems. |
int |
getNumberOfValidCoordinateSystems()
This function returns the number of coordinate systems that are currently tracked, i.e. have a valid pose.The number of tracked coordinate systems. |
void |
getProjectionMatrix(float[] matrix,
boolean rightHanded)
The values can be used to set the OpenGL projection matrix according to the camera parameters of the current camera.Currently you should use the left handed variant to work in conjunction with getTrackingValues(float* matrix) as in the android custom renderer example. |
ISensorsComponent |
getRegisteredSensorsComponent()
pointer to the sensors component or NULL See: metaio::ISensorsComponent registerSensorsComponent |
float |
getRenderingFrameRate()
The methods returns the rendering performance as number of frames per second.The mean rendering performance in frames per second over the last 25 frames. |
Vector2di |
getRenderSize()
A vector containing viewport size (x=width, y=height) See: resizeRenderer |
Vector2d |
getScreenCoordinatesFrom3DPosition(int coordinateSystemID,
Vector3d point)
|
ESCREEN_ROTATION |
getScreenRotation()
See: setScreenRotationESCREEN_ROTATIONScreen rotation |
ImageStruct |
getScreenshot()
Note, you need to free the memory assigned to ImageStruct. |
String |
getSensorType()
The type of the currently loaded tracking sensor. |
float |
getTrackingFrameRate()
The methods returns the image processing performance as number of frames per second.The mean image processing performance in frames per second over the last 25 frames. |
TrackingValuesVector |
getTrackingValues()
Returned tracking values may have a state Found, Tracking and Lost. |
TrackingValuesVector |
getTrackingValues(boolean rotate)
Returned tracking values may have a state Found, Tracking and Lost. |
TrackingValues |
getTrackingValues(int coordinateSystemID)
Returned tracking values may have a state Found, Tracking and Lost. |
TrackingValues |
getTrackingValues(int coordinateSystemID,
boolean rotate)
Returned tracking values may have a state Found, Tracking and Lost. |
void |
getTrackingValues(int coordinateSystemID,
float[] matrix)
The provided matrix is compatible with the OpenGL ModelView matrix (if you specify rightHanded=true) such that rendered geometry will e.g. be placed on a marker or markerless tracking target. |
void |
getTrackingValues(int coordinateSystemID,
float[] matrix,
boolean preMultiplyWithStandardViewMatrix)
The provided matrix is compatible with the OpenGL ModelView matrix (if you specify rightHanded=true) such that rendered geometry will e.g. be placed on a marker or markerless tracking target. |
void |
getTrackingValues(int coordinateSystemID,
float[] matrix,
boolean preMultiplyWithStandardViewMatrix,
boolean rightHanded)
The provided matrix is compatible with the OpenGL ModelView matrix (if you specify rightHanded=true) such that rendered geometry will e.g. be placed on a marker or markerless tracking target. |
String |
getVersion()
version string |
TrackingValues |
invertPose(TrackingValues inPose)
This can be interpreted as swapping the roles of the coordinate systems of the camera and the tracking target. |
boolean |
loadEnvironmentMap(String folder)
This feature can be used to attach a reflection map to an object.The six image files contained in the provided folder need to have the following names: "positive_x.png", "positive_y.png", "positive_z.png", "negative_x.png", "negative_y.png", "negative_z.png". |
IGeometry |
loadImageBillboard(String texturePath)
Supported image formats are PNG, JPG and BMP. |
IGeometry |
loadImageBillboard(String textureName,
ImageStruct image)
|
void |
pause()
Use this to pause the processing whenever application switches to another view or goes to the background See: resume |
void |
pauseAllMovieTextures()
|
void |
pauseSensors()
Call resumeSensors to start the required sensors again. |
void |
pauseTracking()
Use this to pause tracking while continuing rendering See: resumeTracking |
void |
registerCallback(IMetaioSDKCallback callback)
|
void |
registerSensorsComponent(ISensorsComponent sensors)
Pass NULL to de-register sensors component. |
void |
render()
This method is usually called from the application loop. |
void |
requestCameraImage()
The image will have the dimensions of the current capture resolution. |
void |
requestCameraImage(String filepath,
int width,
int height)
The result is notified in IMetaioSDKCallback.onCameraImageSaved. |
void |
requestScreenshot()
|
void |
requestScreenshot(long frameBuffer)
|
void |
requestScreenshot(long frameBuffer,
long renderBuffer)
The screenshot will be returned in IMetaioSDKCallback::onScreenshot as a new ImageStruct object in the next render cycle. |
void |
requestScreenshot(String filepath)
|
void |
requestScreenshot(String filepath,
long frameBuffer)
|
void |
requestScreenshot(String filepath,
long frameBuffer,
long renderBuffer)
Currently JPG and PNG file formats are supported. |
void |
resizeRenderer(int width,
int height)
|
void |
resume()
Use this to resume the processing that was previously paused See: pause |
void |
resumeSensors()
See: pauseSensors |
void |
resumeTracking()
Use this to resume tracking that is paused before See: pauseTracking |
int |
saveScreenshot(String filename)
Currently JPG and PNG file types are supported. |
String |
sensorCommand(String command)
Some times a sensor need a more fine grained control, e.g. for Stereo- SLAM initialization it is helpful to specify an output file, without needing to re-generate XML file. |
String |
sensorCommand(String command,
String parameter)
Some times a sensor need a more fine grained control, e.g. for Stereo- SLAM initialization it is helpful to specify an output file, without needing to re-generate XML file. |
boolean |
setCameraParameters(String calibrationFile)
The provided XML file should be structured as follows: |
void |
setCosOffset(int coordinateSystemID,
TrackingValues pose)
|
void |
setFreezeTracking(boolean freeze)
Freezes or un-freezes the current tracking. |
void |
setImage(ImageStruct image)
This method is used to set the image source for display and (optical) tracking. |
Vector2di |
setImage(String source)
(formerly named: setImageSource)This method is used to set the image source for display and (optical) tracking. |
void |
setLLAObjectRenderingLimits(int nearLimit,
int farLimit)
The near limit will ensure that all geometries closer than this limit are pushed back to the near limit. |
void |
setRendererClippingPlaneLimits(float nearCP,
float farCP)
Note: This should be called after initializeRenderer() on Android. |
void |
setRendererFrameBuffers(long frameBuffer,
long renderBuffer)
|
void |
setScreenRotation(ESCREEN_ROTATION rotation)
natural orientationThis should be called on Android if the Activity should support orientations other than Landscape See: getScreenRotationESCREEN_ROTATION |
void |
setSeeThrough(boolean seeThrough)
This function can be used to turn off the rendering of the camera image. |
boolean |
setTrackingConfiguration(String trackingConfig)
This function configures the tracking system and the coordinate systems based on an XML file or string input. |
boolean |
setTrackingConfiguration(String trackingConfig,
boolean readFromFile)
This function configures the tracking system and the coordinate systems based on an XML file or string input. |
Vector2di |
startCamera(int index)
Start camera with the given capture resolution (optional). |
Vector2di |
startCamera(int index,
long width)
Start camera with the given capture resolution (optional). |
Vector2di |
startCamera(int index,
long width,
long height)
Start camera with the given capture resolution (optional). |
Vector2di |
startCamera(int index,
long width,
long height,
int downsample)
Start camera with the given capture resolution (optional). |
void |
startInstantTracking(String trackingMode)
It will instantly start creating a tracking configuration based on camera image and available device sensors if requested. |
void |
startInstantTracking(String trackingMode,
String outFile)
It will instantly start creating a tracking configuration based on camera image and available device sensors if requested. |
void |
stopCamera()
Use this to stop capturing on the current camera. |
boolean |
unloadGeometry(IGeometry geometry)
This function unloads a geometry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMetaioSDK(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(IMetaioSDK obj)
public void delete()
public String getVersion()
public boolean setTrackingConfiguration(String trackingConfig, boolean readFromFile)
trackingConfig
- Fully qualified path of the XML file that should be loaded. If a ZIP
is specified it will first try to load "TrackingData_ML3D.xml" from
the ZIP and if that isn't successful it'll try to load any other xml
from the ZIP. It can also be one of the special strings to load
predefined configurations, or string containing XML configuration.readFromFile
- if set to false, it will interpret trackingConfig as tracking-
configuration XML
true if successful, false otherwise.public boolean setTrackingConfiguration(String trackingConfig)
trackingConfig
- Fully qualified path of the XML file that should be loaded. If a ZIP
is specified it will first try to load "TrackingData_ML3D.xml" from
the ZIP and if that isn't successful it'll try to load any other xml
from the ZIP. It can also be one of the special strings to load
predefined configurations, or string containing XML configuration.readFromFile
- if set to false, it will interpret trackingConfig as tracking-
configuration XML
true if successful, false otherwise.public void startInstantTracking(String trackingMode, String outFile)
trackingMode
- one of the supported tracking modesoutFile
- Output file to save the result, if empty, it will save it to a
temporary file. The saved file path is returned in IMetaioSDKCallback.onInstantTrackingEvent callback.
See: IMetaioSDKCallback.onInstantTrackingEventpublic void startInstantTracking(String trackingMode)
trackingMode
- one of the supported tracking modesoutFile
- Output file to save the result, if empty, it will save it to a
temporary file. The saved file path is returned in IMetaioSDKCallback.onInstantTrackingEvent callback.
See: IMetaioSDKCallback.onInstantTrackingEventpublic boolean setCameraParameters(String calibrationFile)
calibrationFile
- Fully qualified path to the calibration file.
True if successful, false otherwise.public void getCameraParameters(Vector2di imageResolution, Vector2d focalLengths, Vector2d principalPoint)
imageResolution
- The resolution (width and height) of the camera image in pixels.focalLengths
- The horizontal and vertical focal lengths of the camera in pixels.principalPoint
- The principal point of the camera in pixels.public void render()
public Vector2di setImage(String source)
source
- A fully qualified path to an image file.
Resolution of the image if loaded successfully, else a null vector.public void setImage(ImageStruct image)
image
- the image structure containing the image datapublic Vector2di startCamera(int index, long width, long height, int downsample)
index
- The index of the camera to start (zero-based).width
- The desired width of the camera frame (default=320).height
- The desired height of the camera frame (default=240).downsample
- downsampling factor for the tracking image(default=1), e.g. 2 or 3.
Only valid for Android.
Actual camera frame resolution (x = width, y = height) on success,
else a null vector.
See: stopCamerapublic Vector2di startCamera(int index, long width, long height)
index
- The index of the camera to start (zero-based).width
- The desired width of the camera frame (default=320).height
- The desired height of the camera frame (default=240).downsample
- downsampling factor for the tracking image(default=1), e.g. 2 or 3.
Only valid for Android.
Actual camera frame resolution (x = width, y = height) on success,
else a null vector.
See: stopCamerapublic Vector2di startCamera(int index, long width)
index
- The index of the camera to start (zero-based).width
- The desired width of the camera frame (default=320).height
- The desired height of the camera frame (default=240).downsample
- downsampling factor for the tracking image(default=1), e.g. 2 or 3.
Only valid for Android.
Actual camera frame resolution (x = width, y = height) on success,
else a null vector.
See: stopCamerapublic Vector2di startCamera(int index)
index
- The index of the camera to start (zero-based).width
- The desired width of the camera frame (default=320).height
- The desired height of the camera frame (default=240).downsample
- downsampling factor for the tracking image(default=1), e.g. 2 or 3.
Only valid for Android.
Actual camera frame resolution (x = width, y = height) on success,
else a null vector.
See: stopCamerapublic void stopCamera()
public void pause()
public void resume()
public void pauseTracking()
public void resumeTracking()
public void resizeRenderer(int width, int height)
width
- width of the view port in pixelsheight
- width of the view port in pixels
See: getRenderSizepublic Vector2di getRenderSize()
public void setScreenRotation(ESCREEN_ROTATION rotation)
rotation
- screen rotationpublic ESCREEN_ROTATION getScreenRotation()
public void requestCameraImage()
public void requestCameraImage(String filepath, int width, int height)
filepath
- file path to write file, currently only JPEG is supportedwidth
- Desired width of the camera imageheight
- Desired height of the camera image
See: registerCallback to register a callback.public void requestScreenshot(long frameBuffer, long renderBuffer)
frameBuffer
- Frame Buffer (iOS only)renderBuffer
- Render Buffer (iOS only)
See: IMetaioSDKCallback::onScreenshot setRendererFrameBufferspublic void requestScreenshot(long frameBuffer)
public void requestScreenshot()
public void requestScreenshot(String filepath, long frameBuffer, long renderBuffer)
filepath
- Filepath where screenshot should be saved, or empty string to use
temporary directoryframeBuffer
- Frame Buffer (iOS only)renderBuffer
- Render Buffer (iOS only)
See: IMetaioSDKCallback::onScreenshot setRendererFrameBufferspublic void requestScreenshot(String filepath, long frameBuffer)
public void requestScreenshot(String filepath)
public void setRendererFrameBuffers(long frameBuffer, long renderBuffer)
frameBuffer
- the default framebufferrenderBuffer
- the default renderBufferpublic float getRenderingFrameRate()
public float getTrackingFrameRate()
public void getTrackingValues(int coordinateSystemID, float[] matrix, boolean preMultiplyWithStandardViewMatrix, boolean rightHanded)
coordinateSystemID
- The (one-based) index of the coordinate system, the values should be
retrieved for.matrix
- An array that will carry 16 float values forming a (4x4) ModelView
matrix after execution.preMultiplyWithStandardViewMatrix
- A boolean parameter specifying if the matrix should be pre-multiplied
with metaio's standard ViewMatrix to finally form a ModelView matrix
for OpenGL.rightHanded
- True to get a matrix for a right-handed coordinate system, false for a
left-handed coordinate system.public void getTrackingValues(int coordinateSystemID, float[] matrix, boolean preMultiplyWithStandardViewMatrix)
coordinateSystemID
- The (one-based) index of the coordinate system, the values should be
retrieved for.matrix
- An array that will carry 16 float values forming a (4x4) ModelView
matrix after execution.preMultiplyWithStandardViewMatrix
- A boolean parameter specifying if the matrix should be pre-multiplied
with metaio's standard ViewMatrix to finally form a ModelView matrix
for OpenGL.rightHanded
- True to get a matrix for a right-handed coordinate system, false for a
left-handed coordinate system.public void getTrackingValues(int coordinateSystemID, float[] matrix)
coordinateSystemID
- The (one-based) index of the coordinate system, the values should be
retrieved for.matrix
- An array that will carry 16 float values forming a (4x4) ModelView
matrix after execution.preMultiplyWithStandardViewMatrix
- A boolean parameter specifying if the matrix should be pre-multiplied
with metaio's standard ViewMatrix to finally form a ModelView matrix
for OpenGL.rightHanded
- True to get a matrix for a right-handed coordinate system, false for a
left-handed coordinate system.public TrackingValues getTrackingValues(int coordinateSystemID, boolean rotate)
rotate
- if the tracking values should be rotated according to screen rotation
See: metaio::TrackingValues metaio::IMetaioSDKCallback.onTrackingEventcoordinateSystemID
- The (one-based) index of the coordinate system, the values should be
retrieved for.
A TrackingValues object containing the tracking values for the desired
coordinate system.public TrackingValues getTrackingValues(int coordinateSystemID)
rotate
- if the tracking values should be rotated according to screen rotation
See: metaio::TrackingValues metaio::IMetaioSDKCallback.onTrackingEventcoordinateSystemID
- The (one-based) index of the coordinate system, the values should be
retrieved for.
A TrackingValues object containing the tracking values for the desired
coordinate system.public TrackingValuesVector getTrackingValues(boolean rotate)
rotate
- if the tracking values should be rotated according to screen rotation
In order to get informed about tracking changes, use the
onTrackingEvent callback.
See: metaio::TrackingValues metaio::IMetaioSDKCallback.onTrackingEventA vector containing the TrackingValues.public TrackingValuesVector getTrackingValues()
rotate
- if the tracking values should be rotated according to screen rotation
In order to get informed about tracking changes, use the
onTrackingEvent callback.
See: metaio::TrackingValues metaio::IMetaioSDKCallback.onTrackingEventA vector containing the TrackingValues.public boolean getCosRelation(int baseCos, int relativeCos, TrackingValues relation)
baseCos
- The (one-based) index of the coordinate system to measure from.relativeCos
- The (one-based) index of the coordinate system to measure to.relation
- Relation (i.e. transformation) between the given baseCOS and the
relativeCOS
True if the relation could be computed, false otherwise (e.g. if one
coordinate system has no pose).public void setCosOffset(int coordinateSystemID, TrackingValues pose)
coordinateSystemID
- The (one-based) index of the desired coordinate system.pose
- A pose consisting of a 3D translation and a 3D rotation which should
act as offset.public TrackingValues getCosOffset(int coordinateSystemID)
coordinateSystemID
- The (one-based) index of the desired coordinate system.
See: metaio::TrackingValuesa pose consisting of a 3D translation and a 3D rotation which should
act as offset.public TrackingValues invertPose(TrackingValues inPose)
inPose
- TrackingValues containing pose to invert.
TrackingValues with inverted pose.public void getProjectionMatrix(float[] matrix, boolean rightHanded)
matrix
- An array that will carry 16 float values forming a (4x4) projection
matrix after execution. The matrix is stored as column major.rightHanded
- True to get a projection matrix for a right handed coordinate system
false for a left handed coordinate system.public int getNumberOfValidCoordinateSystems()
public int getNumberOfDefinedCoordinateSystems()
public void setSeeThrough(boolean seeThrough)
seeThrough
- If true, the camera image is not displayed, otherwise it is drawn as
by default.public void setFreezeTracking(boolean freeze)
freeze
- True to freeze the tracking, false to un-freeze it.public boolean getFreezeTracking()
public ImageStruct getScreenshot()
public int saveScreenshot(String filename)
filename
- The filename where to save the screenshot.
Returns 0 if saving was successful.public String getSensorType()
public void setRendererClippingPlaneLimits(float nearCP, float farCP)
nearCP
- The distance of the near clipping plane in millimeters.farCP
- The distance of the far clipping plane in millimeters.public IGeometry createGeometry(String filepath)
filepath
- Path to the geometry file to load.
Pointer to the geometry. Null pointer if not successful.public IGeometry createGeometryFromImage(String filepath, boolean displayAsBillboard)
filepath
- Path to the image file.displayAsBillboard
- true if the plane should be rendered as a billboard (always facing
camera)
Pointer to the geometry. Null pointer if not successful.public IGeometry createGeometryFromImage(String filepath)
filepath
- Path to the image file.displayAsBillboard
- true if the plane should be rendered as a billboard (always facing
camera)
Pointer to the geometry. Null pointer if not successful.public IGeometry createGeometryFromMovie(String filepath, boolean transparentMovie, boolean displayAsBillboard)
filepath
- Path to the movie file.transparentMovie
- true if the movie contains an alpha-plane next to the movie itself.
default is false.displayAsBillboard
- true if the plane should be rendered as a billboard (always facing
camera). default is false.
Pointer to the geometry. Null pointer if not successful.public IGeometry createGeometryFromMovie(String filepath, boolean transparentMovie)
filepath
- Path to the movie file.transparentMovie
- true if the movie contains an alpha-plane next to the movie itself.
default is false.displayAsBillboard
- true if the plane should be rendered as a billboard (always facing
camera). default is false.
Pointer to the geometry. Null pointer if not successful.public IGeometry createGeometryFromMovie(String filepath)
filepath
- Path to the movie file.transparentMovie
- true if the movie contains an alpha-plane next to the movie itself.
default is false.displayAsBillboard
- true if the plane should be rendered as a billboard (always facing
camera). default is false.
Pointer to the geometry. Null pointer if not successful.public boolean unloadGeometry(IGeometry geometry)
geometry
- Pointer to the geometry that is returned by one of the createGeometry
functions.
true on success, false on failure
See: createGeometrysetVisiblepublic IGeometryVector getLoadedGeometries()
public IGeometry getGeometryFromScreenCoordinates(int x, int y, boolean useTriangleTest)
x
- The x-component of the screen coordinate.y
- The y-component of the screen coordinate.useTriangleTest
- If true, all triangles are tested which is more accurate but slower.
If set to false, bounding boxes are used instead.
A pointer to the geometry. If no 3D model is located at the given
coordinate, it's a null pointer.public IGeometry getGeometryFromScreenCoordinates(int x, int y)
x
- The x-component of the screen coordinate.y
- The y-component of the screen coordinate.useTriangleTest
- If true, all triangles are tested which is more accurate but slower.
If set to false, bounding boxes are used instead.
A pointer to the geometry. If no 3D model is located at the given
coordinate, it's a null pointer.public Vector2d getScreenCoordinatesFrom3DPosition(int coordinateSystemID, Vector3d point)
coordinateSystemID
- The (one-based) index of the coordinate system in which the 3D point
is defined.point
- The 3D point to convert.
A 2D vector containing the screen coordinates.public Vector3d get3DPositionFromScreenCoordinates(int coordinateSystemID, Vector2d point)
coordinateSystemID
- The (one-based) index of the coordinate system in which the 3D point
is defined.point
- The 2D screen coordinate to use.
A 3D vector containing the coordinates of the resulting 3D point.public void setLLAObjectRenderingLimits(int nearLimit, int farLimit)
nearLimit
- The near limit or 0 to disable.farLimit
- The far limit or 0 disable.
See: setLLALimitsEnabledpublic IBillboardGroup createBillboardGroup(float nearValue, float farValue)
nearValue
- The minimum billboard-to-camera distance a billboard can have.farValue
- The maximum billboard-to-camera distance a billboard can have
Pointer to the billboard group.public IGeometry loadImageBillboard(String texturePath)
texturePath
- The path to the image file to create a billboard from.
A pointer to the created billboard geometry.public IGeometry loadImageBillboard(String textureName, ImageStruct image)
textureName
- Assign a unique identifier to the texture.image
- The new image in memory.
A pointer to the created billboard geometry.public IRadar createRadar(float size)
size
- size of the radar (default=100.0)
Pointer to the new radar object
See: IRadarpublic IRadar createRadar()
size
- size of the radar (default=100.0)
Pointer to the new radar object
See: IRadarpublic void registerCallback(IMetaioSDKCallback callback)
callback
- A pointer to the object that implements metaio::IMetaioSDKCallback
See: metaio::IMetaioSDKCallbackpublic boolean loadEnvironmentMap(String folder)
folder
- The path of a folder that should contain six PNG image files
containing the textures for the six faces of the cube.
Returns true, if the environment map was successfully loaded.public void pauseAllMovieTextures()
public void registerSensorsComponent(ISensorsComponent sensors)
sensors
- An implementation of metaio::ISensorsComponent interface
See: metaio::ISensorsComponent getRegisteredSensorsComponent()public ISensorsComponent getRegisteredSensorsComponent()
public void pauseSensors()
public void resumeSensors()
public String sensorCommand(String command, String parameter)
command
- the command to send to the sensorparameter
- the parameters for the sensor
result of the commandpublic String sensorCommand(String command)
command
- the command to send to the sensorparameter
- the parameters for the sensor
result of the commandpublic String getCoordinateSystemName(int coordinateSystemID)
coordinateSystemID
- ID of the according coordinate system.
The name of a coordinate system. The return value is an empty string
if no ID is found.public int getCoordinateSystemID(String name)
name
- the name specified in the xml
the id, 0 if coordinate system name is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |