ns-allinone-2.35/nam-1.15/tag.cc
void
Tag::addNodeMovementDestination(EditView * editview, 
                                double dx, double dy, double current_time) {
	Tcl_HashEntry * hash_entry;
	Tcl_HashSearch hash_search;
	Animation * animation_object;
	Node * node;
	float x,y;


	for (hash_entry = Tcl_FirstHashEntry(mbrHash_, &hash_search);
	     hash_entry != NULL;
	     hash_entry = Tcl_NextHashEntry(&hash_search)) {
		animation_object = (Animation *) Tcl_GetHashValue(hash_entry);

		if (animation_object->classid() == ClassNodeID) {
			node = (Node *) animation_object;
			x = node->x();
			y = node->y();

			editview->map(x,y);
			x += dx;
			y += dy;
			editview->imap(x,y);

			node->addMovementDestination(x, y, current_time);

		}
	}
}
//----------------------------------------------------------------------
// void
// Tag::addNodeMovementElements(EditView * editview, 
//                              double x, double y, double current_time)
//   - Used by the nam editor
//   - If any nodes in the tagged selection are mobile then the
//----------------------------------------------------------------------
void
Tag::addNodeMovementElements(EditView * editview,
double x, double y, double current_time)
Used by the nam editor
If any nodes in the tagged selection are mobile then the
void Tag :: addNodeMovementElements ( EditView * editview double x double y double current_time ) Used by the nam editor If any nodes in the tagged selection are mobile then the
void
Tag::addNodeMovementDestination(EditView * editview, 
                                double dx, double dy, double current_time) {
	Tcl_HashEntry * hash_entry;
	Tcl_HashSearch hash_search;
	Animation * animation_object;
	Node * node;
	float x,y;
	for (hash_entry = Tcl_FirstHashEntry(mbrHash_, &hash_search);
	     hash_entry != NULL;
	     hash_entry = Tcl_NextHashEntry(&hash_search)) {
		animation_object = (Animation *) Tcl_GetHashValue(hash_entry);
		if (animation_object->classid() == ClassNodeID) {
			node = (Node *) animation_object;
			x = node->x();
			y = node->y();
			editview->map(x,y);
			x += dx;
			y += dy;
			editview->imap(x,y);
			node->addMovementDestination(x, y, current_time);
		}
	}
}
void Tag :: addNodeMovementDestination ( EditView * editview , double dx , double dy , double current_time ) { Tcl_HashEntry * hash_entry ; Tcl_HashSearch hash_search ; Animation * animation_object ; Node * node ; float x , y ; for ( hash_entry = Tcl_FirstHashEntry ( mbrHash_ , & hash_search ) ; hash_entry != NULL ; hash_entry = Tcl_NextHashEntry ( & hash_search ) ) { animation_object = ( Animation * ) Tcl_GetHashValue ( hash_entry ) ; if ( animation_object -> classid ( ) == ClassNodeID ) { node = ( Node * ) animation_object ; x = node -> x ( ) ; y = node -> y ( ) ; editview -> map ( x , y ) ; x += dx ; y += dy ; editview -> imap ( x , y ) ; node -> addMovementDestination ( x , y , current_time ) ; } } }
void
Tag::addNodeMovementElements(EditView * editview,
double x, double y, double current_time)
 Used by the nam editor
 If any nodes in the tagged selection are mobile then the
void Tag :: addNodeMovementElements ( EditView * editview double x double y double current_time ) Used by the nam editor If any nodes in the tagged selection are mobile then the