Click or drag to resize

ClickAndTeachViewModel Class

This class holds the logic for the Click and Teach panel.
Inheritance Hierarchy
SystemObject
  BindableBase
    RAYLASE.Marker.ClickAndTeachPluginClickAndTeachViewModel

Namespace: RAYLASE.Marker.ClickAndTeachPlugin
Assembly: RAYLASE.Marker.ClickAndTeachPlugin (in RAYLASE.Marker.ClickAndTeachPlugin.dll) Version: 2.49.0
Syntax
C#
public class ClickAndTeachViewModel : BindableBase

The ClickAndTeachViewModel type exposes the following members.

Constructors
 NameDescription
Public methodClickAndTeachViewModel The constructor starts a timer to get informed of changes in the camera's connection state and its other parameters when changed in the camera's settings dialog.
Top
Properties
 NameDescription
Public propertyAlignmentLineP1X 
Public propertyAlignmentLineP1Y 
Public propertyAlignmentLineP2X 
Public propertyAlignmentLineP2Y 
Public propertyAlignmentLinePosition 
Public propertyAlignmentLineVisibility 
Public propertyApiWorkspaceConfigurationName 
Public propertyApplyCommand 
Public propertyAreCrossHairsChecked Flag to indicate if the "Cross hair" toggle button is checked.
Public propertyAreTileOffsetsToRectify 
Public propertyBrightness A brightness value between -100 and 100 the live view image will be modified with.
Public propertyCalculateCommand 
Public propertyCamera The currently used camera.
Public propertyCameras The list of cameras shown in the combo box.
Public propertyCenterX 
Public propertyCenterY 
Public propertyClearCommand 
Public propertyClearingMode Controls what will be done with the workspace's background before taking of pictures starts: clear the background or preserve it.
Public propertyClearWorkspaceBackgroundAfterExecution 
Public propertyCollectedImages 
Public propertyContrast A contrast value between -100 and 100 the live view image will be modified with.
Public propertyCrossHairsColor The color of the cross hair.
Public propertyCrossHairsDownX 
Public propertyCrossHairsDownY 
Public propertyCrossHairsLeftX 
Public propertyCrossHairsLeftY 
Public propertyCrossHairsRightX 
Public propertyCrossHairsRightY 
Public propertyCrossHairsSize The size of the cross hair as percentage of the camera field width.
Public propertyCrossHairsStroke 
Public propertyCrossHairsThickness The thickness of the cross hair in pixel.
Public propertyCrossHairsTopX 
Public propertyCrossHairsTopY 
Public propertyCrossHairsVisibility 
Public propertyCrossHairsWithCircle 
Public propertyEndGrayValueLineThumStroke 
Public propertyEndThumbPos The thumb of the gray value progression line's end position. in the live view canvas in pixel coordinates. It is translated by the thumbs half width compared to the end point of the line.
Public propertyFocalLengthX 
Public propertyFocalLengthY 
Public propertyFocusSliderVisibility 
Public propertyGrayValueLineEndPos 
Public propertyGrayValueLineEndPosition The end point of the gray value progression line in pixel coordinates in the live view canvas.
Public propertyGrayValueLineEndPositionRatio The end point of the gray value progression line as ratio between 0 and 1 of the camera picture's width and height.
Public propertyGrayValueLineStartPos 
Public propertyGrayValueLineStartPosition The start point of the gray value progression line in pixel coordinates in the live view canvas.
Public propertyGrayValueLineStartPositionRatio The start point of the gray value progression line as ratio between 0 and 1 of the camera picture's width and height.
Public propertyGrayValueLineThumbSize 
Public propertyGrayValueProgressionBackground 
Public propertyGrayValueProgressionHeight 
Public propertyGrayValueProgressionIconStroke 
Public propertyGrayValueProgressionLineVisibility 
Public propertyGrayValueProgressionVisibility 
Public propertyHidePointerWhileTakePicture 
Public propertyStatic memberInstance 
Public propertyIsAlignmentLine Flag to indicate if the alignment line toggle button is checked.
Public propertyIsAutoJumpDelay 
Public propertyIsAutoZoom Flag to indicate if the auto zoom feature is on or off.
Public propertyIsCalibrationInProgress Flag to indicate if a calibration process is in progress currently.
Public propertyIsClickAndTeachEnabled Enables and disables the complete panel. It is enabled only if there is a license available.
Public propertyIsCrossHairsEnabled 
Public propertyIsDistortionToRectify 
Public propertyIsFocusSliderEnabled Flag to indicate if the focus slider is enabled.
Public propertyIsGrayValueProgression Flag to indicate if the gray value progression is active or not.
Public propertyIsIPCopyContainerJobRunning True if an image processing job is running inside a copy container.
Public propertyIsLiveImageChecked Flag to indicate if the "Live view" toggle button is checked.
Public propertyIsLiveImageEnabled Flag to indicate if the "Live view" toggle button is enabled. Disabled if the camera is not connected.
Public propertyIsLoadLastUsedTilesEnabled Flag to indicate if the "Load last tiled image" button is enabled. Disabled if the file as stored in the settings is not there.
Public propertyIsNormalMode 
Public propertyIsPreviewChecked Flag to indicate if the "Preview" toggle button is checked.
Public propertyIsPreviewEnabled Flag to indicate if the "Preview" toggle button is enabled.
Public propertyIsPreviewEndless Flag to indicate if the preview will be done endless or only once.
Public propertyIsRectify Flag to indicate if equalization is active.
Public propertyIsResetCameraFieldSizeEnabled Flag to indicate if the "Tile" toggle button is enabled. Disabled if the camera is not connected.
Public propertyIsSaveLiveEnabled Flag to indicate if the "Save live image" button is enabled. Disabled if the camera is not connected.
Public propertyIsSaveTilesEnabled Flag to indicate if the "Save tiled image" button is enabled. Disabled if the camera is not connected.
Public propertyIsSettingEnabled 
Public propertyIsTileAllEnabled Flag to indicate if the "Tile" toggle button is enabled. Disabled if the camera is not connected.
Public propertyIsTilingChecked Flag to indicate if the "Tile" toggle button is checked.
Public propertyIsValidCamera 
Public propertyIsZoomEnabled 
Public propertyJumpDelay The delay we have to wait after the scan head has reached its position before we can take a new picture.
Public propertyJumpSpeed The jump speed used when the scan head sets a new position.
Public propertyK1 
Public propertyK2 
Public propertyK3 
Public propertyLiveViewCanvasHeight 
Public propertyLiveViewHeight The current height of the live view panel. May change while resizing the panel.
Public propertyLiveViewImage The brush to hold the background image for the live view panel.
Public propertyLiveViewImageRect 
Public propertyLiveViewImageZoomFactor 
Public propertyLiveViewRotation 
Public propertyLiveViewWidth The current width of the live view panel. May change while resizing the panel.
Public propertyLoadLastUsedTilesCommand 
Public propertyLoadTilesCommand 
Public propertyMaxZCoordinate In case of a 3D field the maximal z coordinate.
Public propertyMinZCoordinate In case of a 3D field the minimal z coordinate.
Public propertyOverlappingFactor A factor to control how strong the tiles will overlap. The standard value is 1.02 which means that there is an overlap of 2 percent.
Public propertyP1 
Public propertyP2 
Public propertyPickingMode The mode the picking is in: Off, Single tile, 3x3 tiles.
Public propertyPreviewCommand 
Public propertyPreviewSpeed The last used preview speed.
Public propertyProgressValue The current value for the tiling progress bar.
Public propertyRegionOfInterest 
Public propertyResetCameraFieldSizeCommand 
Public propertyResetCommand 
Public propertySaveLiveCommand 
Public propertySaveTilesCommand 
Public propertySecondCameras 
Public propertySecondCamFading 
Public propertySecondCamFadingSliderVisibility 
Public propertySecondCamLiveViewVisibility 
Public propertySecondCamModeIndex 
Public propertySecondCamVisibility 
Public propertySecondLiveViewCanvasHeight 
Public propertySecondLiveViewImage 
Public propertySecondLiveViewImageRect 
Public propertySecondRegionOfInterest 
Public propertySecondSelectedCameraModel 
Public propertySelectedCameraModel used for UI Camera combo box
Public propertyShowSettingsControls 
Public propertyStartGrayValueLineThumStroke 
Public propertyStartStopTileAllCommand 
Public propertyStartThumbPos The thumb of the gray value progression line's start position. in the live view canvas in pixel coordinates. It is translated by the thumbs half width compared to the start point of the line.
Public propertyTilingCompletedMRE This event is fired when tiling is completed on all scan heads.
Public propertyTilingTimeout Relevant only when using the API: After this time (in milliseconds) a running tiling will be aborted.
Public propertyWorkspaceProcessTrafo 
Public propertyWorkspaceRegionColor 
Public propertyZCoordinate The z coordinate to be set when picking in the range from 0 to 1, mapped to the real z range.
Public propertyZoomAlwaysOn 
Public propertyZoomEnabled 
Public propertyZoomToTileCommand 
Top
Methods
 NameDescription
Public methodAddWarningToNotificationPanel 
Public methodCheckMatricesOnEquality Checks all elements of the two given matrices on equality; i.e. matrixA[i,j] == matrixB[i,j] for all i, j.
Public methodCreateRoiImage Creates an image from the given ROI. In multi head scenarios a combined image from several cameras will be created if necessary.
Public methodGetCenterPointWorldFromTileRectangle Calculates from the given rectangle corners the center point. Not quite clear any longer under which conditions this is not just the geometric center. But to be on the safe side we get the TileRectangleResult in the same way here when called by ImageProcessing.FindPositions() as in the normal operation.
Public methodGetJobDefinition Retrieves the active job.
Public methodGetJobDefinitionOfJobElementHolder Searches the JobDefinition the given JobElementHolder object belongs to.
Public methodGetJobDefinitionService Retrieves Rayguide's JobDefinitionService.
Public methodStatic memberGetOrCreateInstance 
Public methodLoadSettings Loads the Click and Teach settings and puts them into the panel's fields.
Public methodOnClickAndTeachSelectionModeChanged 
Protected methodOnPropertyChanged Raises this object's PropertyChanged event.
(Inherited from BindableBase)
Protected methodRaisePropertyChanged Raises this object's PropertyChanged event.
(Inherited from BindableBase)
Public methodSaveSettings Saves the Click and Teach settings. Since ClickAndTeachView.OnRootUnloaded() is not called when closing RAYGUIDE, the settings are saved each time a change in the panel's settings fields are done. This happens also when loading the settings, but the values are not there at this time; therefore saving will be disabled in this case with flag _areSettingsLoading.
Protected methodSetProperty``1(UMP, UMP, String) Checks if a property already matches a desired value. Sets the property and notifies listeners only when necessary.
(Inherited from BindableBase)
Protected methodSetProperty``1(UMP, UMP, Action, String) Checks if a property already matches a desired value. Sets the property and notifies listeners only when necessary.
(Inherited from BindableBase)
Public methodShowDeviceSettingsUI 
Public methodStartStopPollingTimer Starts the polling timer.
Public methodUpdateCopyContainerWorkspaceMarking Shows a blue rectangle in the workspace as defined in the arg.
Top
Events
 NameDescription
Public eventPreviewPoint updates the Preview Point in the Live image viewer
Public eventProcessTransformationChanged 
Public eventPropertyChanged Occurs when a property value changes.
(Inherited from BindableBase)
Top
Fields
See Also