Hi,
I want to achieve the functionality of send to window as well as floating window of the selected view as attached in the image How can I achieve this?
Hi,
I want to achieve the functionality of send to window as well as floating window of the selected view as attached in the image How can I achieve this?
The Smart Client functionality (using no MIP plugins) is so that you can send the camera to all open windows or create a new floating window.
If you use the Smart Client View and Windows tool sample you can using the Multi Windows tab see how to send a view to a new full screen window while creating the full screen window. With the same sample on the View Edit tab you can see how to send a camera to a viewitem in the view.
If you want to add this as a new toolbar button I recommend that you explore the Smart Client Toolbar Plug-in sample.
open floating window works only if we send Whole view’s FQID but If i send selected ImageViewerControl.CameraFQID It will not open any kind of window.
Correct, but the plug-in you are developing could do two commands, so you can achieve what you want in two steps.
I did not do the experiment myself to see if I can make it work but hope it is correct.
Can you please elaborate the answer? As I didn’t understand what do you mean by two commands? And also what is the way to know which View is currently selected for example in the 2x2 view if suppose i have selected 2nd window how will I get to know?
I tried the same using Hotspot but every time when I open floating window it saves the configuration in the left panel which I don’t want to
Two steps -(reusing my words)
If you use the Smart Client View and Windows tool sample you can using the Multi Windows tab see how to send a view to a new full screen window while creating the full screen window.
With the same sample on the View Edit tab you can see how to send a camera to a viewitem in the view.
If this is not clear, let me know, I am trying to be clear. If it is not correct, let me know - I did not test it myself..
Actually my doubt is in sending the selected view to floating window as shown in the below image
Not the whole view as shown below
I guess you are not sending a view but a camera..(?)
I wonder if what you need is the SetCameraInViewCommand -
const String VideoOS.Platform.Messaging.MessageId.SmartClient.SetCameraInViewCommand = “SmartClient.SetCameraInViewCommand”
I can see this working using the Message Tester tool plugin sample..
When I try testing in the Message tester Item picker for destination it shows only the camera but not the windows as you mentioned.
And I am trying to do grammatically as below
MultiWindowCommandData data = new MultiWindowCommandData();
data.Screen = screenItem != null ? screenItem.Item.FQID : null;
data.Window = windowItem != null ? windowItem.Item.FQID : null;
data.View = \_viewItemManager.SelectedCam.Active1.FQID;
data.X = 200;
data.Y = 200;
data.Height = 400;
data.Width = 400;
data.MultiWindowCommand = "OpenFloatingWindow";
data.PlaybackSupportedInFloatingWindow = true;
EnvironmentManager.Instance.SendMessage(
new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.MultiWindowCommand, data),
null,
null);
And sending t o different location I am using below code.
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.SetCameraInViewCommand, new SetCameraInViewCommandData()
{
Index = destinationIndex,
CameraFQID = \_imageViewerControl.CameraFQID,
StreamId = streamId
}));
So my doubt is here it will just send the camera view and it will not send whole ImageViewerControl to that location right?
I would like to take a step back and try to understand what you are trying to achieve.
Do you have your own view-item that includes an ImageViewerControl?
Please describe in other words what you want your Smart Client plugin to do.
Yes Exactly we do have our own group in the Default group in which View -item includes ImageViewerControl
So you could implement you own messaging to signal your view-item plugin, and supply the camera in the message.
If this answer does not fit I would like to start over, can you explain the the use sceanrio, what and how the user will do and what should happen?
Ok I will explain my scenario
1.I have View like below which is highlighted in red.
Now I have set the functionality in More button to send
1.Floating window like below but how can I achieve this and even I want to retain n the selected view like the same how it happens n the normal control ?
2.Send to multiple view.
I want to send my cameraViewcontrol with customized toolbar to other index of the same view.
And also please let me know how can get same icons used in the tool bars of milestone.
What you show on the graphics is not a floating window, or not what we in Milestone call a floating window. When using your own pop-up window like this it should be possible to control it like you wish. Can you explain what is stopping you?
It might not be possible to get an understanding of the zoom level in digital zoom and relay that information to your pop-up, is this the issue you face?
The icons are part of the Smart Client and not in the MIP SDK.
If you want not only icons but also the functionality I have to disappoint you, the icons and functionality will only pertain to camera-view-items.
InsertViewItemPlugin
I tried in this way: I made a view (2x2 in my case), in the first location I put the View and Windows tool plugin, out of Setup mode, in View and Windows tool I pick the View Edit tab, I select the current group and the current view, in Select ViewItems drop down pick another number (except 0), in the next drop down pick the the Config Dump item, this will send the Config Dump view-item to the view location.
I notice how the plug-in display sais “Plug-in is not available”. If you switch view and come back to this view the plugin displays correctly, if you do a refresh configuration the plugin displays correctly.
You can do the ReloadConfigurationCommand
You can see how using the Message Tester tool plugin sample.
I find it strange that the extra refresh should be needed so I will make an investigation, for now I hope this is usable for you..
for
Yes I know its not floating window.I just created it to show you that we want output in floating window with all the control visible in the view.Is there any way to achieve it?
2)In My smart client I am not able to find View and Windows tool plugin What I need to do for that?
only below are the plugin shown in Smartclient
workspace plugin side panel
overlay Image tester service plugin side panel
Message area message tester plugin side panel
SC Inser camera side panel
SCExport Side Panel
Bookmark Sample side Panel
Property Side Panel
Chat Side Panel
Add user Side Panel