BioDynaMo
v1.05.125-2619fe54
Home
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
l
n
o
p
r
s
t
u
v
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
b
c
d
e
f
i
n
p
r
t
v
Enumerations
Enumerator
Related Functions
:
d
e
i
m
o
p
r
s
t
Files
File List
File Members
All
_
b
c
d
h
n
p
s
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
core
visualization
root
notebook_util.h
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
//
3
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4
// BioDynaMo collaboration. All Rights Reserved.
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
//
9
// See the LICENSE file distributed with this work for details.
10
// See the NOTICE file distributed with this work for additional information
11
// regarding copyright ownership.
12
//
13
// -----------------------------------------------------------------------------
14
#ifndef CORE_VISUALIZATION_ROOT_NOTEBOOK_UTIL_H_
15
#define CORE_VISUALIZATION_ROOT_NOTEBOOK_UTIL_H_
16
17
#include <string>
18
#include <utility>
19
20
#include "
core/simulation.h
"
21
#include "
core/visualization/root/adaptor.h
"
22
23
namespace
bdm
{
24
26
inline
void
VisualizeInNotebook
(
size_t
w = 300,
size_t
h = 300,
27
std::string opt =
""
) {
28
auto
* sim =
Simulation::GetActive
();
29
auto
* param = sim->GetParam();
30
// Force an update of the visualization engine
31
sim->GetScheduler()->GetRootVisualization()->Visualize(
32
param->visualization_interval);
33
sim->GetScheduler()->GetRootVisualization()->DrawInCanvas(w, h,
34
std::move(opt));
35
}
36
37
}
// namespace bdm
38
39
#endif // CORE_VISUALIZATION_ROOT_NOTEBOOK_UTIL_H_
adaptor.h
bdm
Definition:
agent.cc:39
bdm::VisualizeInNotebook
void VisualizeInNotebook(size_t w=300, size_t h=300, std::string opt="")
Visualize the agents in ROOT notebooks.
Definition:
notebook_util.h:26
simulation.h
bdm::Simulation::GetActive
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
Definition:
simulation.cc:68
Generated by
1.8.17