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 
337  void SetController(PDF3DController tool_tag);
338 
350  void SetRenderMode(PDF3DRenderMode render_mode);
351 
359  FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent);
360 
371  void UpdateCanvas(RectI rect);
372 
383  void OnLButtonDown(int flag, PointF point);
384 
395  void OnLButtonUp(int flag, PointF point);
396 
407  void OnMouseMove(int flag, PointF point);
408 
420  void OnMouseWheel(int flag, int delta, PointF point);
421 
432  void OnRButtonDown(int flag, PointF point);
433 
444  void OnRButtonUp(int flag, PointF point);
445 
453  void ResetDefaultView();
454 
462  PDF3DAnnotViewDataArray GetPresetViewList();
463 
473  void ApplyPresetView(const PDF3DAnnotViewData& view_data);
474 
483 
484  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
485  explicit PDF3DAnnotInstance(FS_HANDLE handle);
486 };
489 
490 
491 class PDF3DAnnot FS_FINAL : public Base{
492  public:
498  typedef enum _PDF3DType {
500  e_3DTypeArtwork = 0,
502  e_3DTypeRichMedia = 1
503  } PDF3DType;
504 
505 
507  ~PDF3DAnnot();
508 
514  PDF3DAnnot(const PDF3DAnnot& other);
515 
523  PDF3DAnnot& operator=(const PDF3DAnnot& other);
524 
532  bool operator==(const PDF3DAnnot& other) const;
533 
541  bool operator!=(const PDF3DAnnot& other) const;
542 
550  bool IsEmpty() const;
551 
557  int GetAnnotIndex();
558 
564  pdf::annots::Annot GetAnnot();
565 
572  PDF3DType Get3DAnnotType();
573 
581  PDF3DAnnotInstance Get3DArtworkInstance();
582 
590  PDF3DAnnotInstanceArray GetRichMediaInstances();
591 
592  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
593  explicit PDF3DAnnot(FS_HANDLE handle);
594 };
595 FSDK_DEFINE_ARRAY(PDF3DAnnotArray, PDF3DAnnot)
596 
597 
598 class PDF3DLaunchSetting FS_FINAL : public Object {
599  public:
605  typedef enum _PDF3DActivationEnableSetting {
607  e_3DActivationEnableSettingContentClicked = 0,
609  e_3DActivationEnableSettingPageOpened = 1,
611  e_3DActivationEnableSettingPageVisible = 2
612  } PDF3DActivationEnableSetting;
613 
619  typedef enum _PDF3DActivationDisableSetting {
621  e_3DActivationDisableSettingContextMenuSelected = 0,
623  e_3DActivationDisableSettingPageClosed = 1,
625  e_3DActivationDisableSettingPageInvisible = 2
626  } PDF3DActivationDisableSetting;
627 
633  typedef enum _PDF3DActivationPlaybackStyleSetting {
635  e_3DActivationPlaybackStyleOnPage = 0,
637  e_3DActivationPlaybackStyleInFloatingWindow = 1
638  } PDF3DActivationPlaybackStyleSetting;
639 
645  typedef enum _PDF3DAppearanceSettingBorderWidth {
647  e_3DAppearanceSettingBorderWidthNone = 0,
649  e_3DAppearanceSettingBorderWidthThin = 1,
651  e_3DAppearanceSettingBorderWidthMedium = 2,
653  e_3DAppearanceSettingBorderWidthThick = 3
654  } PDF3DAppearanceSettingBorderWidth;
655 
661  typedef enum _PDF3DPosterImageSetting {
663  e_3DPosterImageKeepCurrent = 0,
665  e_3DPosterImageRetrieveFromDefaultView = 1,
667  e_3DPosterImageCreateFromFile = 2
668  } PDF3DPosterImageSetting;
669 
670 
673  : activation_enable(e_3DActivationEnableSettingContentClicked)
674  , activation_disable(e_3DActivationDisableSettingContextMenuSelected)
675  , activation_playback(e_3DActivationPlaybackStyleOnPage)
676  , window_width(320)
677  , window_height(240)
678  , border_width(e_3DAppearanceSettingBorderWidthNone)
679  , is_transparent_background(false)
680  , poster_image(e_3DPosterImageKeepCurrent)
681  , poster_file_path(L"") {
682  }
683 
689  PDF3DLaunchSetting(const PDF3DLaunchSetting& launch_setting)
690  : activation_enable(launch_setting.activation_enable)
691  , activation_disable(launch_setting.activation_disable)
692  , activation_playback(launch_setting.activation_playback)
693  , window_width(launch_setting.window_width)
694  , window_height(launch_setting.window_height)
695  , border_width(launch_setting.border_width)
696  , is_transparent_background(launch_setting.is_transparent_background)
697  , poster_image(launch_setting.poster_image)
698  , poster_file_path(launch_setting.poster_file_path) {
699  }
700 
725  PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height,
726  PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background,
727  PDF3DPosterImageSetting poster_image, WString poster_file_path) {
728  this->activation_enable = activation_enable;
729  this->activation_disable = activation_disable;
730  this->activation_playback = activation_playback;
731  this->window_width = window_width;
732  this->window_height = window_height;
733  this->border_width = border_width;
734  this->is_transparent_background = is_transparent_background;
735  this->poster_image = poster_image;
736  this->poster_file_path = poster_file_path;
737  }
738 
764  void Set(PDF3DActivationEnableSetting activation_enable, PDF3DActivationDisableSetting activation_disable ,
765  PDF3DActivationPlaybackStyleSetting activation_playback, int window_width, int window_height,
766  PDF3DAppearanceSettingBorderWidth border_width, bool is_transparent_background,
767  PDF3DPosterImageSetting poster_image, WString poster_file_path) {
768  this->activation_enable = activation_enable;
769  this->activation_disable = activation_disable;
770  this->activation_playback = activation_playback;
771  this->window_width = window_width;
772  this->window_height = window_height;
773  this->border_width = border_width;
774  this->is_transparent_background = is_transparent_background;
775  this->poster_image = poster_image;
776  this->poster_file_path = poster_file_path;
777  }
778 
787  this->activation_enable = launch_setting.activation_enable;
788  this->activation_disable = launch_setting.activation_disable;
789  this->activation_playback = launch_setting.activation_playback;
790  this->window_width = launch_setting.window_width;
791  this->window_height = launch_setting.window_height;
792  this->border_width = launch_setting.border_width;
793  this->is_transparent_background = launch_setting.is_transparent_background;
794  this->poster_image = launch_setting.poster_image;
795  this->poster_file_path = launch_setting.poster_file_path;
796  return *this;
797  }
798 
805 
812 
819 
824 
829 
836 
842 
849 
855 };
856 
858 class PDF3DAdvancedSetting FS_FINAL : public Object{
859  public:
865  typedef enum _PDF3DLightingScheme {
893 
899  typedef enum _PDF3DRenderingStyle {
933 
939  typedef enum _PDF3DAnimationStyle {
947 
953  typedef enum _PDF3DDefaultViews {
969 
970 
973  : background_color(0x5E5E5E)
978  , is_add_default_views(false)
980  , is_show_tool_bar(true)
981  , is_open_model_tree(false)
982  , script_file_path(L"") {
983  }
984 
991  : background_color(advanced_setting.background_color)
992  , lighting_scheme(advanced_setting.lighting_scheme)
993  , rendering_style(advanced_setting.rendering_style)
994  , animation_style(advanced_setting.animation_style)
995  , default_views(advanced_setting.default_views)
996  , is_add_default_views(advanced_setting.is_add_default_views)
998  , is_show_tool_bar(advanced_setting.is_show_tool_bar)
999  , is_open_model_tree(advanced_setting.is_open_model_tree)
1000  , script_file_path(advanced_setting.script_file_path) {
1001  }
1002 
1011  this->background_color = advanced_setting.background_color;
1012  this->lighting_scheme = advanced_setting.lighting_scheme;
1013  this->rendering_style = advanced_setting.rendering_style;
1014  this->animation_style = advanced_setting.animation_style;
1015  this->default_views = advanced_setting.default_views;
1016  this->is_add_default_views = advanced_setting.is_add_default_views;
1018  this->is_show_tool_bar = advanced_setting.is_show_tool_bar;
1019  this->is_open_model_tree = advanced_setting.is_open_model_tree;
1020  this->script_file_path = advanced_setting.script_file_path;
1021  return *this;
1022  }
1023 
1050  this->background_color = background_color;
1051  this->lighting_scheme = lighting_scheme;
1052  this->rendering_style = rendering_style;
1053  this->animation_style = animation_style;
1054  this->default_views = default_views;
1055  this->is_add_default_views = is_add_default_views;
1056  this->is_retain_views_and_comments = is_retain_views_and_comments;
1057  this->is_show_tool_bar = is_show_tool_bar;
1058  this->is_open_model_tree = is_open_model_tree;
1059  this->script_file_path = script_file_path;
1060  }
1089  this->background_color = background_color;
1090  this->lighting_scheme = lighting_scheme;
1091  this->rendering_style = rendering_style;
1092  this->animation_style = animation_style;
1093  this->default_views = default_views;
1094  this->is_add_default_views = is_add_default_views;
1095  this->is_retain_views_and_comments = is_retain_views_and_comments;
1096  this->is_show_tool_bar = is_show_tool_bar;
1097  this->is_open_model_tree = is_open_model_tree;
1098  this->script_file_path = script_file_path;
1099  }
1104 
1111 
1118 
1125 
1132 
1138 
1144 
1150 
1156 
1159 };
1160 
1169 class PDF3DContext FS_FINAL : public Base{
1170  public:
1172  explicit PDF3DContext(const pdf::PDFDoc& doc);
1173 
1179  PDF3DContext(const PDF3DContext& other);
1180 
1182  ~PDF3DContext();
1183 
1191  PDF3DContext& operator=(const PDF3DContext& other);
1192 
1200  bool operator==(const PDF3DContext& other) const;
1201 
1209  bool operator!=(const PDF3DContext& other) const;
1210 
1218  bool IsEmpty() const;
1219 
1228  PDF3DAnnotArray GetPage3DAnnotArray(int page_index);
1229 
1237  void Invalidate();
1238 
1251  PDF3DAnnot Add3DAnnot(const wchar_t* threeD_file_path, int page_index, foxit::RectF rectf, void* screen_canvas_parent,
1252  PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting);
1253 
1267  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);
1268 
1269  // 强烈建议用户不要使用此方法;否则可能发生未知情况。
1270  explicit PDF3DContext(FS_HANDLE handle = NULL);
1271 };
1272 } //pdf3d
1273 } //addon
1274 } //foxit
1275 #endif //FS_3DPDF_H_
1276 #endif //defined(_WIN32) || defined(_WIN64)
Definition: fs_pdf3d.h:216
PDF3DLightingScheme lighting_scheme
3D光源方案,请参考值从 PDF3DAdvancedSetting::e_3DLightingSchemeNone ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1110
PDF3DDefaultViews default_views
3D默认值视图设置。请参考值从 PDF3DAdvancedSetting::e_3DDefaultViewsNoViews ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1131
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:823
PDF3DLightingScheme
3D光源方案枚举。
Definition: fs_pdf3d.h:865
PDF3DActivationDisableSetting
3D停用条件枚举设置。
Definition: fs_pdf3d.h:619
CFX_Object Object
对象类型。
Definition: fs_basictypes.h:220
PDF3DAnnotInstance & operator=(const PDF3DAnnotInstance &other)
赋值操作符。
PDF文档相关定义和类的头文件。
WString name
视图的名称,这是唯一名称。
Definition: fs_pdf3d.h:63
foxit::RGB background_color
背景色。默认值:0x5E5E5E。
Definition: fs_pdf3d.h:1103
程序化节点。
Definition: fs_pdf3d.h:98
void SetRenderMode(PDF3DRenderMode render_mode)
设置模型渲染模式。
PDF3DAnnotArray GetPage3DAnnotArray(int page_index)
根据页面索引获取3D注释实例对象数组。
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:211
ModelNode GetFirstChildNode()
获取当前节点的首个孩子节点。
PDF3DAnimationStyle animation_style
3D动画类型,请参考值从 PDF3DAdvancedSetting::e_3DAnimationStyleNone ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1124
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:491
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:1158
Definition: fs_pdf3d.h:1169
bool IsVisible()
检查当前节点是否可见。
PDF3DRenderingStyle rendering_style
3D渲染类型,请参考值从 PDF3DAdvancedSetting::e_3DRenderingStyleBoundingBox ,它的值将是 这些值中的一个。
Definition: fs_pdf3d.h:1117
此类表示PDF3DAnnotInstance的数组。
Definition: fs_pdf3d.h:488
左视图,俯视图,前视图,右视图,仰视图,后视图(透视)。
Definition: fs_pdf3d.h:965
PDF3DAnnotViewData(const PDF3DAnnotViewData &other)
带另一个3D注释视图数据对象的构造函数。
Definition: fs_pdf3d.h:42
WString poster_file_path
海报图象文件路径。 这个值只有当poster_image 为 PDF3DLaunchSetting::e_3DPosterImageCreateFromFile 时起作用。
Definition: fs_pdf3d.h:854
Definition: fs_pdfdoc.h:768
void SetVisible(bool is_visible)
设置当前节点的可见性。
int window_height
3D窗口高度设置,默认值为240。
Definition: fs_pdf3d.h:828
bool is_transparent_background
3D内容背景是否透明, true 表示透明, while false 不透明。默认值为 false。
Definition: fs_pdf3d.h:841
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:804
组节点。
Definition: fs_pdf3d.h:82
PDF3DActivationDisableSetting activation_disable
3D停用条件设置,请参考值从 PDF3DLaunchSetting::e_3DActivationDisableSettingContextMenuSelected , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:811
bool is_retain_views_and_comments
是否保留视图、注释和脚本。 true 表示保留,false 表示不保留。默认值是 false。
Definition: fs_pdf3d.h:1143
左视图,俯视图,前视图,等轴侧视图(全部透视)。
Definition: fs_pdf3d.h:959
bool is_add_default_views
是否添加默认视图。 true 表示添加,false 表示不添加。默认值是 false.
Definition: fs_pdf3d.h:1137
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:1085
Definition: fs_pdf3d.h:71
bool is_open_model_tree
是否打开模型树。 true 表示打开,false 表示不打开。默认值是 false。
Definition: fs_pdf3d.h:1155
PDF3DPosterImageSetting
3D启动类型对象枚举。
Definition: fs_pdf3d.h:661
PDF3DAppearanceSettingBorderWidth
3D边框宽度类型枚举。
Definition: fs_pdf3d.h:645
PDF3DAdvancedSetting()
默认构造函数。
Definition: fs_pdf3d.h:972
注释相关定义和类的头文件。
bool is_show_tool_bar
是否显示工具栏。 true 表示显示,false 表示不显示。默认值是 false。
Definition: fs_pdf3d.h:1149
void * FX_HWND
Window handle: HWND
Definition: fs_basictypes.h:217
PDF3DLaunchSetting()
构造函数。
Definition: fs_pdf3d.h:672
ModelNode()
构造函数。
Definition: fs_pdf3d.h:107
ModelNode GetParentNode()
获取当前节点的父亲节点。
PDF3DLaunchSetting & operator=(const PDF3DLaunchSetting &launch_setting)
赋值操作符。
Definition: fs_pdf3d.h:786
bool operator==(const PDF3DContext &other) const
相等操作符。
PDF3DRenderingStyle
3D渲染类型设置的枚举。
Definition: fs_pdf3d.h:899
ModelNode & operator=(const ModelNode &other)
赋值操作符。
PDF3DAdvancedSetting(const PDF3DAdvancedSetting &advanced_setting)
带另一个3D注释实例对象的构造函数。
Definition: fs_pdf3d.h:990
PDF3DModelNodeType GetNodeType()
获取节点类型。
bool operator==(const PDF3DAnnotInstance &other) const
相等操作符。
bool IsEmpty() const
检查当前对象是否为空。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
PDF3DActivationPlaybackStyleSetting activation_playback
3D回放类型设置,请参考值从 PDF3DLaunchSetting::e_3DActivationPlaybackStyleOnPage , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:818
通用定义和类的头文件。
bool operator!=(const PDF3DAnnotInstance &other) const
不相等操作符。
ModelNode GetRootNode()
获取3D模型树结构的根节点。
PDF3DAnimationStyle
3D默认动画类型的枚举。
Definition: fs_pdf3d.h:939
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:724
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:465
左视图,俯视图,前视图,等轴侧视图(全部正交)。
Definition: fs_pdf3d.h:957
PDF3DActivationEnableSetting
3D注释启动激活设置启用条件的枚举。
Definition: fs_pdf3d.h:605
左视图,俯视图,前视图,(正交)等轴侧视图(透视)。
Definition: fs_pdf3d.h:961
左视图,俯视图,前视图,(透视)等轴侧视图(正交)。
Definition: fs_pdf3d.h:963
观察视角定义。
Definition: fs_pdf3d.h:94
Definition: fs_annot.h:950
PDF3DPosterImageSetting poster_image
海报图象设置。请参考值从 PDF3DLaunchSetting::e_3DPosterImageKeepCurrent , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:848
PDF3DLaunchSetting(const PDF3DLaunchSetting &launch_setting)
带另一个3D启动设置对象的构造函数。
Definition: fs_pdf3d.h:689
void UpdateCanvas(RectI rect)
更新画布。
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:1046
bool IsEmpty() const
检查当前对象是否为空。
PDF3DAnnotViewData & operator=(const PDF3DAnnotViewData &data)
赋值操作符。
Definition: fs_pdf3d.h:53
Definition: fs_pdf3d.h:598
PDF3DAppearanceSettingBorderWidth border_width
3D边框类型,请参考值从 PDF3DLaunchSetting::e_3DAppearanceSettingBorderWidthNone , 它的值将是这些值中的一个。
Definition: fs_pdf3d.h:835
PDF3DAdvancedSetting & operator=(const PDF3DAdvancedSetting &advanced_setting)
赋值操作符。
Definition: fs_pdf3d.h:1010
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:764
#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:967
bool IsEmpty() const
检查当前对象是否为空。
PDF3DContext(const pdf::PDFDoc &doc)
带PDF文档对象的构造函数。
PDF3DController
3D控制器工具的枚举。
Definition: fs_pdf3d.h:223
PDF3DDefaultViews
3D默认视图类型的枚举。
Definition: fs_pdf3d.h:953
蒙皮动画骨架。
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:633
几何体
Definition: fs_pdf3d.h:84
void ResetDefaultView()
将视图重置为默认视图,3D模型将重置为其默认状态。
void OnLButtonUp(int flag, PointF point)
释放左键时调用此函数。
Definition: fx_coordinates.h:771