AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxPowerLine::RotationalDimension Class Reference

The rotational has one rotational degree of freedom. More...

#include <RotationalDimension.h>

+ Inheritance diagram for agxPowerLine::RotationalDimension:

Public Types

typedef int Type
 
typedef agx::Vector< Type > TypeVector
 

Public Member Functions

 RotationalDimension (Unit *unit)
 Create a RotationalDimension with a direction relative to the world coordinate frame. More...
 
 RotationalDimension (agxPowerLine::Unit *unit, agx::RigidBody *body, agx::UInt8 slot)
 Virtual function so that an instance can find its own name and not the name of the base class. More...
 
 RotationalDimension (agxPowerLine::Unit *unit, agx::RigidBody *body, const agx::Vec3 &direction, agxPowerLine::DirectionReference directionReference, bool externalBody=false)
 Create a RotationalDimension whose direction can be relative to either the world or the body coordinate frame. More...
 
virtual void addLoad (agx::Real load)
 Add a load to the dimension. More...
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agxPowerLine::PhysicalDimension)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
virtual void calculateJacobian (agx::Jacobian6DOFElement *G, const agx::Real ratio, const size_t index) const
 Calculates jacobian for a physical dimension. More...
 
virtual void clear ()
 Clear all reference pointers. More...
 
bool connect (agxPowerLine::PhysicalDimension *otherDimension, agxPowerLine::Connector *connector)
 Connect to another dimension for possible power transfer. More...
 
agxPowerLine::detail::AbstractDimensionState1Dof * get1DofState ()
 Access the DimensionState as a 1-dimensional state. More...
 
const
agxPowerLine::detail::AbstractDimensionState1Dof * 
get1DofState () const
 
agxPowerLine::detail::AbstractDimensionState3Dof * get3DofState ()
 Access the DimensionState as a 3-dimensional state. More...
 
const
agxPowerLine::detail::AbstractDimensionState3Dof * 
get3DofState () const
 
size_t getBodyIndexIn (const RigidBodyPtrIntHashVector &bodyToIndexTable)
 
const char * getClassName () const override
 
const
agxPowerLine::ConnectionRefVector & 
getConnections (agxPowerLine::Side side) const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getConstraint (size_t outputConnection=0) const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
virtual agx::Real getGradient () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Real getInertia () const
 
const agxPowerLine::Connection * getInputConnection (size_t inputIndex=0) const
 Traversing helper functions. More...
 
Connection * getInputConnection (const Connector *connector)
 
Connection * getInputConnection (const Unit *unit)
 
const Connection * getInputConnection (const Connector *connector) const
 
const Connection * getInputConnection (const Unit *unit) const
 
agxPowerLine::Connection * getInputConnection (size_t inputIndex=0)
 
const
agxPowerLine::ConnectionRefVector & 
getInputConnections () const
 
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * getInputConstraint (size_t inputConnection=0) const
 
virtual agx::Real getInputLoad () const
 return the load in/out More...
 
agx::Real getInputTorque () const
 
virtual agx::Real getMassProperty () const override
 
const agx::Name & getName () const
 Returns the name of this PhysicalDimension instance. More...
 
size_t getNumConnections (agxPowerLine::Side side) const
 
size_t getNumConnections () const
 
size_t getNumInputConnections () const
 
size_t getNumOutputConnections () const
 
agx::RigidBody * getOrReserveBody ()
 Return a body that is guaranteed to not be shared with any other PhysicalDimension. More...
 
const agxPowerLine::Connection * getOutputConnection (size_t outputIndex=0) const
 
Connection * getOutputConnection (const Connector *connector)
 
Connection * getOutputConnection (const Unit *unit)
 
const Connection * getOutputConnection (const Connector *connector) const
 
const Connection * getOutputConnection (const Unit *unit) const
 
agxPowerLine::Connection * getOutputConnection (size_t outputIndex=0)
 
const
agxPowerLine::ConnectionRefVector & 
getOutputConnections () const
 
virtual agx::Real getOutputLoad () const override
 
agx::Real getOutputTorque () const
 
virtual agx::Real getPowerIn () const override
 
virtual agx::Real getPowerOut () const override
 
int getReferenceCount () const
 
agx::RigidBody * getReservedBody ()
 Return a body that is guaranteed to not be shared with any other PhysicalDimension. More...
 
const agx::RigidBody * getReservedBody () const
 
virtual agx::Real getSecondGradient () const
 
agxPowerLine::detail::DimensionState * getState ()
 Provides direct access to the underlying DimensionState. More...
 
const
agxPowerLine::detail::DimensionState * 
getState () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
agxPowerLine::PhysicalDimension::Type getType () const
 returns the PhysicalDimension::Type of this dimension More...
 
virtual std::string getTypeName () const override
 Virtual function so that an instance can find its own name and not the name of the base class. More...
 
const agxPowerLine::Unit * getUnit () const
 Returns pointer to the Unit that contains this dimension. More...
 
agxPowerLine::Unit * getUnit ()
 
agx::Uuid getUuid () const
 
virtual agx::Real getValue () const
 Physical properties of the dimension. More...
 
float getVelocityDamping () const
 
agx::Vec3 getWorldDirection () const
 
bool hasReservedBody () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isExternalBody () const
 Return true if the body that defines the dimension was given to the Power- Line, false if the body was created by the PowerLine. More...
 
bool isFinished () const
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
virtual void renderDebug () override
 Render the axis of the dimension. More...
 
void reserveBody ()
 Ensure that this PhysicalDimension does not share it's body with any other PhysicalDimension. More...
 
virtual bool restore (agxStream::StorageStream &in) override
 Restores internal data from stream. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
void restore (agxStream::InputArchive &in, agx::RigidBody *&body, bool &externalBody)
 
virtual void setAngularVelocityDamping (agx::Real damping)
 set the angular velocity damping. More...
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
virtual void setGradient (agx::Real value)
 
virtual bool setInertia (agx::Real value)
 set the inertia of the rotational dimension. More...
 
virtual void setMassProperty (agx::Real massProperty)
 Set the mass property of the dimension. More...
 
void setName (const agx::Name &name)
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void setValue (agx::Real value)
 
void setVelocityDamping (float damping)
 
virtual bool store (agxStream::StorageStream &out) const override
 Stores internal data into stream. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
static int getNumberOfPhysicalDimensions ()
 
static
agxPowerLine::PhysicalDimension::Type 
getStaticType ()
 
static std::string getStaticTypeName ()
 Each class inheriting from agxPowerLine::PhysicalDimension has to have a static function returning a unique name. More...
 
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Protected Member Functions

 RotationalDimension ()
 
virtual ~RotationalDimension ()
 
void addNotification (agxPowerLine::PowerLine *powerLine)
 
void addNotification (agxSDK::Simulation *simulation)
 Called when the Unit owning this PhysicalDimension is added to a simulation. More...
 
void addToListOfDimensions ()
 Add to singleton that controls the different types of physical dimensions. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
agxPowerLine::ConnectionRefVector & getConnectionsWritable (agxPowerLine::Side side)
 
void postUpdate (agx::Real timeStep)
 
bool removeInputConnection (Connection *connection)
 
void removeNotification (agxPowerLine::PowerLine *powerLine)
 
void removeNotification (agxSDK::Simulation *simulation)
 Called when the Unit owning this PhysicalDimension is removed from a simulation. More...
 
virtual void removeNotification (agxSDK::Simulation *simulation, agxUtil::ConstraintHolder *constraintHolder)
 Remove the PhysicalDimension from the simulation. More...
 
bool removeOutputConnection (Connection *connection)
 
bool restore (agxStream::StorageStream &in, const agx::Vec3 *direction)
 Some serialization versions stored the dimension axis direction in classes deriving from PhysicalDimension. More...
 

Static Protected Member Functions

static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Protected Attributes

ConnectionRefVector m_inputConnections
 
Mutex m_mutex
 
agx::Name m_name
 
ObserverContainer m_observers
 
ConnectionRefVector m_outputConnections
 
AtomicValue m_refCount
 
agxPowerLine::detail::PhysicalDimensionStateRef m_state
 
PhysicalDimension::Type m_type
 
Unit * m_unit
 

Detailed Description

The rotational has one rotational degree of freedom.

It has an angle as value, angular velocity as gradient and angular acceleration as second gradient.

Definition at line 45 of file RotationalDimension.h.

Member Typedef Documentation

Definition at line 96 of file PhysicalDimension.h.

Definition at line 97 of file PhysicalDimension.h.

Constructor & Destructor Documentation

agxPowerLine::RotationalDimension::RotationalDimension ( Unit *  unit)

Create a RotationalDimension with a direction relative to the world coordinate frame.

agxPowerLine::RotationalDimension::RotationalDimension ( agxPowerLine::Unit *  unit,
agx::RigidBody *  body,
agx::UInt8  slot 
)

Virtual function so that an instance can find its own name and not the name of the base class.

agxPowerLine::RotationalDimension::RotationalDimension ( agxPowerLine::Unit *  unit,
agx::RigidBody *  body,
const agx::Vec3 &  direction,
agxPowerLine::DirectionReference  directionReference,
bool  externalBody = false 
)

Create a RotationalDimension whose direction can be relative to either the world or the body coordinate frame.

agxPowerLine::RotationalDimension::RotationalDimension ( )
protected
virtual agxPowerLine::RotationalDimension::~RotationalDimension ( )
protectedvirtual

Member Function Documentation

virtual void agxPowerLine::PhysicalDimension::addLoad ( agx::Real  load)
virtualinherited

Add a load to the dimension.

The effect depends on the type of the dimension.

void agxPowerLine::PhysicalDimension::addNotification ( agxPowerLine::PowerLine *  powerLine)
protectedinherited
void agxPowerLine::PhysicalDimension::addNotification ( agxSDK::Simulation *  simulation)
protectedinherited

Called when the Unit owning this PhysicalDimension is added to a simulation.

The body backing this PhysicalDimension is then added to the same simulation.

void agxPowerLine::PhysicalDimension::addToListOfDimensions ( )
protectedinherited

Add to singleton that controls the different types of physical dimensions.

(PowerLineDimensionNameSingleton)

agxPowerLine::PhysicalDimension::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE ( agxPowerLine::PhysicalDimension  )
inherited
void agx::Referenced::allocateObserverVector ( ) const
protectedinherited
template<typename T >
T* agx::Referenced::as ( )
inherited

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().

template<typename T >
const T* agx::Referenced::as ( ) const
inherited
template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited
virtual void agxPowerLine::PhysicalDimension::calculateJacobian ( agx::Jacobian6DOFElement *  G,
const agx::Real  ratio,
const size_t  index 
) const
virtualinherited

Calculates jacobian for a physical dimension.

Parameters
G- Array of Jacobian elements to be filled in.
ratio- Scaling to apply in order to convert the dimension's unit direction to a constraint Jacobian.
index- Index in G to write to.
virtual void agxPowerLine::PhysicalDimension::clear ( )
virtualinherited

Clear all reference pointers.

bool agxPowerLine::PhysicalDimension::connect ( agxPowerLine::PhysicalDimension *  otherDimension,
agxPowerLine::Connector *  connector 
)
inherited

Connect to another dimension for possible power transfer.

Parameters
otherDimension- a physical dimension with a body defining another dof.
connector- defines the constraint between the dimensions
static agxStream::Serializable* agxPowerLine::RotationalDimension::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 118 of file RotationalDimension.h.

static agxStream::Serializable* agxPowerLine::RotationalDimension::create ( )
inlinestatic

Definition at line 118 of file RotationalDimension.h.

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited
void agxStream::Serializable::generateUuid ( )
protectedinherited
agxPowerLine::detail::AbstractDimensionState1Dof* agxPowerLine::PhysicalDimension::get1DofState ( )
inherited

Access the DimensionState as a 1-dimensional state.

Will return nullptr if the PhysicalDimension has a 3-dimensional DimensionState.

See Also
get3DofState
const agxPowerLine::detail::AbstractDimensionState1Dof* agxPowerLine::PhysicalDimension::get1DofState ( ) const
inherited
agxPowerLine::detail::AbstractDimensionState3Dof* agxPowerLine::PhysicalDimension::get3DofState ( )
inherited

Access the DimensionState as a 3-dimensional state.

Will return nullptr if the PhysicalDimension has a 1-dimensional DimensionState.

See Also
get1DofState
const agxPowerLine::detail::AbstractDimensionState3Dof* agxPowerLine::PhysicalDimension::get3DofState ( ) const
inherited
size_t agxPowerLine::PhysicalDimension::getBodyIndexIn ( const RigidBodyPtrIntHashVector &  bodyToIndexTable)
inherited
const char* agxPowerLine::RotationalDimension::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 118 of file RotationalDimension.h.

const agxPowerLine::ConnectionRefVector& agxPowerLine::PhysicalDimension::getConnections ( agxPowerLine::Side  side) const
inherited
agxPowerLine::ConnectionRefVector& agxPowerLine::PhysicalDimension::getConnectionsWritable ( agxPowerLine::Side  side)
protectedinherited
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::PhysicalDimension::getConstraint ( size_t  outputConnection = 0) const
inherited
Returns
pointer to a constraint going out from this dimension (one constraint for each output connection)
static const char* agxPowerLine::RotationalDimension::getConstructClassId ( )
inlinestatic

Definition at line 118 of file RotationalDimension.h.

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.
bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object
virtual agx::Real agxPowerLine::PhysicalDimension::getGradient ( ) const
virtualinherited
agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

agx::Real agxPowerLine::RotationalDimension::getInertia ( ) const
const agxPowerLine::Connection* agxPowerLine::PhysicalDimension::getInputConnection ( size_t  inputIndex = 0) const
inherited

Traversing helper functions.

Has to be public. Do NOT use them.

Connection* agxPowerLine::PhysicalDimension::getInputConnection ( const Connector *  connector)
inherited
Connection* agxPowerLine::PhysicalDimension::getInputConnection ( const Unit *  unit)
inherited
const Connection* agxPowerLine::PhysicalDimension::getInputConnection ( const Connector *  connector) const
inherited
const Connection* agxPowerLine::PhysicalDimension::getInputConnection ( const Unit *  unit) const
inherited
agxPowerLine::Connection* agxPowerLine::PhysicalDimension::getInputConnection ( size_t  inputIndex = 0)
inherited
const agxPowerLine::ConnectionRefVector& agxPowerLine::PhysicalDimension::getInputConnections ( ) const
inherited
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* agxPowerLine::PhysicalDimension::getInputConstraint ( size_t  inputConnection = 0) const
inherited
Returns
a constraint going into this dimension. It's properties are defined by the parent dimension.
virtual agx::Real agxPowerLine::PhysicalDimension::getInputLoad ( ) const
virtualinherited

return the load in/out

Reimplemented in agxHydraulics::FlowDimension.

agx::Real agxPowerLine::RotationalDimension::getInputTorque ( ) const
virtual agx::Real agxPowerLine::RotationalDimension::getMassProperty ( ) const
overridevirtual
Returns
the inertia of the rotational dimension.

Reimplemented from agxPowerLine::PhysicalDimension.

const agx::Name& agxPowerLine::PhysicalDimension::getName ( ) const
inherited

Returns the name of this PhysicalDimension instance.

There are two types of names for a PhysicalDimension: the instance name and the type name. The instance name can be set by the user and the type name is an indentifier for a type of PhysicalDimension. For example, all RotationalDimensions have the same type name but may have different instance names.

See Also
getTypeName
getActualTypeName
Returns
This PhysicalDimension's name.
static int agxPowerLine::PhysicalDimension::getNumberOfPhysicalDimensions ( )
staticinherited
Returns
the total number of different types of physical dimensions in the simulation
size_t agxPowerLine::PhysicalDimension::getNumConnections ( agxPowerLine::Side  side) const
inherited
size_t agxPowerLine::PhysicalDimension::getNumConnections ( ) const
inherited
size_t agxPowerLine::PhysicalDimension::getNumInputConnections ( ) const
inherited
size_t agxPowerLine::PhysicalDimension::getNumOutputConnections ( ) const
inherited
agx::RigidBody* agxPowerLine::PhysicalDimension::getOrReserveBody ( )
inherited

Return a body that is guaranteed to not be shared with any other PhysicalDimension.

May create a new body for this PhysicalDimension.

See Also
reserveBody
getReservedBody
const agxPowerLine::Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( size_t  outputIndex = 0) const
inherited
Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( const Connector *  connector)
inherited
Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( const Unit *  unit)
inherited
const Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( const Connector *  connector) const
inherited
const Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( const Unit *  unit) const
inherited
agxPowerLine::Connection* agxPowerLine::PhysicalDimension::getOutputConnection ( size_t  outputIndex = 0)
inherited
const agxPowerLine::ConnectionRefVector& agxPowerLine::PhysicalDimension::getOutputConnections ( ) const
inherited
virtual agx::Real agxPowerLine::RotationalDimension::getOutputLoad ( ) const
overridevirtual
Returns
input/output torque

Reimplemented from agxPowerLine::PhysicalDimension.

agx::Real agxPowerLine::RotationalDimension::getOutputTorque ( ) const
virtual agx::Real agxPowerLine::RotationalDimension::getPowerIn ( ) const
overridevirtual
Returns
power in/out of the rotational dof.

Reimplemented from agxPowerLine::PhysicalDimension.

virtual agx::Real agxPowerLine::RotationalDimension::getPowerOut ( ) const
overridevirtual

Reimplemented from agxPowerLine::PhysicalDimension.

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.
agx::RigidBody* agxPowerLine::PhysicalDimension::getReservedBody ( )
inherited

Return a body that is guaranteed to not be shared with any other PhysicalDimension.

Will return nullptr if no such guarantee can be made.

See Also
reserveBody
const agx::RigidBody* agxPowerLine::PhysicalDimension::getReservedBody ( ) const
inherited
virtual agx::Real agxPowerLine::PhysicalDimension::getSecondGradient ( ) const
virtualinherited
agxPowerLine::detail::DimensionState* agxPowerLine::PhysicalDimension::getState ( )
inherited

Provides direct access to the underlying DimensionState.

This should be considered an implementation detail and not called in user code.

const agxPowerLine::detail::DimensionState* agxPowerLine::PhysicalDimension::getState ( ) const
inherited
static agxPowerLine::PhysicalDimension::Type agxPowerLine::RotationalDimension::getStaticType ( )
static
static std::string agxPowerLine::RotationalDimension::getStaticTypeName ( )
static

Each class inheriting from agxPowerLine::PhysicalDimension has to have a static function returning a unique name.

The rotational dimension has the name "ROTATIONAL".

agxStream::StorageAgent* agxPowerLine::RotationalDimension::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 118 of file RotationalDimension.h.

agxPowerLine::PhysicalDimension::Type agxPowerLine::PhysicalDimension::getType ( ) const
inherited

returns the PhysicalDimension::Type of this dimension

virtual std::string agxPowerLine::RotationalDimension::getTypeName ( ) const
overridevirtual

Virtual function so that an instance can find its own name and not the name of the base class.

Reimplemented from agxPowerLine::PhysicalDimension.

const agxPowerLine::Unit* agxPowerLine::PhysicalDimension::getUnit ( ) const
inherited

Returns pointer to the Unit that contains this dimension.

agxPowerLine::Unit* agxPowerLine::PhysicalDimension::getUnit ( )
inherited
agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

virtual agx::Real agxPowerLine::PhysicalDimension::getValue ( ) const
virtualinherited

Physical properties of the dimension.

Implement these in child class. (value is for example angle or position. gradient is velocity ...)

float agxPowerLine::PhysicalDimension::getVelocityDamping ( ) const
inherited
agx::Vec3 agxPowerLine::PhysicalDimension::getWorldDirection ( ) const
inherited
bool agxPowerLine::PhysicalDimension::hasReservedBody ( ) const
inherited
Returns
True if this PhysicalDimension has a reserved body, false otherwise.
template<typename T >
bool agx::Referenced::is ( ) const
inherited
bool agxPowerLine::PhysicalDimension::isExternalBody ( ) const
inherited

Return true if the body that defines the dimension was given to the Power- Line, false if the body was created by the PowerLine.

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

void agxPowerLine::RotationalDimension::postUpdate ( agx::Real  timeStep)
protected
void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.

This method should be used with care, always balanced with the same number of calls to unreference.

Referenced by agxData::Val< UInt >::Val().

bool agxPowerLine::PhysicalDimension::removeInputConnection ( Connection *  connection)
protectedinherited
void agxPowerLine::PhysicalDimension::removeNotification ( agxPowerLine::PowerLine *  powerLine)
protectedinherited
void agxPowerLine::PhysicalDimension::removeNotification ( agxSDK::Simulation *  simulation)
protectedinherited

Called when the Unit owning this PhysicalDimension is removed from a simulation.

/

virtual void agxPowerLine::PhysicalDimension::removeNotification ( agxSDK::Simulation *  simulation,
agxUtil::ConstraintHolder *  constraintHolder 
)
protectedvirtualinherited

Remove the PhysicalDimension from the simulation.

May only be called if there are no connections to or from the dimension.

bool agxPowerLine::PhysicalDimension::removeOutputConnection ( Connection *  connection)
protectedinherited
virtual void agxPowerLine::RotationalDimension::renderDebug ( )
overridevirtual

Render the axis of the dimension.

Reimplemented from agxPowerLine::PhysicalDimension.

void agxPowerLine::PhysicalDimension::reserveBody ( )
inherited

Ensure that this PhysicalDimension does not share it's body with any other PhysicalDimension.

A new body may be created for this PhysicalDimension in order to make that guarantee. Body sharing becomes disabled for this PhysicalDimension.

virtual bool agxPowerLine::RotationalDimension::restore ( agxStream::StorageStream &  in)
overridevirtual

Restores internal data from stream.

Reimplemented from agxPowerLine::PhysicalDimension.

Reimplemented in agxPowerLine::ActuatorRotationalDimension.

virtual void agxPowerLine::RotationalDimension::restore ( agxStream::InputArchive &  in)
overridevirtual
void agxPowerLine::PhysicalDimension::restore ( agxStream::InputArchive &  in,
agx::RigidBody *&  body,
bool &  externalBody 
)
inherited
bool agxPowerLine::PhysicalDimension::restore ( agxStream::StorageStream &  in,
const agx::Vec3 *  direction 
)
protectedinherited

Some serialization versions stored the dimension axis direction in classes deriving from PhysicalDimension.

When loading such classes from such streams the restoring derived class need to pass the direction into the parent class, since the parent class is unable to read it from the stream.

virtual void agxPowerLine::RotationalDimension::setAngularVelocityDamping ( agx::Real  damping)
virtual

set the angular velocity damping.

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

virtual void agxPowerLine::PhysicalDimension::setGradient ( agx::Real  value)
virtualinherited
virtual bool agxPowerLine::RotationalDimension::setInertia ( agx::Real  value)
virtual

set the inertia of the rotational dimension.

Return values
Wasit successful?
virtual void agxPowerLine::PhysicalDimension::setMassProperty ( agx::Real  massProperty)
virtualinherited

Set the mass property of the dimension.

void agxPowerLine::PhysicalDimension::setName ( const agx::Name &  name)
inherited
void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

virtual void agxPowerLine::PhysicalDimension::setValue ( agx::Real  value)
virtualinherited
void agxPowerLine::PhysicalDimension::setVelocityDamping ( float  damping)
inherited
virtual bool agxPowerLine::RotationalDimension::store ( agxStream::StorageStream &  out) const
overridevirtual

Stores internal data into stream.

Reimplemented from agxPowerLine::PhysicalDimension.

Reimplemented in agxPowerLine::ActuatorRotationalDimension.

virtual void agxPowerLine::RotationalDimension::store ( agxStream::OutputArchive &  out) const
overridevirtual
void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.

This method should be used with care, always balanced with the same number of calls to reference.

void agx::Referenced::unreference_nodelete ( ) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

Member Data Documentation

ConnectionRefVector agxPowerLine::PhysicalDimension::m_inputConnections
protectedinherited

Definition at line 437 of file PhysicalDimension.h.

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

agx::Name agxPowerLine::PhysicalDimension::m_name
protectedinherited

Definition at line 441 of file PhysicalDimension.h.

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

ConnectionRefVector agxPowerLine::PhysicalDimension::m_outputConnections
protectedinherited

Definition at line 438 of file PhysicalDimension.h.

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

agxPowerLine::detail::PhysicalDimensionStateRef agxPowerLine::PhysicalDimension::m_state
protectedinherited

Definition at line 440 of file PhysicalDimension.h.

PhysicalDimension::Type agxPowerLine::PhysicalDimension::m_type
protectedinherited

Definition at line 436 of file PhysicalDimension.h.

Unit* agxPowerLine::PhysicalDimension::m_unit
protectedinherited

Definition at line 439 of file PhysicalDimension.h.


The documentation for this class was generated from the following file: