#include <GeometryList.h>
Inheritance diagram for GeometryList:
List of all members.
Definition at line 50 of file GeometryList.h.
Definition at line 52 of file GeometryList.C.
References Scene::add_color_category, Scene::add_color_item, ANGLEGEOMCOL, ATOMGEOMCOL, BONDGEOMCOL, Displayable::cent_trans_off, NameList< GeomListStruct * >::data, GeomListStruct::defaultColor, DIHEGEOMCOL, Displayable::glob_trans_off, NameList< GeomListStruct * >::name, num_lists, Displayable::rot_off, Displayable::scale_off, Displayable::scene, and SPRINGGEOMCOL.
[virtual]
destructor: must clean up all lists.
Definition at line 87 of file GeometryList.C.
References num_lists.
add a new geometry object to the list with the given name. Return the index of the geometry object on success (>= 0), or -1 on failure.
Definition at line 158 of file GeometryList.C.
References ResizeArray::append, GeometryMol::calculate, VMDApp::commandQueue, GeomListStruct::curColor, NameList< GeomListStruct * >::data, Displayable::displayed, geom_list, geom_list_index, GeometryMol::has_value, VMDApp::moleculeList, GeometryMol::name, ResizeArray::num, Displayable::off, GeometryMol::ok, Displayable::on, GeometryMol::set_color, GeometryMol::set_pick, GeometryMol::set_text_size, GeometryMol::set_text_thickness, and GeometryMol::unique_name.
Referenced by VMDApp::label_add.
[inline]
delete the Nth geometry object with the given name, return success.
Definition at line 122 of file GeometryList.h.
References del_geometry, geom_list_index, and n.
delete the Nth geometry object with the given index, return success.
Definition at line 232 of file GeometryList.C.
References geom_list, n, ResizeArray::num, num_lists, and ResizeArray::remove.
Referenced by del_geometry, VMDApp::label_delete, and prepare.
[protected, virtual]
changes the color of all geometries.
Reimplemented from Displayable.
Definition at line 97 of file GeometryList.C.
References Scene::category_item_index, Scene::category_item_value, GeomListStruct::curColor, NameList< GeomListStruct * >::data, geom_list, geom_list_name, ResizeArray::num, num_lists, and Displayable::scene.
[inline]
return pointer to the geometry list with the given name, NULL if not found.
Definition at line 93 of file GeometryList.h.
References geom_list, geom_list_index, and NULL.
[inline]
access the pointer to the Nth geometry list.
Definition at line 90 of file GeometryList.h.
References NameList::data, and n.
Referenced by add_geometry, del_geometry, do_color_changed, geom_list, getTextFormat, getTextOffset, prepare, py_label_add, py_label_delete, py_label_getvalues, py_label_visible, py_listall, setTextFormat, setTextOffset, setTextSize, setTextThickness, show_geometry, and text_cmd_label.
[inline]
return the index of the geom list with the given name, -1 if not found.
Definition at line 102 of file GeometryList.h.
References NameList::typecode.
Referenced by add_geometry, del_geometry, geom_list, py_label_add, py_label_delete, py_label_getvalues, py_label_visible, py_listall, show_geometry, and text_cmd_label.
[inline]
return the name of the Nth geometry list.
Definition at line 99 of file GeometryList.h.
References n, and NameList::name.
Referenced by do_color_changed.
Definition at line 358 of file GeometryList.C.
References geom_list, n, ResizeArray::num, and GeometryMol::text_format.
Referenced by text_cmd_label.
Definition at line 340 of file GeometryList.C.
References geom_list, n, ResizeArray::num, and GeometryMol::text_offset.
Referenced by text_cmd_label.
[inline]
Get/set text size. Affects all labels.
Definition at line 137 of file GeometryList.h.
Referenced by VMDApp::label_get_text_size.
[inline]
Get/set text thickness. Affects all labels.
Definition at line 141 of file GeometryList.h.
Referenced by VMDApp::label_get_text_thickness.
[inline]
number of geometry lists.
Definition at line 87 of file GeometryList.h.
References NameList::num.
Referenced by del_geometry, do_color_changed, GeometryList, prepare, setTextSize, setTextThickness, show_geometry, and ~GeometryList.
[virtual]
prepare for drawing ... do any updates needed right before draw.
Reimplemented from Displayable.
Definition at line 380 of file GeometryList.C.
References del_geometry, geom_list, ResizeArray::num, num_lists, and GeometryMol::ok.
Referenced by GeometryFltkMenu::act_on_command.
Definition at line 367 of file GeometryList.C.
References geom_list, n, ResizeArray::num, and GeometryMol::set_text_format.
Referenced by VMDApp::label_set_textformat.
set text offset for specfied label.
Definition at line 348 of file GeometryList.C.
References geom_list, n, ResizeArray::num, and GeometryMol::set_text_offset.
Referenced by VMDApp::label_set_textoffset.
Definition at line 304 of file GeometryList.C.
References geom_list, ResizeArray::num, num_lists, and GeometryMol::set_text_size.
Referenced by VMDApp::label_set_text_size.
Definition at line 322 of file GeometryList.C.
References geom_list, ResizeArray::num, num_lists, and GeometryMol::set_text_thickness.
Referenced by VMDApp::label_set_text_thickness.
[inline]
same as above, but giving a name for the category instead of index.
Definition at line 132 of file GeometryList.h.
References geom_list_index, n, and show_geometry.
show/hide the Nth geometry monitor in the given category. If N < 0, hide ALL monitors in that category. Return success. args: category, geometry monitor index, show (T) or hide (F).
Definition at line 266 of file GeometryList.C.
References geom_list, n, ResizeArray::num, num_lists, Displayable::off, and Displayable::on.
Referenced by VMDApp::label_show, and show_geometry.