21 #ifndef POLYSCOPERSVS_H_INCLUDED
22 #define POLYSCOPERSVS_H_INCLUDED
73 void show(
size_t forFrames = SIZE_MAX);
108 float addCells(std::string name,
const mesh &meshIn,
const std::vector<int> &&cellIndices,
bool isIndex =
true);
A structure containing the information about the polyscope display and the RSVS elements to display.
void addMesh(std::string name, const mesh &meshIn)
Add a mesh with a given name to the polyscope window.
float addCells(std::string name, const mesh &meshIn, const std::vector< int > &&cellIndices, bool isIndex=true)
Plot specified volume elements into polyscope.
bool isHeadless
Captures whether the RSVS window is being displayed or not.
PolyScopeRSVS()
Initialize polyscope, creating graphics contexts and constructing a window.
void addSurfaceProperties(std::string name, const mesh &surfaceMesh)
Adds properties of the surface of a snake to it's mesh as scalar quantities.
void show(size_t forFrames=SIZE_MAX)
Show the polyscope window.
void setInteractiveCallback(integrate::RSVSclass &RSVSobj)
Set polyscope's user callback to a lambda which allows control of the RSVSobj.
void addSnake(std::string name, const snake &snakeIn)
PLot a snake with it's velocity in the given polyscope window.
int show()
Should display the polyscope window.
int init()
Should initialise polyscope.
bool TEST_HEADLESS
Boolean controlling wether tests are run in headless mode or not.
int meshShow()
Should display a single small cubic mesh.
Namespace containing interfaces to polyscope for RSVS objects.
bool POLYSCOPE_INITIALISED
Flag controlling wether polyscope has been initialised or not.