示例#1
0
/** \fn outputdata()
 * \brief Output message containing location and radius
 */
int outputdata()
{
    double x, y;
	xmachine_memory_Circle * xmemory = current_xmachine->xmachine_Circle;
	x = get_x();
	y = get_y();
	add_location_message(xmemory->id, (xmemory->radius * 3), x, y, 0.0);

	return 0;
}
示例#2
0
__FLAME_GPU_FUNC__ int outputdata(xmachine_memory_Circle* xmemory, xmachine_message_location_list* location_messages)
{
    float x, y, z;

  x = xmemory->x;
    y = xmemory->y;
  z = xmemory->z;
    
  add_location_message(location_messages, xmemory->id, x, y, z);

  return 0;
}
示例#3
0
/* outputs a location message */
void output_location(int iteration)
{
	/*xmachine_memory_keratinocyte * xmemory = current_xmachine->xmachine_keratinocyte;*/
	
	add_location_message(
		/*get_id(),*/
		/*xmemory->id->array,*/
		get_type(),  
		get_dir(), 
		get_motility(),
		iteration,
		message_range,
		get_x(),
		get_y(),
		get_z());
}
/* outputs a location message */
int signal()
{
	/*xmachine_memory_keratinocyte * xmemory = current_xmachine->xmachine_keratinocyte;*/
	
	add_location_message(
		/*get_id(),*/
		/*xmemory->id->array,*/
		get_type(),  
		get_dir(), 
		get_motility(),
		message_range,
		get_x(),
		get_y(),
		get_z());
	
	return 0;
}