File: ExecutivePython.h

package info (click to toggle)
pymol 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 74,084 kB
  • sloc: cpp: 482,660; python: 89,328; ansic: 29,512; javascript: 6,792; sh: 84; makefile: 25
file content (32 lines) | stat: -rw-r--r-- 971 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#ifndef _PYMOL_NO_PY

#include "os_python.h"
#include "Result.h"
#include "pymol/zstring_view.h"

struct ObjectAlignment;

pymol::Result<> ExecutiveLoadObject(PyMOLGlobals* G,
    const char* oname, PyObject* model, int frame, int type, int finish,
    int discrete, int quiet, int zoom);

pymol::Result<> ExecutiveSetRawAlignment(PyMOLGlobals* G,
    pymol::zstring_view alnname, PyObject* raw, pymol::zstring_view guidename,
    int state, int quiet);

pymol::Result<float> ExecutiveFitPairs(
    PyMOLGlobals* G, PyObject* list, int quiet);

/**
 * @param name name of alignment object
 * @param active_only only consider active alignments
 * @param state state of alignment object
 * @return a list of lists of (object, index) tuples containing the
 * raw per-atom alignment relationships
 */
pymol::Result<PyObject*> ExecutiveGetRawAlignment(PyMOLGlobals* G,
    pymol::null_safe_zstring_view name, bool active_only, int state);

#endif //_PYMOL_NO_PY