ImageCloud
 All Classes Namespaces Functions Variables Enumerations Properties Events
Public Member Functions | Properties | Events
VisWpf.UI.CanvasObjectController Class Reference

Controls user navigation on the canvas. More...

List of all members.

Public Member Functions

 CanvasObjectController (Canvas navigatorCanvas)
 Creates a new CanvasObjectController object. Binds default events.
void CreateNavigatorImages (IList< ImageInfoContainer > imageInfos, List< Vector > imagePositions)
 Creates the Images for the navigator canvas.
void ChangePositionScaleAndRelayout (double mouseWheelDelta)
 Changes the scaling of the image position vectors. This is based on the rotation of the mouse-wheel.
void PositionImages ()
 Positions the images on the canvas.
void OffsetImages (double xAmount, double yAmount)
 Offsets the images by a given amount.
void ResetCanvas ()
 Resets the canvas and displays all images.
void ResetOffset ()
 Reset the offset of all images to zero.
void RedrawCanvas (EMDQueryResult qResult)
 Thread safe method for redrawing the canvas.
void SetSliderValue (double value)
 Thread safe mehtod for setting the canvas Sliders distance value.
void ResetArrows ()
 Thread safe method for resetArrowsInvoke.
void navigatorImageClicked (object sender, MouseButtonEventArgs ea)
 Occurs, when the user clicks a image in the navigator.

Properties

bool Initialized [get]
 Returns if this Canvasobject-Controller is initialized with images.

Events

EventHandler< QueryEventArgsQueryEvent
 Event occurs when a new navigator query is started.

Detailed Description

Controls user navigation on the canvas.


Constructor & Destructor Documentation

VisWpf.UI.CanvasObjectController.CanvasObjectController ( Canvas  navigatorCanvas)

Creates a new CanvasObjectController object. Binds default events.

Parameters:
navigatorCanvasThe canvas to control.

Member Function Documentation

void VisWpf.UI.CanvasObjectController.ChangePositionScaleAndRelayout ( double  mouseWheelDelta)

Changes the scaling of the image position vectors. This is based on the rotation of the mouse-wheel.

Parameters:
mouseWheelDeltaThe amount to scale the image positions by
void VisWpf.UI.CanvasObjectController.CreateNavigatorImages ( IList< ImageInfoContainer imageInfos,
List< Vector >  imagePositions 
)

Creates the Images for the navigator canvas.

Parameters:
imageInfosThe list of imageinfos from which the images are created
imagePositionsThe initial positions of the images
void VisWpf.UI.CanvasObjectController.navigatorImageClicked ( object  sender,
MouseButtonEventArgs  ea 
)

Occurs, when the user clicks a image in the navigator.

void VisWpf.UI.CanvasObjectController.OffsetImages ( double  xAmount,
double  yAmount 
)

Offsets the images by a given amount.

Parameters:
xAmountThe x amount to offset the images by
yAmountThe y amount to offset the images by
void VisWpf.UI.CanvasObjectController.PositionImages ( )

Positions the images on the canvas.

void VisWpf.UI.CanvasObjectController.RedrawCanvas ( EMDQueryResult  qResult)

Thread safe method for redrawing the canvas.

Parameters:
qResult
void VisWpf.UI.CanvasObjectController.ResetArrows ( )

Thread safe method for resetArrowsInvoke.

void VisWpf.UI.CanvasObjectController.ResetCanvas ( )

Resets the canvas and displays all images.

void VisWpf.UI.CanvasObjectController.ResetOffset ( )

Reset the offset of all images to zero.

void VisWpf.UI.CanvasObjectController.SetSliderValue ( double  value)

Thread safe mehtod for setting the canvas Sliders distance value.

Parameters:
valueThe distance to set on the Slider

Property Documentation

bool VisWpf.UI.CanvasObjectController.Initialized
get

Returns if this Canvasobject-Controller is initialized with images.


Event Documentation

EventHandler<QueryEventArgs> VisWpf.UI.CanvasObjectController.QueryEvent

Event occurs when a new navigator query is started.


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