NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Schematic_NodeBuilder.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Schematic_NodeBuilder.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成,请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.h>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/Diagramming_LocationBuilder.hxx>
22#include <NXOpen/Diagramming_Node.hxx>
23#include <NXOpen/Diagramming_TextStyleBuilder.hxx>
24#include <NXOpen/Schematic_BaseObjectBuilder.hxx>
25#include <NXOpen/Schematic_Connection.hxx>
26#include <NXOpen/Schematic_DataType.hxx>
27#include <NXOpen/Schematic_Node.hxx>
28#include <NXOpen/ugmath.hxx>
29#include <NXOpen/libnxopencpp_schematic_exports.hxx>
30#ifdef _MSC_VER
31#pragma warning(push)
32#pragma warning(disable:4996)
33#endif
34#ifdef __GNUC__
35#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36#endif
37namespace NXOpen
38{
39 namespace Schematic
40 {
41 class NodeBuilder;
42 }
43 namespace Diagramming
44 {
45 class LocationBuilder;
46 }
47 namespace Diagramming
48 {
49 class Node;
50 }
51 namespace Diagramming
52 {
53 class TextStyleBuilder;
54 }
55 class NXObject;
56 namespace Schematic
57 {
59 }
60 namespace Schematic
61 {
62 class Connection;
63 }
64 namespace Schematic
65 {
66 class Node;
67 }
68 namespace Schematic
69 {
70 class _NodeBuilderBuilder;
71 class NodeBuilderImpl;
91 class NXOPENCPP_SCHEMATICEXPORT NodeBuilder : public NXOpen::Schematic::BaseObjectBuilder
92 {
93 private: NodeBuilderImpl * m_nodebuilder_impl;
94 private: friend class _NodeBuilderBuilder;
95 protected: NodeBuilder();
96public: ~NodeBuilder();
101 (
102 );
107 (
109 );
114 (
115 );
119 public: void SetSymbolId
120 (
121 const NXString & symbolId
122 );
127 (
128 const char * symbolId
129 );
134 (
135 );
139 public: void SetExistingSymbol
140 (
141 NXOpen::Diagramming::Node * existingSymbol
142 );
144
147 public: NXString ExistingEquipment
148 (
149 );
152
155 public: void SetExistingEquipment
156 (
157 const NXString & spec
158 );
162 void SetExistingEquipment
163 (
164 const char * spec
165 );
167
171 (
172 );
176 public: void SetLocation
177 (
178 const NXOpen::Point2d & location
179 );
183 public: bool LockAspectRatio
184 (
185 );
190 (
191 bool lockAspectRatio
192 );
196 public: double Scale
197 (
198 );
202 public: void SetScale
203 (
204 double scale
205 );
209 public: double ScaleX
210 (
211 );
215 public: void SetScaleX
216 (
217 double scaleX
218 );
222 public: double ScaleY
223 (
224 );
228 public: void SetScaleY
229 (
230 double scaleY
231 );
236 (
237 );
241 public: void SetRotate
242 (
244 );
248 public: bool FlipHorizontal
249 (
250 );
254 public: void SetFlipHorizontal
255 (
256 bool flipHorizontal
257 );
261 public: bool FlipVertical
262 (
263 );
267 public: void SetFlipVertical
268 (
269 bool flipVertical
270 );
275 (
276 );
281 (
282 );
287 (
288 NXOpen::Schematic::Connection * connection ,
289 int segementId ,
290 double percent
291 );
296 (
297 NXOpen::Schematic::Connection ** connection ,
298 int* segementId ,
299 double* percent
300 );
304 public: void ReplaceSymbol
305 (
306 const NXString & symbolId
307 );
312 (
313 const char * symbolId
314 );
319 (
320 );
324 public: void SetNodeType
325 (
327 );
332 (
333 );
337 public: void SetAttachedSymbol
338 (
339 const NXString & sourcePortId ,
340 NXOpen::Schematic::Node * toSymbol ,
341 const NXString & targetPortId
342 );
347 (
348 const char * sourcePortId ,
349 NXOpen::Schematic::Node * toSymbol ,
350 const char * targetPortId
351 );
353
356 public: NXOpen::Schematic::InstrumentationType InstrumentationType
357 (
358 );
361
364 public: void SetInstrumentationType
365 (
366 NXOpen::Schematic::InstrumentationType type
367 );
370
373 public: NXOpen::Schematic::InstrumentationSymbolType InstrumentationSymbolType
374 (
375 );
378
381 public: void SetInstrumentationSymbolType
382 (
383 NXOpen::Schematic::InstrumentationSymbolType symbolType
384 );
387
390 public: NXString MeasurementVariable
391 (
392 );
395
399 public: void SetMeasurementVariable
400 (
401 const NXString & measurementVariable
402 );
407 void SetMeasurementVariable
408 (
409 const char * measurementVariable
410 );
413
417 public: NXString FunctionId
418 (
419 );
422
426 public: void SetFunctionId
427 (
428 const NXString & functionId
429 );
434 void SetFunctionId
435 (
436 const char * functionId
437 );
439
443 (
444 );
449 (
450 NXOpen::NXObject ** con ,
451 NXString* connectionId
452 );
454
458 public: void SetAttachedInstrumentSymbol
459 (
460 const NXString & fromPortId ,
461 NXOpen::NXObject * toInstrumentSymbol ,
462 const NXString & toPortId
463 );
468 void SetAttachedInstrumentSymbol
469 (
470 const char * fromPortId ,
471 NXOpen::NXObject * toInstrumentSymbol ,
472 const char * toPortId
473 );
476
480 public: void Detach
481 (
482 );
485
489 public: double InstrumentSymbolSize
490 (
491 );
494
497 public: void SetInstrumentSymbolSize
498 (
499 double symbolSize
500 );
502
506 (
507 );
512 (
513 bool useExistingID
514 );
518 public: void DetachPortOnNode
519 (
520 const NXString & portId
521 );
526 (
527 const char * portId
528 );
533 (
535 );
540 (
541 );
542 };
543 }
544}
545#ifdef _MSC_VER
546#pragma warning(pop)
547#endif
548#ifdef __GNUC__
549#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
550#pragma GCC diagnostic warning "-Wdeprecated-declarations"
551#endif
552#endif
553#undef EXPORTLIBRARY