NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Gateway_ImageCaptureBuilder.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Gateway_ImageCaptureBuilder.ja
9
//
10
// 生成工具:
11
// apiwrap
12
//
13
// 警告:
14
// 此文件为自动生成 - 请勿手动编辑
15
//
16
#pragma once
17
#include <NXOpen/NXDeprecation.hxx>
18
#include <vector>
19
#include <NXOpen/NXString.hxx>
20
#include <NXOpen/Callback.hxx>
21
#include <NXOpen/Builder.hxx>
22
#include <NXOpen/libnxopencpp_gateway_exports.hxx>
23
#ifdef _MSC_VER
24
#pragma warning(push)
25
#pragma warning(disable:4996)
26
#endif
27
#ifdef __GNUC__
28
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29
#endif
30
namespace
NXOpen
31
{
32
namespace
Gateway
33
{
34
class
ImageCaptureBuilder
;
35
}
36
class
Builder
;
37
namespace
Gateway
38
{
39
class
_ImageCaptureBuilderBuilder;
40
class
ImageCaptureBuilderImpl;
59
class
NXOPENCPP_GATEWAYEXPORT ImageCaptureBuilder :
public
NXOpen::Builder
60
{
62
public
:
enum
CaptureMethodType
63
{
64
CaptureMethodTypeGraphicsArea
,
65
CaptureMethodTypeRegion
,
66
CaptureMethodTypeFile
,
67
CaptureMethodTypeAutomatic
68
};
69
70
public
:
enum
ImageFormat
71
{
72
ImageFormatBmp
,
73
ImageFormatJpg
,
74
ImageFormatGif
,
75
ImageFormatPng
,
76
ImageFormatTiff
77
};
78
79
public
:
enum
ImageSize
80
{
81
ImageSizePixels16
,
82
ImageSizePixels24
,
83
ImageSizePixels32
,
84
ImageSizePixels48
,
85
ImageSizePixels64
,
86
ImageSizePixels96
,
87
ImageSizePixels128
88
};
89
private
:
ImageCaptureBuilderImpl
* m_imagecapturebuilder_impl;
90
private
:
friend
class
_ImageCaptureBuilderBuilder;
91
protected
:
ImageCaptureBuilder
();
92
public
:
~ImageCaptureBuilder
();
96
public
:
NXOpen::Gateway::ImageCaptureBuilder::CaptureMethodType
CaptureMethod
97
(
98
);
102
public
:
void
SetCaptureMethod
103
(
104
NXOpen::Gateway::ImageCaptureBuilder::CaptureMethodType
captureMethod
105
);
109
public
:
void
GetRegion
110
(
111
std::vector<int> & topLeftCorner ,
112
std::vector<int> & bottomRightCorner
113
);
117
public
:
void
SetRegion
118
(
119
const
std::vector<int> & topLeftCorner ,
120
const
std::vector<int> & bottomRightCorner
121
);
125
public
:
NXString
File
126
(
127
);
131
public
:
void
SetFile
132
(
133
const
NXString
& filename
134
);
138
void
SetFile
139
(
140
const
char
* filename
141
);
145
public
:
NXOpen::Gateway::ImageCaptureBuilder::ImageFormat
Format
146
(
147
);
151
public
:
void
SetFormat
152
(
153
NXOpen::Gateway::ImageCaptureBuilder::ImageFormat
format
154
);
158
public
:
NXOpen::Gateway::ImageCaptureBuilder::ImageSize
Size
159
(
160
);
164
public
:
void
SetSize
165
(
166
NXOpen::Gateway::ImageCaptureBuilder::ImageSize
size
167
);
171
public
:
NXString
ImageFile
172
(
173
);
177
public
:
void
SetImageFile
178
(
179
const
NXString
& imageFilename
180
);
184
void
SetImageFile
185
(
186
const
char
* imageFilename
187
);
188
};
189
}
190
}
191
#ifdef _MSC_VER
192
#pragma warning(pop)
193
#endif
194
#ifdef __GNUC__
195
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
196
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
197
#endif
198
#endif
199
#undef EXPORTLIBRARY