![]() |
Microscopy Image Browser 2.91
MIB
|
class is responsible for 3D rendering of volumes or models More...


Public Member Functions | |
| mibVolRenController (mibModel, options) | |
| class constructor | |
| function | closeWindow () |
| closing mibVolRenController window | |
| function | updateWidgets () |
| update widgets of this window | |
| function | mibVolRenGUI_SizeChangedFcn () |
| figure resizing | |
| function | visualizationModePopup_Callback () |
| callback for change of the visualization mode | |
| function | mibVolRenGUI_WindowButtonDownFcn (eventdata) |
| callback for mouse press over the 3d rendering window | |
| function | mibVolRenGUI_VolumeMotionFcn (eventdata) |
| function | mibVolRenGUI_WindowScrollWheelFcn (eventdata) |
| callback for mouse wheel action | |
| function | mibVolRenGUI_WindowButtonUpFcn (eventdata) |
| callback from mouse up button | |
| function | interactWithAlphamap (xy, seltype, modifier) |
| interaction with alphamap plot | |
| function | isoColor_Callback () |
| set color for the isosurface | |
| function | menuSettingsSelectColormap_Callback () |
| select new default colormap and update the volren view | |
| function | generateColorMap () |
| generate obj.volumeColormap from the selected obj.Settings.ColormapName and obj.Settigns.ColormapInvert | |
| function | menuSettingsBackgroundColor_Callback () |
| set background color | |
| function | isovalEdit_Callback () |
| change isovalue for the isosurface | |
| function positions = | generatePositionsForSpinAnimation (noFrames, options) |
| generate camera positions for the spin animation | |
| function | spinBtn_Callback () |
| test of the spinning | |
| function | plotAlphaPlot () |
| draw alpha plot | |
| function | recalculateAlphamap () |
| recalculata obj.alpha.alphamap obj.volumeAlphaCurve.x(end) = obj.maxIntValue; | |
| function status = | grabVolume () |
| grab the currently displayed volume to the 3D volume viewer | |
| function | menuInvertAlphaCurve_Callback () |
| invert the alpha curve | |
| function | menuToolsAnimation_Callback () |
| start animation editor | |
| function | menuFileMakesnapshot_Callback () |
| make snapshot | |
| function | menuFileMovie_Callback (mode) |
| start making movie window | |
| function | changeView (orientation) |
| change the view angle | |
| function | prepareWindowForGrabFrame (width, height) |
| prepare window to grab a frame | |
| function | restoreWindowAfterGrabFrame () |
| restore widget sizes after the snapshot | |
| function imgOut = | grabFrame (width, height, options) |
| grab a frame from the volume viewer | |
| function | animationAddFrame (posIndex) |
| add/insert a key frame | |
| function positions = | generatePositionsForKeyFramesAnimation (noFrames, options) |
| generate camera positions from the key frames | |
| function | menuFileLoadAnimation_Callback () |
| load animation path from a file | |
| function | menuFileSaveAnimation_Callback () |
| save animation path to a file | |
| function | previewAnimation (noFrames) |
| preview animation | |
| function | devTest (mode) |
| for development | |
Static Public Member Functions | |
| static function | ViewListner_Callback2 (obj, src, evnt) |
Public Attributes | |
| mibModel | |
| handles to the model | |
| View | |
| handle to the view | |
| listener | |
| a cell array with handles to listeners | |
| childControllers | |
| list of opened subcontrollers | |
| childControllersIds | |
| a cell array with names of initialized child controllers | |
| defaultView | |
| a structure with the default camera position | |
| alphaPlotHandle | |
| handle to the alpha plot | |
| animationFilename | |
| template for the animation filename | |
| animationPath | |
| a structure with animation path .CameraPosition - a matrix of camera positions [keyFrame, x,y,z] .CameraUpVector - a matrix of camera up vectors [keyFrame, x,y,z] .CameraTarget - a matrix of camera target positions [keyFrame, x,y,z] | |
| colorChannel | |
| index of the color channel or material to show | |
| dataType | |
a string with data type that is visualized, image, model,selection, mask | |
| figPosStored | |
| a structure with stored positions of the widgets for making snapshots .mibVolRenGUI = []; .volViewPanel = []; .optionsPanel = []; | |
| maxIntValue | |
| max integer value of the dataset | |
| renderingMode | |
a string with the rendering mode to use, VolumeRendering, MaximumIntensityProjection,Isosurface | |
| Settings | |
a structure with settings .MarkerSize - marker size for the alpha plot .IsoColor - color for the isosurface .BackgroundColor - color for the background .ColormapName - a string with default colormap, or custom (not yet implemented) .ColormapInvert - true/false, invert or not the colormap .animationPath - a structure with animation path .noFramesPreview - number of frames for the preview | |
| volume | |
| loaded volume | |
| volumeAlphaCurve | |
| a structure with alpha curve details .x - vector of intensity points [0 - 1] .y - value of alpha for each intensity point [0 - 1] .alphamap - calculated alpha map used in volshow .activePoint - selected point | |
| volumeColormap | |
| vector with the colormap | |
| EVENT | closeEvent |
| > Description of events event firing when window is closed | |
Public Attributes inherited from handle | |
| addlistener | |
| Creates a listener for the specified event and assigns a callback function to execute when the event occurs. | |
| notify | |
| Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects. | |
| delete | |
| Handle object destructor method that is called when the object's lifecycle ends. | |
| disp | |
| Handle object disp method which is called by the display method. See the MATLAB disp function. | |
| display | |
| Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function. | |
| findobj | |
| Finds objects matching the specified conditions from the input array of handle objects. | |
| findprop | |
| Returns a meta.property objects associated with the specified property name. | |
| fields | |
| Returns a cell array of string containing the names of public properties. | |
| fieldnames | |
| Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function. | |
| isvalid | |
| Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass. | |
| eq | |
| Relational functions example. See details for more information. | |
| transpose | |
| Transposes the elements of the handle object array. | |
| permute | |
| Rearranges the dimensions of the handle object array. See the MATLAB permute function. | |
| reshape | |
| hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function. | |
| sort | |
| ort the handle objects in any array in ascending or descending order. | |
class is responsible for 3D rendering of volumes or models
| mibVolRenController.mibVolRenController | ( | mibModel, | |
| options ) |
class constructor
| mibModel | a handle to mibModel class |
| options | a structure with optional initialization parameters .mode - a string VolumeRendering, MaximumIntensityProjection,Isosurface .dataType - a string with data type to display image, model, selection, mask .materialIndex - an index of material to visualize .Settings - settings for initialization of the volviewer |
References handle.addlistener, mibModel, mibRescaleWidgets(), and mibUpdateFontSize().

| function mibVolRenController.animationAddFrame | ( | posIndex | ) |
add/insert a key frame
| posIndex | [optional] position of the key frame, when 1 - in the beginning of the animation sequence |
| function mibVolRenController.changeView | ( | orientation | ) |
change the view angle
| orientation | a string with desired orientation, xy, xz, yz |
| function mibVolRenController.closeWindow | ( | ) |
closing mibVolRenController window
References handle.isvalid, and handle.notify.
| function mibVolRenController.devTest | ( | mode | ) |
for development
| function mibVolRenController.generateColorMap | ( | ) |
generate obj.volumeColormap from the selected obj.Settings.ColormapName and obj.Settigns.ColormapInvert
| function positions = mibVolRenController.generatePositionsForKeyFramesAnimation | ( | noFrames, | |
| options ) |
generate camera positions from the key frames
| noFrames | number of frames options - an optional structure with additional parameters .back_and_forth - a switch to make animations in both forward and reverse orientation |
| positions | a structure with camera positions for each frame of the resulting movie .CameraUpVector - an array of camera-up vectors for each time point or a single vector .CameraTarget - an array of camera-target vectors for each time point or a single vector .CameraPosition - a vector for each time point |
| function positions = mibVolRenController.generatePositionsForSpinAnimation | ( | noFrames, | |
| options ) |
generate camera positions for the spin animation
| noFrames | number of frames |
| options | a structure with optional parameters .back_and_forth - a switch to make animations in both forward and reverse orientation .clockwise - a switch 1 - clockwise, 0 - anticlockwise rotation .rotAxis - a number with rotation axis, 3-z, 1-x, 2-y Return values: |
| positions | a structure with camera positions for each frame .CameraUpVector - an array of camera-up vectors for each time point or a single vector .CameraTarget - an array of camera-target vectors for each time point or a single vector .CameraPosition - a vector for each time point |
| function imgOut = mibVolRenController.grabFrame | ( | width, | |
| height, | |||
| options ) |
grab a frame from the volume viewer
Parameters width: width of the snapshot, can be empty height: height of the snapshot, can be empty options: [optional] structure with extra parameters .resizeWindow - a switch, 1-resize window, 0-do not resize window, used for animations .showWaitbar - show or not waitbar .hWaitbar - a handle to existing waitbar .waitbarProgress - a fraction for the waitbar position
Examples:
| function status = mibVolRenController.grabVolume | ( | ) |
grab the currently displayed volume to the 3D volume viewer
| status | 1 - success, 0 - cancel |
References mibInputMultiDlg(), and mibResize3d().

| function mibVolRenController.interactWithAlphamap | ( | xy, | |
| seltype, | |||
| modifier ) |
interaction with alphamap plot
| xy | coordinate of the clicked point |
| seltype | selection type - normal, extend, open, alt |
| modifier | key modifier - [], shift, control |
References min, and handle.sort.
| function mibVolRenController.isoColor_Callback | ( | ) |
set color for the isosurface
| function mibVolRenController.isovalEdit_Callback | ( | ) |
change isovalue for the isosurface
| function mibVolRenController.menuFileLoadAnimation_Callback | ( | ) |
load animation path from a file
References mib_uigetfile().

| function mibVolRenController.menuFileMakesnapshot_Callback | ( | ) |
make snapshot
| function mibVolRenController.menuFileMovie_Callback | ( | mode | ) |
start making movie window
Parameters mode: a string with the desired animation type, spin - to spin around selected axis animation - to animate the scene using key frames
| function mibVolRenController.menuFileSaveAnimation_Callback | ( | ) |
save animation path to a file
| function mibVolRenController.menuInvertAlphaCurve_Callback | ( | ) |
invert the alpha curve
References handle.sort.
| function mibVolRenController.menuSettingsBackgroundColor_Callback | ( | ) |
set background color
| function mibVolRenController.menuSettingsSelectColormap_Callback | ( | ) |
select new default colormap and update the volren view
References mibInputMultiDlg(), and handle.sort.

| function mibVolRenController.menuToolsAnimation_Callback | ( | ) |
start animation editor
| function mibVolRenController.mibVolRenGUI_SizeChangedFcn | ( | ) |
figure resizing
| function mibVolRenController.mibVolRenGUI_VolumeMotionFcn | ( | eventdata | ) |
| function mibVolRenController.mibVolRenGUI_WindowButtonDownFcn | ( | eventdata | ) |
| function mibVolRenController.mibVolRenGUI_WindowButtonUpFcn | ( | eventdata | ) |
callback from mouse up button
| function mibVolRenController.mibVolRenGUI_WindowScrollWheelFcn | ( | eventdata | ) |
callback for mouse wheel action
| function mibVolRenController.plotAlphaPlot | ( | ) |
draw alpha plot
| function mibVolRenController.prepareWindowForGrabFrame | ( | width, | |
| height ) |
prepare window to grab a frame
Examples:
| function mibVolRenController.previewAnimation | ( | noFrames | ) |
preview animation
| function mibVolRenController.recalculateAlphamap | ( | ) |
recalculata obj.alpha.alphamap obj.volumeAlphaCurve.x(end) = obj.maxIntValue;
| function mibVolRenController.restoreWindowAfterGrabFrame | ( | ) |
restore widget sizes after the snapshot
| function mibVolRenController.spinBtn_Callback | ( | ) |
test of the spinning
| function mibVolRenController.updateWidgets | ( | ) |
update widgets of this window
|
static |
| function mibVolRenController.visualizationModePopup_Callback | ( | ) |
callback for change of the visualization mode
| mibVolRenController.alphaPlotHandle |
handle to the alpha plot
| mibVolRenController.animationFilename |
template for the animation filename
| mibVolRenController.animationPath |
a structure with animation path .CameraPosition - a matrix of camera positions [keyFrame, x,y,z] .CameraUpVector - a matrix of camera up vectors [keyFrame, x,y,z] .CameraTarget - a matrix of camera target positions [keyFrame, x,y,z]
| mibVolRenController.childControllers |
list of opened subcontrollers
| mibVolRenController.childControllersIds |
a cell array with names of initialized child controllers
| EVENT mibVolRenController.closeEvent |
> Description of events event firing when window is closed
| mibVolRenController.colorChannel |
index of the color channel or material to show
| mibVolRenController.dataType |
a string with data type that is visualized, image, model,selection, mask
| mibVolRenController.defaultView |
a structure with the default camera position
| mibVolRenController.figPosStored |
a structure with stored positions of the widgets for making snapshots .mibVolRenGUI = []; .volViewPanel = []; .optionsPanel = [];
| mibVolRenController.listener |
a cell array with handles to listeners
| mibVolRenController.maxIntValue |
max integer value of the dataset
| mibVolRenController.mibModel |
handles to the model
Referenced by mibVolRenController().
| mibVolRenController.renderingMode |
a string with the rendering mode to use, VolumeRendering, MaximumIntensityProjection,Isosurface
| mibVolRenController.Settings |
a structure with settings .MarkerSize - marker size for the alpha plot .IsoColor - color for the isosurface .BackgroundColor - color for the background .ColormapName - a string with default colormap, or custom (not yet implemented) .ColormapInvert - true/false, invert or not the colormap .animationPath - a structure with animation path .noFramesPreview - number of frames for the preview
| mibVolRenController.View |
handle to the view
| mibVolRenController.volume |
loaded volume
| mibVolRenController.volumeAlphaCurve |
a structure with alpha curve details .x - vector of intensity points [0 - 1] .y - value of alpha for each intensity point [0 - 1] .alphamap - calculated alpha map used in volshow .activePoint - selected point
| mibVolRenController.volumeColormap |
vector with the colormap