Low-level C++ API bindings

Low level module containing Sip bindings of Anatomist C++ API.

Introduction

This module is mostly bindings to the C++ library of Anatomist. A few classes have been slightly modified or rewritten, either to hide garbage or to appear more pythonic.

For typical use, this module will not be called directly but throught general API. But it can be needed for using advanced features.

The main entry point is the Anatomist class which must be instantiated before any operation can be performed.

>>> import anatomist.cpp as anatomist
>>> a = anatomist.Anatomist()

Note that instantiating Anatomist also instantiates the Qt QApplication, but does not run the Qt event loop, so python interactive shells are still accessible after that operation, but the GUI is frozen until the event loop is executed, using the following PyQt code:

>>> # from PyQt4 import Qt
>>> # or, to switch to the correct Qt implementation and bindings (Qt4/Qt5/Qt6)
>>> from soma.qt_gui.qt_backend import Qt
>>> Qt.qApp.exec_loop()

but then the loop does not return until the GUI application is over, so you should start it at the end of your code.

Another comfortable alternative to the GUI loop problem in interactive python shells is to use IPython with the option --gui=qt: IPython is an interactive python shell with many improvements, and which can run in a different thread than the GUI, so that the GUI can run without hanging the shell.

Contrarily to the Qt application, Anatomist can be instantiated multiple times (it is not a singleton, but contains a singleton).

In addition to providing bindings to the Anatomist C++ API, the anatomist module also loads some python modules in anatomist: every python module found in the following locations are loaded:

os.path.join(str(anatomist.Anatomist().anatomistSharedPath()), 'python_plugins')
os.path.join(str(anatomist.Anatomist().anatomistHomePath()), 'python_plugins')

Main concepts

There are many pieces in Anatomist library, but a few are really needed to begin with.

  • the Anatomist application, the L{Anatomist} class instance, is responsible for many global variables, the application state, and the startup procedure (including plugins loading). The application is used internally in many functions.

  • objects: AObject class and subclasses

  • windows: AWindow class and subclasses

  • the commands processor: a singleton Processor instance obtained via the application: Anatomist.theProcessor(). The processor is a commands interpreter for the rudimentary language of Anatomist. It is also responsible of saving every command executed in the history file $HOME/.anatomist/history.ana so most of the session can be replayed. Many operations are done via commands and the processor: creating windows, loading objects, displaying them, etc. so this element is probably the most important part of Anatomist.

  • conversions between AIMS object and Anatomist objects: AObjectConverter is here to perform this task.

class anatomist.cpp.AGraph(a0: Graph | None, a1: str | None, a2: bool, a3: AimsVector_S64_3)
class anatomist.cpp.AGraph(a0: Graph | None, a1: str | None, a2: bool = True, a3: AimsVector_S64_3 = Point3dl(64, 64, 64))
class anatomist.cpp.AGraph(a0: anatomist.AGraph)
class ColorMode
colorMode(self) anatomist.AGraph.ColorMode
colorProperty(self) object
graph(self) Graph | None
labelProperty(self, allowDefault: bool = True) object
labelsVolumeDimension(self) AimsVector_S64_3
loadSubObjects(self, mask: int)
mappableEdgeProperties(self) set_STRING
mappableVertexProperties(self) set_STRING
setColorMode(self, a0: anatomist.AGraph.ColorMode)
setColorProperty(self, a0: object)
setLabelProperty(self, prop: object)
setLabelsVolumeDimension(self, vd: AimsVector_S16_3)
setLabelsVolumeDimension(self, vd: AimsVector_S64_3) None
updateAfterAimsChange(self)
updateColors(self)
class anatomist.cpp.AGraphObject(a0: carto.GenericObject | None)
class anatomist.cpp.AGraphObject(a0: anatomist.AGraphObject)
class anatomist.cpp.AIterator
class anatomist.cpp.AIterator(a0: anatomist.AIterator)
next(self) anatomist.AObject | None
class anatomist.cpp.AObject(a0: object = '')
class anatomist.cpp.AObject(a0: anatomist.AObject)
GetMaterial(self) anatomist.Material
Is2DObject(self) bool
Is3DObject(self) bool
class ObjectType
SetMaterial(self, mat: anatomist.Material)
addObjectMenuRegistration(a0: anatomist.ObjectMenuRegistrerClass | None)
adjustPalette(self)
allowsOverwriteOnSave(self) bool
attributed(self) carto.GenericObject | None
boundingBox(self, a0: vector_FLOAT, a1: vector_FLOAT) bool
boundingBox2D(self, a0: vector_FLOAT, a1: vector_FLOAT) bool
boundingbox(self) Tuple
clone(self, shallow: bool = False) anatomist.AObject | None
fileName(self) object
fromObject(a0: carto.GenericObject) anatomist.AObject | None
getObjectMenu(a0: object) rc_ptr_ObjectMenu
getObjectMenuMap() object
getOrCreatePalette(self) anatomist.AObjectPalette | None
getReferential(self) anatomist.Referential | None
getTextureLabels(self, texvalues: vector_FLOAT, labels: vector_STRING, textype: object)
glAPI(self) anatomist.GLComponent | None
id(self) int
internalUpdate(self)
isCopy(self) bool
isTransparent(self) bool
loadDate(self) int
makeHeaderOptions(self) carto.Object
mixedTexValue(self, pos: vector_FLOAT, orgRef: anatomist.Referential | None, poly: int = -1) float
mixedTexValue(self, pos: vector_FLOAT, poly: int = -1) float
name(self) object
nearestVertex()

Get the nearest vertex to a given position.

Only valid for a mesh-based object, otherwise 0 is returned. vertex and distance should point to a valid int and float, and will be filled with the mesh vertex index, and the distance to this vertex. If the object has children objects, the child with the nearest vertex will be returned. If tol is >=0, this tolerence threshold is used to filter out vertices too far (thus the function may fail and return 0). If get_poly is True, the polygon index of the “nearest polygon” will also be returned (otherwise -1 is returned). The nearest polygon will contain the nearest vertex, thus a polygon wich center is nearest to the given point can be discarded.

The base implementation will perform an exaustive search, thus is costy. Optimized implementations could make use of a kdtree algorithm, but this default one does not.

If the object is also displayed in a 3D window, OpenGL-based functions may be more efficient than this one.

notifyObservers(self, arg: PyQt5.sip.voidptr | None = None)
objectFullTypeName(self) object
objectTypeName(a0: int) object
optionTree(self) Tree | None
palette(self) anatomist.AObjectPalette | None
parents(self) set_AObjectPtr
referentialInheritance(self) anatomist.AObject | None
registerObjectType(a0: object) int
render(self, a0: list_RefGLItem, a1: anatomist.ViewState) bool
renderingIsObserverDependent(self) bool
save(self, filename: object, onlyIfModified: bool) bool
save(self, filename: object) bool
setAllowsOverwriteOnSave(self, x: bool)
setChanged(self)
setFileName(self, a0: object)
setHeaderOptions(self)
setInternalsChanged(self)
setLoadDate(self, t: int)
setName(self, a0: object)
setObjectMenu(a0: object, a1: rc_ptr_ObjectMenu)
setPalette(self, palette: anatomist.AObjectPalette)
setReferential(self, a0: anatomist.Referential | None)
setReferentialInheritance(self, ao: anatomist.AObject | None)
setType(self, a0: int)
setVoxelSize(self, a0: vector_FLOAT)
storeHeaderOptions(self)
texValues(self, pos: vector_FLOAT, orgRef: anatomist.Referential | None, poly: int = -1) vector_FLOAT
texValues(self, pos: vector_FLOAT, poly: int = -1) vector_FLOAT
texValuesSeries(self, pos: vector_FLOAT, axis: int, orgRef: anatomist.Referential | None, poly: int = -1) rc_ptr_Volume_FLOAT
texValuesSeries(self, pos: vector_FLOAT, axis: int, poly: int = -1) rc_ptr_Volume_FLOAT
toolTip(self) object
type(self) int
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
userModified()
if the object has been modified by user interaction, and needs saving

%En

void setUserModified( bool state = true );

%Docstring

if the object has been modified by user interaction, and needs saving

voxelSize(self) vector_FLOAT
class anatomist.cpp.AObjectConverter

Aims / Anatomist objects converter

Only two static methods are useful in this class:

  • AObjectConverter.anatomist() converts an AIMS (or possibly other) object into an Anatomist object (AObject subclass), if possible

  • AObjectConverter.aims() converts an Anatomist object to an AIMS object, if possible

Conversions are generally done by wrapping or embedding, or by extracting a reference to an internal object, so objects data are genrally shared between the AIMS and the Anatomist objects layers. This allows internal modification of Anatomist objects data.

After a modification through the Aims (lower level) layer API, modification notification must be issued to the Anatomist layer to update the display of the object in Anatomist. This is generally done via the AObject.setChanged() and AObject.notifyObservers() methods.

aimsBucketMap_VOID(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_BucketMap_VOID
aimsGraph(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Graph
aimsSparseOrDenseMatrix(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_SparseOrDenseMatrix
aimsSurface2(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_AimsTimeSurface_2_VOID
aimsSurface3(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_AimsTimeSurface_3_VOID
aimsSurface4(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_AimsTimeSurface_4_VOID
aimsTexture_FLOAT(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_TimeTexture_FLOAT
aimsTexture_POINT2DF(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_TimeTexture_POINT2DF
aimsTexture_S16(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_TimeTexture_S16
aimsTexture_S32(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_TimeTexture_S32
aimsTexture_U32(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_TimeTexture_U32
aimsTree(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Tree
volume_DOUBLE(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_DOUBLE
volume_FLOAT(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_FLOAT
volume_RGB(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_RGB
volume_RGBA(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_RGBA
volume_S16(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_S16
volume_S32(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_S32
volume_U16(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_U16
volume_U32(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_U32
volume_U8(a0: anatomist.AObject | None, options: carto.Object = carto.Object()) rc_ptr_Volume_U8
class anatomist.cpp.AObjectPalette(a0: rc_ptr_APalette)
class anatomist.cpp.AObjectPalette(a0: anatomist.AObjectPalette)
absMax1()

get the absolute max for a given object

absMax2()

get the absolute max for a given object

absMin1()

get the absolute min for a given object

absMin2()

get the absolute min for a given object

absValue1(self, obj: anatomist.AObject | None, relval: float) float
absValue2(self, obj: anatomist.AObject | None, relval: float) float
colors(self) Volume_RGBA | None
create(self, dimx: int, dimy: int = 1, dimz: int = 1, dimt: int = 1)
fill(self)
glMaxSizeX()

Maximum size of the OpenGL palette image, after scaling. 0 means unused: no GL palette image is needed. -1 means no limit: may grow as large as the reference palette image -2 means unchanged

glMaxSizeY(self) int
glSetMaxSize(self, glmaxsizex: int, glmaxsizey: int)
isTransparent(self) bool
max1(self) float
max2(self) float
maxSizeX()

Maximum size of the internal palette image. 0 means unused: no palette image is needed. -1 means no limit: may grow as large as the reference palette image -2 means unchanged

maxSizeY(self) int
min1(self) float
min2(self) float
normColor(self, x: float, y: float = 0) AimsRGBA
normColor(self, pos: AimsVector_FLOAT_2) AimsRGBA
refPalette(self) rc_ptr_APalette
refPalette2(self) rc_ptr_APalette
relValue1(self, obj: anatomist.AObject | None, absval: float) float
relValue2(self, obj: anatomist.AObject | None, absval: float) float
setAbsMax1()

set the max from an absolute value for a given object

setAbsMax2()

set the max from an absolute value for a given object

setAbsMin1()

set the min from an absolute value for a given object

setAbsMin2()

set the min from an absolute value for a given object

setMax1(self, x: float)
setMax2(self, x: float)
setMaxSize(sx, sy)
setMin1(self, x: float)
setMin2(self, x: float)
setRefPalette(self, pal: rc_ptr_APalette)
setRefPalette2(self, pal: rc_ptr_APalette)
setZeroCenteredAxis1(self, a0: bool)
setZeroCenteredAxis2(self, a0: bool)
toQImage()

qimage = palette.toQImage(w=0, h=0, min1=0., max1=1., min2=0., max2=1.)

Get the palette image in a QImage.

The image takes into account the palette min/max settings.

Extra optional parameters allow to scale the image. They are not interpreted the same way as min/max bounds (which determine where on the palette image the object extrema are mapped), but at the contrary, allow to zoom the palette view on specific object values bounds.

toVolume(self, w: int = 0, h: int = 0, scaled: bool = True) rc_ptr_Volume_RGBA
zeroCenteredAxis1(self) bool
zeroCenteredAxis2(self) bool
class anatomist.cpp.APalette(a0: object = '', a1: int = 256, a2: int = 1, a3: int = 1, a4: int = 1)
class anatomist.cpp.APalette(a0: anatomist.APalette)
isTransparent(self) bool
name(self) object
setName(self, a0: object)
update(self)
class anatomist.cpp.APaletteExtensionAction(parent: QObject | None)
class anatomist.cpp.APaletteExtensionAction(text: str, parent: QObject | None)
class anatomist.cpp.APaletteExtensionAction(icon: QIcon, text: str, parent: QObject | None)
extensionTriggered(self, a0: set_AObjectPtr)
class anatomist.cpp.ASurface_2(a0: str | None = '')
Is2DObject(self) bool
Is3DObject(self) bool
UpdateMinAndMax(self)
glAPI(self) anatomist.GLComponent | None
isPlanar(self) bool
setSurface(self, a0: rc_ptr_AimsTimeSurface_2_VOID)
setSurface(self, a0: AimsTimeSurface_2_VOID | None) None
surface(self) rc_ptr_AimsTimeSurface_2_VOID
type(self) int
class anatomist.cpp.ASurface_3(a0: str | None = '')
Is2DObject(self) bool
Is3DObject(self) bool
UpdateMinAndMax(self)
glAPI(self) anatomist.GLComponent | None
isPlanar(self) bool
setSurface(self, a0: rc_ptr_AimsTimeSurface_3_VOID)
setSurface(self, a0: AimsTimeSurface_3_VOID | None) None
surface(self) rc_ptr_AimsTimeSurface_3_VOID
type(self) int
class anatomist.cpp.ATexture
class anatomist.cpp.ATexture(a0: anatomist.ATexture)
Is2DObject(self) bool
Is3DObject(self) bool
clone(self, shallow: bool = True) anatomist.AObject | None
createDefaultPalette(self, name: object = '')
dimTexture(self) int
glDimTex(self, a0: anatomist.ViewState, tex: int = 0) int
glNumTextures(self) int
glNumTextures(self, a0: anatomist.ViewState) int
glTexCoordSize(self, a0: anatomist.ViewState, tex: int = 0) int
loadable(self) bool
normalize(self)
notifyObservers(self, a0: PyQt5.sip.voidptr | None = None)
objectAt(self, a0: vector_FLOAT, a1: float = 0) anatomist.AObject | None
reload(self, filename: object) bool
savable(self) bool
save(self, filename: object) bool
setInternalsChanged(self)
setTexExtrema(self)
setTexExtrema(self, min: float, max: float) None
setTexture(self, a0: rc_ptr_TimeTexture_FLOAT, a1: bool = False)
setTexture(self, a0: rc_ptr_TimeTexture_POINT2DF, a1: bool = False) None
setTexture(self, a0: rc_ptr_TimeTexture_S16, a1: bool = False) None
setTexture(self, a0: rc_ptr_TimeTexture_S32, a1: bool = False) None
setTexture(self, a0: rc_ptr_TimeTexture_U32, a1: bool = False) None
size(self, time: float = 0) int
texture1d(self, rescaled: bool = False, always_copy: bool = False) rc_ptr_TimeTexture_FLOAT
texture2d(self, rescaled: bool = False, always_copy: bool = False) rc_ptr_TimeTexture_POINT2DF
textureTime(self, time: float) float
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
class anatomist.cpp.AVolumeView_DOUBLE(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_DOUBLE(filename: object)
class anatomist.cpp.AVolumeView_DOUBLE(vol: rc_ptr_Volume_DOUBLE)
class anatomist.cpp.AVolumeView_DOUBLE(a0: Any)
class anatomist.cpp.AVolumeView_DOUBLE(a0: anatomist.AVolumeView_DOUBLE)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_DOUBLE)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_FLOAT(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_FLOAT(filename: object)
class anatomist.cpp.AVolumeView_FLOAT(vol: rc_ptr_Volume_FLOAT)
class anatomist.cpp.AVolumeView_FLOAT(a0: Any)
class anatomist.cpp.AVolumeView_FLOAT(a0: anatomist.AVolumeView_FLOAT)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_FLOAT)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_RGB(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_RGB(filename: object)
class anatomist.cpp.AVolumeView_RGB(vol: rc_ptr_Volume_RGB)
class anatomist.cpp.AVolumeView_RGB(a0: Any)
class anatomist.cpp.AVolumeView_RGB(a0: anatomist.AVolumeView_RGB)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_RGB)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_RGBA(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_RGBA(filename: object)
class anatomist.cpp.AVolumeView_RGBA(vol: rc_ptr_Volume_RGBA)
class anatomist.cpp.AVolumeView_RGBA(a0: Any)
class anatomist.cpp.AVolumeView_RGBA(a0: anatomist.AVolumeView_RGBA)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_RGBA)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_S16(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_S16(filename: object)
class anatomist.cpp.AVolumeView_S16(vol: rc_ptr_Volume_S16)
class anatomist.cpp.AVolumeView_S16(a0: Any)
class anatomist.cpp.AVolumeView_S16(a0: anatomist.AVolumeView_S16)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_S16)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_S32(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_S32(filename: object)
class anatomist.cpp.AVolumeView_S32(vol: rc_ptr_Volume_S32)
class anatomist.cpp.AVolumeView_S32(a0: Any)
class anatomist.cpp.AVolumeView_S32(a0: anatomist.AVolumeView_S32)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_S32)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_U16(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_U16(filename: object)
class anatomist.cpp.AVolumeView_U16(vol: rc_ptr_Volume_U16)
class anatomist.cpp.AVolumeView_U16(a0: Any)
class anatomist.cpp.AVolumeView_U16(a0: anatomist.AVolumeView_U16)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_U16)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_U32(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_U32(filename: object)
class anatomist.cpp.AVolumeView_U32(vol: rc_ptr_Volume_U32)
class anatomist.cpp.AVolumeView_U32(a0: Any)
class anatomist.cpp.AVolumeView_U32(a0: anatomist.AVolumeView_U32)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_U32)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AVolumeView_U8(a0: list_AObjectPtr)
class anatomist.cpp.AVolumeView_U8(filename: object)
class anatomist.cpp.AVolumeView_U8(vol: rc_ptr_Volume_U8)
class anatomist.cpp.AVolumeView_U8(a0: Any)
class anatomist.cpp.AVolumeView_U8(a0: anatomist.AVolumeView_U8)
CanRemove(self, obj: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MType(self) int
MaxT(self) float
MinT(self) float
SetExtrema(self)
adjustPalette(self)
boundingBox(self, bmin: vector_FLOAT, bmax: vector_FLOAT) bool
classType() int
initialFOV(self) AimsVector_FLOAT_3
isTransparent(self) bool
render(self, prim: list_RefGLItem, vs: anatomist.ViewState) bool
resolutionLevel(self) int
selectBestResolutionLevel(self, vs: AimsVector_FLOAT_3) int
setFileName(self, fname: object)
setInitialFOV(self, fov: AimsVector_FLOAT_3)
setTargetSize(self, a0: vector_S32)
setVolume(self, vol: rc_ptr_Volume_U8)
setupTransformationFromView(self)
setupViewFromTransformation(self)
targetSize(self) vector_S32
textured2D(self) bool
view(self) rc_ptr_AObject
voxelSize(self) vector_FLOAT
class anatomist.cpp.AWindow(*args)
Group(self) int
Objects(self) set_AObjectPtr
Refresh(self)
class SubType
Title(self) object
class Type
baseTitle(self) object
fromObject(a0: carto.GenericObject) anatomist.AWindow | None
getFullPosition(self) vector_FLOAT
getPosition(self) AimsVector_FLOAT_3
getReferential(self) anatomist.Referential | None
getTime(self) float
hasObject(self, a0: anatomist.AObject | None) bool
hide(self)
isTemporary(self, o: anatomist.AObject | None) bool
objectAt(self, pos: vector_FLOAT) anatomist.AObject | None
positionFromCursor(self, x: int, y: int) AimsVector_FLOAT_3 | None
registerObject(self, a0: anatomist.AObject | None, a1: bool = False, a2: int = -1)
setFullScreen(self, a0: int)
setHasCursor(self, a0: int)
setPosition(self, position: AimsVector_FLOAT_3, refdep: anatomist.Referential | None)
setPosition(self, position: vector_FLOAT, refdep: anatomist.Referential | None = None) None
setReferential(self, ref: anatomist.Referential | None)
setTime(self, time: float)
show(self)
showToolBars(self, a0: int = 2)
subtype(self) anatomist.AWindow.SubType
toolBarsVisible(self) bool
type(self) anatomist.AWindow.Type
unregisterObject(self, a0: anatomist.AObject | None)
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
class anatomist.cpp.AWindow3D
class ClipMode
Refresh(self)
class ViewType
clipDistance(self) float
clipMode(self) AWindow3D.ClipMode
cullingEnabled(self) bool
enableTransparentZ(self, a0: bool)
flatShading(self) bool
focusView(self)
fog(self) bool
getSliceSlider(self) QSlider | None
isViewOblique(self) bool
mute3D(self)
muteAxial(self)
muteCoronal(self)
muteOblique(self)
muteSagittal(self)
objectAtCursorPosition(self, x: int, y: int) anatomist.AObject | None
polygonAtCursorPosition(self, x: int, y: int, obj: anatomist.AObject | None) int
refreshLightView(self)
refreshLightViewNow(self)
refreshNow(self)
refreshTemp(self)
refreshTempNow(self)
resizeView(self, w: int, h: int)
setClipDistance(self, d: float)
setClipMode(self, m: AWindow3D.ClipMode)
setCulling(self, a0: bool)
setFlatShading(self, a0: bool)
setFog(self, a0: bool)
setSmoothing(self, a0: bool)
sliceQuaternion(self) aims.Quaternion
smoothing(self) bool
snapshotImage(self, width: int = 0, height: int = 0, bufmode: int = 0) QImage
transparentZEnabled(self) bool
viewState(self, slice: bool = False) rc_ptr_ViewState
viewType(self) AWindow3D.ViewType
class anatomist.cpp.AWindowCreator
class anatomist.cpp.AWindowCreator(a0: anatomist.AWindowCreator)
class anatomist.cpp.AWindowFactory
class anatomist.cpp.AWindowFactory(a0: anatomist.AWindowFactory)
createWindow(type: object, dock: PyQt5.sip.voidptr | None = None, params: carto.Object = carto.none()) anatomist.AWindow | None
createWindow(type: int, dock: PyQt5.sip.voidptr | None = None, params: carto.Object = carto.none()) anatomist.AWindow | None
exist(type: int) bool
exist(type: object) bool
hasControlWindowButton(type: int) bool
initTypes() bool
registerType(type: object, creator: anatomist.AWindowCreator | None, a2: bool = False) int
setHasControlWindowButton(type: int, visible: bool)
typeID(type: object) int
typeString(type: int, subtype: int = 0) object
types() set_STRING
unregisterType(type: object)
class anatomist.cpp.Action
class anatomist.cpp.Action(a0: anatomist.Action)
actionView(self, a0: QWidget | None) QWidget | None
isSingleton(self) bool
name(self) object
view(self) anatomist.View | None
viewableAction(self) bool
class anatomist.cpp.ActionPool(a0: anatomist.ActionPool)
action(self, a0: object) anatomist.Action | None
actionSet(self) set_STRING
class anatomist.cpp.AddObjectCommand(a0: set_AObjectPtr, a1: set_AWindowPtr, addchildren: bool = False, addgraphnodes: bool = False, addgraphrels: bool = False, temporary: bool = False, position: int = -1)
doit(self)
name(self) object
class anatomist.cpp.Anatomist(*args)[source]

Anatomist class: entry point to anatomist

class anatomist.cpp.AssignReferentialCommand(a0: anatomist.Referential | None, a1: set_AObjectPtr, a2: set_AWindowPtr, a3: int = -1, a4: anatomist.CommandContext | None = None, a5: object = std.string(''))
doit(self)
name(self) object
ref(self) anatomist.Referential | None
class anatomist.cpp.ChooseReferentialWindow(a0: set_AObjectPtr, name: str | None, a2: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
class anatomist.cpp.ChooseReferentialWindow(a0: set_AWindowPtr, name: str | None, a2: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
class anatomist.cpp.ChooseReferentialWindow(a0: set_AWindowPtr, a1: set_AObjectPtr, name: str | None, a3: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
chooseRef(self, a0: int)
drawContents(self, name: str | None)
selectedReferential(self) anatomist.Referential | None
unregisterObservable(self, a0: anatomist.Observable | None)
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
class anatomist.cpp.ClippedObject(a0: vector_AObjectPtr)
class anatomist.cpp.ClippedObject(a0: anatomist.ClippedObject)
class anatomist.cpp.Command

Commands are the execution units of the Processor.

Commands are used as subclasses of Command. They can be built either on the fly by the programmer, or using the commands factory via the Processor.execute() function.

Never call Command.execute() or Command.doit() directly: only the processor will do so. Once built, a command must always be executed by the processor:

>>> a = anatomist.Anatomist()
>>> c = anatomist.CreateWindowCommand('Axial')
>>> a.theProcessor().execute(c)

But in any case there is a more handy shortcut in the higher-level API: anatomist.base.Anatomist.execute()

Comamnds can be subclassed in Python. To be valid, a new command must define at least the name() and doit() methods. doit() will actually do the execution and your program may make it do anything. Later, read() and write() should also be redefined to allow proper IO for this command (when the commands IO and factory are exported from C++ to python).

Command.doit() receives no parameters (apart from self). All execution arguments must be set in the command itself upon construction (either by the constructor or by setting some instance variables).

One important parameter which a command would often use is the CommandContext, which specifies some IO streams for output printing and communication with external programs, and an identifiers set used to name and identify objects (in a general meaning: including windows etc.) through this IO streams.

doit(self)
execute(self)
name(self) object
write(self, a0: anatomist.CommandContext | None = None) carto.Object
class anatomist.cpp.CommandContext
class anatomist.cpp.CommandContext(a0: anatomist.CommandContext)
defaultContext() anatomist.CommandContext
freeID(self) int
id(self, a0: anatomist.AObject | None) int
id(self, a0: anatomist.AWindow | None) int
id(self, a0: anatomist.Referential | None) int
id(self, a0: anatomist.Transformation | None) int
id(self, a0: QWidget | None) int
ids(self) Tuple
makeID(self, a0: anatomist.AObject | None) int
makeID(self, a0: anatomist.Referential | None) int
makeID(self, a0: anatomist.Transformation | None) int
makeID(self, a0: anatomist.AWindow | None) int
makeID(self, a0: QWidget | None) int
object(self, a0: int) Any
class anatomist.cpp.ContinuousTrackball
beginTrackball(self, x: int, y: int, globalX: int, globalY: int)
endTrackball(self, x: int, y: int, globalX: int, globalY: int)
moveTrackball(self, x: int, y: int, globalX: int, globalY: int)
startOrStop(self)
stop(self)
class anatomist.cpp.Control(a0: int, a1: object)
class anatomist.cpp.Control(a0: anatomist.Control)
class KeyActionLink(a0: anatomist.Control.KeyActionLink)
clone(self) anatomist.Control.KeyActionLink | None
execute(self)
class MouseActionLink(a0: anatomist.Control.MouseActionLink)
action(self) anatomist.Action | None
clone(self) anatomist.Control.MouseActionLink | None
execute(self, a0: int, a1: int, a2: int, a3: int)
class PanActionLink(a0: anatomist.Control.PanActionLink)
clone(self) anatomist.Control.PanActionLink | None
execute(self, a0: QPanGesture | None)
class PinchActionLink(a0: anatomist.Control.PinchActionLink)
clone(self) anatomist.Control.PinchActionLink | None
execute(self, a0: QPinchGesture | None)
class SelectionChangedActionLink(a0: anatomist.Control.SelectionChangedActionLink)
clone(self) anatomist.Control.SelectionChangedActionLink | None
execute(self)
class SwipeActionLink(a0: anatomist.Control.SwipeActionLink)
clone(self) anatomist.Control.SwipeActionLink | None
execute(self, a0: QSwipeGesture | None)
class TapActionLink(a0: anatomist.Control.TapActionLink)
clone(self) anatomist.Control.TapActionLink | None
execute(self, a0: QTapGesture | None)
class TapAndHoldActionLink(a0: anatomist.Control.TapAndHoldActionLink)
clone(self) anatomist.Control.TapAndHoldActionLink | None
execute(self, a0: QTapAndHoldGesture | None)
class TouchActionLink(a0: anatomist.Control.TouchActionLink)
clone(self) anatomist.Control.TouchActionLink | None
execute(self, a0: QTouchEvent | None)
class WheelActionLink(a0: anatomist.Control.WheelActionLink)
clone(self) anatomist.Control.WheelActionLink | None
execute(self, a0: int, a1: int, a2: int, a3: int, a4: int)
actions(self) Any
description(self) object
doAlsoOnDeselect(self, a0: anatomist.ActionPool | None)
doAlsoOnSelect(self, a0: anatomist.ActionPool | None)
eventAutoSubscription(self, a0: anatomist.ActionPool | None)
inhibitAction(self, action: object, inhibit: bool)
inhibitedActions(self) set_STRING
keyPressActionLinkNames(self) set_STRING
keyPressEventUnsubscribe(self, a0: int, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
keyReleaseActionLinkNames(self) set_STRING
keyReleaseEventUnsubscribe(self, a0: int, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
mouseDoubleClickActionLinkNames(self) set_STRING
mouseDoubleClickEventUnsubscribe(self, a0: Qt.MouseButtons | Qt.MouseButton, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
mouseLongEventUnsubscribe(self, a0: Qt.MouseButtons | Qt.MouseButton, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
mouseMoveActionLinkNames(self) set_STRING
mouseMoveEventUnsubscribe(self, a0: Qt.MouseButtons | Qt.MouseButton, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
mousePressActionLinkNames(self) set_STRING
mousePressButtonEventUnsubscribe(self, a0: Qt.MouseButtons | Qt.MouseButton, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
mouseReleaseActionLinkNames(self) set_STRING
mouseReleaseButtonEventUnsubscribe(self, a0: Qt.MouseButtons | Qt.MouseButton, a1: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
name(self) object
panEventUnsubscribe(self) bool
pinchEventUnsubscribe(self) bool
priority(self) int
selectionChangedEventUnsubscribe(self) bool
setPriority(self, a0: int)
setUserLevel(self, a0: int)
swipeEventUnsubscribe(self) bool
tapAndHoldEventUnsubscribe(self) bool
tapEventUnsubscribe(self) bool
touchEventUnsubscribe(self, state: Qt.KeyboardModifiers | Qt.KeyboardModifier) bool
userLevel(self) int
wheelEventUnsubscribe(self) bool
wheelEventUnsubscribeAll(self) bool
class anatomist.cpp.Control3D(priority: int = 1, name: object = 'Default 3D control')
class anatomist.cpp.Control3D(c: anatomist.Control3D)
doAlsoOnDeselect(self, actionPool: anatomist.ActionPool | None)
doAlsoOnSelect(self, actionPool: anatomist.ActionPool | None)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.ControlSwitch(view: anatomist.View | None)
activableControls(self) object
activeControl(self) object
activeControlInstance(self) anatomist.Control | None
availableControls(self) object
controlDescription(self, ctrlname: object) object
dragEnterEvent(self, a0: QDragEnterEvent | None)
dragLeaveEvent(self, a0: QDragLeaveEvent | None)
dragMoveEvent(self, a0: QDragMoveEvent | None)
dropEvent(self, a0: QDropEvent | None)
enterEvent(self, a0: QEvent | None)
focusInEvent(self, a0: QFocusEvent | None)
focusOutEvent(self, a0: QFocusEvent | None)
getAction(self, actionName: object) anatomist.Action | None
hideEvent(self, a0: QHideEvent | None)
keyPressEvent(self, a0: QKeyEvent | None)
keyReleaseEvent(self, a0: QKeyEvent | None)
leaveEvent(self, a0: QEvent | None)
mouseDoubleClickEvent(self, a0: QMouseEvent | None)
mouseMoveEvent(self, a0: QMouseEvent | None)
mousePressEvent(self, a0: QMouseEvent | None)
mouseReleaseEvent(self, a0: QMouseEvent | None)
moveEvent(self, a0: QMoveEvent | None)
paintEvent(self, a0: QPaintEvent | None)
resizeEvent(self, a0: QResizeEvent | None)
selectionChangedEvent(self)
showEvent(self, a0: QShowEvent | None)
wheelEvent(self, a0: QWheelEvent | None)
class anatomist.cpp.ControlWindow
SelectWindow(self, win: anatomist.AWindow | None)
UnselectAllWindows(self)
closeEnabled(self) bool
enableClose(self, a0: bool)
selectedWindows(self) set_AWindowPtr
class anatomist.cpp.ControlledWindow(*args)
fromObject(a0: carto.GenericObject) ControlledWindow | None
registerObject(self, a0: anatomist.AObject | None, a1: bool = False, a2: int = -1)
unregisterObject(self, a0: anatomist.AObject | None)
updateActions(self)
updateActivableControls(self)
updateActiveControl(self)
updateAvailableControls(self)
view(self) anatomist.View | None
class anatomist.cpp.CreateWindowCommand(a0: object, a1: int = -1, a2: anatomist.CommandContext | None = None, a3: vector_S32 = vector_S32(), a4: int = 0, a5: QWidget | None = None, a6: int = 0, a7: int = 0, a8: carto.Object = carto.none())
block(self) QWidget | None
createdWindow(self) anatomist.AWindow | None
doit(self)
name(self) object
class anatomist.cpp.CreateWindowsBlockCommand(a0: int = -1, a1: anatomist.CommandContext | None = None, a2: vector_S32 = vector_S32(), a3: int = 0, a4: int = 0, a5: int = 1)
block(self) QWidget | None
doit(self)
name(self) object
class anatomist.cpp.CutControl
class anatomist.cpp.CutControl(c: anatomist.CutControl)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.CutSliceAction
class anatomist.cpp.CutSliceAction(a: anatomist.CutSliceAction)
beginTrack(self, x: int, y: int, globalX: int, globalY: int)
endTrack(self, a0: int, a1: int, a2: int, a3: int)
moveTrack(self, x: int, y: int, globalX: int, globalY: int)
name(self) object
class anatomist.cpp.DragObjectAction
class anatomist.cpp.DragObjectAction(a0: anatomist.DragObjectAction)
dragAll(self, x: int, y: int, globalX: int, globalY: int)
dragSelected(self, x: int, y: int, globalX: int, globalY: int)
class anatomist.cpp.EventHandler
class anatomist.cpp.EventHandler(a0: anatomist.EventHandler)
doit(self, a0: anatomist.OutputEvent)
registerHandler(a0: object, a1: rc_ptr_EventHandler)
registerHandler(a0: object, a1: anatomist.EventHandler | None) None
unregisterHandler(a0: object, a1: rc_ptr_EventHandler)
unregisterHandler(a0: object, a1: anatomist.EventHandler | None) None
class anatomist.cpp.ExtractTextureCommand(a0: anatomist.AObject | None, a1: int = -1, a2: int = -1, a3: anatomist.CommandContext | None = None)
createdObject(self) anatomist.AObject | None
doit(self)
name(self) object
class anatomist.cpp.FixedPointOfViewWindow(win: AWindow3D | None, parent: QWidget | None = None, name: str | None = None)
cornerPOV(self, a0: int)
edgePOV(self, a0: int)
straightPOV(self, a0: int)
class anatomist.cpp.FlightControl
class anatomist.cpp.FlightControl(c: anatomist.FlightControl)
doAlsoOnDeselect(self, actionPool: anatomist.ActionPool | None)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.Fusion2DMeshMethod
class anatomist.cpp.Fusion2DMeshMethod(a0: anatomist.Fusion2DMeshMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.Fusion2dMethod
class anatomist.cpp.Fusion2dMethod(a0: anatomist.Fusion2dMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.Fusion3dMethod
class anatomist.cpp.Fusion3dMethod(a0: anatomist.Fusion3dMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.FusionCutMeshMethod
class anatomist.cpp.FusionCutMeshMethod(a0: anatomist.FusionCutMeshMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.FusionFactory
class anatomist.cpp.FusionFactory(a0: anatomist.FusionFactory)
allowedMethods(self, a0: set_AObjectPtr) list_STRING
canFusion(a0: set_AObjectPtr) bool
chooseMethod(self, a0: vector_AObjectPtr, a1: bool = False) anatomist.FusionMethod | None
factory() anatomist.FusionFactory | None
method(self, a0: object) anatomist.FusionMethod | None
methods() set_STRING
registerMethod(a0: anatomist.FusionMethod | None) bool
class anatomist.cpp.FusionInfoCommand(a0: List = Py_None, filename: object = '', requestid: object = '', context: anatomist.CommandContext | None = None)
name(self) object
result(self) carto.Object
class anatomist.cpp.FusionMethod
class anatomist.cpp.FusionMethod(a0: anatomist.FusionMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
generatedObjectType(self) object
orderingMatters(self) bool
class anatomist.cpp.FusionMultiTextureMethod
class anatomist.cpp.FusionMultiTextureMethod(a0: anatomist.FusionMultiTextureMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.FusionObjectsCommand(a0: List, a1: object = '', a2: int = -1, a3: bool = False, a4: anatomist.CommandContext | None = None)
createdObject(self) anatomist.AObject | None
doit(self)
name(self) object
class anatomist.cpp.FusionSliceMethod
class anatomist.cpp.FusionSliceMethod(a0: anatomist.FusionSliceMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.FusionTexSurfMethod
class anatomist.cpp.FusionTexSurfMethod(a0: anatomist.FusionTexSurfMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.FusionTextureMethod
class anatomist.cpp.FusionTextureMethod(a0: anatomist.FusionTextureMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.GLComponent
class anatomist.cpp.GLComponent(a0: anatomist.GLComponent)
class TexExtrema
class TexExtrema(a0: anatomist.GLComponent.TexExtrema)
debugInfo(self) carto.Object
glAPI(self) anatomist.GLComponent | None
glAfterBodyGLL(self, state: anatomist.ViewState, pl: list_RefGLItem)
glAllowedTexRGBInterpolation(self, tex: int = 0) bool
glAllowedTexRate(self, tex: int = 0) bool
glAutoTexMode(self, tex: int = 0) anatomist.GLComponent.glAutoTexturingMode
class glAutoTexturingMode
glBeforeBodyGLL(self, state: anatomist.ViewState, pl: list_RefGLItem)
glBuildTexImage(self, state: anatomist.ViewState, tex: int, dimx: int = -1, dimy: int = -1, useTexScale: bool = True) rc_ptr_Volume_RGBA
glDimTex(self, a0: anatomist.ViewState, tex: int = 0) int
glGLTexFiltering(self, tex: int = 0) int
glGLTexMode(self, tex: int = 0) int
glHasChanged(self, a0: anatomist.GLComponent.glPart) bool
glMainGLL(self, a0: anatomist.ViewState) list_RefGLItem
glMakeBodyGLL(self, state: anatomist.ViewState, gllist: anatomist.GLList) bool
glMakeTexEnvGLL(self, state: anatomist.ViewState, gllist: anatomist.GLList, tex: int) bool
glMakeTexImage(self, state: anatomist.ViewState, gltex: anatomist.GLTexture, tex: int) bool
glMaterial(self) anatomist.Material | None
glNormalArray(self, a0: anatomist.ViewState) Any
glNumPolygon(self, a0: anatomist.ViewState) int
glNumTextures(self) int
glNumTextures(self, a0: anatomist.ViewState) int
glNumVertex(self, a0: anatomist.ViewState) int
glPalette(self, tex: int = 0) anatomist.AObjectPalette | None
class glPart
glPolygonArray(self, a0: anatomist.ViewState) Any
glSetAutoTexMode(self, mode: anatomist.GLComponent.glAutoTexturingMode, tex: int = 0)
glSetChanged(self, a0: anatomist.GLComponent.glPart, a1: bool = True)
glSetTexEnvChanged(self, x: bool = True, tex: int = 0)
glSetTexFiltering(self, x: anatomist.GLComponent.glTextureFiltering, tex: int = 0)
glSetTexImageChanged(self, x: bool = True, tex: int = 0)
glSetTexMode(self, mode: anatomist.GLComponent.glTextureMode, tex: int = 0)
glSetTexRGBInterpolation(self, x: bool, tex: int = 0)
glSetTexRate(self, rate: float, tex: int = 0)
glTexCoordArray(self, a0: anatomist.ViewState, tex: int = 0) Any
glTexCoordSize(self, a0: anatomist.ViewState, tex: int = 0) int
glTexExtrema(self, a0: int = 0) anatomist.GLComponent.TexExtrema
glTexFiltering(self, tex: int = 0) anatomist.GLComponent.glTextureFiltering
glTexMode(self, tex: int = 0) anatomist.GLComponent.glTextureMode
glTexRGBInterpolation(self, tex: int = 0) bool
glTexRate(self, tex: int = 0) float
class glTextureFiltering
class glTextureMode
glVertexArray(self, a0: anatomist.ViewState) Any
viewStateID(self, part: anatomist.GLComponent.glPart, a1: anatomist.ViewState) object
class anatomist.cpp.GLItem
class anatomist.cpp.GLItem(a0: anatomist.GLItem)
callList(self)
ghost(self) bool
setGhost(self, a0: bool)
class anatomist.cpp.GLItemList
class anatomist.cpp.GLItemList(a0: anatomist.GLItemList)
callList(self)
class anatomist.cpp.GLList(gllist: int = 0)
class anatomist.cpp.GLList(a0: anatomist.GLList)
callList(self)
generate(self)
item(self) int
class anatomist.cpp.GLNoExecItemList
class anatomist.cpp.GLNoExecItemList(a0: anatomist.GLNoExecItemList)
callList(self)
class anatomist.cpp.GLTexture(gltex: int = 0)
class anatomist.cpp.GLTexture(a0: anatomist.GLTexture)
callList(self)
generate(self)
item(self) int
class anatomist.cpp.GLWidgetManager
aWindow(self) anatomist.AWindow | None
boundingMax(self) AimsVector_FLOAT_3
boundingMin(self) AimsVector_FLOAT_3
clearLists(self)
cursorFromPosition(self, a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3) bool
depthPeelingAllowed(self) bool
depthPeelingEnabled(self) bool
depthPeelingPasses(self) int
enableDepthPeeling(self, a0: bool)
enablePerspective(self, a0: bool)
hasTransparentObjects(self) bool
height(self) int
invertedX(self) bool
invertedY(self) bool
invertedZ(self) bool
name(self) object
numTextureUnits(self) int
objectPositionFromWindow(self, winpos: AimsVector_FLOAT_3) AimsVector_FLOAT_3
otherBuffersSaveMode(self) int
paintScene(self)
perspectiveEnabled(self) bool
positionFromCursor(self, a0: int, a1: int, a2: AimsVector_FLOAT_3) bool
primitives(self) list_RefGLItem
qglWidget(self) QOpenGLWidget | None
quaternion(self) aims.Quaternion
recordStart(self, a0: str, a1: str = '')
rotationCenter(self) AimsVector_FLOAT_3
saveContents(self, a0: str, a1: str, a2: int = 0, a3: int = 0)
saveOtherBuffer(self, a0: str, a1: str, a2: int, a3: int = 0, a4: int = 0)
setAutoCentering(self, a0: bool)
setDepthPeelingPasses(self, a0: int)
setExtrema(self, a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3)
setLightGLList(self, a0: int)
setMinimumSizeHint(self, a0: QSize)
setOtherBuffersSaveMode(self, a0: int)
setPreferredSize(self, a0: int, a1: int)
setPrimitives(self, a0: list_RefGLItem)
setQuaternion(self, a0: AimsVector_FLOAT_4)
setQuaternion(self, a0: aims.Quaternion) None
setRotationCenter(self, a0: AimsVector_FLOAT_3)
setTransparentObjects(self, a0: bool)
setWindowExtrema(self, a0: AimsVector_FLOAT_3, a1: AimsVector_FLOAT_3)
setXDirection(self, a0: bool)
setYDirection(self, a0: bool)
setZDirection(self, a0: bool)
setZoom(self, a0: float)
snapshotImage(self, bufmode: int, width: int = 0, height: int = 0) QImage
translateCursorPosition(self, a0: float, a1: float, a2: AimsVector_FLOAT_3) bool
updateGL(self)
width(self) int
windowBoundingMax(self) AimsVector_FLOAT_3
windowBoundingMin(self) AimsVector_FLOAT_3
zoom(self) float
class anatomist.cpp.GenerateTextureCommand(a0: anatomist.AObject | None, a1: int = -1, a2: int = -1, a3: anatomist.CommandContext | None = None)
createdObject(self) anatomist.AObject | None
doit(self)
name(self) object
class anatomist.cpp.Geometry
class anatomist.cpp.Geometry(a0: anatomist.Geometry)
class anatomist.cpp.GetInfoCommand(filename: object, context: anatomist.CommandContext | None, objects: bool = False, windows: bool = False, refs: bool = False, trans: bool = False, palettes: bool = False, nameobj: object = '', namewin: bool = False, selects: bool = False, link: bool = False, linkref: anatomist.Referential | None = None, nameref: bool = False, nametrans: bool = False, requestid: object = '', version: bool = False, listcommands: bool = False, aimsinfo: bool = False, modinfo: bool = False)
name(self) object
result(self) carto.Object
class anatomist.cpp.GlobalConfiguration
class anatomist.cpp.GlobalConfiguration(a0: anatomist.GlobalConfiguration)
apply(self)
configFilename(self, initial: object) object
load(self, filename: object = '')
save(self, filename: object = '')
update(self)
class anatomist.cpp.GradientWidget(parent: QWidget | None = None, name: str | None = None, gradString: str = '', vMin: float = 0, vMax: float = 1)
fillGradient(self, length: int = 4096, withAlpha: bool = False) QByteArray
getGradientString(self) str
hasAlpha(self) bool
isHsv(self) bool
maxBound(self) float
minBound(self) float
minimumSizeHint(self) QSize
mouseMoveEvent(self, a0: Optional[QMouseEvent])
mousePressEvent(self, a0: Optional[QMouseEvent])
mouseReleaseEvent(self, a0: Optional[QMouseEvent])
newHsv(self)
newRgb(self)
paintEvent(self, a0: Optional[QPaintEvent])
resizeEvent(self, a0: Optional[QResizeEvent])
setBounds(self, vMin: float = 0, vMax: float = 1)
setGradient(self, s: str)
setHasAlpha(self, a0: bool)
sizeHint(self) QSize
class anatomist.cpp.GroupObjectsCommand(a0: set_AObjectPtr, a1: int = -1, a2: anatomist.CommandContext | None = None)
doit(self)
groupObject(self) anatomist.MObject | None
name(self) object
class anatomist.cpp.LabelEditAction
class anatomist.cpp.LabelEditAction(a: anatomist.LabelEditAction)
actionView(self, a0: QWidget | None) QWidget | None
edit()

set current (picked) label to seleted objects

label()

current label

name(self) object
pick()

pick selection label

setLabel(label, obj=None)
setLabel(label, color) None

set (picked) current label. obj is used to find a nomenclature and color

Parameters:
  • label (str) – label name

  • obj (AObject) – used to find a nomenclature and color

  • color (aims.AimsRGB) – color associated to the label, outside any nomenclature context

viewableAction(self) bool
class anatomist.cpp.LinkAction
class anatomist.cpp.LinkAction(a0: anatomist.LinkAction)
class anatomist.cpp.LoadObjectCommand(a0: object, a1: int = -1, a2: object = std.string(''), a3: bool = False, a4: carto.Object = carto.none(), a5: anatomist.CommandContext | None = None)
doit(self)
loadedObjects(self) list_AObjectPtr
name(self) object
class anatomist.cpp.LoadObjectsCommand(filename: vector_STRING, id: vector_S32 = vector_S32(), objname: vector_STRING = vector_STRING(), options: carto.Object = carto.none(), context: Optional[anatomist.CommandContext] = &anatomist.CommandContext.defaultContext(), threaded: bool = True)
doit(self)
loadedObjects(self) vector_AObjectPtr
loading(self) bool
name(self) object
wait(self)
class anatomist.cpp.LoadTransformationCommand(a0: object, a1: anatomist.Referential | None, a2: anatomist.Referential | None, a3: int = -1, a4: anatomist.CommandContext | None = None)
class anatomist.cpp.LoadTransformationCommand(a0: vector_FLOAT, a1: anatomist.Referential | None, a2: anatomist.Referential | None, a3: int = -1, a4: anatomist.CommandContext | None = None)
doit(self)
name(self) object
trans(self) anatomist.Transformation | None
class anatomist.cpp.MObject(*args)
CanRemove(self, a0: anatomist.AObject | None) bool
Is2DObject(self) bool
Is3DObject(self) bool
MaxT(self) float
MinT(self) float
begin(self) anatomist.AIterator
boundingBox(self, a0: vector_FLOAT, a1: vector_FLOAT) bool
clearHasChangedFlags(self)
end(self) anatomist.AIterator
eraseObject(self, a0: anatomist.AObject | None)
generativeChildren(self) list_AObjectPtr
glAPI(self) anatomist.GLComponent | None
hasContentChanged(self) bool
insert(self, a0: anatomist.AObject | None)
isTransparent(self) bool
objectAt(self, a0: vector_FLOAT, a1: float = 0) anatomist.AObject | None
renderedSubObjects(self, a0: anatomist.ViewState) list_AObjectPtr
setContentChanged(self)
setPalette(self, a0: anatomist.AObjectPalette)
size(self) int
update(self, a0: anatomist.Observable | None, a1: PyQt5.sip.voidptr | None)
voxelSize(self) vector_FLOAT
class anatomist.cpp.MObjectIO
class anatomist.cpp.MObjectIO(a0: anatomist.MObjectIO)
createMObjectDescr(aobject: anatomist.AObject | None, path: object = '', writeLeafs: bool = True) carto.Object
createMObjectDescr(aobject: carto.Object, path: object = '', writeLeafs: bool = True) carto.Object
readMObject(filename: object) carto.Object
readMObject(object_descr: carto.Object, path: object = '') carto.Object
saveDescription(aobject: carto.Object, filename: object, writeLeafs: bool = True) bool
writeMObject(aobject: anatomist.AObject | None, filename: object, writeLeafs: bool = True) bool
writeMObject(aobject: carto.Object, filename: object, writeLeafs: bool = True) bool
class anatomist.cpp.Material
class anatomist.cpp.Material(a0: anatomist.Material)
genericDescription(self) carto.Object
set(self, a0: carto.GenericObject)
class anatomist.cpp.MenuAction
class anatomist.cpp.MenuAction(a0: anatomist.MenuAction)
execMenu(self, x: int, y: int, globalX: int, globalY: int)
class anatomist.cpp.MiniPaletteGraphics

MiniPaletteGraphics is an element which draws a palette in a GraphicsView scene. It is used by MiniPaletteWidget, but can be used alone in a QGraphicsView.

It provides a small sized palette widget which can be used to display the palette.

The palette view displayes the palette assigned to an object, and the view may be zoomed to a given values range.

clear(self)
getObject(self) anatomist.AObject | None
height(self) float
left(self) float
max(self, dim: int) float
min(self, dim: int) float
observedDimensions(self) int
resize(self, x: float, y: float, w: float, h: float)
setObject()

set or change the observed object. dim is the texure dimension observed

setRange(self, min: float, max: float, dim: int)
top(self) float
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
updateDisplay(self)
width(self) float
class anatomist.cpp.MiniPaletteWidget

MiniPaletteWidget.

It provides a small sized palette widget which can be used both to display the palette in a GUI, and to edit the palette range (optionally).

The palette view displayes the palette assigned to an object, and the view may be zoomed to a given values range.

The palatte may be zoomed in/out using the mouse wheel. This action will not change the palette settings, but only the view displayed.

Edition is possible if enabled, either using the allow_edit constructor parameter, or using the method allow_edit().

Edition is triggered in 2 modes:

  • if click_to_edit is True (the default), a click on the palette will open the editor mode.

  • otherwise a mouse hover will open it, and it will be closed when the mouse leaves the editor, without the need for a user click.

The edition mode opens a popup frameless widget, with sliders. see MiniPaletteWidgetTranscient.

allowEdit()

Enalbes or disable the edition capabilities

Parameters:
  • allow (bool) – if True, an editor will popup, either by clicking on the widget, or by “hovering” it if click_to_edit is False.

  • edit_parent (QWidget or None or 0) – the parent widget passed to the editor widget, if edition is allowed. The special value 0 means that the parent will be the MiniPaletteWidget, self.

clear(self)
getObject(self) anatomist.AObject | None
graphicsView(self) QGraphicsView | None
hideEditor(self)
miniPaletteGraphics(self) anatomist.MiniPaletteGraphics | None
observedDimension(self) int
setObject(self, obj: anatomist.AObject | None, dim: int = 0)
setRange()

set the view range in object values

showEditor()

pops up the editor, if the edition is allowed

updateDisplay()

redraws the palette view

class anatomist.cpp.MiniPaletteWidgetEdit

Mini palette editor widget.

MiniPaletteWidgetEdit is part of the MiniPaletteWidget infrastructure and in most cases will not be used directly.

However a GUI may incorporate the editor widget.

It is normally used within MiniPaletteWidgetTranscient, itself used in the edition mode of MiniPaletteWidget. In turn, MiniPaletteWidgetEdit contains a non-editable MiniPaletteWidget object.

The editor thus presents a palette view, plus 2 sliders to set the min and max range of the palette. The view may be zoomed using the mouse wheel (see MiniPaletteWidget), and it can also use an automatic zoom mode, if auto_range=True is passed to the constructor, or set_auto_range() is called. In auto range mode, the zoom range is adapted after each user interaction on sliders (after the mouse is released).

adjustRange()

auto-range function

clearAutoBtn(self)
getObject(self) anatomist.AObject | None
gvMoved(self, event: QMouseEvent | None)
maxChanged(self, value: float)
maxSlider(self) QSlider | None
minChanged(self, value: float)
minSlider(self) QSlider | None
miniPaletteWidget(self) anatomist.MiniPaletteWidget | None
observedDimension(self) int
selectPalette(self)
setAutoRange()

allows or disables the auto-zoom mode

setObject(self, obj: anatomist.AObject | None, dim: int = 0)
setPalette(self, palname: object)
setRange(self, rmin: float, rmax: float)
update(self, observable: anatomist.Observable | None, arg: PyQt5.sip.voidptr | None)
updateDisplay()

redraws the palette and sliders values

class anatomist.cpp.MiniPaletteWidgetTranscient

The transcient palette editor widget features a MiniPaletteWidgetEdit which shows up upon given conditions (see MiniPaletteWidget) and closes when the editor widget loses focus.

More precisely, if opened by a click, a complete focus loss is needed to close the window (which is generally triggered by another user action like a click at some other place or a keyboard focus change, using <tab> for instance).

If not opened by a click, the widget will close as soon as the mouse pointer leaves the widget surface, or when the focus is lost, thus not requiring a click or keyboard user action.

closeIfFinished(self)
editor(self) anatomist.MiniPaletteWidgetEdit | None
reposition()

Repositions / resizes the widget to superpose on its MiniPaletteWidget

sliderPressed(self)
sliderReleased(self)
class anatomist.cpp.Module
actionsDeclaration(self)
controlGroupsDeclaration(self)
controlWinOptions(self) Tree | None
controlsDeclaration(self)
description(self) object
init(self)
name(self) object
objectPropertiesDeclaration(self)
objectsDeclaration(self)
viewsDeclaration(self)
class anatomist.cpp.ModuleManager(a0: anatomist.ModuleManager)
insert(self, a0: anatomist.Module | None)
instance() anatomist.ModuleManager | None
modules(self) Tuple
remove(self, a0: anatomist.Module | None)
size(self) int
class anatomist.cpp.MovieAction
decreaseSpeed(self)
increaseSpeed(self)
isRunning(self) bool
nextMode(self)
sliceOn(self)
startOrStop(self)
timeOn(self)
class anatomist.cpp.NewPaletteCommand(a0: object)
doit(self)
name(self) object
class anatomist.cpp.ObjectActions
class anatomist.cpp.ObjectActions(a0: anatomist.ObjectActions)
askName(newname: object, type: object = '', origname: object = '') bool
colorMaterial(obj: set_AObjectPtr)
colorMaterialMenuCallback() anatomist.ObjectMenuCallback | None
colorPalette(obj: set_AObjectPtr)
colorPaletteMenuCallback() anatomist.ObjectMenuCallback | None
displayGraphChildren(obj: set_AObjectPtr)
displayGraphChildrenMenuCallback() anatomist.ObjectMenuCallback | None
displayGraphRelations(obj: set_AObjectPtr)
extractTexture(obj: set_AObjectPtr)
extractTextureMenuCallback() anatomist.ObjectMenuCallback | None
fileReload(obj: set_AObjectPtr)
fileReloadMenuCallback() anatomist.ObjectMenuCallback | None
fusion2DControl(obj: set_AObjectPtr)
fusion2DControlMenuCallback() anatomist.ObjectMenuCallback | None
fusion3DControl(obj: set_AObjectPtr)
fusion3DControlMenuCallback() anatomist.ObjectMenuCallback | None
generateTexture1D(obj: set_AObjectPtr)
generateTexture1DMenuCallback() anatomist.ObjectMenuCallback | None
generateTexture2D(obj: set_AObjectPtr)
generateTexture2DMenuCallback() anatomist.ObjectMenuCallback | None
graphLabelToName(obj: set_AObjectPtr)
graphUseDefaultLabelProperty(obj: set_AObjectPtr)
graphUseLabel(obj: set_AObjectPtr)
graphUseName(obj: set_AObjectPtr)
loadGraphSubObjects(obj: set_AObjectPtr)
referentialLoad(obj: set_AObjectPtr)
referentialLoadMenuCallback() anatomist.ObjectMenuCallback | None
renameObject(obj: set_AObjectPtr)
renameObjectMenuCallback() anatomist.ObjectMenuCallback | None
saveStatic(obj: set_AObjectPtr)
saveStaticMenuCallback() anatomist.ObjectMenuCallback | None
saveTexture(obj: set_AObjectPtr)
saveTextureMenuCallback() anatomist.ObjectMenuCallback | None
setAutomaticReferential(obj: set_AObjectPtr)
specificSaveStatic(obj: set_AObjectPtr, filter: object, caption: object) object
specificSaveTexture(obj: set_AObjectPtr, filter: object, caption: object) object
textureControl(obj: set_AObjectPtr)
textureControlMenuCallback() anatomist.ObjectMenuCallback | None
class anatomist.cpp.ObjectInfoCommand(filename: object, context: anatomist.CommandContext | None, objectIDs: vector_S32, nameChildren: bool, nameref: bool = False, requestid: object = '', objfilenames: set_STRING = set_STRING())
name(self) object
result(self) carto.Object
class anatomist.cpp.ObjectList
class anatomist.cpp.ObjectList(a0: anatomist.ObjectList)
begin(self) anatomist.AIterator
end(self) anatomist.AIterator
insert(self, a0: anatomist.AObject | None)
size(self) int
type(self) int
class anatomist.cpp.ObjectMenu
class anatomist.cpp.ObjectMenu(a0: anatomist.ObjectMenu)
class anatomist.cpp.ObjectMenu(a0: Tree)
insertItem(self, a0: vector_STRING, a1: object)
insertItem(self, a0: vector_STRING, a1: object, a2: anatomist.ObjectMenuCallback | None) None
item(self, a0: vector_STRING, a1: bool = True) Tree | None
releaseTree(self) Tree | None
removeItem(self, inside: vector_STRING, text: object)
tree(self) Tree | None
class anatomist.cpp.ObjectMenuCallback
class anatomist.cpp.ObjectMenuCallback(a0: anatomist.ObjectMenuCallback)
doit(self, a0: set_AObjectPtr)
class anatomist.cpp.ObjectMenuRegistrerClass
class anatomist.cpp.ObjectMenuRegistrerClass(a0: anatomist.ObjectMenuRegistrerClass)
doit(self, a0: anatomist.AObject | None, a1: anatomist.ObjectMenu | None) anatomist.ObjectMenu | None
class anatomist.cpp.ObjectParamSelect(a0: set_AObjectPtr, parent: QWidget | None)
class ViewMode
filter(self, o: anatomist.AObject | None) bool
selectObjects(self)
selectObjects(self, obj: set_AObjectPtr, sel: set_AObjectPtr) None
selectedObjects(self) set_AObjectPtr
setObjectsViewMode(self, a0: int)
updateLabel(self, a0: set_AObjectPtr)
class anatomist.cpp.ObjectParamSelectSip(a0: set_AObjectPtr, parent: QWidget | None)
class anatomist.cpp.ObjectReader
class anatomist.cpp.ObjectReader(a0: anatomist.ObjectReader)
class LoadFunctionClass
class LoadFunctionClass(a0: anatomist.ObjectReader.LoadFunctionClass)
load(self, filename: object, a1: anatomist.ObjectReader.PostRegisterList, options: carto.Object) list_AObjectPtr
class PostRegisterList
class PostRegisterList(a0: anatomist.ObjectReader.PostRegisterList)
cleanup()
load(self, filename: object, notifyFail: bool = True, options: carto.Object = carto.none()) list_AObjectPtr | None
reader() anatomist.ObjectReader | None
registerLoader(extension: object, newFunc: anatomist.ObjectReader.LoadFunctionClass | None)
reload(self, object: anatomist.AObject | None, notifyFail: bool = True, onlyoutdated: bool = False) bool
class anatomist.cpp.ObjectVector
class anatomist.cpp.ObjectVector(a0: anatomist.ObjectVector)
CanRemove(self, obj: anatomist.AObject | None) bool
begin(self) anatomist.AIterator
end(self) anatomist.AIterator
erase(self, a0: anatomist.AIterator)
find(self, a0: anatomist.AObject | None) anatomist.AIterator
find(self, a0: weak_shared_ptr_AObject) anatomist.AIterator
find(self, a0: rc_ptr_AObject) anatomist.AIterator
insert(self, a0: anatomist.AObject | None)
insert(self, a0: anatomist.AObject | None, pos: int) None
insert(self, a0: weak_shared_ptr_AObject, pos: int = -1) None
insert(self, a0: rc_ptr_AObject, pos: int = -1) None
size(self) int
type(self) int
class anatomist.cpp.ObliqueControl(name: object = 'ObliqueControl')
class anatomist.cpp.ObliqueControl(c: anatomist.ObliqueControl)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.Observable
class anatomist.cpp.Observable(a0: anatomist.Observable)
addObserver(self, a0: anatomist.Observer | None)
clearChanged(self)
countObservers(self) int
deleteObserver(self, a0: anatomist.Observer | None)
deleteObservers(self)
hasChanged(self) bool
notifyObservers(self, a0: PyQt5.sip.voidptr | None = None)
notifyUnregisterObservers(self)
obsHasChanged(self, a0: int) bool
obsHasChanged(self, a0: object) bool
obsSetChanged(self, a0: int, a1: bool = True)
obsSetChanged(self, a0: object, a1: bool = True) None
setChanged(self)
class anatomist.cpp.Observer
class anatomist.cpp.Observer(a0: anatomist.Observer)
cleanupObserver(self)
registerObservable(self, a0: anatomist.Observable | None)
unregisterObservable(self, a0: anatomist.Observable | None)
update(self, a0: anatomist.Observable | None, a1: PyQt5.sip.voidptr | None)
class anatomist.cpp.OptionMatcher
class anatomist.cpp.OptionMatcher(a0: anatomist.OptionMatcher)
commonOptions(a0: set_AObjectPtr, tr: Tree)
popupMenu(ol: set_AObjectPtr, tr: Tree) QMenu | None
class anatomist.cpp.OutputEvent(a0: object, a1: carto.Object, a2: bool)
class anatomist.cpp.OutputEvent(a0: anatomist.OutputEvent)
contents(self) carto.Object
eventType(self) object
send(self)
class anatomist.cpp.OutputEventFilter
class anatomist.cpp.OutputEventFilter(a0: anatomist.OutputEventFilter)
filter(self, a0: object)
setDefaultIsFiltering(self, a0: bool)
unfilter(self, a0: object)
class anatomist.cpp.PaletteList(a0: anatomist.PaletteList)
clear(self)
erase(self, pal: rc_ptr_APalette)
find(self, a0: object) rc_ptr_APalette
load(self, dirname: object, clr: bool = False)
palettes(self) list_rc_ptr_APalette
push_back(self, pal: rc_ptr_APalette)
save(self, dirname: object, bin: bool = False)
size(self) int
class anatomist.cpp.PaletteSelectWidget(parent: QWidget | None = None, selected: object = '', allow_none: bool = False)
fillPalette(pal: rc_ptr_APalette, pix: QPixmap)
selectPalette(self, name: object)
selectedPalette(self) object
class anatomist.cpp.PinchZoomAction
class anatomist.cpp.PinchZoomAction(a0: anatomist.PinchZoomAction)
pinchMove(self, gesture: QPinchGesture | None)
pinchStart(self, gesture: QPinchGesture | None)
pinchStop(self, gesture: QPinchGesture | None)
class anatomist.cpp.PlanarFusion3dMethod
class anatomist.cpp.PlanarFusion3dMethod(a0: anatomist.PlanarFusion3dMethod)
ID(self) object
canFusion(self, a0: set_AObjectPtr) int
fusion(self, a0: vector_AObjectPtr) anatomist.AObject | None
class anatomist.cpp.PlanarTransformer
class anatomist.cpp.Primitive
class anatomist.cpp.Primitive(a0: anatomist.Primitive)
callList(self)
clear(self)
deleteList(self, a0: int)
deleteTexture(self, a0: int)
glLists(self) list_U32
insertList(self, a0: int)
insertTexture(self, a0: int)
textures(self) list_U32
class anatomist.cpp.Processor
allowExecWhileIdle(self, a0: bool)
execWhileIdle(self) bool
execute(*args, **kwargs)

Commands execution. It can be used in several different forms:

  • execute(Command)

  • execute(commandname, params=None, context=None)

  • execute(commandname, context=None, **kwargs)

Parameters:
  • Command (Command subclass) – command to be executed

  • commandname (str) – name of the command to executed

  • params (dict or str) – optional parameters (default: None)

  • context (CommandContext) – command execution context (default: None)

  • kwargs – keyword arguments which are passed to Anatomist directly in the command

Returns:

command

Return type:

the executed command (or None)

class anatomist.cpp.PyActionCreator(function)[source]
class anatomist.cpp.PyControlCreator(function)[source]
clone(self) anatomist.Control.KeyActionLink | None[source]
execute(self)[source]
action(self) anatomist.Action | None[source]
clone(self) anatomist.Control.MouseActionLink | None[source]
execute(self, a0: int, a1: int, a2: int, a3: int)[source]
clone(self) anatomist.Control.PanActionLink | None[source]
execute(self, a0: QPanGesture | None)[source]
clone(self) anatomist.Control.PinchActionLink | None[source]
execute(self, a0: QPinchGesture | None)[source]
clone(self) anatomist.Control.SelectionChangedActionLink | None[source]
execute(self)[source]
clone(self) anatomist.Control.SwipeActionLink | None[source]
execute(self, a0: QSwipeGesture | None)[source]
clone(self) anatomist.Control.TapActionLink | None[source]
execute(self, a0: QTapGesture | None)[source]
clone(self) anatomist.Control.TapAndHoldActionLink | None[source]
execute(self, a0: QTapAndHoldGesture | None)[source]
clone(self) anatomist.Control.TouchActionLink | None[source]
execute(self, a0: QTouchEvent | None)[source]
clone(self) anatomist.Control.WheelActionLink | None[source]
execute(self, a0: int, a1: int, a2: int, a3: int, a4: int)[source]
class anatomist.cpp.QAColorDialog(a0: QColor | Qt.GlobalColor, parent: QWidget | None = None, name: str | None = None, modal: bool = True, allowAlpha: bool = False, allowNeutralAlpha: bool = False, initalpha: int = 255, neutralph: bool = False)
alpha(self) int
color(self) QColor
getColor(a0: QColor | Qt.GlobalColor, parent: QWidget | None = None, name: str | None = None, alpha: int | None = None, neutraph: bool | None = None)
neutralAlpha(self) bool
relook(self, col: QColor | Qt.GlobalColor, initalpha: int = 255, allowalpha: bool = False, neutralpha: bool = False, allownalph: bool = False)
class anatomist.cpp.QAGLWidget(a0: anatomist.AWindow | None, a1: QWidget | None = None, a2: str | None = None, a3: QOpenGLWidget | None = None, a4: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
minimumSizeHint(self) QSize
name(self) object
recordStart(self)
recordStop(self)
saveContents(self)
sizeHint(self) QSize
updateGL(self)
class anatomist.cpp.QAObjectDrag(a0: set_AObjectPtr)
canDecode(e: QMimeData | None) bool
canDecodeURI(e: QMimeData | None) bool
decode(e: QMimeData | None, o: set_AObjectPtr) bool
decodeURI(e: QMimeData | None) Tuple
class anatomist.cpp.QAPaletteWin
addExtensionAction(action: anatomist.APaletteExtensionAction | None)
class anatomist.cpp.QAWindow(a0: QWidget | None = None, a1: str | None = None, a2: carto.Object = carto.none(), a3: Qt.WindowFlags | Qt.WindowType = Qt.Window)
Refresh(self)
close(self) bool
dragEnterEvent(self, a0: QDragEnterEvent | None)
dropEvent(self, a0: QDropEvent | None)
fromObject(a0: carto.GenericObject) QAWindow | None
refreshNow(self)
triggeredRefresh(self)
class anatomist.cpp.QAWindowFactory
class Descrip
class Descrip(b: str, l: str)
class Descrip(a0: QAWindowFactory.Descrip)
class PixList
class PixList(s: QPixmap, l: QPixmap, a: QPixmap)
class PixList(a0: QAWindowFactory.PixList)
description(type: int) QAWindowFactory.Descrip
description(type: object) QAWindowFactory.Descrip
loadDefaultPixmaps(type: int)
loadDefaultPixmaps(type: object) None
pixmaps(type: int) QAWindowFactory.PixList
pixmaps(type: object) QAWindowFactory.PixList
setDescription(type: int, des: QAWindowFactory.Descrip)
setDescription(type: object, des: QAWindowFactory.Descrip) None
setPixmaps(type: int, pix: QAWindowFactory.PixList)
setPixmaps(type: object, pix: QAWindowFactory.PixList) None
class anatomist.cpp.QClickGraphicsView

QGraphicsView which emits signal for mouse press, move and release events.

The normal QGraphicsView captures such events and does not expose them, so a widget containing the graphics view cannot react to mouse events, even if the graphics view does nothing with them.

mouseMoveEvent(self, event: QMouseEvent | None)
mousePressEvent(self, event: QMouseEvent | None)
mouseReleaseEvent(self, event: QMouseEvent | None)
class anatomist.cpp.QMagnetSlider

/** Specialized slider with “magnet” values, used for MiniPaletteWidgetEdit.

It features double min/max values (typically matching an AObject texture values), magnets which mark some given significant values, and emits signals when the slider is moved.

The values range can be changed afterwards.

absValue(self) float
resetDefault(self)
setAbsRange(self, min1: float, max1: float)
setAbsValue(self, value: float)
setDefault(self, value: float)
setMagnets()

Magnets are “attractive” values, where the mouse must be moved further to pass them when moving the slider.

class anatomist.cpp.QObjectTree(a0: QWidget | None, a1: str | None)
setObjectTypeIcon(a0: int, a1: object)
setObjectTypeName(a0: int, a1: object)
class anatomist.cpp.Referential
class anatomist.cpp.Referential(a0: anatomist.Referential)
Color(self) AimsRGB
acPcReferential() anatomist.Referential | None
clearUnusedReferentials()
header(self) carto.GenericObject
hidden(self) bool
isDirect(self) bool
mniTemplateReferential() anatomist.Referential | None
referentialOfUUID(uuid: object) anatomist.Referential | None
setColor(self, col: AimsRGB)
uuid(self) object
class anatomist.cpp.RegularCommand
class anatomist.cpp.RemoveObjectCommand(a0: set_AObjectPtr, a1: set_AWindowPtr, a2: bool = False)
doit(self)
name(self) object
class anatomist.cpp.ResizerAction
class anatomist.cpp.Select3DControl(name: object = 'Selection 3D')
class anatomist.cpp.Select3DControl(c: anatomist.Select3DControl)
doAlsoOnDeselect(self, actionPool: anatomist.ActionPool | None)
doAlsoOnSelect(self, actionPool: anatomist.ActionPool | None)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.SelectAction
class anatomist.cpp.SelectAction(a0: anatomist.SelectAction)
execSelect(self, x: int, y: int, globalX: int, globalY: int)
execSelectAdding(self, x: int, y: int, globalX: int, globalY: int)
execSelectToggling(self, x: int, y: int, globalX: int, globalY: int)
removeFromGroup(self)
removeFromWindow(self)
select(self, modifier: int, x: int, y: int)
toggleSelectAll(self)
class anatomist.cpp.SelectFactory
class anatomist.cpp.SelectFactory(a0: anatomist.SelectFactory)
class HColor
class HColor(a0: anatomist.SelectFactory.HColor)
class SelectMode
factory() anatomist.SelectFactory | None
flip(self, a0: int, a1: set_AObjectPtr, a2: anatomist.SelectFactory.HColor | None = None)
handleSelectionMenu(self, a0: anatomist.AWindow | None, a1: int, a2: int, a3: Tree | None = None)
highlightColor(self, a0: anatomist.AObject | None) anatomist.SelectFactory.HColor
isSelected(self, a0: int, a1: anatomist.AObject | None) bool
propagateSelection(self, a0: int)
refresh(self)
remove(self, a0: anatomist.AWindow | None)
removeFromThisWindow(self, a0: anatomist.AWindow | None)
select(self, a0: int, a1: set_AObjectPtr, a2: anatomist.SelectFactory.HColor | None = None)
select(self, a0: anatomist.SelectFactory.SelectMode, a1: int, a2: set_AObjectPtr, a3: anatomist.SelectFactory.HColor | None = None) None
selectAll(self, a0: anatomist.AWindow | None, a1: anatomist.SelectFactory.HColor | None = None)
selectColor() anatomist.SelectFactory.HColor
selectColorInverse() bool
selected(self) Any
setHighlightColor(self, a0: anatomist.AObject | None, a1: anatomist.SelectFactory.HColor | None = None)
setSelectColor(col: anatomist.SelectFactory.HColor)
unselect(self, a0: int, a1: set_AObjectPtr)
unselectAll(self, a0: int)
class anatomist.cpp.SelfSliceable
class anatomist.cpp.SelfSliceable(pos: AimsVector_FLOAT_3, quat: aims.Quaternion)
class anatomist.cpp.SelfSliceable(a0: anatomist.SelfSliceable)
invertSlice(self)
offset(self) AimsVector_FLOAT_3
plane(self) AimsVector_FLOAT_4
quaternion(self) aims.Quaternion
setOffset(self, pos: AimsVector_FLOAT_3)
setOffsetSilent(self, pos: AimsVector_FLOAT_3)
setPlane(self, plane: AimsVector_FLOAT_4)
setPlaneSilent(self, plane: AimsVector_FLOAT_4)
setQuaternion(self, quat: aims.Quaternion)
setQuaternionSilent(self, quat: aims.Quaternion)
setSlice(self, pos: AimsVector_FLOAT_3, quat: aims.Quaternion)
setSliceSilent(self, pos: AimsVector_FLOAT_3, quat: aims.Quaternion)
sliceChanged(self)
class anatomist.cpp.SetObjectPaletteCommand(a0: List, a1: object, a2: bool = False, a3: float = 0, a4: bool = False, a5: float = 1, a6: object = '', a7: bool = False, a8: float = 0, a9: bool = False, a10: float = 1, a11: object = '', a12: bool = False, a13: float = 0.5, a14: object = '')
doit(self)
name(self) object
class anatomist.cpp.SliceAction
class anatomist.cpp.SliceAction(a0: anatomist.SliceAction)
nextSlice(self)
nextTime(self)
previousSlice(self)
previousTime(self)
toggleLinkedOnSlider(self)
class anatomist.cpp.SliceViewState(t: float = 0, slicewanted: bool = False, pos: AimsVector_FLOAT_3 = Point3df(), orient: aims.Quaternion | None = None, wref: anatomist.Referential | None = None, wgeom: anatomist.Geometry | None = None, vorient: aims.Quaternion | None = None, a7: anatomist.AWindow | None = None)
class anatomist.cpp.SliceViewState(timedims: vector_FLOAT, slicewanted: bool = False, pos: AimsVector_FLOAT_3 = Point3df(), orient: aims.Quaternion | None = None, wref: anatomist.Referential | None = None, wgeom: anatomist.Geometry | None = None, vorient: aims.Quaternion | None = None, a7: anatomist.AWindow | None = None)
class anatomist.cpp.SliceViewState(a0: anatomist.SliceViewState)
sliceVS(self) anatomist.SliceViewState | None
class anatomist.cpp.Sliceable
rgbaVolume(self, a0: anatomist.SliceViewState | None = None, tex: int = 0) rc_ptr_Volume_RGBA
rgbaVolume(self, a0: Volume_RGBA, a1: anatomist.SliceViewState | None = None, tex: int = 0) None
class anatomist.cpp.SliceableObject(*args)
class anatomist.cpp.Sync3DAction
class anatomist.cpp.Sync3DAction(a0: anatomist.Sync3DAction)
execSync(self)
execSyncOrientation(self)
class anatomist.cpp.TextObject(text: object = '', pos: AimsVector_FLOAT_3 = Point3df(0, 0, 0))
font(self) QFont | None
glAPI(self) anatomist.GLComponent | None
isTransparent(self) bool
position(self) AimsVector_FLOAT_3
scale(self) float
setFont(self, font: QFont | None)
setPosition(self, a0: AimsVector_FLOAT_3)
setScale(self, a0: float)
setText(self, a0: object)
text(self) object
type(self) int
class anatomist.cpp.TouchRotateAction
class anatomist.cpp.TouchRotateAction(a0: anatomist.TouchRotateAction)
touchMove(self, event: QTouchEvent | None)
touchStart(self, event: QTouchEvent | None)
touchStop(self, event: QTouchEvent | None)
class anatomist.cpp.TrackCutAction
class anatomist.cpp.TrackCutAction(a: anatomist.TrackCutAction)
axialSlice(self)
beginTrackball(self, x: int, y: int, globalX: int, globalY: int)
coronalSlice(self)
endTrackball(self, x: int, y: int, globalX: int, globalY: int)
moveTrackball(self, x: int, y: int, globalX: int, globalY: int)
name(self) object
sagittalSlice(self)
setSlice(self, q: aims.Quaternion)
class anatomist.cpp.TrackOblique
class anatomist.cpp.TrackOblique(a: anatomist.TrackOblique)
beginQuaternion(self) aims.Quaternion
beginTrackball(self, x: int, y: int, globalX: int, globalY: int)
endTrackball(self, x: int, y: int, globalX: int, globalY: int)
moveTrackball(self, x: int, y: int, globalX: int, globalY: int)
name(self) object
rotation(self, x: int, y: int) aims.Quaternion
class anatomist.cpp.TrackObliqueSlice
class anatomist.cpp.TrackObliqueSlice(a: anatomist.TrackObliqueSlice)
beginTrackball(self, x: int, y: int, globalX: int, globalY: int)
endTrackball(self, x: int, y: int, globalX: int, globalY: int)
moveTrackball(self, x: int, y: int, globalX: int, globalY: int)
name(self) object
class anatomist.cpp.Trackball
class anatomist.cpp.Trackball(a0: anatomist.Trackball)
beginTrackball(self, x: int, y: int, globalX: int, globalY: int)
endTrackball(self, x: int, y: int, globalX: int, globalY: int)
moveTrackball(self, x: int, y: int, globalX: int, globalY: int)
rotation(self, x: int, y: int) aims.Quaternion
setCenter(self)
showRotationCenter(self)
class anatomist.cpp.TransformControl
class anatomist.cpp.TransformControl(c: anatomist.TransformControl)
doAlsoOnDeselect(self, actionPool: anatomist.ActionPool | None)
doAlsoOnSelect(self, actionPool: anatomist.ActionPool | None)
eventAutoSubscription(self, actionPool: anatomist.ActionPool | None)
class anatomist.cpp.Transformation(a0: anatomist.Referential | None, a1: anatomist.Referential | None, regist: bool = False, generated: bool = False)
class anatomist.cpp.Transformation(a0: anatomist.Referential | None, a1: anatomist.Referential | None, trans: anatomist.Transformation)
class anatomist.cpp.Transformation(a0: anatomist.Transformation)
SetRotation(self, a0: int, a1: int, a2: float)
SetTranslation(self, a0: int, a1: float)
destination(self) anatomist.Referential | None
invert(self)
invertReferentials(self)
isDirect(self) bool
isGenerated(self) bool
motion(self) aims.AffineTransformation3d
quaternion(self) aims.Quaternion
registerTrans(self)
setQuaternion(self, q: aims.Quaternion)
source(self) anatomist.Referential | None
transform(self, pos: AimsVector_FLOAT_3) AimsVector_FLOAT_3
transformBoundingBox(self, pmin1: AimsVector_FLOAT_3, pmax1: AimsVector_FLOAT_3) Tuple
translation(self) AimsVector_FLOAT_3
unregisterTrans(self)
class anatomist.cpp.TransformedObject(a0: vector_AObjectPtr, followorientation: bool = True, followposition: bool = False, pos: AimsVector_FLOAT_3 = Point3df(0, 0, 0), strongref: bool = False)
class anatomist.cpp.TransformedObject(a0: anatomist.TransformedObject)
dynamicOffsetFromPoint(self) AimsVector_FLOAT_3
glAPI(self) anatomist.GLComponent | None
offset(self) AimsVector_FLOAT_3
position(self) AimsVector_FLOAT_3
removeDynamicOffset(self)
render(self, a0: list_RefGLItem, a1: anatomist.ViewState) bool
renderingIsObserverDependent(self) bool
scale(self) float
setDynamicOffsetFromPoint(self, a0: AimsVector_FLOAT_3)
setOffset(self, a0: AimsVector_FLOAT_3)
setPosition(self, a0: AimsVector_FLOAT_3)
setScale(self, scale: float)
usesDynamicOffset(self) bool
class anatomist.cpp.Transformer
toggleDisplayInfo(self)
class anatomist.cpp.Translate3DAction
class anatomist.cpp.Translate3DAction(a0: anatomist.Translate3DAction)
beginTranslate(self, x: int, y: int, globalX: int, globalY: int)
endTranslate(self, x: int, y: int, globalX: int, globalY: int)
endTranslateKey(self)
moveTranslate(self, x: int, y: int, globalX: int, globalY: int)
class anatomist.cpp.TranslaterAction
class anatomist.cpp.Unserializer
class anatomist.cpp.Unserializer(a0: anatomist.Unserializer)
id(self, a0: PyQt5.sip.voidptr | None, a1: object = '') int
id(self, a0: int, a1: object = '') int
id(self, a0: anatomist.AObject | None) int
id(self, a0: anatomist.AWindow | None) int
id(self, a0: anatomist.Referential | None) int
id(self, a0: anatomist.Transformation | None) int
id(self, a0: QWidget | None) int
makeID(self, a0: PyQt5.sip.voidptr | None, a1: object = '') int
makeID(self, a0: int, a1: object = '') int
makeID(self, a0: anatomist.AObject | None) int
makeID(self, a0: anatomist.AWindow | None) int
makeID(self, a0: anatomist.Referential | None) int
makeID(self, a0: anatomist.Transformation | None) int
makeID(self, a0: QWidget | None) int
registerPointer(self, ptr: PyQt5.sip.voidptr | None, id: int, type: object)
registerPointer(self, ptr: QWidget | None, id: int) None
registerPointer(self, ptr: anatomist.AObject | None, id: int) None
registerPointer(self, ptr: anatomist.AWindow | None, id: int) None
class anatomist.cpp.View(a0: anatomist.AWindow | None)
class anatomist.cpp.View(a0: anatomist.View)
aWindow(self) anatomist.AWindow | None
controlSwitch(self) ControlSwitch | None
glWidget(self) anatomist.GLWidgetManager | None
name(self) object
class anatomist.cpp.ViewState(t: float = 0, a1: anatomist.AWindow | None = None)
class anatomist.cpp.ViewState(timedims: vector_FLOAT, a1: anatomist.AWindow | None = None)
class anatomist.cpp.ViewState(a0: anatomist.ViewState)
sliceVS(self) anatomist.SliceViewState | None
class anatomist.cpp.WaitCommand
class anatomist.cpp.WindowActions
class anatomist.cpp.WindowActions(a0: anatomist.WindowActions)
close(self)
toggleFullScreen(self)
toggleShowTools(self)
class anatomist.cpp.Zoom3DAction
class anatomist.cpp.Zoom3DAction(a0: anatomist.Zoom3DAction)
beginZoom(self, x: int, y: int, globalX: int, globalY: int)
endZoom(self, x: int, y: int, globalX: int, globalY: int)
endZoomKey(self)
moveZoom(self, x: int, y: int, globalX: int, globalY: int)
zoom(self, distance: int)
zoomInOnce(self)
zoomOutOnce(self)
zoomWheel(self, a0: int, a1: int, a2: int, a3: int, a4: int)
class anatomist.cpp.list_AObjectPtr
class anatomist.cpp.list_AObjectPtr(a0: Any)
class anatomist.cpp.list_AObjectPtr(a0: list_AObjectPtr)
append(self, a0: anatomist.AObject | None)
assign(self, a0: list_AObjectPtr)
index(self, a0: anatomist.AObject | None) int
list(self) List
remove(self, a0: anatomist.AObject | None)
size(self) int
class anatomist.cpp.list_AObjectPtr_iterator(a0: list_AObjectPtr | None)
class anatomist.cpp.list_AObjectPtr_iterator(a0: list_AObjectPtr_iterator)
class anatomist.cpp.list_RefGLItem
class anatomist.cpp.list_RefGLItem(a0: Any)
class anatomist.cpp.list_RefGLItem(a0: list_RefGLItem)
append(self, a0: rc_ptr_GLItem | None)
assign(self, a0: list_RefGLItem)
index(self, a0: rc_ptr_GLItem | None) int
list(self) List
remove(self, a0: rc_ptr_GLItem | None)
size(self) int
class anatomist.cpp.list_RefGLItem_iterator(a0: list_RefGLItem | None)
class anatomist.cpp.list_RefGLItem_iterator(a0: list_RefGLItem_iterator)
class anatomist.cpp.list_TransformationPtr
class anatomist.cpp.list_TransformationPtr(a0: Any)
class anatomist.cpp.list_TransformationPtr(a0: list_TransformationPtr)
append(self, a0: anatomist.Transformation | None)
assign(self, a0: list_TransformationPtr)
index(self, a0: anatomist.Transformation | None) int
list(self) List
remove(self, a0: anatomist.Transformation | None)
size(self) int
class anatomist.cpp.list_TransformationPtr_iterator(a0: list_TransformationPtr | None)
class anatomist.cpp.list_TransformationPtr_iterator(a0: list_TransformationPtr_iterator)
class anatomist.cpp.list_rc_ptr_APalette
class anatomist.cpp.list_rc_ptr_APalette(a0: Any)
class anatomist.cpp.list_rc_ptr_APalette(a0: list_rc_ptr_APalette)
append(self, a0: rc_ptr_APalette | None)
assign(self, a0: list_rc_ptr_APalette)
index(self, a0: rc_ptr_APalette | None) int
list(self) List
remove(self, a0: rc_ptr_APalette | None)
size(self) int
class anatomist.cpp.list_rc_ptr_APalette_iterator(a0: list_rc_ptr_APalette | None)
class anatomist.cpp.list_rc_ptr_APalette_iterator(a0: list_rc_ptr_APalette_iterator)
class anatomist.cpp.rc_ptr_AObject
class anatomist.cpp.rc_ptr_AObject(a0: anatomist.AObject | None)
class anatomist.cpp.rc_ptr_AObject(a0: rc_ptr_AObject)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.AObject | None)
class anatomist.cpp.rc_ptr_APalette
class anatomist.cpp.rc_ptr_APalette(a0: anatomist.APalette | None)
class anatomist.cpp.rc_ptr_APalette(a0: rc_ptr_APalette)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.APalette | None)
class anatomist.cpp.rc_ptr_AWindow
class anatomist.cpp.rc_ptr_AWindow(a0: anatomist.AWindow | None)
class anatomist.cpp.rc_ptr_AWindow(a0: rc_ptr_AWindow)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.AWindow | None)
class anatomist.cpp.rc_ptr_EventHandler
class anatomist.cpp.rc_ptr_EventHandler(a0: anatomist.EventHandler | None)
class anatomist.cpp.rc_ptr_EventHandler(a0: rc_ptr_EventHandler)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.EventHandler | None)
class anatomist.cpp.rc_ptr_GLItem
class anatomist.cpp.rc_ptr_GLItem(a0: anatomist.GLItem | None)
class anatomist.cpp.rc_ptr_GLItem(a0: rc_ptr_GLItem)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.GLItem | None)
class anatomist.cpp.rc_ptr_ObjectMenu
class anatomist.cpp.rc_ptr_ObjectMenu(a0: anatomist.ObjectMenu | None)
class anatomist.cpp.rc_ptr_ObjectMenu(a0: rc_ptr_ObjectMenu)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.ObjectMenu | None)
class anatomist.cpp.rc_ptr_Unserializer
class anatomist.cpp.rc_ptr_Unserializer(a0: anatomist.Unserializer | None)
class anatomist.cpp.rc_ptr_Unserializer(a0: rc_ptr_Unserializer)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.Unserializer | None)
class anatomist.cpp.rc_ptr_ViewState
class anatomist.cpp.rc_ptr_ViewState(a0: anatomist.ViewState | None)
class anatomist.cpp.rc_ptr_ViewState(a0: rc_ptr_ViewState)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.ViewState | None)
anatomist.cpp.setQtColorStyle(a0: QWidget | None)
class anatomist.cpp.set_AObjectPtr
class anatomist.cpp.set_AObjectPtr(a0: Any)
class anatomist.cpp.set_AObjectPtr(a0: set_AObjectPtr)
add(self, a0: anatomist.AObject | None)
insert(self, a0: anatomist.AObject | None)
list(self) List
remove(self, a0: anatomist.AObject | None)
size(self) int
class anatomist.cpp.set_AObjectPtr_iterator(a0: set_AObjectPtr | None)
class anatomist.cpp.set_AObjectPtr_iterator(a0: set_AObjectPtr_iterator)
class anatomist.cpp.set_AWindowPtr
class anatomist.cpp.set_AWindowPtr(a0: Any)
class anatomist.cpp.set_AWindowPtr(a0: set_AWindowPtr)
add(self, a0: anatomist.AWindow | None)
insert(self, a0: anatomist.AWindow | None)
list(self) List
remove(self, a0: anatomist.AWindow | None)
size(self) int
class anatomist.cpp.set_AWindowPtr_iterator(a0: set_AWindowPtr | None)
class anatomist.cpp.set_AWindowPtr_iterator(a0: set_AWindowPtr_iterator)
class anatomist.cpp.set_ReferentialPtr
class anatomist.cpp.set_ReferentialPtr(a0: Any)
class anatomist.cpp.set_ReferentialPtr(a0: set_ReferentialPtr)
add(self, a0: anatomist.Referential | None)
insert(self, a0: anatomist.Referential | None)
list(self) List
remove(self, a0: anatomist.Referential | None)
size(self) int
class anatomist.cpp.set_ReferentialPtr_iterator(a0: set_ReferentialPtr | None)
class anatomist.cpp.set_ReferentialPtr_iterator(a0: set_ReferentialPtr_iterator)
class anatomist.cpp.set_TransformationPtr
class anatomist.cpp.set_TransformationPtr(a0: Any)
class anatomist.cpp.set_TransformationPtr(a0: set_TransformationPtr)
add(self, a0: anatomist.Transformation | None)
insert(self, a0: anatomist.Transformation | None)
list(self) List
remove(self, a0: anatomist.Transformation | None)
size(self) int
class anatomist.cpp.set_TransformationPtr_iterator(a0: set_TransformationPtr | None)
class anatomist.cpp.set_TransformationPtr_iterator(a0: set_TransformationPtr_iterator)
anatomist.cpp.shortestTransformationPath(src: anatomist.Referential | None, dst: anatomist.Referential | None) list_TransformationPtr | None
class anatomist.cpp.vector_AObjectPtr
class anatomist.cpp.vector_AObjectPtr(a0: Any)
class anatomist.cpp.vector_AObjectPtr(a0: vector_AObjectPtr)
append(self, a0: anatomist.AObject)
append(self, a0: int, a1: anatomist.AObject | None) None
assign(self, a0: Any)
fromObject(a0: carto.GenericObject) vector_AObjectPtr | None
index(self, a0: anatomist.AObject) int
insert(self, a0: int, a1: anatomist.AObject)
list(self) List
remove(self, a0: anatomist.AObject)
resize(self, a0: int)
resize(self, a0: int, a1: anatomist.AObject | None) None
size(self) int
toObject(self) carto.Object
class anatomist.cpp.vector_AObjectPtr_iterator(a0: vector_AObjectPtr | None)
class anatomist.cpp.vector_AObjectPtr_iterator(a0: vector_AObjectPtr_iterator)
class anatomist.cpp.weak_ptr_AObject(a0: anatomist.AObject | None = None)
class anatomist.cpp.weak_ptr_AObject(a0: weak_ptr_AObject)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self) anatomist.AObject | None
reset(self, a0: anatomist.AObject | None)
class anatomist.cpp.weak_ptr_AWindow(a0: anatomist.AWindow | None = None)
class anatomist.cpp.weak_ptr_AWindow(a0: weak_ptr_AWindow)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self) anatomist.AWindow | None
reset(self, a0: anatomist.AWindow | None)
class anatomist.cpp.weak_shared_ptr_AObject(a0: anatomist.AObject | None = None)
class anatomist.cpp.weak_shared_ptr_AObject(x: rc_ptr_AObject)
class anatomist.cpp.weak_shared_ptr_AObject(x: weak_shared_ptr_AObject)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.AObject | None)
testDeletable(self) bool
tryDelete(self) bool
class anatomist.cpp.weak_shared_ptr_AWindow(a0: anatomist.AWindow | None = None)
class anatomist.cpp.weak_shared_ptr_AWindow(x: rc_ptr_AWindow)
class anatomist.cpp.weak_shared_ptr_AWindow(x: weak_shared_ptr_AWindow)
get(*args, **kwargs)

get() is ambiguous: rc_ptr / Object has the get() method, providing access to the underlying object. GenericObject has the method get(key, default=None) as a dictionary-like object. This proxy calls the right one depending on arguments.

isNull(self) bool
release(self)
reset(self, a0: anatomist.AWindow | None)
testDeletable(self) bool
tryDelete(self) bool