|
The Gnome Chemistry Utils
0.14.6
|
Public Member Functions | |
| Arrow (gcu::TypeId Type) | |
| virtual | ~Arrow () |
| bool | Load (xmlNodePtr node) |
| void | SetSelected (int state) |
| void | SetCoords (double xstart, double ystart, double xend, double yend) |
| bool | GetCoords (double *xstart, double *ystart, double *xend, double *yend) const |
| bool | GetCoords (double *x, double *y, double *z=NULL) const |
| void | Move (double x, double y, double z=0) |
| void | Transform2D (gcu::Matrix2D &m, double x, double y) |
| double | GetYAlign () |
| bool | SetProperty (unsigned property, char const *value) |
| void | SetStartStep (Step *step) |
| Step ** | GetStartStepPtr () |
| Step * | GetStartStep () const |
| void | SetEndStep (Step *step) |
| Step * | GetEndStep () const |
| Step ** | GetEndStepPtr () |
| void | Reverse () |
| void | RemoveStep (Step *step) |
| double | GetLength (void) const |
Public Member Functions inherited from gcu::Object | |
| Object (TypeId Id=OtherType) | |
| virtual | ~Object () |
| TypeId | GetType () const |
| void | SetId (gchar const *Id) |
| char const * | GetId () const |
| virtual void | AddChild (Object *object) |
| Object * | GetMolecule () const |
| Object * | GetReaction () const |
| Object * | GetGroup () const |
| Document * | GetDocument () const |
| Application * | GetApplication () const |
| Object * | GetParentOfType (TypeId Id) const |
| Object * | GetChild (const gchar *Id) const |
| Object * | GetFirstChild (std::map< std::string, Object * >::iterator &i) |
| Object * | GetNextChild (std::map< std::string, Object * >::iterator &i) |
| Object * | GetDescendant (const char *Id) const |
| Object * | GetParent () const |
| void | SetParent (Object *Parent) |
| virtual xmlNodePtr | Save (xmlDocPtr xml) const |
| bool | SaveChildren (xmlDocPtr xml, xmlNodePtr node) const |
| void | SaveId (xmlNodePtr node) const |
| xmlNodePtr | GetNodeByProp (xmlNodePtr node, char const *Property, char const *Id) |
| xmlNodePtr | GetNextNodeByProp (xmlNodePtr node, char const *Property, char const *Id) |
| xmlNodePtr | GetNodeByName (xmlNodePtr node, char const *Name) |
| xmlNodePtr | GetNextNodeByName (xmlNodePtr node, char const *Name) |
| bool | HasChildren () const |
| unsigned | GetChildrenNumber () const |
| virtual Object * | GetAtomAt (double x, double y, double z=0.) |
| virtual bool | Build (std::set< Object * > const &Children) throw (std::invalid_argument) |
| virtual bool | BuildContextualMenu (UIManager *uim, Object *object, double x, double y) |
| void | EmitSignal (SignalId Signal) |
| virtual bool | OnSignal (SignalId Signal, Object *Child) |
| void | Lock (bool state=true) |
| bool | IsLocked () |
| Object * | GetFirstLink (std::set< Object * >::iterator &i) |
| Object * | GetNextLink (std::set< Object * >::iterator &i) |
| void | Link (Object *object) |
| void | Unlink (Object *object) |
| virtual void | OnUnlink (Object *object) |
| void | GetPossibleAncestorTypes (std::set< TypeId > &types) const |
| virtual std::string | GetProperty (unsigned property) const |
| void | SetDirty (bool dirty=true) |
| virtual void | Clear () |
| std::string | Identity () |
| virtual char const * | HasPropertiesDialog () const |
| virtual bool | CanSelect () const |
| virtual void | NotifyEmpty () |
| void | ShowPropertiesDialog () |
| bool | GetDirty (void) const |
Public Member Functions inherited from gccv::ItemClient | |
| ItemClient () | |
| virtual | ~ItemClient () |
| virtual void | AddItem () |
| virtual void | UpdateItem () |
| Item * | GetItem (void) |
Protected Member Functions | |
| bool | Save (xmlDocPtr xml, xmlNodePtr node) const |
| std::string | Name () |
| void | OnLoaded () |
Protected Member Functions inherited from gcu::Object | |
| virtual Dialog * | BuildPropertiesDialog () |
Protected Attributes | |
| double | m_x |
| double | m_y |
| double | m_width |
| double | m_height |
Protected Attributes inherited from gccv::ItemClient | |
| Item * | m_Item |
Additional Inherited Members | |
Static Public Member Functions inherited from gcu::Object | |
| static TypeId | AddType (std::string TypeName, Object *(*CreateFunc)(), TypeId id=OtherType) |
| static void | AddAlias (TypeId id, std::string TypeName) |
| static Object * | CreateObject (const std::string &TypeName, Object *parent=NULL) |
| static TypeId | GetTypeId (const std::string &Name) |
| static std::string | GetTypeName (TypeId Id) |
| static void | AddMenuCallback (TypeId Id, BuildMenuCb cb) |
| static void | AddRule (TypeId type1, RuleId rule, TypeId type2) |
| static void | AddRule (const std::string &type1, RuleId rule, const std::string &type2) |
| static const std::set< TypeId > & | GetRules (TypeId type, RuleId rule) |
| static const std::set< TypeId > & | GetRules (const std::string &type, RuleId rule) |
| static void | SetCreationLabel (TypeId Id, std::string Label) |
| static const std::string & | GetCreationLabel (TypeId Id) |
| static const std::string & | GetCreationLabel (const std::string &TypeName) |
| static SignalId | CreateNewSignalId () |
Definition at line 57 of file gcp/arrow.h.
| gcp::Arrow::Arrow | ( | gcu::TypeId | Type | ) |
| Type | an arrow type id. |
Used to create an arrow of type Id. Should only be called from the constructor of a derived class.
|
virtual |
The destructor.
| bool gcp::Arrow::GetCoords | ( | double * | xstart, |
| double * | ystart, | ||
| double * | xend, | ||
| double * | yend | ||
| ) | const |
| xstart | where to store the x coordinate of the start point. |
| ystart | where to store the y coordinate of the start point. |
| xend | where to store the x coordinate of the end point. |
| yend | where to store the y coordinate of the end point. |
Retrieves the position of the arrow.
|
virtual |
| x | a pointer to the double value which will receive the x coordinate of the Arrow. |
| y | a pointer to the double value which will receive the y coordinate of the Arrow. |
| z | a pointer to the double value which will receive the z coordinate of the Arrow or NULL for 2D representations. |
Retrieves the coordinates of this Arrow.
Reimplemented from gcu::Object.
|
inline |
Definition at line 172 of file gcp/arrow.h.
|
inline |
Definition at line 176 of file gcp/arrow.h.
|
inline |
Definition at line 233 of file gcp/arrow.h.
|
inline |
Definition at line 161 of file gcp/arrow.h.
|
inline |
Definition at line 157 of file gcp/arrow.h.
|
virtual |
Used to retrieve the y coordinate for alignment.
Reimplemented from gcu::Object.
|
virtual |
| node | a pointer to the xmlNode containing the serialized arrow. |
Used to load an Arrow in memory. This method must be called from derived classes overloaded Load methods.
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow, and gcp::MesomeryArrow.
|
virtual |
| x | the x component of the transation vector. |
| y | the y component of the transation vector. |
| z | the z component of the transation vector (unused). |
Used to move an arrow. The third parameter is not taken into account.
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow.
|
protectedvirtual |
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow, and gcp::MesomeryArrow.
|
protectedvirtual |
This method should be called when an arrow has been fully loaded.
Reimplemented from gcu::Object.
| void gcp::Arrow::RemoveStep | ( | Step * | step | ) |
| void gcp::Arrow::Reverse | ( | ) |
Exchange both ends or the arrow and their associated steps.
|
protected |
| xml | the xmlDoc used to save the document. |
| node | the node representing the Object. |
This method must be called from derived classes overloaded Save methods.
| void gcp::Arrow::SetCoords | ( | double | xstart, |
| double | ystart, | ||
| double | xend, | ||
| double | yend | ||
| ) |
| xstart | the x coordinate of the start point. |
| ystart | the y coordinate of the start point. |
| xend | the x coordinate of the end point. |
| yend | the y coordinate of the end point. |
Sets the position and length of an arrow.
|
inline |
| step | a Step |
Sets step at last end of the arrow. This does not affect coordinates, alignment is dealt with elsewhere.
Definition at line 168 of file gcp/arrow.h.
|
virtual |
| property | the property id as defined in objprops.h |
| value | the property value as a string |
Used when loading to set common properties to arrows. Only one property is currently supported: gcu::GCU_PROP_ARROW_COORDS.
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow.
|
virtual |
| state | the selection state of the arrow. |
Used to set the selection state of the arrow. The values of state might be gcp::SelStateUnselected, gcp::SelStateSelected, gcp::SelStateUpdating, or gcp::SelStateErasing.
Reimplemented from gccv::ItemClient.
Reimplemented in gcp::ReactionArrow.
|
inline |
| step | a Step |
Sets step at first end of the arrow. This does not affect coordinates, alignment is dealt with elsewhere.
Definition at line 153 of file gcp/arrow.h.
|
virtual |
| m | the Matrix2D of the transformation. |
| x | the x component of the center of the transformation. |
| y | the y component of the center of the transformation. |
Used to move and/or transform an arrow.
Reimplemented from gcu::Object.
|
protected |
The y coordinate difference between tail and head.
Definition at line 225 of file gcp/arrow.h.
|
protected |
The x coordinate difference between tail and head.
Definition at line 221 of file gcp/arrow.h.
|
protected |
The x coordinate of the start point.
Definition at line 213 of file gcp/arrow.h.
|
protected |
The y coordinate of the start point.
Definition at line 217 of file gcp/arrow.h.
1.8.6