void ChLinkLimit::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // stream in all member data double dfoo; int ifoo; ChFunction* ffoo; mstream >> ifoo; Set_active(ifoo); mstream >> ifoo; Set_polar(ifoo); mstream >> ifoo; Set_penalty(ifoo); mstream >> dfoo; Set_min(dfoo); mstream >> dfoo; Set_max(dfoo); mstream >> dfoo; Set_minCushion(dfoo); mstream >> dfoo; Set_maxCushion(dfoo); mstream >> dfoo; Set_minElastic(dfoo); mstream >> dfoo; Set_maxElastic(dfoo); mstream >> dfoo; Set_Kmin(dfoo); mstream >> dfoo; Set_Kmax(dfoo); mstream >> dfoo; Set_Rmin(dfoo); mstream >> dfoo; Set_Rmax(dfoo); mstream.AbstractReadCreate(&ffoo); SetPolar_Max(ffoo); mstream.AbstractReadCreate(&ffoo); SetModul_Kmin(ffoo); mstream.AbstractReadCreate(&ffoo); SetModul_Kmax(ffoo); mstream.AbstractReadCreate(&ffoo); SetModul_Rmin(ffoo); mstream.AbstractReadCreate(&ffoo); SetModul_Rmax(ffoo); }
void ChLinkGear::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLinkLock::StreamIN(mstream); // stream in all member data mstream >> tau; mstream >> alpha; mstream >> beta; mstream >> phase; mstream >> checkphase; mstream >> epicyclic; mstream >> a1; mstream >> a2; mstream >> r1; mstream >> r2; if (version ==1) { Vector mvfoo; mstream >> mvfoo; mstream >> mvfoo; mstream >> mvfoo; mstream >> mvfoo; }
void ChLcpConstraintTwoFrictionT::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLcpConstraintTwoBodies::StreamIN(mstream); }
void ChFunction_Jscript::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data mstream >> js_command; }
void ChShaftsTorsionSpring::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChShaftsCouple::StreamIN(mstream); // deserialize class mstream >> this->stiffness; mstream >> this->damping; }
void ChLinkBrake::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLinkLock::StreamIN(mstream); // stream in all member data mstream >> brake_torque; mstream >> stick_ratio; mstream >> brake_mode; }
void ChLcpConstraintThree::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLcpConstraint::StreamIN(mstream); // stream in all member data // NOTHING INTERESTING TO DESERIALIZE (pointers to variables must be rebound in run-time.) }
void ChFunction_ConstAcc::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data mstream >> h; mstream >> aw; mstream >> av; mstream >> end; }
void ChBox::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChGeometry::StreamIN(mstream); // stream in all member data mstream >> Pos; mstream >> Rot; mstream >> Size; }
void ChFunction_Mocap::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data double dfoo; int ifoo; mstream >> ifoo; Set_samples(ifoo); mstream >> dfoo; Set_samp_freq(dfoo); mstream >> *this->array_y; }
void ChShaftsMotor::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChShaftsCouple::StreamIN(mstream); // deserialize class int ifoo; mstream >> this->motor_torque; mstream >> ifoo; this->motor_mode = (ChShaftsMotor::eCh_shaftsmotor_mode)ifoo; mstream >> this->motor_set_rot; mstream >> this->motor_set_rot_dt; }
void ChFunction_Operation::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data mstream >> op_type; if (fa) delete fa; fa=NULL; mstream.AbstractReadCreate(&fa); if (fb) delete fb; fb=NULL; mstream.AbstractReadCreate(&fb); }
void ChLcpConstraintThreeGeneric::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLcpConstraintThree::StreamIN(mstream); // stream in all member data // NOTHING INTERESTING TO DESERIALIZE (the Cq jacobians are not so // important to waste disk space.. they may be recomputed run-time, // and pointers to variables must be rebound in run-time.) // mstream >> Cq_a; // mstream >> Cq_b; }
void ChOptVar::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChObj::StreamIN(mstream); mstream >> varname; mstream >> varnum; mstream >> lock; mstream >> lim_sup; mstream >> lim_inf; compiled = FALSE; }
void ChFunction_Poly::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data int ifoo; double dfoo; mstream >> ifoo; this->Set_order(ifoo); for (int i= 0; i<= order; i++) { mstream >> dfoo; Set_coeff(dfoo,i); } }
void ChFunction_Integrate::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data int ifoo; double dfoo; mstream >> ifoo; Set_order(ifoo); mstream >> dfoo; Set_C_start(dfoo); mstream >> dfoo; Set_x_start(dfoo); mstream >> dfoo; Set_x_end(dfoo); mstream >> ifoo; Set_num_samples(ifoo); if (fa) delete fa; fa=NULL; mstream.AbstractReadCreate(&fa); }
void ChLinkPulley::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChLinkLock::StreamIN(mstream); // stream in all member data mstream >> tau; mstream >> phase; mstream >> checkphase; mstream >> a1; mstream >> a2; mstream >> r1; mstream >> r2; mstream >> local_shaft1; mstream >> local_shaft2; }
void ChModelBullet::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // parent class deserialize ChCollisionModel::StreamIN(mstream); // deserialize custom data: this->ClearModel(); // remove shape int buffer_len=0; mstream >> buffer_len; char* mbuffer = new char[buffer_len]; for (int mpt= 0; mpt < buffer_len; mpt++) mstream >> mbuffer[mpt]; btBulletWorldImporter import(0);//don't store info into the world import.setVerboseMode(false); if (import.loadFileFromMemory(mbuffer, buffer_len)) { int numShape = import.getNumCollisionShapes(); if (numShape) { btCollisionShape* mshape = import.getCollisionShapeByIndex(0); if (mshape) bt_collision_object->setCollisionShape(mshape); // Update the list of sharedpointers to newly created shapes, so that // the deletion will be automatic __recurse_add_newcollshapes(mshape, this->shapes); } } delete[] mbuffer; }
void ChFunction_Sequence::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data double dfoo; mstream >> dfoo; Set_start(dfoo); int mgoID; mstream >> mgoID; while (mgoID == 1) { ChFseqNode* mynode = new ChFseqNode(ChSharedPtr<ChFunction>(0), 0.0); mstream >> *mynode; functions.AddTail(mynode); mstream >> mgoID; } }
void ChFunction_Recorder::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChFunction::StreamIN(mstream); // stream in all member data int mcount; mstream >> mcount; for (int i = 0; i < mcount; i++) { ChRecPoint* mpt = new ChRecPoint; mstream >> mpt->x; mstream >> mpt->y; mstream >> mpt->w; points.AddHead(mpt); } }
void ChFseqNode::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // stream in all member data mstream >> this->duration; mstream >> this->weight; mstream >> this->t_start; mstream >> this->t_end; mstream >> this->Iy; mstream >> this->Iydt; mstream >> this->Iydtdt; mstream >> this->y_cont; mstream >> this->ydt_cont; mstream >> this->ydtdt_cont; ChFunction* fooshared; mstream.AbstractReadCreate(&fooshared); // instance new fx = ChSharedPtr<ChFunction>(fooshared); // swap old shared to new shared, may delete old //***TODO*** better direct management of shared pointers serialization }
void ChControlsJS::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too ChControls::StreamIN(mstream); // stream in all member data char fpa[250]; mstream >> fpa; SetJsForStartFile(fpa); mstream >> fpa; SetJsForStartFile(fpa); mstream >> fpa; SetJsForUpdateFile(fpa); mstream >> fpa; SetJsForStepFile(fpa); mstream >> fpa; SetJsFor3DStepFile(fpa); mstream >> fpa; SetPanelWindowFile(fpa); }
void ChLink::StreamIN(ChStreamInBinary& mstream) { // class version number int version = mstream.VersionRead(); // deserialize parent class too if (version <11) { ChObj::StreamIN(mstream); } if (version >= 11) { ChPhysicsItem::StreamIN(mstream); } // deserialize class data if(version ==1) { int mylflag; // was 'long' in v.1 but 'long' streaming support is removed mstream >> mylflag; valid = !(mylflag & LF_INACTIVE); disabled = (mylflag & LF_DISABLED)!=0; broken = (mylflag & LF_BROKEN)!=0; }