gcp::FragmentAtom Class Reference

Inheritance diagram for gcp::FragmentAtom:

gcu::Atom gcu::Object List of all members.

Public Member Functions

virtual void SetZ (int Z)
virtual void Add (GtkWidget *w)
virtual void Update (GtkWidget *w)
virtual void SetSelected (GtkWidget *w, int state)
virtual xmlNodePtr Save (xmlDocPtr xml)
virtual bool Load (xmlNodePtr node)
virtual void AddToMolecule (Molecule *Mol)

Detailed Description

Definition at line 34 of file fragment-atom.h.


Member Function Documentation

virtual void gcp::FragmentAtom::SetZ ( int  Z  )  [virtual]

Parameters:
Z,: the new atomic number of the Atom.
This method might be overrided by derived class since changing the atomic number generally changes most properties. The default behavior is just to change the atomic number and nothing else.

Reimplemented from gcu::Atom.

virtual void gcp::FragmentAtom::Add ( GtkWidget *  w  )  [virtual]

Parameters:
w,: the GtkWidget inside which the Object will be displayed.
Used to add a representation of the Object in the widget. This method might be overrided for displayable Object classes unless the application uses another mechanism.

Reimplemented from gcu::Object.

virtual void gcp::FragmentAtom::Update ( GtkWidget *  w  )  [virtual]

Parameters:
w,: the GtkWidget inside which the Object is displayed.
Used to update the representation of the Object in the widget. This method might be overrided for displayable Object classes unless the application uses another mechanism.

Reimplemented from gcu::Object.

virtual void gcp::FragmentAtom::SetSelected ( GtkWidget *  w,
int  state 
) [virtual]

Parameters:
w,: the GtkWidget inside which the Object is displayed.
state,: the selection state of the Object.
Used to set the selection state of the Object inside the widget. The values of state are application dependant and have no default value.

Reimplemented from gcu::Object.

virtual xmlNodePtr gcp::FragmentAtom::Save ( xmlDocPtr  xml  )  [virtual]

Parameters:
xml,: the xmlDoc used to save the document.
Returns:
a pointer to the xmlNode representing this Atom or NULL if an error occured.

Reimplemented from gcu::Atom.

virtual bool gcp::FragmentAtom::Load ( xmlNodePtr  node  )  [virtual]

Parameters:
node,: a pointer to the xmlNode containing the serialized Atom.
Loads an atom from an xmlNode.

Reimplemented from gcu::Atom.

virtual void gcp::FragmentAtom::AddToMolecule ( Molecule Mol  )  [virtual]

Parameters:
Mol,: a pointer to a molecule
Adds the fragment containing the atom to the molecule calling gcpMolecule::AddFragment()


The documentation for this class was generated from the following file:
Generated on Thu Jun 28 09:02:02 2007 for The Gnome Chemistry Utils by  doxygen 1.5.2