NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_EnvironmentBuilder.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口对JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_EnvironmentBuilder.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/Display_Image.hxx>
22#include <NXOpen/Expression.hxx>
23#include <NXOpen/Builder.hxx>
24#include <NXOpen/View.hxx>
25#include <NXOpen/ugmath.hxx>
26#include <NXOpen/libnxopencpp_display_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
36 namespace Display
37 {
39 }
40 class Builder;
41 class Direction;
42 namespace Display
43 {
44 class Image;
45 }
46 class Expression;
47 class Plane;
48 class View;
49 namespace Display
50 {
51 class _EnvironmentBuilderBuilder;
52 class EnvironmentBuilderImpl;
60 class NXOPENCPP_DISPLAYEXPORT EnvironmentBuilder : public NXOpen::Builder
61 {
70
76
82
90
98
101 public: enum NX_DEPRECATED("在NX2312.0.0中已弃用。请使用NXOpen::Preferences::SessionVisualizationVisual::GlobalFinishType代替。") GlobalFinishType
102 {
103 GlobalFinishTypeShinyPlastic,
104 GlobalFinishTypeClassicSatin,
105 GlobalFinishTypeMattePlastic,
106 GlobalFinishTypeFlat,
107 GlobalFinishTypeUserDefined
108 };
109 private: EnvironmentBuilderImpl * m_environmentbuilder_impl;
110 private: friend class _EnvironmentBuilderBuilder;
111 protected: EnvironmentBuilder();
112public: ~EnvironmentBuilder();
117 (
118 );
122 public: void SetImage
123 (
124 NXOpen::Display::Image * imageBuilder
125 );
130 (
131 );
135 public: void SetImageFilename
136 (
137 const NXString & imageFileName
138 );
143 (
144 const char * imageFileName
145 );
149 public: bool UseEnvironment
150 (
151 );
155 public: void SetUseEnvironment
156 (
157 bool useIBL
158 );
163 (
164 );
169 (
170 );
175 (
177 );
182 (
183 );
187 public: void SetImageUpVector
188 (
189 NXOpen::Direction * imageUpVector
190 );
194 public: double ImageRotation
195 (
196 );
200 public: void SetImageRotation
201 (
202 double imageRotation
203 );
207 public: bool ViewFitToStage
208 (
209 );
213 public: void SetViewFitToStage
214 (
215 bool viewFitToStage
216 );
220 public: bool GroundVisibility
221 (
222 );
227 (
228 bool groundVisibility
229 );
234 (
235 );
240 (
242 );
247 (
248 );
253 (
254 NXOpen::Plane * specifyPlane
255 );
260 (
261 );
265 public: bool GroundReflection
266 (
267 );
272 (
273 bool groundReflection
274 );
278 public: double Reflectivity
279 (
280 );
284 public: void SetReflectivity
285 (
286 double reflectivity
287 );
291 public: double LightIntensity
292 (
293 );
297 public: void SetLightIntensity
298 (
299 double lightIntensity
300 );
304 public: double GroundGlossiness
305 (
306 );
311 (
312 double groundGlossiness
313 );
317 public: std::vector<double> GetGroundReflectionColor
318 (
319 );
324 (
325 const std::vector<double> & groundReflectionColor
326 );
330 public: void CommitAndDisplay
331 (
332 NXOpen::View * view ,
333 bool updateIblDisplay ,
334 bool updateEnvCubeDisplay
335 );
340 (
341 );
345 public: void SetImageBlur
346 (
348 );
353 (
354 );
359 (
360 bool useLwrtIBL
361 );
366 (
367 );
372 (
373 bool useLightsForShadowCatcherInLwrt
374 );
378 public: double LwrtQuality
379 (
380 );
384 public: void SetLwrtQuality
385 (
386 double lwrtQuality
387 );
391 public: double LwrtAngle
392 (
393 );
397 public: void SetLwrtAngle
398 (
399 double lwrtAngle
400 );
404 public: double LwrtIntensity
405 (
406 );
410 public: void SetLwrtIntensity
411 (
412 double lwrtIntensity
413 );
417 public: double ColorSaturation
418 (
419 );
424 (
425 double colorSaturation
426 );
430 public: void CommitOffset
431 (
432 NXOpen::View * view
433 );
437 public: void FloorXaxis
438 (
439 );
443 public: void FloorYaxis
444 (
445 );
449 public: void FloorZaxis
450 (
451 );
455 public: void AlignFloorPlane
456 (
457 NXOpen::Plane * specifyFloorPlane
458 );
463 (
464 );
469 (
470 bool enableShadedViewsGroundRefl
471 );
476 (
477 );
482 (
483 int groundPlane
484 );
489 (
490 );
495 (
496 NXOpen::Plane * groundPlaneCustom
497 );
502 public: NX_DEPRECATED("Deprecated in NX2312.0.0. Use NXOpen::Preferences::SessionVisualizationVisual::GlobalFinish instead.") int EnvironmentShadedViewsGlobalFinish
503 (
504 );
509 public: NX_DEPRECATED("Deprecated in NX2312.0.0. Use NXOpen::Preferences::SessionVisualizationVisual::SetGlobalFinish instead.") void SetEnvironmentShadedViewsGlobalFinish
510 (
511 int globalFinish
512 );
517 (
518 );
523 (
524 double floorReflectivity
525 );
530 (
531 );
536 (
537 double planeOffset
538 );
543 (
544 );
549 (
550 bool fixPlaneOffset
551 );
556 (
557 );
562 (
563 const NXOpen::Vector3d & imageUpVector
564 );
568 public: NXOpen::View::DisplayStyleType DisplayStyle
569 (
570 );
574 public: NXOpen::Display::EnvironmentBuilder::HdrTypes Hdr
575 (
576 );
580 public: void SetHdr
581 (
582 NXOpen::Display::EnvironmentBuilder::HdrTypes hdrType
583 );
584 };
585 }
586}
587#ifdef _MSC_VER
588#pragma warning(pop)
589#endif
590#ifdef __GNUC__
591#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
592#pragma GCC diagnostic warning "-Wdeprecated-declarations"
593#endif
594#endif
595#undef EXPORTLIBRARY