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::fea::ChLoadXYZROTnodeBodyBushingGeneric, chrono::ChLinkLockRevolutePrismatic, chrono::ChLinkLockPerpend, chrono::ChLinkLockParallel, chrono::ChLinkLockAlign, chrono::ChLinkLockFree, chrono::ChLoadBodyBodyBushingGeneric, 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::ChLinkLockRevolute, chrono::ChLoadBodyBodyBushingSpherical, chrono::ChLinkMateXdistance, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingGeneric, chrono::ChLinkMateSpherical, chrono::ChLoadBodyBodyTorque, chrono::ChLinkLockLock, chrono::ChLinkMateCoaxial, chrono::ChLoadXYZnodeXYZnodeBushing, chrono::ChLinkMatePlane, chrono::ChMatterSPH, chrono::ChLoadXYZnodeXYZnodeSpring, chrono::fea::ChLinkPointTrifaceRot, chrono::fea::ChMatterMeshless, chrono::fea::ChLinkPointFrameGeneric, chrono::fea::ChLoadXYZROTnodeXYZROTnodeBushingSpherical, chrono::ChLoad< Tloader >, chrono::ChLoad< ChLoaderBeamWrench >, chrono::ChLoad< ChLoaderXYZnode >, chrono::ChLoad< ChLoaderBeamWrenchDistributed >, chrono::ChLoadBodyInertia, chrono::ChShaftsBodyTranslation, chrono::ChParticleCloud, 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::fea::ChLinkPointPoint, chrono::ChShaftsBody, chrono::ChLinkMotionImposed, chrono::ChControllerPID, chrono::ChLinkMotor, chrono::ChLinkRackpinion, chrono::ChShaftsMotorTorque, chrono::ChBodyAuxRef, chrono::ChLink, chrono::ChShaftsFreewheel, chrono::ChShaftsGear, chrono::ChConveyor, chrono::ChLinkBrake, chrono::ChLinkClearance, chrono::ChFeeder, chrono::ChLinkBushing, chrono::ChLinkLock, chrono::ChLinkTSDA, chrono::ChShaftsPlanetary, chrono::fea::ChLoadContactSurfaceMesh, chrono::ChPhysicsItem, chrono::modal::ChModalAssembly, chrono::ChShaftsThermalEngine, chrono::ChLinkMate, chrono::ChLinkMotorLinearPosition, chrono::ChLinkMotorRotationAngle, chrono::ChLinkTrajectory, chrono::ChShaftsTorque, chrono::ChLinkRevoluteSpherical, chrono::ChLinkMotorLinearSpeed, chrono::ChLinkMotorRotationSpeed, chrono::ChLinkRevolute, chrono::ChLinkUniversal, chrono::ChShaftsTorsionSpring, chrono::ChLinkMotorLinearForce, chrono::ChLinkMotorRotationTorque, chrono::ChAssembly, chrono::ChLinkRevoluteTranslational, chrono::ChLoadBodyMesh, chrono::ChShaftsCouple, chrono::ChLinkRSDA, chrono::ChLinkScrew, chrono::ChLinkPointSpline, chrono::ChLinkDistance, 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