On Sat, 1 Mar 2003, Egon Willighagen wrote:
> Op donderdag 27 februari 2003 14:47, schreef Peter Murray-Rust: > > >If *you* had some "skilled talent" to allocate for a month or two, is > > >this the area where you would choose spend it? > > > > > >If not, what would *you* have me work on? > > > > Wow! Actually I would concentrate on displaying molecular and atomic > > properties at intermediate graphics resolution (e.g. charges, dipoles, > > electron density, etc.) I would also want an interactive (event) GUI. > > The CDK uses this design in JChemPaint: > > 1. there is a cdk.renderer.Renderer2D class which does only the rendering of > the model (The Viewer in the model-viewer-controller paradigma) > 2. there is the model, which is an cdk.ChemModel I think, or that's what it > probably should be. That it where the chemical data is. > 3. and finally there is the cdk.controller.Controller2D which traps mouse > events, key events etc. Given a certain mode, dragging the mouse would > result in moving an atom/bond or drawing a lasso, or point a bond which > is being added in some direction. > > Furthermore, > > 4. there is the CDKListener, which can be added to the model so that any > class (i.e. program, e.g. JChemPaintPanel I think), gets events when the > model has changed. > > As in Jmol, CDK also separates the rendering settings from the actual > rendering, i.e. CDK has Renderer2D and a Renderer2DModel. The latter > would specify the zoom in factor, the width of an standard bond, the > separation between the bond for double bonds, the background color > etc. > > Similarly, the Controller2D has such a Model which keeps record of the > drawing mode, and some other settings... > > I guess, what Peter is aiming at is that he want to be able to overwrite the > Controller, i.e. use a different one than the standard Controller2D, that > enables him to specify specifically how Jmol should respond when the > mouse is dragged or moved. Is that right, Peter? An alternative would be to register one's own listeners with the CDKController and access the data model on receiving an event. If CDKListener already does this it may be sufficient. P. > > Egon > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
