![]() |
VOOZH | about |
dotnet add package ChemSharp.Molecules.HelixToolkit --version 2.1.1
NuGet\Install-Package ChemSharp.Molecules.HelixToolkit -Version 2.1.1
<PackageReference Include="ChemSharp.Molecules.HelixToolkit" Version="2.1.1" />
<PackageVersion Include="ChemSharp.Molecules.HelixToolkit" Version="2.1.1" />Directory.Packages.props
<PackageReference Include="ChemSharp.Molecules.HelixToolkit" />Project file
paket add ChemSharp.Molecules.HelixToolkit --version 2.1.1
#r "nuget: ChemSharp.Molecules.HelixToolkit, 2.1.1"
#:package ChemSharp.Molecules.HelixToolkit@2.1.1
#addin nuget:?package=ChemSharp.Molecules.HelixToolkit&version=2.1.1Install as a Cake Addin
#tool nuget:?package=ChemSharp.Molecules.HelixToolkit&version=2.1.1Install as a Cake Tool
<p align="center"> <img src="https://raw.githubusercontent.com/JensKrumsieck/ChemSharp/master/icon.png" height="125px" /></p> <h1 align="center" >ChemSharp.Molecules.HelixToolkit</h1>
HelixToolkit Bindings for ChemSharp.Molecules (WPF)
Add the necessary xmlns to your .xaml file and create a Viewport3D Element:
<Window
xmlns:h="http://helix-toolkit.org/wpf"
xmlns:controls="clr-namespace:ChemSharp.Molecules.HelixToolkit.Controls;assembly=ChemSharp.Molecules.HelixToolkit"
>
<...>
<h:HelixViewport3D x:Name="Viewport3D"
ShowViewCube="False" ShowCoordinateSystem="True"
ZoomExtentsWhenLoaded="True" IsHeadLightEnabled="True">
<h:DefaultLights/>
<h:DirectionalHeadLight/>
<controls:ItemsVisual3D ItemsSource="{Binding Atoms3D}"/>
<controls:ItemsVisual3D ItemsSource="{Binding Bonds3D}"/>
</h:HelixViewport3D>
This is how an example code-behind file could look like:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataContext = this;
var filename = @"F:\Repositories\ChemSharp\ChemSharp.Tests\files\ptcor.mol2";
Molecule = MoleculeFactory.Create(filename);
Atoms3D = new ObservableCollection<Atom3D>(Molecule.Atoms.Select(s => new Atom3D(s)));
Bonds3D = new ObservableCollection<Bond3D>(Molecule.Bonds.Select(s => new Bond3D(s)));
}
public Molecule Molecule { get; }
/// <summary>
/// 3D Representation of Atoms
/// </summary>
public ObservableCollection<Atom3D> Atoms3D { get; }
/// <summary>
/// 3D Representation of Bonds
/// </summary>
public ObservableCollection<Bond3D> Bonds3D { get; }
}
<hr/>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 net6.0-windows7.0 is compatible. net7.0-windows net7.0-windows was computed. net7.0-windows7.0 net7.0-windows7.0 is compatible. net8.0-windows net8.0-windows was computed. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.1.1 | 386 | 2/19/2024 | |
| 2.1.0 | 373 | 7/31/2023 | |
| 2.0.1 | 567 | 6/20/2023 | |
| 2.0.0 | 431 | 3/1/2023 | |
| 2.0.0-beta.1 | 281 | 12/1/2022 | |
| 2.0.0-alpha.3 | 288 | 9/13/2022 | |
| 2.0.0-alpha.2 | 257 | 9/5/2022 | |
| 2.0.0-alpha.1 | 310 | 9/2/2022 | |
| 1.1.0-beta.2 | 403 | 7/26/2022 | 1.1.0-beta.2 is deprecated because it has critical bugs. |
| 1.1.0-beta.1 | 441 | 5/16/2022 | 1.1.0-beta.1 is deprecated because it has critical bugs. |
| 1.0.15 | 797 | 1/27/2022 | |
| 1.0.14 | 691 | 1/24/2022 |