Changeset 217 for osgVisual/trunk


Ignore:
Timestamp:
Feb 2, 2011, 8:39:16 AM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/include/object/visual_object.h

    r202 r217  
    277277        void setCameraOffsetTranslation( double x_, double y_, double z_);
    278278
     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
    279295/*@}*/
    280296/** @name Label management
     
    283299/*@{*/
    284300        /**
    285          * \brief This Function removes all labels attached to this object.
     301         * \brief This function removes all labels attached to this object.
    286302         *
    287303         */
     
    448464        osg::ref_ptr<object_updater> updater;
    449465
     466        /**
     467         * Tracking ID of the visual_object. Used to identify which node should be tracked by tracking-manipulators.
     468         */
     469        int trackingId;
     470
    450471// Labels
    451472        /**
  • osgVisual/trunk/src/object/visual_object.cpp

    r215 r217  
    6161        unsetGeometry();        // adds an osg::Node as geometry to make the visual_object trackable for node trackers.
    6262
     63        // Tracking ID
     64        trackingId = -1;
     65
    6366        // Labelnode hinzufügen
    6467        labels = new osg::Geode();
Note: See TracChangeset for help on using the changeset viewer.