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 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()

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

"Virtual" copy constructor.

Concrete derived classes must implement this.

Implemented in chrono::ChLinkMateFix, chrono::ChLinkMateOrthogonal, chrono::fea::ChLoadXYZROTnodeBodyBushingGeneric, chrono::ChLinkLockRevolutePrismatic, chrono::ChLinkMateParallel, chrono::ChLinkLockPerpend, chrono::ChLinkLockParallel, chrono::ChLinkLockAlign, chrono::ChLinkMateXdistance, chrono::ChLinkLockFree, chrono::ChLoadBodyBodyBushingGeneric, chrono::ChLinkLockOldham, chrono::ChLinkMateSpherical, chrono::ChLinkLockPlanePlane, chrono::fea::ChLoadXYZROTnodeBodyBushingSpherical, chrono::ChLinkLockPointLine, chrono::ChLinkLockPointPlane, chrono::ChLinkMatePrismatic, chrono::ChLinkLockPrismatic, chrono::ChLinkLockCylindrical, chrono::ChLinkLockSpherical, chrono::ChLoadXYZnodeBodyBushing, chrono::ChLinkLockRevolute, chrono::ChLinkMateRevolute, chrono::ChLoadBodyBodyBushingSpherical, chrono::ChLoadXYZnodeBodySpring, chrono::ChLinkMateCoaxial, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingGeneric, chrono::ChLoadBodyBodyTorque, chrono::ChLinkLockLock, chrono::ChLinkMatePlane, chrono::ChLoadXYZnodeXYZnodeBushing, chrono::fea::ChLinkPointTrifaceRot, chrono::fea::ChLinkPointFrameGeneric, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingSpherical, chrono::ChLoadXYZnodeXYZnodeSpring, chrono::ChLoad< Tloader >, chrono::ChLoad< ChLoaderBeamWrench >, chrono::ChLoad< ChLoaderXYZnode >, chrono::ChLoad< ChLoaderBeamWrenchDistributed >, chrono::ChLoadBodyInertia, chrono::ChParticleCloud, chrono::ChShaftsBodyTranslation, chrono::ChLoadXYZnodeForceAbsolute, chrono::ChShaftsElasticGear, chrono::ChLoadBodyTorque, chrono::ChShaftsMotor, chrono::ChContactContainerNSC, chrono::fea::ChLoadXYZROTnodeForceAbsolute, chrono::ChContactContainerSMC, chrono::ChMarker, chrono::ChLinkMateGeneric, chrono::ChShaftsTorsionSpringDamper, chrono::fea::ChLinkPointTriface, chrono::fea::ChLinkBeamIGAslider, chrono::ChShaft, chrono::ChLinkMarkers, chrono::ChLinkMotorRotationDriveline, chrono::ChLinkMotorLinearDriveline, chrono::ChShaftsGearboxAngled, chrono::ChShaftsMotorSpeed, chrono::ChLoadBodyForce, chrono::ChShaftsGearbox, chrono::fea::ChLinkPointFrame, chrono::ChShaftsMotorAngle, chrono::fea::ChLinkDirFrame, chrono::ChForce, chrono::ChLinkPulley, chrono::ChShaftsTorqueConverter, chrono::ChBody, chrono::ChLinkGear, chrono::ChLinkMotionImposed, chrono::fea::ChLinkPointPoint, chrono::fea::ChMesh, chrono::ChLinkMate, chrono::ChShaftsBody, chrono::ChControllerPID, chrono::ChLinkMotor, chrono::ChLinkRackpinion, chrono::ChShaftsMotorTorque, chrono::ChLink, chrono::ChShaftsFreewheel, chrono::ChShaftsGear, chrono::ChConveyor, chrono::ChLinkBrake, chrono::ChLinkClearance, chrono::ChLinkTSDA, chrono::ChBodyAuxRef, chrono::ChFeeder, chrono::ChLinkLock, chrono::ChPhysicsItem, chrono::ChShaftsPlanetary, chrono::ChLinkBushing, chrono::modal::ChModalAssembly, chrono::ChShaftsThermalEngine, chrono::ChLinkMotorLinearPosition, chrono::ChLinkMotorRotationAngle, chrono::ChLinkTrajectory, chrono::ChShaftsTorque, chrono::fea::ChLoadContactSurfaceMesh, chrono::ChLinkRevoluteSpherical, chrono::ChLinkDistance, chrono::ChLinkMotorLinearSpeed, chrono::ChLinkMotorRotationSpeed, chrono::ChLinkRevolute, chrono::ChLinkUniversal, chrono::ChShaftsTorsionSpring, chrono::ChLinkMotorLinearForce, chrono::ChLinkMotorRotationTorque, chrono::ChLinkRSDA, chrono::ChAssembly, chrono::ChLinkRevoluteTranslational, chrono::ChLoadBodyMesh, chrono::ChShaftsCouple, chrono::ChExternalDynamics, chrono::ChLinkScrew, chrono::ChLinkPointSpline, chrono::ChLoadContainer, chrono::ChShaftsClutch, chrono::ChContactContainerMulticoreSMC, chrono::ChLinkLinActuator, 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