[Dda-cvs] ntdda/include geometrydata.h,1.18,1.19 joint.h,1.3,1.4
Status: Beta
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2006-08-01 06:16:31
|
Update of /cvsroot/dda/ntdda/include In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv5641/include Modified Files: geometrydata.h joint.h Log Message: Added some dialog files. Added some code to clean up xml output. Index: joint.h =================================================================== RCS file: /cvsroot/dda/ntdda/include/joint.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** joint.h 1 Aug 2006 05:26:10 -0000 1.3 --- joint.h 1 Aug 2006 06:16:28 -0000 1.4 *************** *** 18,22 **** /** @todo Change to incomplete type. */ struct _joint { ! int type; double epx1, epy1, epx2, epy2; double length; --- 18,22 ---- /** @todo Change to incomplete type. */ struct _joint { ! int type; double epx1, epy1, epx2, epy2; double length; *************** *** 33,39 **** */ double friction; ! double cohesion; ! double tension; ! int type; }; --- 33,39 ---- */ double friction; ! double cohesion; ! double tension; ! int type; }; *************** *** 64,67 **** --- 64,83 ---- int type); + int joint_get_type (Joint * j); + void joint_set_type (Joint * j, + int type); + + + void joint_set_endpoints (Joint * j, + double epx1, + double epy1, + double epx2, + double epy2); + + /** + * The scale factor is new_scale/old_scale. + */ + void joint_rescale (Joint * j, + double scale_factor); void joint_print_xml (Joint * j, Index: geometrydata.h =================================================================== RCS file: /cvsroot/dda/ntdda/include/geometrydata.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** geometrydata.h 6 Jul 2006 02:28:37 -0000 1.18 --- geometrydata.h 1 Aug 2006 06:16:28 -0000 1.19 *************** *** 298,302 **** char * filename); ! Geometrydata * gdata_read_block_file (Filepaths * filepaths); #ifdef __cplusplus --- 298,314 ---- char * filename); ! Geometrydata * gdata_read_block_file (Filepaths * filepaths); ! ! ! // Temporary while some xml handling code is being rewritten. ! void gdata_emit_points (Geometrydata * gd, ! PrintFunc printer, ! void * stream); ! ! // Temporary while some xml handling code is being rewritten. ! void gdata_emit_bolts (Geometrydata * gd, ! PrintFunc printer, ! void * stream); ! #ifdef __cplusplus |