Changeset 247 for osgVisual/trunk/src/object
- Timestamp:
- Feb 18, 2011, 5:59:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/object/object_updater.cpp
r224 r247 27 27 updater_rot_y_rad = object_->getName()+"_ROT_Y"; 28 28 updater_rot_z_rad = object_->getName()+"_ROT_Z"; 29 updater_label = object_->getName()+"_LABEL"; 30 object_->addLabel("default", " "); 29 31 } 30 32 … … 79 81 void object_updater::setUpdaterSlotNames( osgVisual::visual_object* object_, std::string lat_rad_, std::string lon_rad_, std::string alt_, std::string rot_x_rad_, std::string rot_y_rad_, std::string rot_z_rad_, std::string label_) 80 82 { 81 if(lat_rad_!="") 82 updater_lat_rad = lat_rad_; 83 if(lon_rad_!="") 84 updater_lon_rad = lon_rad_; 85 if(alt_!="") 86 updater_alt = alt_; 87 if(rot_x_rad_!="") 88 updater_rot_x_rad = rot_x_rad_; 89 if(rot_y_rad_!="") 90 updater_rot_y_rad = rot_y_rad_; 91 if(rot_z_rad_!="") 92 updater_rot_z_rad = rot_z_rad_; 93 94 if(label_!="") 95 updater_label = label_; 96 else 97 { 98 updater_label = object_->getName()+"_LABEL"; 99 object_->addLabel("default", " "); 100 } 83 updater_lat_rad = lat_rad_; 84 updater_lon_rad = lon_rad_; 85 updater_alt = alt_; 86 updater_rot_x_rad = rot_x_rad_; 87 updater_rot_y_rad = rot_y_rad_; 88 updater_rot_z_rad = rot_z_rad_; 89 updater_label = label_; 101 90 }
Note: See TracChangeset
for help on using the changeset viewer.