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::ChLinkLockRevolutePrismatic, chrono::ChLinkLockPerpend, chrono::ChLinkMateFix, chrono::ChLinkLockParallel, chrono::ChLinkLockAlign, chrono::ChLinkLockFree, chrono::ChLinkLockOldham, chrono::ChLinkMateOrthogonal, chrono::ChLinkLockPlanePlane, chrono::ChLoadXYZnodeBodyBushing, chrono::ChLinkLockPointLine, chrono::ChLinkLockPointPlane, chrono::ChLinkLockPrismatic, chrono::ChLinkMateParallel, chrono::ChLinkLockCylindrical, chrono::ChLinkLockSpherical, chrono::ChLoadXYZnodeBodySpring, chrono::ChLoadBodyBodyBushingGeneric, chrono::ChLinkLockRevolute, chrono::ChLinkMateXdistance, chrono::ChLinkMateSpherical, chrono::ChLinkLockLock, chrono::ChLinkMateCoaxial, chrono::ChLoadXYZnodeXYZnodeBushing, chrono::ChLoadBodyBodyBushingSpherical, chrono::ChLinkMatePlane, chrono::ChMatterSPH, chrono::ChLoadXYZnodeXYZnodeSpring, chrono::fea::ChLinkPointTrifaceRot, chrono::ChLoadBodyBodyTorque, chrono::ChSystemParallelSMC, chrono::fea::ChLinkPointFrameGeneric, chrono::fea::ChMatterMeshless, chrono::ChParticlesClones, chrono::ChSystemParallelNSC, 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::ChContactContainerSMC, chrono::ChMarker, chrono::ChProximityContainerMeshless, chrono::ChProximityContainerSPH, chrono::ChShaftsTorsionSpringDamper, chrono::fea::ChLinkPointTriface, chrono::ChSystemSMC, chrono::fea::ChMesh, chrono::ChLinkMarkers, chrono::ChLinkMateGeneric, chrono::fea::ChLinkBeamIGAslider, chrono::ChShaft, chrono::ChLinkMotorRotationDriveline, chrono::ChShaftsPlanetary, chrono::ChLinkMotorLinearDriveline, chrono::ChShaftsGearboxAngled, chrono::ChShaftsMotorSpeed, chrono::ChBody, chrono::fea::ChLinkPointFrame, chrono::ChLoadBodyForce, chrono::ChShaftsGearbox, chrono::fea::ChLinkDirFrame, chrono::ChShaftsMotorAngle, chrono::ChForce, chrono::fea::ChLinkPointPoint, chrono::ChLinkPulley, chrono::ChPhysicsItem, chrono::ChShaftsTorqueConverter, chrono::ChLinkGear, chrono::ChLinkLinActuator, chrono::ChShaftsBody, chrono::ChBodyAuxRef, chrono::ChLinkBushing, chrono::ChLinkMotionImposed, chrono::ChSystemNSC, chrono::ChControllerPID, chrono::ChLinkRackpinion, chrono::ChLinkSpring, chrono::ChShaftsMotorTorque, chrono::ChLink, chrono::ChLinkDistance, chrono::ChLinkMotor, chrono::ChShaftsGear, chrono::ChLinkBrake, chrono::ChLinkClearance, chrono::ChLinkLock, chrono::ChLinkSpringCB, chrono::ChConveyor, chrono::ChLinkTSDA, chrono::fea::ChLoadContactSurfaceMesh, chrono::ChShaftsThermalEngine, chrono::ChLinkMate, chrono::ChLinkMotorLinearPosition, chrono::ChLinkMotorRotationAngle, chrono::ChLinkTrajectory, chrono::ChShaftsClutch, chrono::ChShaftsTorque, chrono::ChContactContainerParallel, chrono::ChLinkMotorLinearSpeed, chrono::ChLinkMotorRotationSpeed, chrono::ChLinkRevoluteSpherical, chrono::ChLoadBodyMesh, chrono::ChShaftsTorsionSpring, chrono::ChLinkMotorLinearForce, chrono::ChLinkMotorRotationTorque, chrono::ChLinkRevolute, chrono::ChLinkUniversal, chrono::ChLoadContainer, chrono::ChShaftsCouple, chrono::ChAssembly, chrono::ChLinkRevoluteTranslational, chrono::ChLinkRotSpringCB, chrono::ChLinkScrew, and chrono::ChLinkPointSpline.
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