Changeset 217
- Timestamp:
- Feb 2, 2011, 8:39:16 AM (14 years ago)
- Location:
- osgVisual/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/include/object/visual_object.h
r202 r217 277 277 void setCameraOffsetTranslation( double x_, double y_, double z_); 278 278 279 /** 280 * \brief This function sets the trackingId to allow to identify the visual_obejct for tracking purposes. 281 * 282 * See also getTrackingId() and trackingId 283 * 284 * @param trackindID_ : trackingId to set. 285 */ 286 void setTrackingId(int trackingId_) {trackingId = trackingId_;}; 287 288 /** 289 * \brief This function returns the trackingId to allow to identify the visual_obejct for tracking purposes. 290 * 291 * @return : -1 If no trackingId is set, othwerwise the trackingId. 292 */ 293 int getTrackingId() {return trackingId;}; 294 279 295 /*@}*/ 280 296 /** @name Label management … … 283 299 /*@{*/ 284 300 /** 285 * \brief This Function removes all labels attached to this object.301 * \brief This function removes all labels attached to this object. 286 302 * 287 303 */ … … 448 464 osg::ref_ptr<object_updater> updater; 449 465 466 /** 467 * Tracking ID of the visual_object. Used to identify which node should be tracked by tracking-manipulators. 468 */ 469 int trackingId; 470 450 471 // Labels 451 472 /** -
osgVisual/trunk/src/object/visual_object.cpp
r215 r217 61 61 unsetGeometry(); // adds an osg::Node as geometry to make the visual_object trackable for node trackers. 62 62 63 // Tracking ID 64 trackingId = -1; 65 63 66 // Labelnode hinzufügen 64 67 labels = new osg::Geode();
Note: See TracChangeset
for help on using the changeset viewer.