informed about that in
void KalziumGLWidget::slotAtomSelected( OpenBabel::OBAtom* atom )
Benoit: Please add you "atom-hightlight" code there, ok?
CCMAIL:jacob@math.jussieu.fr
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=552399
w[2] = u[0] * v[1] - u[1] * v[0];
}
+void KalziumGLWidget::slotAtomSelected( OpenBabel::OBAtom* atom )
+{
+ kDebug() << "KalziumGLWidget::slotAtomSelected()" << endl;
+ //Benoit: At this place you need to do some OpenGL-stuff to select
+ //the emitted atom. No clue how to do that, though :-)
+ if ( !atom ) return;
+}
+
inline void GLColor::apply()
{
glColor3fv( reinterpret_cast<GLfloat *>( this ) );
*/
void slotChooseStylePreset( StylePreset stylePreset );
+ /**
+ * Chooses the style of rendering among some presets
+ * @param stylePreset the wanted style preset
+ */
void slotChooseStylePreset( int stylePreset ){
slotChooseStylePreset( (StylePreset) stylePreset );
}
+ /**
+ * The atom @p atom was selected by the user
+ */
+ void slotAtomSelected( OpenBabel::OBAtom* atom );
+
protected:
/**
* This method initializes OpenGL. Automatically called by Qt