1 #ifndef _COMPARTMENT_HPP_
2 #define _COMPARTMENT_HPP_
4 #include "utility/libraries.hpp"
5 #include "utility/constants.hpp"
6 #include "core/Voxel.hpp"
15 osg::ref_ptr<osg::Switch> node;
16 osg::ref_ptr<osg::Geode> voxel_group_node;
17 std::vector<Voxel *> voxel_seq;
18 std::unordered_map<string, Voxel *> voxel_map;
20 Compartment(
const char *
id);
28 set_neuron(Neuron * Neuron);
46 add_geometry( PyObject * distal
47 , PyObject * proximal = Py_None
48 , PyObject * parent = Py_None
52 add_voxel(Voxel * voxel);
55 remove_voxel(Voxel * voxel);
58 show_geometry(
unsigned int geometry_index,
bool hide_others);
61 hide_geometry(
unsigned int geometry_index);
64 show_all_geometries();
67 hide_all_geometries();
70 set_color(PyObject * color);
73 set_colors(PyObject * colors);