Loading...
Searching...
No Matches
Changelog for SDK 2022 R1 (v.3.0.0)

This release includes major changes in the SDK, various new features, and fixes of known and reported issues.

Below is the list of the changes in SAMSON SDK per library and per class.

One of the major changes that needs to be taken care by developers is the introduction of a lazy loading of extensions when launching SAMSON. This concerns only Apps. To take care of that, it is necessary to add a few new lines in the App's class descriptor describing the App's public name, its GUI's UUID, a logo image, and a tooltip.

SB_CLASS_BEGIN(SEMyExtension);
SB_CLASS_DESCRIPTION("SAMSON Extension generator pro tip: modify me");
// new lines
SB_CLASS_PUBLIC_NAME("My Extension");
SB_CLASS_GUI_UUID("2B45533B-D03C-40CB-B8D5-05C5F36A0E6F");
SB_CLASS_ICON_FILE_NAME(SB_ELEMENT_PATH + "/Resource/icons/logo.png");
SB_CLASS_TOOL_TIP("Tool tip text");
// ...
SB_CLASS_END(SEAutoDockVinaMain);
#define SB_ELEMENT_PATH
Provides a std::string containing the path where the SAMSON Extension is installed.
Definition: SAMSON.hpp:686
#define SB_CLASS_PUBLIC_NAME(CLASS_PUBLIC_NAME)
Declares the public name of the class.
Definition: SBCClassProxy.hpp:220
#define SB_CLASS_GUI_SHORTCUT(CLASS_GUI_SHORTCUT)
Declares the shortcut of the GUI of the class.
Definition: SBCClassProxy.hpp:238
#define SB_CLASS_TYPE(CLASS_TYPE)
Declares the type of the class.
Definition: SBCClassProxy.hpp:196
#define SB_CLASS_END(CLASS)
Declares the end of a class.
Definition: SBCClassProxy.hpp:260
#define SB_CLASS_GUI_UUID(CLASS_GUI_UUID)
Declares the UUID of the GUI of the class.
Definition: SBCClassProxy.hpp:232
#define SB_CLASS_DESCRIPTION(CLASS_DESCRIPTION)
Declares the description of the class.
Definition: SBCClassProxy.hpp:202
#define SB_CLASS_VERSION_NUMBER(CLASS_VERSION_NUMBER)
Declares the version number of the class.
Definition: SBCClassProxy.hpp:250
#define SB_CLASS_TOOL_TIP(CLASS_TOOL_TIP)
Declares the tool tip of the class.
Definition: SBCClassProxy.hpp:214
#define SB_CLASS_ICON_FILE_NAME(CLASS_ICON_FILE_NAME)
Declares the icon file name of the class.
Definition: SBCClassProxy.hpp:226
#define SB_CLASS_BEGIN(CLASS)
Declares the beginning of a class.
Definition: SBCClassProxy.hpp:173
@ App
Apps.
Definition: SBCClass.hpp:28

Core library group

Class

SBProxy

New functions that can be used via class proxies: SBProxy::getGUIUUID, SBProxy::getGUIShortcut

Class interface

New macros to declare a class attribute: SB_ATTRIBUTE_READ_ONLY_NONCONST

Heap

SAMSON’s managed heap functionality has been expanded to ease memory management for developers.

Log

Add new logging functionality.

DataModel library group

Color library

Add new color schemes: SBDColorSchemeConstantIllustrate, SBDColorSchemePerChainIllustrate.

Color schemes now have a clone function.

Add new default color palettes in SBDColorPaletteDefaultPalette.

DataGraph library

SBNode

New functions for computing statistics that might need to be implemented by a class based on SBNode :

New functions :

and corresponding node predicates:

SBNodeColorScheme

Color schemes now have a clone function: SBNodeColorScheme::clone.

Document library

SBLabel

New functions:

Type library

SBColor

New functions: SBColor::getRedInt, SBColor::getGreenInt, SBColor::getBlueInt, SBColor::getAlphaInt

SBColorConversion

New functions: SBColorConversion::SRGBfromCIELab, SBColorConversion::CIELabfromSRGB, SBColorConversion::darkenSRGBColor, SBColorConversion::lightenSRGBColor

Visualization library

SBVisualPreset

Change in arguments of one of the constructors.

Facade library group

New functions:

GUI library group

Window library

New functions:

Modeling library group

Changes accross various classes of this library due to changes in SBNode, see changes in SBNode.

StructuralModel library

SBStructuralModel

New utility functions:

SBAtom

New functions:

and associated predicates:

  • SBMStructuralModelNodeAtom::IsInAminoAcid, SBMStructuralModelNodeAtom::IsInNucleicAcid
  • SBMStructuralModelNodeAtom::IsInSideChain

SBHydrogenBond

Renamed and new functions:

and associated predicates:

  • SBMStructuralModelNodeHydrogenBond::GetDonorAcceptorDistance
  • SBMStructuralModelNodeHydrogenBond::GetHydrogenAcceptorDistance
  • SBMStructuralModelNodeHydrogenBond::GetDonorHydrogenDistance