gcp::Mesomer Class Reference

Inheritance diagram for gcp::Mesomer:

gcu::Object

List of all members.

Public Member Functions

virtual bool Load (xmlNodePtr)
virtual bool OnSignal (SignalId Signal, Object *Child)
virtual double GetYAlign ()
bool Validate ()
map< Mesomer *,
MesomeryArrow * > * 
GetArrows ()
MoleculeGetMolecule ()


Detailed Description

Definition at line 42 of file mesomer.h.


Member Function Documentation

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

Parameters:
node,: a pointer to the xmlNode containing the serialized object.
Used to load an Object in memory. The Object must already exist.

Example:

        std::string str = (const char*)node->name;
        Object* pObject = Object::CreateObject(str, this);
        if (pObject) {
                if (!pObject->Load(node)) delete Object; 
        } else
                cerr << "Warning: unknown object: " << str << endl;

Returns:
true on succes, false otherwise.

Reimplemented from gcu::Object.

virtual bool gcp::Mesomer::OnSignal ( SignalId  Signal,
Object Child 
) [virtual]

Parameters:
Signal,: the appropriate SignalId
Child,: the child which emitted the signal or NULL
This function is called by the framework when a signal has been emitted for the object. It should not be called by a program; call Object::EmitSignal instead.

Returns:
true if the signal should be propagated to the parent, false otherwise.

Reimplemented from gcu::Object.

virtual double gcp::Mesomer::GetYAlign (  )  [virtual]

Used to retreive the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method.

Returns:
y coordinate used for objects alignment.

Reimplemented from gcu::Object.

Molecule* gcp::Mesomer::GetMolecule (  )  [inline]

Used to get the Molecule in the Object instances ancestors.

Returns:
the first Object of type MoleculeType encountered when exploring the Objects tree or NULL if none is found.

Reimplemented from gcu::Object.

Definition at line 56 of file mesomer.h.


The documentation for this class was generated from the following file:
Generated on Sun Sep 16 14:21:56 2007 for The Gnome Chemistry Utils by  doxygen 1.5.3