예제 #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();
            }
        }
예제 #2
0
 public static void SetLineWidth(this MolDraw2D view, int size)
 => view.setLineWidth(size);
예제 #3
0
 public static int GetLineWidth(this MolDraw2D view)
 => view.lineWidth();
예제 #4
0
 public static double GetWidth(this MolDraw2D view)
 => view.width();
예제 #5
0
 public static double GetHeight(this MolDraw2D view)
 => view.height();
예제 #6
0
 public static void SetScale(this MolDraw2D view, int width, int height, Point2D minv, Point2D maxv)
 => view.setScale(width, height, minv, maxv);
예제 #7
0
        //
        // MolDraw2D
        //

        public static void ClearDrawing(this MolDraw2D view)
        => view.clearDrawing();
예제 #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);
예제 #9
0
 public static double GetFontSize(this MolDraw2D view)
 => view.fontSize();
예제 #10
0
 public static void SetDash(this MolDraw2D view, UInt_Vect dash)
 => view.setDash(dash);
예제 #11
0
 public static UInt_Vect GetDash(this MolDraw2D view)
 => view.dash();
예제 #12
0
 public static void SetColor(this MolDraw2D view, DrawColour color)
 => view.setColour(color);
예제 #13
0
 public static DrawColour GetColor(this MolDraw2D view)
 => view.colour();
예제 #14
0
 public static MolDrawOptions DrawOptions(this MolDraw2D view)
 => view.drawOptions();
예제 #15
0
 public static double GetPanelHeight(this MolDraw2D view)
 => view.panelHeight();
예제 #16
0
 public static double GetPanelWidth(this MolDraw2D view)
 => view.panelWidth();
예제 #17
0
 public static void SetFontSize(this MolDraw2D view, double size)
 => view.setFontSize(size);
예제 #18
0
 public static double Scale(this MolDraw2D view)
 => view.scale();
예제 #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);
 }