Description

Base class for items which can be named, deleted, copied. etc. as in the editor of a 3d modeler.

#include <ChObject.h>

Inheritance diagram for chrono::ChObj:

Public Member Functions

 ChObj (const ChObj &other)
 
virtual ChObjClone () const =0
 "Virtual" copy constructor. More...
 
int GetIdentifier () const
 Gets the numerical identifier of the object.
 
void SetIdentifier (int id)
 Sets the numerical identifier of the object.
 
double GetChTime () const
 Gets the simulation time of this object.
 
void SetChTime (double m_time)
 Sets the simulation time of this object.
 
const char * GetName () const
 Gets the name of the object as C Ascii null-terminated string -for reading only!
 
void SetName (const char myname[])
 Sets the name of this object, as ascii string.
 
std::string GetNameString () const
 Gets the name of the object as C Ascii null-terminated string.
 
void SetNameString (const std::string &myname)
 Sets the name of this object, as std::string.
 
void MFlagsSetAllOFF (int &mflag)
 
void MFlagsSetAllON (int &mflag)
 
void MFlagSetON (int &mflag, int mask)
 
void MFlagSetOFF (int &mflag, int mask)
 
int MFlagGet (int &mflag, int mask)
 
virtual void ArchiveOUT (ChArchiveOut &marchive)
 Method to allow serialization of transient data in archives.
 
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.
 

Protected Attributes

double ChTime
 the time of simulation for the object
 

Member Function Documentation

virtual ChObj* chrono::ChObj::Clone ( ) const
pure virtual

"Virtual" copy constructor.

Concrete derived classes must implement this.

Implemented in chrono::ChLinkMateFix, chrono::ChLinkLockRevolutePrismatic, chrono::ChLinkMateOrthogonal, chrono::ChLinkLockPerpend, chrono::ChLinkLockParallel, chrono::ChLinkLockAlign, chrono::ChLinkMateParallel, chrono::ChLinkLockFree, chrono::ChLinkLockOldham, chrono::ChLinkLockPlanePlane, chrono::ChLinkLockPointLine, chrono::ChLinkMateXdistance, chrono::ChLinkLockPointPlane, chrono::ChLinkLockPrismatic, chrono::ChLinkLockCylindrical, chrono::ChLinkMateSpherical, chrono::ChOptimizerHybrid, chrono::ChLinkLockSpherical, chrono::ChLinkLockLock, chrono::ChOptimizerGradient, chrono::ChLinkLockRevolute, chrono::ChLinkMateCoaxial, chrono::ChLinkMatePlane, chrono::ChOptimizerGenetic, chrono::ChMatterSPH, chrono::fea::ChLinkPointTrifaceRot, chrono::fea::ChMatterMeshless, chrono::ChParticlesClones, chrono::ChOptimizerLocal, chrono::ChForce, chrono::ChLinkLock, chrono::ChBody, chrono::ChLinkEngine, chrono::ChLinkMateGeneric, chrono::ChContactContainerNSC, chrono::ChContactContainerSMC, chrono::ChMarker, chrono::ChLinkMasked, chrono::ChProximityContainerMeshless, chrono::ChProximityContainerSPH, chrono::fea::ChLinkPointTriface, chrono::fea::ChMesh, chrono::ChSystemSMC, chrono::ChShaft, chrono::ChLinkMarkers, chrono::ChShaftsGearboxAngled, chrono::ChShaftsGearbox, chrono::ChShaftsPlanetary, chrono::fea::ChLinkPointFrame, chrono::fea::ChLinkDirFrame, chrono::ChOptimizer, chrono::ChLinkPulley, chrono::ChPhysicsItem, chrono::ChShaftsTorqueConverter, chrono::fea::ChLinkPointPoint, chrono::ChLinkGear, chrono::ChShaftsMotor, chrono::ChLink, chrono::ChLinkLinActuator, chrono::ChShaftsBody, chrono::ChLinkBushing, chrono::ChLinkPneumaticActuator, chrono::ChBodyAuxRef, chrono::ChLinkBrake, chrono::ChLinkRackpinion, chrono::ChSystemNSC, chrono::ChLinkDistance, chrono::ChLinkClearance, chrono::ChControllerPID, chrono::ChLinkSpring, chrono::ChConveyor, chrono::ChLinkMate, chrono::ChShaftsGear, chrono::ChShaftsThermalEngine, chrono::ChLinkTrajectory, chrono::ChShaftsClutch, chrono::ChShaftsTorque, chrono::ChLinkRevoluteSpherical, chrono::ChShaftsTorsionSpring, chrono::ChLinkPointSpline, chrono::ChLinkRevolute, chrono::ChLinkUniversal, chrono::ChLoadContainer, chrono::ChShaftsCouple, chrono::ChAssembly, chrono::ChControls, chrono::ChLinkRevoluteTranslational, chrono::ChLinkScrew, chrono::ChLinkRotSpringCB, chrono::ChContactContainerParallel, chrono::ChLinkSpringCB, and chrono::ChProbe.