Exemplo n.º 1
0
int TimeFrontShape::handle_event()
{
	plugin->config.shape = from_text(get_text());
	gui->update_shape();
	plugin->send_configure_change();
	return 1;
}
Exemplo n.º 2
0
int TimeFrontTrackUsage::handle_event()
{
	plugin->config.track_usage = from_text(get_text());
	gui->update_shape();
	plugin->send_configure_change();
	return 0;
}
Exemplo n.º 3
0
int LensMode::handle_event()
{
	plugin->config.mode = from_text(get_text());
	plugin->send_configure_change();
	return 1;

}
Exemplo n.º 4
0
int DeInterlaceMode::handle_event()
{
	plugin->config.mode = from_text(get_text());
	gui->set_mode(plugin->config.mode,0);
	plugin->send_configure_change();
	return 1;
}
Exemplo n.º 5
0
int number_from_text(const char* text, const Enumeration* table)
{
  if (table) {
    const Enumeration* t = from_text(text, table);
    if (t) return long(t->compiled);
  }
  return strtol(text, 0, 0);
}
Exemplo n.º 6
0
pyne::Material::Material(std::string filename, double m, std::string s, double apm)
{
  // Initializes the mass stream based on an isotopic composition file with a string name.
  mass = m;
  name = s;
  atoms_per_mol = apm;

  // Check that the file is there
  if (!pyne::file_exists(filename))
    throw pyne::FileNotFound(filename);

  // Check to see if the file is in HDF5 format.
  bool isH5 = H5::H5File::isHdf5(filename);
  if (isH5)
    from_hdf5(filename);
  else
    from_text(filename);
};
int TrackingType::handle_event()
{
	plugin->config.tracking_type = from_text(get_text());
	plugin->send_configure_change();
	return 1;
}
int ActionType::handle_event()
{
	plugin->config.action_type = from_text(get_text());
	plugin->send_configure_change();
	return 1;
}
int MasterLayer::handle_event()
{
	plugin->config.bottom_is_master = from_text(get_text());
	plugin->send_configure_change();
	return 1;
}
Exemplo n.º 10
0
int TrackDirection::handle_event()
{
	from_text(&plugin->config.horizontal_only, &plugin->config.vertical_only, get_text());
	plugin->send_configure_change();
	return 1;
}
Exemplo n.º 11
0
int TimeFrontRate::handle_event()
{
	plugin->config.rate = from_text(get_text());
	plugin->send_configure_change();
	return 1;
}
Exemplo n.º 12
0
void pyne::Material::from_text(char * filename) {
  std::string fname (filename);
  from_text(fname);
};