Description
Base class for items which can be named, deleted, copied. etc. as in the editor of a 3d modeler.
#include <ChObject.h>
Public Member Functions | |
ChObj (const ChObj &other) | |
virtual ChObj * | Clone () 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 to archives. | |
virtual void | ArchiveIN (ChArchiveIn &marchive) |
Method to allow de-serialization of transient data from archives. | |
virtual std::string & | ArchiveContainerName () |
Protected Attributes | |
double | ChTime |
the time of simulation for the object | |
Member Function Documentation
◆ Clone()
|
pure virtual |
"Virtual" copy constructor.
Concrete derived classes must implement this.
Implemented in chrono::fea::ChLoadXYZROTnodeBodyBushingGeneric, chrono::ChLinkLockRevolutePrismatic, chrono::ChLinkLockPerpend, chrono::ChLinkLockParallel, chrono::ChLinkLockAlign, chrono::ChLinkLockFree, chrono::ChLinkMateFix, chrono::ChLinkLockOldham, chrono::ChLinkLockPlanePlane, chrono::fea::ChLoadXYZROTnodeBodyBushingSpherical, chrono::ChLinkLockPointLine, chrono::ChLinkMateOrthogonal, chrono::ChLinkLockPointPlane, chrono::ChLoadXYZnodeBodyBushing, chrono::ChLinkLockPrismatic, chrono::ChLinkLockCylindrical, chrono::ChLinkMateParallel, chrono::ChLinkLockSpherical, chrono::ChLoadXYZnodeBodySpring, chrono::ChLoadBodyBodyBushingGeneric, chrono::ChLinkLockRevolute, chrono::ChLinkMateXdistance, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingGeneric, chrono::ChLinkMateSpherical, chrono::ChLinkLockLock, chrono::ChLinkMateCoaxial, chrono::ChLoadXYZnodeXYZnodeBushing, chrono::ChLoadBodyBodyBushingSpherical, chrono::ChLinkMatePlane, chrono::ChMatterSPH, chrono::ChLoadXYZnodeXYZnodeSpring, chrono::fea::ChLinkPointTrifaceRot, chrono::ChLoadBodyBodyTorque, chrono::fea::ChMatterMeshless, chrono::fea::ChLinkPointFrameGeneric, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingSpherical, chrono::ChParticlesClones, chrono::ChShaftsBodyTranslation, chrono::ChLoad< Tloader >, chrono::ChLoad< ChLoaderBeamWrench >, chrono::ChLoad< ChLoaderXYZnode >, chrono::ChLoad< ChLoaderBeamWrenchDistributed >, chrono::ChLoadXYZnodeForceAbsolute, chrono::ChShaftsElasticGear, chrono::ChLoadBodyTorque, chrono::ChShaftsMotor, chrono::ChContactContainerNSC, chrono::fea::ChLoadXYZROTnodeForceAbsolute, chrono::ChContactContainerSMC, chrono::ChMarker, chrono::ChProximityContainerMeshless, chrono::ChShaftsTorsionSpringDamper, chrono::ChProximityContainerSPH, chrono::fea::ChLinkPointTriface, chrono::fea::ChMesh, chrono::ChLinkMateGeneric, chrono::ChLinkMarkers, chrono::fea::ChLinkBeamIGAslider, chrono::ChShaft, chrono::ChLinkMotorRotationDriveline, chrono::ChLinkMotorLinearDriveline, chrono::ChShaftsGearboxAngled, chrono::ChShaftsMotorSpeed, chrono::ChLoadBodyForce, chrono::ChShaftsGearbox, chrono::ChBody, chrono::fea::ChLinkPointFrame, chrono::ChShaftsMotorAngle, chrono::fea::ChLinkDirFrame, chrono::ChForce, chrono::ChLinkPulley, chrono::ChShaftsTorqueConverter, chrono::ChLinkGear, chrono::ChLinkLinActuator, chrono::fea::ChLinkPointPoint, chrono::ChShaftsBody, chrono::ChLinkMotionImposed, chrono::ChControllerPID, chrono::ChLinkMotor, chrono::ChLinkRackpinion, chrono::ChShaftsMotorTorque, chrono::ChBodyAuxRef, chrono::ChLink, chrono::ChShaftsGear, chrono::ChConveyor, chrono::ChLinkBrake, chrono::ChLinkClearance, chrono::ChLinkBushing, chrono::ChLinkLock, chrono::ChLinkSpringCB, chrono::ChLinkTSDA, chrono::ChShaftsPlanetary, chrono::fea::ChLoadContactSurfaceMesh, chrono::ChShaftsThermalEngine, chrono::ChLinkMate, chrono::ChLinkMotorLinearPosition, chrono::ChLinkMotorRotationAngle, chrono::ChLinkTrajectory, chrono::ChShaftsTorque, chrono::ChLinkRevoluteSpherical, chrono::ChPhysicsItem, chrono::ChLinkDistance, chrono::ChLinkMotorLinearSpeed, chrono::ChLinkMotorRotationSpeed, chrono::ChLinkRevolute, chrono::ChLinkUniversal, chrono::ChLoadBodyMesh, chrono::ChShaftsTorsionSpring, chrono::ChLinkMotorLinearForce, chrono::ChLinkMotorRotationTorque, chrono::ChLinkRevoluteTranslational, chrono::ChLinkSpring, chrono::ChShaftsCouple, chrono::ChAssembly, chrono::ChLinkRotSpringCB, chrono::ChLinkScrew, chrono::ChLinkPointSpline, chrono::ChLoadContainer, chrono::ChShaftsClutch, chrono::ChContactContainerMulticoreSMC, and chrono::ChContactContainerMulticoreNSC.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/physics/ChObject.h
- /builds/uwsbel/chrono/src/chrono/physics/ChObject.cpp