SBMDynamicalModelEvent Class Reference

This class describes a dynamical event.

Event types

enum  Type {
  DynamicalModelChanged,
  ChildAdded,
  ChildRemoved,
  PositionBufferFlushBegin,
  PositionBufferFlushEnd,
  MomentumBufferFlushBegin,
  MomentumBufferFlushEnd,
  ActivityFlagChanged,
  MassChanged,
  PeriodicBoundaryConditionsChanged,
  PeriodicBoundaryConditionsFlagChanged,
  StructuralParticleAddBegin,
  StructuralParticleAddEnd,
  StructuralParticleRemoveBegin,
  StructuralParticleRemoveEnd,
  StructuralModelAddBegin,
  StructuralModelAddEnd,
  StructuralModelRemoveBegin,
  StructuralModelRemoveEnd
}
 The type of the dynamical model event. More...
 

Constructors and destructors

 SBMDynamicalModelEvent (SBDDataGraphNode *sender, Type type, SBDDataGraphNode *auxiliaryNode=0)
 Builds a dynamical event.
 
virtual ~SBMDynamicalModelEvent ()
 Deletes the dynamical event.
 

Identity

virtual Category getCategory () const
 
Type getType () const
 
SBDDataGraphNodegetAuxiliaryNode () const
 
static std::string getTypeString (Type type)
 

Debugging

virtual void print (unsigned int offset=0) const
 Prints debugging information.
 
 SB_DECLARE_DATA (SBMDynamicalModelEvent)
 

Additional Inherited Members

- Public Types inherited from SBDDataGraphEvent
enum  Category {
  UndefinedEvent,
  BaseEvent,
  DocumentEvent,
  StructuralEvent,
  VisualEvent,
  DynamicalEvent,
  InteractionEvent,
  PropertyEvent,
  StateUpdaterEvent,
  SimulatorEvent,
  ControllerEvent,
  AssetEvent
}
 The category of the data graph event. More...
 
- Public Member Functions inherited from SBDDataGraphEvent
 SBDDataGraphEvent (SBDDataGraphNode *sender)
 
virtual ~SBDDataGraphEvent ()
 
SBDDataGraphNodegetSender () const
 This function returns the sender of an event.
 
 SB_DECLARE_DATA (SBDDataGraphEvent)
 
- Static Public Member Functions inherited from SBDDataGraphEvent
static std::string getCategoryString (Category category)
 
- Protected Member Functions inherited from SBDDataGraphEvent
 SBDDataGraphEvent (SBDDataGraphEventData *dataPointer)
 
- Protected Attributes inherited from SBDDataGraphEvent
SBDDataGraphEventData * dataPointer
 

Member Enumeration Documentation

◆ Type

Enumerator
DynamicalModelChanged 

A dynamical model was changed.

ChildAdded 

A child was added.

ChildRemoved 

A child was removed.

PositionBufferFlushBegin 

Position buffer flush started.

PositionBufferFlushEnd 

Position buffer flush finished.

MomentumBufferFlushBegin 

Momentum buffer flush started.

MomentumBufferFlushEnd 

Momentum buffer flush finished.

ActivityFlagChanged 

An activity flag was changed.

MassChanged 

Mass was changed.

PeriodicBoundaryConditionsChanged 

Periodic boundary conditions were changed.

PeriodicBoundaryConditionsFlagChanged 

Periodic boundary conditions flag was changed.

StructuralParticleAddBegin 

An addition of a structural particle started.

StructuralParticleAddEnd 

An addition of a structural particle finished.

StructuralParticleRemoveBegin 

A removal of a structural particle started.

StructuralParticleRemoveEnd 

A removal of a structural particle finished.

StructuralModelAddBegin 

An addition of a structural model started.

StructuralModelAddEnd 

An addition of a structural model finished.

StructuralModelRemoveBegin 

A removal of a structural model started.

StructuralModelRemoveEnd 

A removal of a structural model finished.