Changes between Version 6 and Version 7 of visual_object
- Timestamp:
- Apr 10, 2010, 12:29:22 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
visual_object
v6 v7 9 9 The module "visual_object" allows to manage objects in the scene, with fixed or dynamic position. An visual_object can be positioned in latitude, longitude and altitude, as well in rotations along all three axis. 10 10 The object itself is not visible, it only provides the functions for managing the object. By adding text labels or geometries, it is visible in the scene. 11 12 If you want to specialize visual_object for more specifiy usage, subclass visual_object and add your new convenient values and calculations, e.g.: 13 * visual_aircraft 14 * Add gear : extraction_value 15 * Add light : navigationlight_value 16 * Add propeller rpm : prop_rpm_value 11 17 12 18 == Overview Convenience Functions == … … 21 27 * setting camera translation offset (used by node attached camera manipulator) 22 28 * setting camera rotation offset (used by node attached camera manipulator) 23 * adding/removing object_updater (see xxfor further information)24 * adding/removing label (see [http://www.osgvisual.org/projects/osgvisual/wiki/visual_object#Objectlabels Object labels] for further information)29 * adding/removing object_updater (see [http://www.osgvisual.org/projects/osgvisual/wiki/visual_object#Objectupdater object updater] for further information) 30 * adding/removing label (see [http://www.osgvisual.org/projects/osgvisual/wiki/visual_object#Objectlabels object labels] for further information) 25 31 26 32 == Technical Implementation == 27 33 28 This description does not replace the dive into the source ode, it should give you only a short overview how it works.29 Please read the doxygen documentation as reference forall function calls: http://www.osgvisual.org/notyetpublished34 This description does not replace the dive into the source code, it should give you only a short overview how it works. 35 Please read the doxygen documentation of all function calls: http://www.osgvisual.org/notyetpublished 30 36 37 Basically, a visual_object is a subclass of a simple Matrixtransform which has the geometry as child node. 38 Additionally it contains variables and their setters/getter for all specified convenient functions. 31 39 32 Basically, a visual_object is a simple Matrixtransform which has the geometry as childnode. 40 The Matrixtransform has several child which are matrixes or drawables to provide the functionality: 41 <Insert Image of visual Objects architecture> 42 43 The core functionality is an update callback (installed on the visual_object class by its initializer), which transforms the specified object properties to the corresponding matrices: 44 * lat/lon/alt via OSG'S ellipsoid model and its computeLocalToWorld() to the objects transform matrix. 45 * scale values to the scaling matrix. 46 * camera values to the camera matrix. 47 * geometry offset values to the object matrix. 48 49 The object updater and label functions are not updated every frame by the callback, it just invokes their own udpdate functions. 33 50 34 51