BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
BioImager.View3D Class Reference
Inheritance diagram for BioImager.View3D:

Public Member Functions

 View3D (BioImage im)
 
void UpdateView ()
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Properties

static IntRange RRange [get, set]
 
static IntRange GRange [get, set]
 
static IntRange BRange [get, set]
 
static bool Ctrl [get]
 

Detailed Description

Definition at line 9 of file View3D.cs.

Constructor & Destructor Documentation

◆ View3D()

BioImager.View3D.View3D ( BioImage  im)

Definition at line 31 of file View3D.cs.

32 {
33 InitializeComponent();
34 Initialize();
35 MouseWheel += new System.Windows.Forms.MouseEventHandler(ImageView_MouseWheel);
36 RRange = im.RRange;
37 GRange = im.GRange;
38 BRange = im.BRange;
39
40 rMinBox.Value = im.RRange.Min;
41 gMinBox.Value = im.GRange.Min;
42 bMinBox.Value = im.BRange.Min;
43 rMaxBox.Value = im.RRange.Max;
44 gMaxBox.Value = im.GRange.Max;
45 bMaxBox.Value = im.BRange.Max;
46 UpdateView();
47 UpdateStatus();
48 }

Member Function Documentation

◆ Dispose()

override void BioImager.View3D.Dispose ( bool  disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 15 of file View3D.Designer.cs.

16 {
17 if (disposing && (components != null))
18 {
19 components.Dispose();
20 }
21 base.Dispose(disposing);
22 }

◆ UpdateView()

void BioImager.View3D.UpdateView ( )

Definition at line 69 of file View3D.cs.

70 {
71 if (sys == null)
72 return;
73 sys.Configuration.Width = dxPanel.Width;
74 sys.Configuration.Height = dxPanel.Height;
75 rot = Matrix.RotationX(r.X) * Matrix.RotationY(r.Y) * Matrix.RotationZ(r.Z);
76 world = rot * Matrix.Scaling(Scale.Width, Scale.Height, 1);
77 sys.Graphics.D3D.WorldMatrix = world;
78 sys.Graphics.Camera.SetPosition(Origin.X, Origin.Y, Origin.Z);
79 sys.Graphics.Frame(RRange, GRange, BRange, (float)frameIntervalBox.Value, (float)transparencyBox.Value);
80 }

Property Documentation

◆ BRange

IntRange BioImager.View3D.BRange
staticgetset

Definition at line 23 of file View3D.cs.

23{ get; set; }

◆ Ctrl

bool BioImager.View3D.Ctrl
staticget

Definition at line 24 of file View3D.cs.

25 {
26 get
27 {
28 return Win32.GetKeyState(Keys.LControlKey);
29 }
30 }

◆ GRange

IntRange BioImager.View3D.GRange
staticgetset

Definition at line 22 of file View3D.cs.

22{ get; set; }

◆ RRange

IntRange BioImager.View3D.RRange
staticgetset

Definition at line 21 of file View3D.cs.

21{ get; set; }

The documentation for this class was generated from the following files: