svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=422590
return 0.0;
}
+int Element::xPos() const
+{
+ return ( x-1 )*ELEMENTSIZE;
+}
+
+int Element::yPos() const
+{
+ return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE;
+}
+
+QPoint Element::pos() const
+{
+ return QPoint( xPos(), yPos() );
+}
+
+QPoint Element::coords() const
+{
+ return QPoint( x, y );
+}
+
KalziumDataObject::KalziumDataObject()
{
QDomDocument doc( "datadocument" );
class Element;
class QDomDocument;
class QPainter;
+class QPoint;
struct coordinate;
*/
static double strippedValue( double w );
+ QPoint pos() const;
+ QPoint coords() const;
/**
* accessor for the element's color
QColor m_Color;
- inline int xPos() const{
- return ( x-1 )*ELEMENTSIZE;
- }
- inline int yPos() const{
- return ( y-1 )*ELEMENTSIZE + ELEMENTSIZE;
- }
+ int xPos() const;
+ int yPos() const;
double m_mass,
m_MP,