Select the object to obtain control

// get the selected object selection0 control
UF_initialize ();
STD :: Vector <TaggedObject *> Objects = this-> selection0-> GetProperties () -> GetTaggedObjectVector ( "selectedObjects");
Double expression0- the Z => the Value ();
// get enumerated control
PropertyList * EnumProps enum0- => GetProperties ();
int EnumValue EnumProps- => GetEnum ( "Value");
the Delete EnumProps;
EnumProps = NULL;

int tran; // 1: Mobile 2: Copy

if ( EnumValue == 0 )
{
tran=1;
}
else
{
tran=2;
}

double the amount of movement [3] = {0.0,0.0, Z};

// Create a list
uf_list_p_t List;
UF_MODL_create_list (List &);
// add to the tag list
for (int i = 0; i <objects.size (); i ++) // size list length, referred to herein as the number of objects
{
UF_MODL_put_list_item (List, Objects [I] -> the Tag ());
}
// list inquires

int Count;
UF_MODL_ask_list_count(List, &Count);

ObjectTag = NULL_TAG tag_t;
for (int I = 0; I <the Count; I ++)
{
// Get all the linked list Tag
UF_MODL_ask_list_item (List, I, & ObjectTag);

// the linked list of all

double matrix [16]; // matrix
tag_t wsc_t2 = NULL_TAG; // change the coordinate Tag
int Status;
uf5943 (moving amount, matrix); // matrix method (linear)

Matrix achieve //
// number; Numbers 1 = int
int Layer = -1; @ 0: the first layer; -1: working layer; 1--256: Specifies layer
int trace_curves = 2; // track status, an open , 2 off
uf5947 (Matrix, & ObjectTag, & Numbers, & Tran, & Layer, & trace_curves, & wsc_t2, NULL, & Status);
}
UF_CSYS_set_wcs_display (. 1); // coordinate display operation


// delete the list, freeing memory
UF_MODL_delete_list (& List);
UF_terminate ();

  

Guess you like

Origin www.cnblogs.com/liuxiaoqing1/p/12014488.html