- Timestamp:
- 05/07/14 20:39:52 (11 years ago)
- Location:
- cpp/frams/vm/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/classes/3dobject.cpp
r240 r241 217 217 static ParamEntry paramtab[]= 218 218 { 219 {"Orient",1,2 7,"Orient","3D orientation, stored as 3x3 matrix."},219 {"Orient",1,29,"Orient","3D orientation, stored as 3x3 matrix."}, 220 220 221 221 {"xx",1,PARAM_NOSTATIC,"orientation.x.x","f",FIELD(o.x.x),}, … … 259 259 {"localToWorld",0,PARAM_NOSTATIC,"transform coordinates","p oXYZ(oXYZ point,oXYZ center)",PROCEDURE(p_localToWorld),}, 260 260 {"worldToLocal",0,PARAM_NOSTATIC,"transform coordinates","p oXYZ(oXYZ point,oXYZ center)",PROCEDURE(p_worldToLocal),}, 261 {"angles",0,PARAM_READONLY | PARAM_NOSTATIC,"Euler angles representation","oXYZ",GETONLY(angles),}, 262 {"toString",0,PARAM_READONLY | PARAM_NOSTATIC,"textual form","s",GETONLY(toString),}, 261 263 {0,0,0,}, 262 264 }; … … 433 435 else 434 436 ret->setEmpty(); 437 } 438 439 void Orient_Ext::get_angles(ExtValue *ret) 440 { 441 *ret=Pt3D_Ext::makeDynamicObject(new Pt3D_Ext(o.getAngles())); 442 } 443 444 void Orient_Ext::get_toString(ExtValue *ret) 445 { 446 Pt3D a=o.getAngles(); 447 ret->setString(SString::sprintf("Orient@(%g,%g,%g)",a.x,a.y,a.z)); 435 448 } 436 449 -
cpp/frams/vm/classes/3dobject.h
r229 r241 71 71 PARAMPROCDEF(p_localToWorld); 72 72 PARAMPROCDEF(p_worldToLocal); 73 PARAMGETDEF(angles); 73 74 #undef STATRICKCLASS 74 75
Note: See TracChangeset
for help on using the changeset viewer.