-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathIImageViewer.h
More file actions
62 lines (52 loc) · 2.29 KB
/
IImageViewer.h
File metadata and controls
62 lines (52 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* @copyright Copyright (c) 2017 B-com http://www.b-com.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SOLAR_IIMAGEVIEWER_H
#define SOLAR_IIMAGEVIEWER_H
#include "datastructure/Image.h"
#include "xpcf/api/IComponentIntrospect.h"
#include "core/Messages.h"
namespace SolAR {
namespace api {
namespace display {
/**
* @class IImageViewer
* @brief <B>VDisplays an image in a window.</B>
* <TT>UUID: B05F3DBB-F93D-465C-AEE1-FB58E1480C42</TT>
*
* This class provides a viewer to display an image in a window.
*/
class XPCF_CLIENTUUID("a580d26e-331d-42d4-8bfe-f19913ba97fb") XPCF_SERVERUUID("b99d8c4e-10ef-4d7a-ba7c-dfa114cf1620") IImageViewer :
virtual public org::bcom::xpcf::IComponentIntrospect {
public:
virtual ~IImageViewer() = default;
/// \brief this method displays an image contained in a Image object in a window
/// @param[in] img The image to display in the window
/// @return FrameworkReturnCode::_SUCCESS if the window is created, else FrameworkReturnCode::_ERROR_
virtual FrameworkReturnCode display(const SRef<SolAR::datastructure::Image> img) = 0;
/// \brief this method displays an image contained in a Image object in a window, and get the key code if pressed
/// @param[in] img The image to display in the window
/// @param[out] key The pressed key ASCII code, 0 if no key is pressed
/// @return FrameworkReturnCode::_SUCCESS if the window is created, else FrameworkReturnCode::_ERROR_
virtual FrameworkReturnCode displayKey(const SRef<SolAR::datastructure::Image> img, char& key) = 0;
};
}
}
}
XPCF_DEFINE_INTERFACE_TRAITS(SolAR::api::display::IImageViewer,
"B05F3DBB-F93D-465C-AEE1-FB58E1480C42",
"IImageViewer",
"SolAR::IImageViewer interface")
#endif