[Openchemistry-developers] Avogadro::Core::Molecule -- remove atoms?

David Lonie david.lonie at kitware.com
Mon Nov 12 09:11:58 EST 2012


On Mon, Nov 12, 2012 at 9:10 AM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
> On Mon, Nov 12, 2012 at 8:07 AM, David Lonie <david.lonie at kitware.com> wrote:
>> On Mon, Nov 12, 2012 at 7:38 AM, David Lonie <david.lonie at kitware.com> wrote:
>>> Hi all,
>>>
>>> There is no API to remove atoms in the molecule data structure. Was
>>> this intentional? Is there a reason removeAtom was not implemented?
>>
>> Also, removeBond() has a few signatures declared, but none are
>> implemented. Before I add these in, was Molecule meant to be read
>> only?
>>
> Yes, the intent was to keep this class simple and allow
> growing/resizing but not atom/bond deletion. The GUI version needs to
> have signals and slots, unique IDs and all the extra book keeping that
> goes along with it. We should make a more derived form to add signals
> and slots on the molecule class, and other things required for
> interactive editing.

Ok, sounds good.

Dave



More information about the Openchemistry-developers mailing list