Foxit PDF SDK
fs_pdf3d.h
1 #if (defined(_WIN32) || defined(_WIN64))
2 
16 #ifndef FS_3DPDF_H_
17 #define FS_3DPDF_H_
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 #include "pdf/annots/fs_annot.h"
26 namespace foxit {
28 namespace addon {
30 namespace pdf3d {
32 class PDF3DAnnotViewData FS_FINAL : public Object{
33  public:
36 
43  this->display_name = other.display_name;
44  this->name = other.name;
45  }
46 
54  this->display_name = data.display_name;
55  this->name = data.name;
56  return *this;
57  }
58 
61 
64 };
65 
71 class ModelNode FS_FINAL : public Base{
72  public:
78  typedef enum _PDF3DModelNodeType {
104 
105 
108 
114  ModelNode(const ModelNode& other);
115 
117  ~ModelNode();
118 
126  bool IsEmpty() const;
127 
135  ModelNode& operator=(const ModelNode& other);
136 
144  bool operator==(const ModelNode& other) const;
145 
153  bool operator!=(const ModelNode& other) const;
154 
161 
168 
175 
182 
188  WString GetName();
189 
198  void SetVisible(bool is_visible);
199 
205  bool IsVisible();
206 
207  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
208  explicit ModelNode(FS_HANDLE handle);
209 };
210 
216 class PDF3DAnnotInstance FS_FINAL : public Base{
217  public:
223  typedef enum _PDF3DController {
236  } PDF3DController;
237 
243  typedef enum _PDF3DRenderMode {
274  } PDF3DRenderMode;
275 
276 
279 
286 
289 
298 
306  bool operator==(const PDF3DAnnotInstance& other) const;
307 
315  bool operator!=(const PDF3DAnnotInstance& other) const;
316 
324  bool IsEmpty() const;
325 
332 
344  void SetController(PDF3DController tool_tag);
345 
357  void SetRenderMode(PDF3DRenderMode render_mode);
358 
366  FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent);
367 
378  void UpdateCanvas(RectI rect);
379 
390  void OnLButtonDown(int flag, PointF point);
391 
402  void OnLButtonUp(int flag, PointF point);
403 
414  void OnMouseMove(int flag, PointF point);
415 
427  void OnMouseWheel(int flag, int delta, PointF point);
428 
439  void OnRButtonDown(int flag, PointF point);
440 
451  void OnRButtonUp(int flag, PointF point);
452 
460  void ResetDefaultView();
461 
469  PDF3DAnnotViewDataArray GetPresetViewList();
470 
480  void ApplyPresetView(const PDF3DAnnotViewData& view_data);
481 
490 
491  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
492  explicit PDF3DAnnotInstance(FS_HANDLE handle);
493 };
496 
497 
498 class PDF3DAnnot FS_FINAL : public Base{
499  public:
505  typedef enum _PDF3DType {
507  e_3DTypeArtwork = 0,
509  e_3DTypeRichMedia = 1
510  } PDF3DType;
511 
512 
514  ~PDF3DAnnot();
515 
521  PDF3DAnnot(const PDF3DAnnot& other);
522 
530  PDF3DAnnot& operator=(const PDF3DAnnot& other);
531 
539  bool operator==(const PDF3DAnnot& other) const;
540 
548  bool operator!=(const PDF3DAnnot& other) const;
549 
557  bool IsEmpty() const;
558 
564  int GetAnnotIndex();
565 
571  pdf::annots::Annot GetAnnot();
572 
579  PDF3DType Get3DAnnotType();
580 
588  PDF3DAnnotInstance Get3DArtworkInstance();
589 
597  PDF3DAnnotInstanceArray GetRichMediaInstances();
598 
599  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
600  explicit PDF3DAnnot(FS_HANDLE handle);
601 };
602 FSDK_DEFINE_ARRAY(PDF3DAnnotArray, PDF3DAnnot)
603 
604 
605 class PDF3DLaunchSetting FS_FINAL : public Object {
606  public:
612  typedef enum _PDF3DActivationEnableSetting {
614  e_3DActivationEnableSettingContentClicked = 0,
616  e_3DActivationEnableSettingPageOpened = 1,
618  e_3DActivationEnableSettingPageVisible = 2
619  } PDF3DActivationEnableSetting;
620 
626  typedef enum _PDF3DActivationDisableSetting {
628  e_3DActivationDisableSettingContextMenuSelected = 0,
630  e_3DActivationDisableSettingPageClosed = 1,
632  e_3DActivationDisableSettingPageInvisible = 2
633  } PDF3DActivationDisableSetting;
634 
640  typedef enum _PDF3DActivationPlaybackStyleSetting {
642  e_3DActivationPlaybackStyleOnPage = 0,
644  e_3DActivationPlaybackStyleInFloatingWindow = 1
645  } PDF3DActivationPlaybackStyleSetting;
646 
652  typedef enum _PDF3DAppearanceSettingBorderWidth {
654  e_3DAppearanceSettingBorderWidthNone = 0,
656  e_3DAppearanceSettingBorderWidthThin = 1,
658  e_3DAppearanceSettingBorderWidthMedium = 2,
660  e_3DAppearanceSettingBorderWidthThick = 3
661  } PDF3DAppearanceSettingBorderWidth;
662 
668  typedef enum _PDF3DPosterImageSetting {
670  e_3DPosterImageKeepCurrent = 0,
672  e_3DPosterImageRetrieveFromDefaultView = 1,
674  e_3DPosterImageCreateFromFile = 2
675  } PDF3DPosterImageSetting;
676 
677 
680  : activation_enable(e_3DActivationEnableSettingContentClicked)
681  , activation_disable(e_3DActivationDisableSettingContextMenuSelected)
682  , activation_playback(e_3DActivationPlaybackStyleOnPage)
683  , window_width(320)
684  , window_height(240)
685  , border_width(e_3DAppearanceSettingBorderWidthNone)
686  , is_transparent_background(false)
687  , poster_image(e_3DPosterImageKeepCurrent)
688  , poster_file_path(L"") {
689  }
690 
696  PDF3DLaunchSetting(const PDF3DLaunchSetting& launch_setting)
697  : activation_enable(launch_setting.activation_enable)
698  , activation_disable(launch_setting.activation_disable)
699  , activation_playback(launch_setting.activation_playback)
700  , window_width(launch_setting.window_width)
701  , window_height(launch_setting.window_height)
702  , border_width(launch_setting.border_width)
703  , is_transparent_background(launch_setting.is_transparent_background)
704  , poster_image(launch_setting.poster_image)
705  , poster_file_path(launch_setting.poster_file_path) {
706  }
707 
732  PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height,
733  PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background,
734  PDF3DPosterImageSetting poster_image, WString poster_file_path) {
735  this->activation_enable = activation_enable;
736  this->activation_disable = activation_disable;
737  this->activation_playback = activation_playback;
738  this->window_width = window_width;
739  this->window_height = window_height;
740  this->border_width = border_width;
741  this->is_transparent_background = is_transparent_background;
742  this->poster_image = poster_image;
743  this->poster_file_path = poster_file_path;
744  }
745 
771  void Set(PDF3DActivationEnableSetting activation_enable, PDF3DActivationDisableSetting activation_disable ,
772  PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height,
773  PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background,
774  PDF3DPosterImageSetting poster_image, WString poster_file_path) {
775  this->activation_enable = activation_enable;
776  this->activation_disable = activation_disable;
777  this->activation_playback = activation_playback;
778  this->window_width = window_width;
779  this->window_height = window_height;
780  this->border_width = border_width;
781  this->is_transparent_background = is_transparent_background;
782  this->poster_image = poster_image;
783  this->poster_file_path = poster_file_path;
784  }
785 
794  this->activation_enable = launch_setting.activation_enable;
795  this->activation_disable = launch_setting.activation_disable;
796  this->activation_playback = launch_setting.activation_playback;
797  this->window_width = launch_setting.window_width;
798  this->window_height = launch_setting.window_height;
799  this->border_width = launch_setting.border_width;
800  this->is_transparent_background = launch_setting.is_transparent_background;
801  this->poster_image = launch_setting.poster_image;
802  this->poster_file_path = launch_setting.poster_file_path;
803  return *this;
804  }
805 
812 
819 
826 
831 
836 
843 
849 
856 
862 };
863 
865 class PDF3DAdvancedSetting FS_FINAL : public Object{
866  public:
872  typedef enum _PDF3DLightingScheme {
900 
906  typedef enum _PDF3DRenderingStyle {
940 
946  typedef enum _PDF3DAnimationStyle {
954 
960  typedef enum _PDF3DDefaultViews {
976 
977 
980  : background_color(0x5E5E5E)
985  , is_add_default_views(false)
987  , is_show_tool_bar(true)
988  , is_open_model_tree(false)
989  , script_file_path(L"") {
990  }
991 
998  : background_color(advanced_setting.background_color)
999  , lighting_scheme(advanced_setting.lighting_scheme)
1000  , rendering_style(advanced_setting.rendering_style)
1001  , animation_style(advanced_setting.animation_style)
1002  , default_views(advanced_setting.default_views)
1003  , is_add_default_views(advanced_setting.is_add_default_views)
1005  , is_show_tool_bar(advanced_setting.is_show_tool_bar)
1006  , is_open_model_tree(advanced_setting.is_open_model_tree)
1007  , script_file_path(advanced_setting.script_file_path) {
1008  }
1009 
1018  this->background_color = advanced_setting.background_color;
1019  this->lighting_scheme = advanced_setting.lighting_scheme;
1020  this->rendering_style = advanced_setting.rendering_style;
1021  this->animation_style = advanced_setting.animation_style;
1022  this->default_views = advanced_setting.default_views;
1023  this->is_add_default_views = advanced_setting.is_add_default_views;
1025  this->is_show_tool_bar = advanced_setting.is_show_tool_bar;
1026  this->is_open_model_tree = advanced_setting.is_open_model_tree;
1027  this->script_file_path = advanced_setting.script_file_path;
1028  return *this;
1029  }
1030 
1057  this->background_color = background_color;
1058  this->lighting_scheme = lighting_scheme;
1059  this->rendering_style = rendering_style;
1060  this->animation_style = animation_style;
1061  this->default_views = default_views;
1062  this->is_add_default_views = is_add_default_views;
1063  this->is_retain_views_and_comments = is_retain_views_and_comments;
1064  this->is_show_tool_bar = is_show_tool_bar;
1065  this->is_open_model_tree = is_open_model_tree;
1066  this->script_file_path = script_file_path;
1067  }
1096  this->background_color = background_color;
1097  this->lighting_scheme = lighting_scheme;
1098  this->rendering_style = rendering_style;
1099  this->animation_style = animation_style;
1100  this->default_views = default_views;
1101  this->is_add_default_views = is_add_default_views;
1102  this->is_retain_views_and_comments = is_retain_views_and_comments;
1103  this->is_show_tool_bar = is_show_tool_bar;
1104  this->is_open_model_tree = is_open_model_tree;
1105  this->script_file_path = script_file_path;
1106  }
1111 
1118 
1125 
1132 
1139 
1145 
1151 
1157 
1163 
1166 };
1167 
1176 class PDF3DContext FS_FINAL : public Base{
1177  public:
1179  explicit PDF3DContext(const pdf::PDFDoc& doc);
1180 
1186  PDF3DContext(const PDF3DContext& other);
1187 
1189  ~PDF3DContext();
1190 
1198  PDF3DContext& operator=(const PDF3DContext& other);
1199 
1207  bool operator==(const PDF3DContext& other) const;
1208 
1216  bool operator!=(const PDF3DContext& other) const;
1217 
1225  bool IsEmpty() const;
1226 
1236 
1244  void Invalidate();
1245 
1258  PDF3DAnnot Add3DAnnot(const wchar_t* threeD_file_path, int page_index, foxit::RectF rectf, void* screen_canvas_parent,
1259  PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting);
1260 
1274  PDF3DAnnot Add3DAnnot(foxit::common::file::ReaderCallback* threeD_file_read, int page_index, foxit::RectF rectf, void* screen_canvas_parent, PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting);
1275 
1276  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
1277  explicit PDF3DContext(FS_HANDLE handle = NULL);
1278 };
1279 
1280 } //pdf3d
1281 } //addon
1282 } //foxit
1283 #endif //FS_3DPDF_H_
1284 #endif //defined(_WIN32) || defined(_WIN64)
Definition: fs_pdf3d.h:216
PDF3DLightingScheme lighting_scheme
3D光源方案,请参考值从 PDF3DAdvancedSetting::e_3DLightingSchemeNone ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1117
PDF3DDefaultViews default_views
3D默认值视图设置。请参考值从 PDF3DAdvancedSetting::e_3DDefaultViewsNoViews ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1138
PDF3DAnnotViewData()
构造函数。
Definition: fs_pdf3d.h:35
PDF3DRenderMode
3D渲染模式的枚举。
Definition: fs_pdf3d.h:243
ModelNode GetNextSiblingNode()
获取当前节点的兄弟节点。
位置光源。
Definition: fs_pdf3d.h:90
void OnRButtonUp(int flag, PointF point)
释放右键时调用此函数。
int window_width
3D窗口宽度设置,默认值为320。
Definition: fs_pdf3d.h:830
PDF3DLightingScheme
3D光源方案枚举。
Definition: fs_pdf3d.h:872
PDF3DActivationDisableSetting
3D停用条件枚举设置。
Definition: fs_pdf3d.h:626
CFX_Object Object
对象类型。
Definition: fs_basictypes.h:221
PDF3DAnnotInstance & operator=(const PDF3DAnnotInstance &other)
赋值操作符。
PDF文档相关定义和类的头文件。
WString name
视图的名称,这是唯一名称。
Definition: fs_pdf3d.h:63
foxit::RGB background_color
背景色。默认值:0x5E5E5E。
Definition: fs_pdf3d.h:1110
程序化节点。
Definition: fs_pdf3d.h:98
void SetRenderMode(PDF3DRenderMode render_mode)
设置模型渲染模式。
PDF3DAnnotViewDataArray GetPresetViewList()
获取3D模型中所有预设视图的列表。
PDF3DAnnot Add3DAnnot(const wchar_t *threeD_file_path, int page_index, foxit::RectF rectf, void *screen_canvas_parent, PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting)
向PDF页面添加3D注释。
PDF3DAnnotInstance()
构造函数。
Definition: fs_pdf3d.h:278
uint32 RGB
RGB 颜色类型,24 位,((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:212
ModelNode GetFirstChildNode()
获取当前节点的首个孩子节点。
PDF3DAnimationStyle animation_style
3D动画类型,请参考值从 PDF3DAdvancedSetting::e_3DAnimationStyleNone ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1131
void ApplyPresetView(const PDF3DAnnotViewData &view_data)
应用预设视图。
Definition: fx_coordinates.h:30
此类表示3D注释视图的数据。
Definition: fs_pdf3d.h:32
3D 场景根。
Definition: fs_pdf3d.h:80
裁剪平面。
Definition: fs_pdf3d.h:96
此类代表3D注释。
Definition: fs_pdf3d.h:498
WString display_name
视图的显示名称。此名称可以与其他视图重复。
Definition: fs_pdf3d.h:60
void OnMouseWheel(int flag, int delta, PointF point)
滚动鼠标滚轮时调用此函数。
文件读取接口。
Definition: fx_stream.h:587
宽字符串类
Definition: fx_string.h:1457
占位辅助节点。
Definition: fs_pdf3d.h:102
WString script_file_path
脚本文件路径。
Definition: fs_pdf3d.h:1165
Definition: fs_pdf3d.h:1176
bool IsVisible()
检查当前节点是否可见。
PDF3DRenderingStyle rendering_style
3D渲染类型,请参考值从 PDF3DAdvancedSetting::e_3DRenderingStyleBoundingBox ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1124
此类表示PDF3DAnnotInstance的数组。
Definition: fs_pdf3d.h:495
左视图,俯视图,前视图,右视图,仰视图,后视图(透视)。
Definition: fs_pdf3d.h:972
PDF3DAnnotViewData(const PDF3DAnnotViewData &other)
带另一个3D注释视图数据对象的构造函数。
Definition: fs_pdf3d.h:42
WString poster_file_path
海报图象文件路径。 这个值只有当poster_image 为 PDF3DLaunchSetting::e_3DPosterImageCreateFromFile 时起作用。
Definition: fs_pdf3d.h:861
Definition: fs_pdfdoc.h:771
void SetVisible(bool is_visible)
设置当前节点的可见性。
int window_height
3D窗口高度设置,默认值为240。
Definition: fs_pdf3d.h:835
bool is_transparent_background
3D内容背景是否透明, true 表示透明, while false 不透明。默认值为 false。
Definition: fs_pdf3d.h:848
void OnLButtonDown(int flag, PointF point)
按下左键时调用此函数。
PDF3DModelNodeType
3D模型节点的枚举。
Definition: fs_pdf3d.h:78
void OnRButtonDown(int flag, PointF point)
按下右键时调用此函数。
bool operator!=(const ModelNode &other) const
不相等操作符。
FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent)
激活画布。
PDF3DActivationEnableSetting activation_enable
3D启用条件设置,请参考值从 PDF3DLaunchSetting::e_3DActivationEnableSettingContentClicked , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:811
组节点。
Definition: fs_pdf3d.h:82
PDF3DActivationDisableSetting activation_disable
3D停用条件设置,请参考值从 PDF3DLaunchSetting::e_3DActivationDisableSettingContextMenuSelected , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:818
bool is_retain_views_and_comments
是否保留视图、注释和脚本。 true 表示保留,false 表示不保留。默认值是 false。
Definition: fs_pdf3d.h:1150
左视图,俯视图,前视图,等轴侧视图(全部透视)。
Definition: fs_pdf3d.h:966
bool is_add_default_views
是否添加默认视图。 true 表示添加,false 表示不添加。默认值是 false.
Definition: fs_pdf3d.h:1144
bool operator==(const char *str1, const CFX_ByteString &str2)
检查两个字节字符串是否相等。
Definition: fs_basictypes.h:128
void Set(foxit::RGB background_color, PDF3DLightingScheme lighting_scheme, PDF3DRenderingStyle rendering_style, PDF3DAnimationStyle animation_style, PDF3DDefaultViews default_views, bool is_add_default_views, bool is_retain_views_and_comments, bool is_show_tool_bar, bool is_open_model_tree, WString script_file_path)
设置值。
Definition: fs_pdf3d.h:1092
Definition: fs_pdf3d.h:71
bool is_open_model_tree
是否打开模型树。 true 表示打开,false 表示不打开。默认值是 false。
Definition: fs_pdf3d.h:1162
PDF3DPosterImageSetting
3D启动类型对象枚举。
Definition: fs_pdf3d.h:668
PDF3DAppearanceSettingBorderWidth
3D边框宽度类型枚举。
Definition: fs_pdf3d.h:652
PDF3DAdvancedSetting()
默认构造函数。
Definition: fs_pdf3d.h:979
注释相关定义和类的头文件。
bool is_show_tool_bar
是否显示工具栏。 true 表示显示,false 表示不显示。默认值是 false。
Definition: fs_pdf3d.h:1156
void * FX_HWND
窗口句柄:HWND
Definition: fs_basictypes.h:218
PDF3DLaunchSetting()
构造函数。
Definition: fs_pdf3d.h:679
ModelNode()
构造函数。
Definition: fs_pdf3d.h:107
ModelNode GetParentNode()
获取当前节点的父亲节点。
PDF3DLaunchSetting & operator=(const PDF3DLaunchSetting &launch_setting)
赋值操作符。
Definition: fs_pdf3d.h:793
bool operator==(const PDF3DContext &other) const
相等操作符。
PDF3DRenderingStyle
3D渲染类型设置的枚举。
Definition: fs_pdf3d.h:906
ModelNode & operator=(const ModelNode &other)
赋值操作符。
PDF3DAdvancedSetting(const PDF3DAdvancedSetting &advanced_setting)
带另一个3D注释实例对象的构造函数。
Definition: fs_pdf3d.h:997
PDF3DModelNodeType GetNodeType()
获取节点类型。
bool operator==(const PDF3DAnnotInstance &other) const
相等操作符。
bool IsEmpty() const
检查当前对象是否为空。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:214
PDF3DActivationPlaybackStyleSetting activation_playback
3D回放类型设置,请参考值从 PDF3DLaunchSetting::e_3DActivationPlaybackStyleOnPage , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:825
通用定义和类的头文件。
bool operator!=(const PDF3DAnnotInstance &other) const
不相等操作符。
ModelNode GetRootNode()
获取3D模型树结构的根节点。
PDF3DAnimationStyle
3D默认动画类型的枚举。
Definition: fs_pdf3d.h:946
PDF3DLaunchSetting(PDF3DActivationEnableSetting activation_enable, PDF3DActivationDisableSetting activation_disable, PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height, PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background, PDF3DPosterImageSetting poster_image, WString poster_file_path)
带参数构造函数。
Definition: fs_pdf3d.h:731
PDF3DContext & operator=(const PDF3DContext &other)
赋值操作符。
Definition: fx_coordinates.h:596
void OnMouseMove(int flag, PointF point)
移动鼠标时调用此函数。
bool operator==(const ModelNode &other) const
相等操作符。
Definition: fs_basictypes.h:449
左视图,俯视图,前视图,等轴侧视图(全部正交)。
Definition: fs_pdf3d.h:964
PDF3DActivationEnableSetting
3D注释启动激活设置启用条件的枚举。
Definition: fs_pdf3d.h:612
左视图,俯视图,前视图,(正交)等轴侧视图(透视)。
Definition: fs_pdf3d.h:968
左视图,俯视图,前视图,(透视)等轴侧视图(正交)。
Definition: fs_pdf3d.h:970
观察视角定义。
Definition: fs_pdf3d.h:94
Definition: fs_annot.h:947
PDF3DPosterImageSetting poster_image
海报图象设置。请参考值从 PDF3DLaunchSetting::e_3DPosterImageKeepCurrent , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:855
PDF3DLaunchSetting(const PDF3DLaunchSetting &launch_setting)
带另一个3D启动设置对象的构造函数。
Definition: fs_pdf3d.h:696
void UpdateCanvas(RectI rect)
更新画布。
pdf::annots::Annot GetAnnot()
获取关联的注释。
Foxit命名空间。
Definition: fs_pdf3d.h:26
PDF3DAdvancedSetting(foxit::RGB background_color, PDF3DLightingScheme lighting_scheme, PDF3DRenderingStyle rendering_style, PDF3DAnimationStyle animation_style, PDF3DDefaultViews default_views, bool is_add_default_views, bool is_retain_views_and_comments, bool is_show_tool_bar, bool is_open_model_tree, WString script_file_path)
带参数的构造函数。
Definition: fs_pdf3d.h:1053
bool IsEmpty() const
检查当前对象是否为空。
PDF3DAnnotInstanceArray GetPage3DAnnotArray(int page_index)
根据页面索引获取3D注释实例对象数组。
PDF3DAnnotViewData & operator=(const PDF3DAnnotViewData &data)
赋值操作符。
Definition: fs_pdf3d.h:53
Definition: fs_pdf3d.h:605
PDF3DAppearanceSettingBorderWidth border_width
3D边框类型,请参考值从 PDF3DLaunchSetting::e_3DAppearanceSettingBorderWidthNone , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:842
PDF3DAdvancedSetting & operator=(const PDF3DAdvancedSetting &advanced_setting)
赋值操作符。
Definition: fs_pdf3d.h:1017
void Set(PDF3DActivationEnableSetting activation_enable, PDF3DActivationDisableSetting activation_disable, PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height, PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background, PDF3DPosterImageSetting poster_image, WString poster_file_path)
设置值。
Definition: fs_pdf3d.h:771
#define NULL
空指针值。
Definition: fx_system.h:792
void Invalidate()
刷新3D对象。
void SetController(PDF3DController tool_tag)
设置控制器。
bool operator!=(const char *str1, const CFX_ByteString &str2)
检查两个字节字符串是否不相等。
Definition: fs_basictypes.h:140
面向屏幕的公告板对象
Definition: fs_pdf3d.h:86
来自3D文件中的视图。
Definition: fs_pdf3d.h:974
bool IsEmpty() const
检查当前对象是否为空。
PDF3DContext(const pdf::PDFDoc &doc)
带PDF文档对象的构造函数。
PDF3DController
3D控制器工具的枚举。
Definition: fs_pdf3d.h:223
PDF3DDefaultViews
3D默认视图类型的枚举。
Definition: fs_pdf3d.h:960
蒙皮动画骨架。
Definition: fs_pdf3d.h:100
全局环境照明。
Definition: fs_pdf3d.h:92
bool operator!=(const PDF3DContext &other) const
不相等操作符。
WString GetName()
获取当前节点的名字。
标记。
Definition: fs_pdf3d.h:88
PDF3DActivationPlaybackStyleSetting
3D回放类型设置枚举。
Definition: fs_pdf3d.h:640
几何体
Definition: fs_pdf3d.h:84
void ResetDefaultView()
将视图重置为默认视图,3D模型将重置为其默认状态。
void OnLButtonUp(int flag, PointF point)
释放左键时调用此函数。
Definition: fx_coordinates.h:771