25 #ifndef GCHEMPAINT_FRAGMENT_H 26 #define GCHEMPAINT_FRAGMENT_H 39 extern gccv::Tag ChargeTag, StoichiometryTag;
67 TextTag *Restrict (TextTag *tag);
96 TextTag *Restrict (TextTag *tag);
144 void SetSelected (
int state);
151 xmlNodePtr Save (xmlDocPtr xml)
const;
159 xmlNodePtr SaveSelection (xmlDocPtr xml)
const;
166 bool Load (xmlNodePtr node);
172 bool OnChanged (
bool save);
183 void AnalContent (
unsigned start,
unsigned &end);
192 Object* GetAtomAt (
double x,
double y,
double z = 0.);
200 void Move (
double x,
double y,
double z = 0);
213 void OnChangeAtom ();
218 Atom const *GetAtom ()
const {
return reinterpret_cast <
Atom const * > (m_Atom);}
226 int GetElementAtPos (
unsigned start,
unsigned &end);
252 int GetAvailablePosition (
double &x,
double &y);
260 bool GetPosition (
double angle,
double &x,
double &y);
279 bool SetProperty (
unsigned property,
char const *value);
310 bool GetCoords (
double *x,
double *y,
double *z = NULL)
const;
371 bool SavePortion (xmlDocPtr xml, xmlNodePtr node,
unsigned start,
unsigned end)
const;
375 unsigned m_BeginAtom, m_EndAtom;
400 #endif //GCHEMPAINT_FRAGMENT_H GChemPaint specific C++ classes.
#define GCU_RO_PROP(type, member)
Gnome Chemistry Canvas library namespace.
Validity
The validity state of a Fragment as it is currently evaluated by the framework. The 0...
#define GCU_PROP(type, member)
FragmentMode
Edition mode.
The base class for the canvas contents.