Ejemplo n.º 1
0
        public static void FinishDrawing(this MolDraw2D view)
        {
            switch (view)
            {
            case MolDraw2DSVG d2d:
                d2d.finishDrawing();
                break;

            case MolDraw2DCairo d2d:
                d2d.finishDrawing();
                break;

            default:
                throw new NotImplementedException();
            }
        }
Ejemplo n.º 2
0
 public static void SetLineWidth(this MolDraw2D view, int size)
 => view.setLineWidth(size);
Ejemplo n.º 3
0
 public static int GetLineWidth(this MolDraw2D view)
 => view.lineWidth();
Ejemplo n.º 4
0
 public static double GetWidth(this MolDraw2D view)
 => view.width();
Ejemplo n.º 5
0
 public static double GetHeight(this MolDraw2D view)
 => view.height();
Ejemplo n.º 6
0
 public static void SetScale(this MolDraw2D view, int width, int height, Point2D minv, Point2D maxv)
 => view.setScale(width, height, minv, maxv);
Ejemplo n.º 7
0
        //
        // MolDraw2D
        //

        public static void ClearDrawing(this MolDraw2D view)
        => view.clearDrawing();
Ejemplo n.º 8
0
 public static void DrawMolecule(this MolDraw2D view, ROMol mol, string legend = "", Int_Vect highlight_atoms = null, Int_Vect highlight_bonds = null)
 => view.drawMolecule(mol, legend, highlight_atoms, highlight_bonds);
Ejemplo n.º 9
0
 public static double GetFontSize(this MolDraw2D view)
 => view.fontSize();
Ejemplo n.º 10
0
 public static void SetDash(this MolDraw2D view, UInt_Vect dash)
 => view.setDash(dash);
Ejemplo n.º 11
0
 public static UInt_Vect GetDash(this MolDraw2D view)
 => view.dash();
Ejemplo n.º 12
0
 public static void SetColor(this MolDraw2D view, DrawColour color)
 => view.setColour(color);
Ejemplo n.º 13
0
 public static DrawColour GetColor(this MolDraw2D view)
 => view.colour();
Ejemplo n.º 14
0
 public static MolDrawOptions DrawOptions(this MolDraw2D view)
 => view.drawOptions();
Ejemplo n.º 15
0
 public static double GetPanelHeight(this MolDraw2D view)
 => view.panelHeight();
Ejemplo n.º 16
0
 public static double GetPanelWidth(this MolDraw2D view)
 => view.panelWidth();
Ejemplo n.º 17
0
 public static void SetFontSize(this MolDraw2D view, double size)
 => view.setFontSize(size);
Ejemplo n.º 18
0
 public static double Scale(this MolDraw2D view)
 => view.scale();
Ejemplo n.º 19
0
 public static void PrepareAndDrawMolecule(MolDraw2D drawer, ROMol mol, string legend = "", Int_Vect highlight_atoms = null, Int_Vect highlight_bonds = null)
 {
     RDKFuncs.prepareAndDrawMolecule(drawer, mol, legend, highlight_atoms, highlight_bonds);
 }