|
SDKDocumentationPublic
|
General interface for a 3D geometry that can be loaded within the system. More...
#include <AS_IUnifeyeMobileGeometry.h>
Public Member Functions | |
| virtual BoundingBox | getBoundingBox ()=0 |
| Get the bounding box of the 3D geometry. | |
| virtual int | getCos ()=0 |
| Get the ID of the cos that the 3D model is bound to. | |
| virtual bool | getIsRendered ()=0 |
| Returns true if the geometry will be rendered by in this frame, else false. | |
| virtual bool | getIsVisible ()=0 |
| Determine the visiblity of the 3D model. | |
| virtual Vector4d | getMoveRotation ()=0 |
| Get the current rotation of the 3D model. | |
| virtual Vector3d | getMoveScale ()=0 |
| Get the current scale of the 3D model. | |
| virtual Vector3d | getMoveTranslation ()=0 |
| Get the current translation of the 3D model. | |
| virtual LLACoordinate | getMoveTranslationLLA ()=0 |
| Determine the location of a geometry. | |
| virtual Vector3d | getMoveTranslationLLACartesian ()=0 |
| Determine the Cartesian offset location of a geometry. | |
| virtual bool | getSceneLighting ()=0 |
| Determine if the lighting for the 3D model is activated or deactivated. | |
| virtual bool | getSceneShadingSmooth ()=0 |
| Determine if smooth shading is activated for the 3D model. | |
| virtual bool | isType (UnifeyeMobileGeometryType geometryType)=0 |
| Returns true if the Geometry is of a given type. | |
| virtual void | setAnimationSpeed (float fps)=0 |
| Set the animation speed of the model. | |
| virtual void | setColor (const unsigned char R, const unsigned char G, const unsigned char B)=0 |
| Sets the color of the geometry. | |
| virtual void | setCos (int cosID)=0 |
| Bind the 3D model to a specific cos. | |
| virtual void | setLLALimitsEnabled (bool enabled)=0 |
| Activate or deactivate the usage of limits for updateMoveTranslationFromLLA. | |
| virtual void | setMoveRotation (const Vector4d &rotation, bool concat=false)=0 |
| Set the rotation of the 3D model (Axis-Angle) | |
| virtual void | setMoveRotation (const Vector3d &rotation, bool concat=false)=0 |
| Set the absolute rotation of the model in Euler angles form. | |
| virtual void | setMoveScale (const Vector3d &scale, bool concat=false)=0 |
| Set the scale of the 3D model. | |
| virtual void | setMoveTranslation (const Vector3d &translation, bool concat=false)=0 |
| Set the translation of the 3D model. | |
| virtual void | setMoveTranslationLLA (LLACoordinate llaCoorindate)=0 |
| Set a GPS position for a geometry The system will then adjust its Cartesian offset in the renderer accordingly. | |
| virtual void | setMovieTexture (const std::string &filename, const bool loop)=0 |
| Continuously set a h263 avi-movie's frames as texture for geometry. | |
| virtual void | setOcclusionMode (bool occlude)=0 |
| Sets the occlusion mode of a geometry. | |
| virtual void | setPickingEnabled (bool enabled)=0 |
| Enable or disable picking for a geometry. | |
| virtual void | setSceneLighting (bool activated)=0 |
| Activate or deactivate lighting for the 3D model. | |
| virtual void | setSceneShadingSmooth (bool shadeSmooth)=0 |
| Activate or Deactivate smooth shading for a 3D model. | |
| virtual void | setText (const std::string text)=0 |
| sets the text string if there is one | |
| virtual void | setTexture (const std::string &texturePath)=0 |
| Set image from given file path as texture for geometry. | |
| virtual void | setTexture (const std::string &textureName, const ImageStruct &image)=0 |
| Specialized function to set texture from memory. | |
| virtual void | setTransparency (unsigned char transparency)=0 |
| Set the transparency of an object. | |
| virtual void | setVisible (bool visible)=0 |
| Set the 3D model visible or hide it. | |
| virtual void | startAnimation (const std::string &animationName, bool loop)=0 |
| Start a specific animation of the 3D model. | |
| virtual void | stopMovieTexture ()=0 |
| Stop the playback of a movie texture. | |
General interface for a 3D geometry that can be loaded within the system.
| virtual BoundingBox metaio::IUnifeyeMobileGeometry::getBoundingBox | ( | ) | [pure virtual] |
Get the bounding box of the 3D geometry.
| virtual int metaio::IUnifeyeMobileGeometry::getCos | ( | ) | [pure virtual] |
Get the ID of the cos that the 3D model is bound to.
| virtual bool metaio::IUnifeyeMobileGeometry::getIsRendered | ( | ) | [pure virtual] |
Returns true if the geometry will be rendered by in this frame, else false.
| virtual bool metaio::IUnifeyeMobileGeometry::getIsVisible | ( | ) | [pure virtual] |
Determine the visiblity of the 3D model.
| virtual Vector4d metaio::IUnifeyeMobileGeometry::getMoveRotation | ( | ) | [pure virtual] |
Get the current rotation of the 3D model.
| virtual Vector3d metaio::IUnifeyeMobileGeometry::getMoveScale | ( | ) | [pure virtual] |
| virtual Vector3d metaio::IUnifeyeMobileGeometry::getMoveTranslation | ( | ) | [pure virtual] |
Get the current translation of the 3D model.
| virtual LLACoordinate metaio::IUnifeyeMobileGeometry::getMoveTranslationLLA | ( | ) | [pure virtual] |
Determine the location of a geometry.
| virtual Vector3d metaio::IUnifeyeMobileGeometry::getMoveTranslationLLACartesian | ( | ) | [pure virtual] |
Determine the Cartesian offset location of a geometry.
| virtual bool metaio::IUnifeyeMobileGeometry::getSceneLighting | ( | ) | [pure virtual] |
Determine if the lighting for the 3D model is activated or deactivated.
| virtual bool metaio::IUnifeyeMobileGeometry::getSceneShadingSmooth | ( | ) | [pure virtual] |
Determine if smooth shading is activated for the 3D model.
| virtual bool metaio::IUnifeyeMobileGeometry::isType | ( | UnifeyeMobileGeometryType | geometryType | ) | [pure virtual] |
Returns true if the Geometry is of a given type.
| geometryType | the type of the geometry we ask for. |
| virtual void metaio::IUnifeyeMobileGeometry::setAnimationSpeed | ( | float | fps | ) | [pure virtual] |
Set the animation speed of the model.
| fps | frames per second value |
| virtual void metaio::IUnifeyeMobileGeometry::setColor | ( | const unsigned char | R, |
| const unsigned char | G, | ||
| const unsigned char | B | ||
| ) | [pure virtual] |
Sets the color of the geometry.
| R | red value |
| G | green value |
| B | float value |
| virtual void metaio::IUnifeyeMobileGeometry::setCos | ( | int | cosID | ) | [pure virtual] |
| virtual void metaio::IUnifeyeMobileGeometry::setLLALimitsEnabled | ( | bool | enabled | ) | [pure virtual] |
Activate or deactivate the usage of limits for updateMoveTranslationFromLLA.
If disabled, the geometry will ignore the near and far limit passed in updateMoveTranslationFromLLA and always render the object the the real location. (default is true)
| enabled | true to enable, false to disable |
| virtual void metaio::IUnifeyeMobileGeometry::setMoveRotation | ( | const Vector4d & | rotation, |
| bool | concat = false |
||
| ) | [pure virtual] |
Set the rotation of the 3D model (Axis-Angle)
| rotation | rotation axis |
| concat | if true, new rotation is concatenated with existing rotation |
| virtual void metaio::IUnifeyeMobileGeometry::setMoveRotation | ( | const Vector3d & | rotation, |
| bool | concat = false |
||
| ) | [pure virtual] |
Set the absolute rotation of the model in Euler angles form.
The rotation is on the lowest level and will be affected by all other rotations in the structure (like tracking or dragging). This rotation can be set by the user to compensate properties of the 3D model (e.g. a model lying on the side). It is given in Euler angles representation.
| rotation | vector defining the rotation, x,y,z the Euler angles around each axis in radians |
| concat | if true, new rotation is concatenated with existing rotation |
| virtual void metaio::IUnifeyeMobileGeometry::setMoveScale | ( | const Vector3d & | scale, |
| bool | concat = false |
||
| ) | [pure virtual] |
Set the scale of the 3D model.
| scale | scaling vector |
| concat | if true, new scale is multiplied with existing scale |
| virtual void metaio::IUnifeyeMobileGeometry::setMoveTranslation | ( | const Vector3d & | translation, |
| bool | concat = false |
||
| ) | [pure virtual] |
Set the translation of the 3D model.
| translation | the translation vector |
| concat | if true, new translation is added to existing translation |
| virtual void metaio::IUnifeyeMobileGeometry::setMoveTranslationLLA | ( | LLACoordinate | llaCoorindate | ) | [pure virtual] |
Set a GPS position for a geometry The system will then adjust its Cartesian offset in the renderer accordingly.
| llaCoorindate | latitude, longitude, altitude the position to set |
| virtual void metaio::IUnifeyeMobileGeometry::setMovieTexture | ( | const std::string & | filename, |
| const bool | loop | ||
| ) | [pure virtual] |
Continuously set a h263 avi-movie's frames as texture for geometry.
| filename | filename of h263 encoded avi-movie |
| loop | shall the movie get rendered in a loop |
| virtual void metaio::IUnifeyeMobileGeometry::setOcclusionMode | ( | bool | occlude | ) | [pure virtual] |
Sets the occlusion mode of a geometry.
| occlude | true, if the object should act as occlusion geometry |
| virtual void metaio::IUnifeyeMobileGeometry::setPickingEnabled | ( | bool | enabled | ) | [pure virtual] |
Enable or disable picking for a geometry.
This method will modify the renderer bit mask for the model. All objects with bit mask 1 will be used for picking, others not
| enabled | true to enable picking, false to disable |
| virtual void metaio::IUnifeyeMobileGeometry::setSceneLighting | ( | bool | activated | ) | [pure virtual] |
Activate or deactivate lighting for the 3D model.
| activated | true to activate, false to deactivate |
| virtual void metaio::IUnifeyeMobileGeometry::setSceneShadingSmooth | ( | bool | shadeSmooth | ) | [pure virtual] |
Activate or Deactivate smooth shading for a 3D model.
| shadeSmooth | true to activate, false to deactivate |
| virtual void metaio::IUnifeyeMobileGeometry::setTexture | ( | const std::string & | textureName, |
| const ImageStruct & | image | ||
| ) | [pure virtual] |
Specialized function to set texture from memory.
| textureName | name that should be assigned to the texture (for reuse). |
| image | image content |
| virtual void metaio::IUnifeyeMobileGeometry::setTexture | ( | const std::string & | texturePath | ) | [pure virtual] |
Set image from given file path as texture for geometry.
| texturePath | path to the texture image file. |
| virtual void metaio::IUnifeyeMobileGeometry::setTransparency | ( | unsigned char | transparency | ) | [pure virtual] |
Set the transparency of an object.
| transparency | the transparency value |
| virtual void metaio::IUnifeyeMobileGeometry::setVisible | ( | bool | visible | ) | [pure virtual] |
Set the 3D model visible or hide it.
| visible | true to show the 3D model, false to hide it |
| virtual void metaio::IUnifeyeMobileGeometry::startAnimation | ( | const std::string & | animationName, |
| bool | loop | ||
| ) | [pure virtual] |
Start a specific animation of the 3D model.
| animationName | Identifier of the animation |
| loop | should the animation be looped |