Profile2dDD is an implements WCMotionEH and WCPositionEH and listens to motion and position events generated by the attached Display Data. A motion event comes with a new world position on the attached Display Data. Profile2dDD uses this world position to extract and draw a profile on its world canvas. A Position event (key press) switches the profiling on and off. The default switch is the space bar.
Profile2dDD is a DisplayEH (all DisplayDatas are) and listens to DisplayEvents sent out by the attached DisplayData. This is so it can listen for Tool events such as Crosshair event.
Each time the profile is refreshed (with new data), Profile2dDD sends out a DDModEvent to all listening DisplayEHs, to indicate that the data has been modified.
Since Profile2dDD inherit's from ActiveCaching2dDD and uses WCCSNLAxisLabeller, all the options such as position tracking and axis labelling are available. Options specific to Profilng, such as profile color, line width, line style and autoscaling are also available.
(Required) default constructor.
Constructor taking a pointer to an already constructed ImageInterface.The Display Data dd must have atleast 3 World Axes and atleast 2 elements in the profile (3rd) world axis.
Destructor.
Detach the currently attached Display Data.
Overloading ActiveCaching2dDD::sizeControl. Zooming is modified for autoscaling feature.
Store the data to be drawn in the data Matrix. If world is false, pixel coordinates are used. If world is true, then world coordinates are used.
Store the mask in mask vector
Store the details of the current profile in rec Record structure similar to position event structure.
Return the data unit.
Returns an empty string.
Motion Event Handler
Position Event Handler
Display Event Handler
Send out DDModEvents to all DisplayEHs listening
Draws and labels the axes based on the refresh event
Install the default options for this DisplayData.
Apply options stored in rec to the DisplayData. A return value of True means a refresh is needed. recOut contains any fields which were implicitly changed as a result of the call to this function.
Retrieve the current and default options and parameter types.
Return the type of this DisplayData.
Create a new CachingDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are suitably matched to the current state of this DisplayData and of the WorldCanvas/Holder. The tag is a unique number used to identify the age of the newly constructed CachingDisplayMethod.
Return the current options of this DisplayData as an AttributeBuffer.
Take actions on removal from WC[H] (notably, deletion of drawlists).
Return Profile Color
Return Profile Line Width
Return Profile LineStyle
Return True if the last requested profile was for a region. Return False if the last requested profile was for a single point
get the region dimensions, in pixels, of the last region submitted to Profile2dDD.
Return Minimum Y value
Return Maximum Y value
Return Minimum X value
Return Maximum X value
Return the autoscale status (On or Off)
Return the rest frequency display status (to draw or not to draw)
Return rest frequency.
Return the statistics used for region calculations.
Return the x value added to the pixel at a pixel position to create a region
Return the y value added to the pixel at a pixel position to create a region
Return the profile axis number (from the original image)
(Required) copy constructor.
(Required) copy assignment.
Update the coordinate system of this Display Data and the axis labeller. Set new minimum and maximum Y values if necessary
Extract the profile data from the provided pixel region and place it into itsData. The statistics used is determined by the options. Return True if new profile data has been extracted (i.e. a refresh is needed) otherwise return False
Extract the profile data from the provided world position and place it into itsData. Also extract the Mask data (if it exists) and place it into itsMask. Return True if new profile data has been extracted (i.e. a refresh is needed) otherwise return False
Crop the region so that it does not define areas outside the data. Returns False if the entire region is outside image data
Construct the parameters for getOptions and setOptions