Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
iglobals.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "dim.h"
8 
9 namespace itascaxd {
10  class IContainerContact;
11  class IContact;
12 
14 
18  class IGlobals {
19  public:
21  virtual const QObject *getQObject() const=0;
23  virtual double getTimestep() const=0;
25  virtual quint64 getTotalCycles() const=0;
27  virtual DVect getGravity() const=0;
29  virtual uint getThreads() const=0;
31  virtual bool getOrientTracking() const=0;
33  virtual bool getDeterministic() const=0;
34 
35  virtual double getFactorOfSafetyTol() const=0;
37  virtual double getFactorOfSafety() const=0;
39  virtual bool getDeterministicDefault() const=0;
41  virtual bool getCompressFiles() const=0;
43  virtual bool getSavePlugins() const=0;
45  virtual bool getShowInBrowser() const=0;
47  virtual uint getPrecisionDefault() const = 0;
49  virtual uint getPrecision() const = 0;
51  virtual uint getDimension() const = 0;
53  virtual bool getDetectionState() const = 0;
54  // Get the large strain state
55  virtual bool getLargeStrain() const=0;
56  virtual bool getUseDeterminism() const=0;
57 
58 
59  // SLOTS
61  virtual void setGravity(const DVect &v)=0;
63  virtual void setThreads(uint i)=0;
65  virtual void setOrientTracking(bool b)=0;
67  virtual void setDeterministic(bool b)=0;
69  virtual void setDeterministicDefault(bool b)=0;
71  virtual void setCompressFiles(bool b)=0;
73  virtual void setSavePlugins(bool b)=0;
75  virtual void setShowInBrowser(bool b)=0;
77  virtual void setPrecisionDefault(int i)=0;
79  virtual void setPrecision(int i)=0;
81  virtual void setDetectionState(bool)= 0;
82  // Set the large strain state
83  virtual void setLargeStrain(bool)=0;
84 
85  // SIGNALS
87  virtual void timestepChanged(const double &d)=0;
89  virtual void gravityChanged(const DVect &v)=0;
91  virtual void threadsChanged(uint)=0;
92  virtual void factorOfSafetyTolChanged(double d)=0;
93  virtual void factorOfSafetyChanged(double d)=0;
95  virtual void determinismChanged(bool)=0;
97  virtual void deterministicDefaultChanged(bool)=0;
99  virtual void compressFilesChanged(bool)=0;
101  virtual void savePluginsChanged(bool)=0;
103  virtual void showInBrowserChanged(bool)=0;
105  virtual void precisionDefaultChanged(uint)=0;
107  virtual void precisionChanged(uint)=0;
109  virtual void detectionStateChanged(bool b)=0;
111  virtual void largeStrainChanged(bool b)=0;
112 
113  };
114 } // namespace itascaxd
115 // EOF
virtual void setThreads(uint i)=0
Sets the target number of processors to be used by default in multithreaded computations.
virtual void determinismChanged(bool)=0
Signal emitted when the deterministic mode has changed.
virtual const QObject * getQObject() const =0
Returns an IThing interface for this object.
virtual void precisionDefaultChanged(uint)=0
Signal emitted when the default precision is changed.
virtual void setSavePlugins(bool b)=0
Sets whether saving plugins with the project is on or off.
virtual bool getCompressFiles() const =0
Whether new save files should be compressed.
virtual double getTimestep() const =0
Returns the timestep.
virtual void setShowInBrowser(bool b)=0
Sets whether help is shown in browser.
DIM - Provides code portability between 2D and 3D codes.
virtual bool getDeterministicDefault() const =0
Whether determinism defaults to on or off on model reset.
virtual void timestepChanged(const double &d)=0
Signal emitted when the timestep has changed.
virtual void setDeterministicDefault(bool b)=0
Sets whether determinism os on or off on model reset.
virtual void largeStrainChanged(bool b)=0
Signal emitted when the large strain state is changed.
virtual uint getPrecision() const =0
Get the precision for printing.
virtual uint getThreads() const =0
Returns the target number of threads to be used by default in multithreaded computations.
virtual void savePluginsChanged(bool)=0
Signal emitted when somebody changes save plugins on a project save.
virtual void setDetectionState(bool)=0
Set the contact detection state.
virtual bool getOrientTracking() const =0
Returns the boolean indicating whether or not orientation tracking is enabled.
virtual void setPrecision(int i)=0
Set the precision for printing.
virtual void deterministicDefaultChanged(bool)=0
Signal emitted when somebody changes default deterministic setting on model reset.
virtual void detectionStateChanged(bool b)=0
Signal emitted when the contact detection state is changed.
virtual void compressFilesChanged(bool)=0
Signal emitted when somebody changes the "compress new save files and result files" setting.
virtual double getFactorOfSafety() const =0
Last calculated mechanical factor-of-safety.
virtual DVect getGravity() const =0
Returns the gravitational-acceleration vector.
virtual void setDeterministic(bool b)=0
Sets the deterministic mode state.
Interface to modele global settings.
Definition: iglobals.h:18
virtual bool getShowInBrowser() const =0
Whether help is shown in defaul browser.
virtual uint getPrecisionDefault() const =0
Get the precision for printing.
virtual void showInBrowserChanged(bool)=0
Signal emitted when somebody changes the "show help in default web browser" setting.
virtual bool getDeterministic() const =0
Returns the boolean indicating whether or not deterministic mode is enabled.
virtual bool getSavePlugins() const =0
Whether plugins are saved with the project.
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
virtual void setGravity(const DVect &v)=0
Sets the gravitational-acceleration vector.
virtual void gravityChanged(const DVect &v)=0
Signal emitted when the gravity vector changed.
virtual bool getDetectionState() const =0
Get the contact detection state.
virtual void precisionChanged(uint)=0
Signal emitted when the precision is changed.
virtual void setCompressFiles(bool b)=0
Sets whether new save files get compressed.
virtual uint getDimension() const =0
Get the dimensionality of the code.
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition: dim.h:145
virtual void setOrientTracking(bool b)=0
Sets the orientation tracking state.
virtual void threadsChanged(uint)=0
Signal emitted when the target number of threads to be used by default in multithreaded computations.
virtual quint64 getTotalCycles() const =0
Returns the total number of cycles.
virtual void setPrecisionDefault(int i)=0
Set the default precision for printing.