MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / SimulatorBase

Method SimulatorBase

Simulator/SimulatorBase.cpp:66–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66SimulatorBase::SimulatorBase()
67{
68 Utilities::logger.addSink(shared_ptr<Utilities::ConsoleSink>(new Utilities::ConsoleSink(Utilities::LogLevel::INFO)));
69
70 m_boundarySimulator = nullptr;
71 m_gui = nullptr;
72 m_isStaticScene = true;
73 m_numberOfStepsPerRenderUpdate = 4;
74 m_renderWalls = 4;
75 m_doPause = true;
76 m_pauseAt = -1.0;
77 m_stopAt = -1.0;
78 m_useParticleCaching = true;
79 m_useGUI = true;
80 m_enableRigidBodyVTKExport = false;
81 m_enableRigidBodyExport = false;
82 m_enableStateExport = false;
83 m_enableAsyncExport = false;
84 m_enableObjectSplitting = false;
85 m_cameraPosition = Vector3r(0.0, 3.0, 8.0);
86 m_cameraLookAt = Vector3r::Zero();
87 m_framesPerSecond = 25;
88 m_framesPerSecondState = 1;
89 m_nextFrameTime = 0.0;
90 m_nextFrameTimeState = 0.0;
91 m_frameCounter = 1;
92 m_isFirstFrame = true;
93 m_isFirstFrameVTK = true;
94 m_firstState = true;
95 m_colorField.resize(1, "velocity");
96 m_colorMapType.resize(1, 0);
97 m_renderMinValue.resize(1, 0.0);
98 m_renderMaxValue.resize(1, 5.0);
99 m_visible.resize(1, true);
100 m_particleAttributes = "velocity";
101 m_timeStepCB = nullptr;
102 m_resetCB = nullptr;
103 m_updateGUI = false;
104 m_currentObjectId = 0;
105#ifdef DL_OUTPUT
106 m_nextTiming = 1.0;
107#endif
108#ifdef USE_EMBEDDED_PYTHON
109 m_scriptObject = nullptr;
110#endif
111}
112
113SimulatorBase::~SimulatorBase()
114{

Callers 12

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

addSinkMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected