1 #if (defined(_WIN32) || defined(_WIN64)) || defined(__EMSCRIPTEN__) 81 typedef enum _PDF3DModelNodeType {
93 e_TypePunctualLight = 5,
95 e_TypeAmbientLight = 6,
99 e_TypeClippingPlane = 8,
101 e_TypeProcedural = 9,
106 } PDF3DModelNodeType;
128 bool IsEmpty()
const;
163 PDF3DModelNodeType GetNodeType();
201 void SetVisible(
bool is_visible);
226 typedef enum _PDF3DController {
246 typedef enum _PDF3DRenderMode {
501 typedef enum _PDF3DType {
505 e_3DTypeRichMedia = 1
553 bool IsEmpty()
const;
575 PDF3DType Get3DAnnotType();
598 FSDK_DEFINE_ARRAY(PDF3DAnnotArray, PDF3DAnnot)
608 typedef enum _PDF3DActivationEnableSetting {
610 e_3DActivationEnableSettingContentClicked = 0,
612 e_3DActivationEnableSettingPageOpened = 1,
614 e_3DActivationEnableSettingPageVisible = 2
615 } PDF3DActivationEnableSetting;
622 typedef enum _PDF3DActivationDisableSetting {
624 e_3DActivationDisableSettingContextMenuSelected = 0,
626 e_3DActivationDisableSettingPageClosed = 1,
628 e_3DActivationDisableSettingPageInvisible = 2
629 } PDF3DActivationDisableSetting;
636 typedef enum _PDF3DActivationPlaybackStyleSetting {
638 e_3DActivationPlaybackStyleOnPage = 0,
640 e_3DActivationPlaybackStyleInFloatingWindow = 1
641 } PDF3DActivationPlaybackStyleSetting;
648 typedef enum _PDF3DAppearanceSettingBorderWidth {
650 e_3DAppearanceSettingBorderWidthNone = 0,
652 e_3DAppearanceSettingBorderWidthThin = 1,
654 e_3DAppearanceSettingBorderWidthMedium = 2,
656 e_3DAppearanceSettingBorderWidthThick = 3
657 } PDF3DAppearanceSettingBorderWidth;
664 typedef enum _PDF3DPosterImageSetting {
666 e_3DPosterImageKeepCurrent = 0,
668 e_3DPosterImageRetrieveFromDefaultView = 1,
670 e_3DPosterImageCreateFromFile = 2
671 } PDF3DPosterImageSetting;
676 : activation_enable(e_3DActivationEnableSettingContentClicked)
677 , activation_disable(e_3DActivationDisableSettingContextMenuSelected)
678 , activation_playback(e_3DActivationPlaybackStyleOnPage)
681 , border_width(e_3DAppearanceSettingBorderWidthNone)
682 , is_transparent_background(false)
683 , poster_image(e_3DPosterImageKeepCurrent)
684 , poster_file_path(L
"") {
693 : activation_enable(launch_setting.activation_enable)
694 , activation_disable(launch_setting.activation_disable)
695 , activation_playback(launch_setting.activation_playback)
696 , window_width(launch_setting.window_width)
697 , window_height(launch_setting.window_height)
698 , border_width(launch_setting.border_width)
699 , is_transparent_background(launch_setting.is_transparent_background)
700 , poster_image(launch_setting.poster_image)
701 , poster_file_path(launch_setting.poster_file_path) {
731 this->activation_enable = activation_enable;
732 this->activation_disable = activation_disable;
733 this->activation_playback = activation_playback;
734 this->window_width = window_width;
735 this->window_height = window_height;
736 this->border_width = border_width;
737 this->is_transparent_background = is_transparent_background;
738 this->poster_image = poster_image;
739 this->poster_file_path = poster_file_path;
771 this->activation_enable = activation_enable;
772 this->activation_disable = activation_disable;
773 this->activation_playback = activation_playback;
774 this->window_width = window_width;
775 this->window_height = window_height;
776 this->border_width = border_width;
777 this->is_transparent_background = is_transparent_background;
778 this->poster_image = poster_image;
779 this->poster_file_path = poster_file_path;
868 typedef enum _PDF3DLightingScheme {
902 typedef enum _PDF3DRenderingStyle {
942 typedef enum _PDF3DAnimationStyle {
956 typedef enum _PDF3DDefaultViews {
1278 #endif //FS_3DPDF_H_ 1279 #endif //defined(_WIN32) || defined(_WIN64) Wireframe.
Definition: fs_pdf3d.h:916
Definition: fs_pdf3d.h:219
Solid wireframe.
Definition: fs_pdf3d.h:924
PDF3DLightingScheme lighting_scheme
The lighting scheme setting for 3D. Please refer to values starting from PDF3DAdvancedSetting::e_3DLi...
Definition: fs_pdf3d.h:1113
PDF3DDefaultViews default_views
The default views setting for 3D. Please refer to values starting from PDF3DAdvancedSetting::e_3DDefa...
Definition: fs_pdf3d.h:1134
PDF3DAnnotViewData()
Constructor.
Definition: fs_pdf3d.h:35
PDF3DRenderMode
Enumeration for the 3D render mode.
Definition: fs_pdf3d.h:246
spin.
Definition: fs_pdf3d.h:230
Shaded vertices.
Definition: fs_pdf3d.h:276
void OnRButtonUp(int flag, PointF point)
Call this function when releasing the right button.
int window_width
The window width setting for 3D. Default value is 320.
Definition: fs_pdf3d.h:826
walk.
Definition: fs_pdf3d.h:236
Transparent bounding box.
Definition: fs_pdf3d.h:260
PDF3DLightingScheme
Enumeration for lighting scheme for the 3D advanced setting type.
Definition: fs_pdf3d.h:868
PDF3DActivationDisableSetting
Enumeration for activation disable setting for the 3D launch setting type.
Definition: fs_pdf3d.h:622
fly.
Definition: fs_pdf3d.h:238
CFX_Object Object
Object type.
Definition: fs_basictypes.h:220
PDF3DAnnotInstance & operator=(const PDF3DAnnotInstance &other)
Assign operator.
Header file for PDF document related definitions and classes.
WString name
The name of the view, which is the unique name.
Definition: fs_pdf3d.h:63
Day lights.
Definition: fs_pdf3d.h:878
foxit::RGB background_color
The background color.Default value: 0x5e5e5e.
Definition: fs_pdf3d.h:1106
void SetRenderMode(PDF3DRenderMode render_mode)
Set model render mode.
White lights.
Definition: fs_pdf3d.h:876
PDF3DAnnotArray GetPage3DAnnotArray(int page_index)
Get 3d annot objects array by page index.
PDF3DAnnotViewDataArray GetPresetViewList()
Get the list of all preset views in the 3D model.
PDF3DAnnot Add3DAnnot(const wchar_t *threeD_file_path, int page_index, foxit::RectF rectf, void *screen_canvas_parent, PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting)
Add a 3D annotation to the PDF page.
PDF3DAnnotInstance()
Constructor.
Definition: fs_pdf3d.h:281
Transparent bounding box outline.
Definition: fs_pdf3d.h:910
uint32 RGB
RGB color type, 24 bits, ((b) | ((g) << 8) | ((r) << 16)))
Definition: fs_basictypes.h:211
PDF3DAnimationStyle animation_style
The activation animation style setting for 3D. Please refer to values starting from PDF3DAdvancedSett...
Definition: fs_pdf3d.h:1127
Shaded vertices.
Definition: fs_pdf3d.h:914
void ApplyPresetView(const PDF3DAnnotViewData &view_data)
Apply the preset view .
Definition: fx_coordinates.h:30
This class represents the data of a 3D annotation view.
Definition: fs_pdf3d.h:32
This class represents PDF 3D annotation.
Definition: fs_pdf3d.h:494
WString display_name
The display name of the view. This name can be duplicated with other views.
Definition: fs_pdf3d.h:60
void OnMouseWheel(int flag, int delta, PointF point)
Call this function when scrolling the mouse wheel.
Vertices.
Definition: fs_pdf3d.h:912
File reading interface.
Definition: fx_stream.h:587
WIDE STRING CLASS.
Definition: fx_string.h:1461
Shaded wireframe.
Definition: fs_pdf3d.h:918
WString script_file_path
This flag indicates the script file path.
Definition: fs_pdf3d.h:1161
Definition: fs_pdf3d.h:1172
PDF3DRenderingStyle rendering_style
The activation rendering style setting for 3D. Please refer to values starting from PDF3DAdvancedSett...
Definition: fs_pdf3d.h:1120
This class represents an array of PDF3DAnnotInstance.
Definition: fs_pdf3d.h:491
Left,top,right,front,bottom,back(all ortho).
Definition: fs_pdf3d.h:968
PDF3DAnnotViewData(const PDF3DAnnotViewData &other)
Constructor, with another 3D annot view data object.
Definition: fs_pdf3d.h:42
WString poster_file_path
The file path of poster image. This field is valid only when poster_image is set to PDF3DLaunchSettin...
Definition: fs_pdf3d.h:857
Definition: fs_pdfdoc.h:776
int window_height
The window height setting for 3D. Default value is 240.
Definition: fs_pdf3d.h:831
No views.
Definition: fs_pdf3d.h:958
bool is_transparent_background
This flag indicates whether the 3D content background is transparent. true means transparent,...
Definition: fs_pdf3d.h:844
void OnLButtonDown(int flag, PointF point)
Call this function when pressing the left button.
Headlamp.
Definition: fs_pdf3d.h:894
Transparent.
Definition: fs_pdf3d.h:922
Hidden wireframe.
Definition: fs_pdf3d.h:268
void OnRButtonDown(int flag, PointF point)
Call this function when pressing the right button.
Loop.
Definition: fs_pdf3d.h:946
FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent)
Activate canvas.
CAD lights.
Definition: fs_pdf3d.h:892
PDF3DActivationEnableSetting activation_enable
The activation enable setting for 3D. Please refer to values starting from PDF3DLaunchSetting::e_3DAc...
Definition: fs_pdf3d.h:807
Solid outline.
Definition: fs_pdf3d.h:252
PDF3DActivationDisableSetting activation_disable
The activation disable setting for 3D. Please refer to values starting from PDF3DLaunchSetting::e_3DA...
Definition: fs_pdf3d.h:814
This class represents an array of PDF3DAnnotViewData.
Definition: fs_pdf3d.h:67
bool is_retain_views_and_comments
This flag indicates whether to retain views and comments. true means to retain, while false means not...
Definition: fs_pdf3d.h:1146
Left,top,front,Iso(all perspective).
Definition: fs_pdf3d.h:962
bool is_add_default_views
This flag indicates whether to add default views. true means to add, while false means not....
Definition: fs_pdf3d.h:1140
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
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)
Set the values.
Definition: fs_pdf3d.h:1088
Blue lights.
Definition: fs_pdf3d.h:886
Transparent wireframe.
Definition: fs_pdf3d.h:926
Cube lights.
Definition: fs_pdf3d.h:890
Shaded illustration.
Definition: fs_pdf3d.h:272
Definition: fs_pdf3d.h:74
bool is_open_model_tree
This flag indicates whether to open model tree. true means to open, while false means not....
Definition: fs_pdf3d.h:1158
PDF3DPosterImageSetting
Enumeration for poster image for the 3D launch setting type.
Definition: fs_pdf3d.h:664
PDF3DAppearanceSettingBorderWidth
Enumeration for appearance setting for border width for the 3D launch setting type.
Definition: fs_pdf3d.h:648
PDF3DAdvancedSetting()
Constructor.
Definition: fs_pdf3d.h:975
Header file for annotation related definitions and classes.
Definition: fs_pdf3d.h:861
Transparent.
Definition: fs_pdf3d.h:254
bool is_show_tool_bar
This flag indicates whether to show tool bar. true means to show, while false means not....
Definition: fs_pdf3d.h:1152
void * FX_HWND
Window handle: HWND.
Definition: fs_basictypes.h:217
PDF3DLaunchSetting()
Constructor.
Definition: fs_pdf3d.h:675
ModelNode()
Constructor.
Definition: fs_pdf3d.h:109
PDF3DLaunchSetting & operator=(const PDF3DLaunchSetting &launch_setting)
Assign operator.
Definition: fs_pdf3d.h:789
Solid.
Definition: fs_pdf3d.h:920
Night lights.
Definition: fs_pdf3d.h:884
Transparent bounding box outline.
Definition: fs_pdf3d.h:262
Primary lights.
Definition: fs_pdf3d.h:882
None.
Definition: fs_pdf3d.h:904
bool operator==(const PDF3DContext &other) const
Equal operator.
PDF3DRenderingStyle
Enumeration for rendering style for the 3D advanced setting type.
Definition: fs_pdf3d.h:902
~PDF3DContext()
Destructor.
PDF3DAdvancedSetting(const PDF3DAdvancedSetting &advanced_setting)
Constructor, with another 3D advanced setting object.
Definition: fs_pdf3d.h:993
bool operator==(const PDF3DAnnotInstance &other) const
Equal operator.
bool IsEmpty() const
Check whether current object is empty or not.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:213
PDF3DActivationPlaybackStyleSetting activation_playback
The activation playback setting for 3D. Please refer to values starting from PDF3DLaunchSetting::e_3D...
Definition: fs_pdf3d.h:821
Header file for common definitions and classes.
Transparent wireframe.
Definition: fs_pdf3d.h:256
bool operator!=(const PDF3DAnnotInstance &other) const
Not equal operator.
ModelNode GetRootNode()
Get the root node of the 3D model tree structure.
PDF3DAnimationStyle
Enumeration for animation style for the 3D advanced setting type.
Definition: fs_pdf3d.h:942
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)
Constructor with parameter.
Definition: fs_pdf3d.h:727
PDF3DContext & operator=(const PDF3DContext &other)
Assign operator.
Hidden wireframe.
Definition: fs_pdf3d.h:934
Definition: fx_coordinates.h:596
void OnMouseMove(int flag, PointF point)
Call this function when moving the mouse.
From file.
Definition: fs_pdf3d.h:872
Solid wireframe.
Definition: fs_pdf3d.h:250
rotate.
Definition: fs_pdf3d.h:228
Definition: fs_basictypes.h:451
Illustration.
Definition: fs_pdf3d.h:270
Left,top,front,Iso(all ortho).
Definition: fs_pdf3d.h:960
PDF3DActivationEnableSetting
Enumeration for activation enable setting for the 3D launch setting type.
Definition: fs_pdf3d.h:608
Left,top,front,(ortho)Iso(perspective).
Definition: fs_pdf3d.h:964
Shaded illustration.
Definition: fs_pdf3d.h:932
Left,top,front,(perspective)Iso(ortho).
Definition: fs_pdf3d.h:966
Bounding box.
Definition: fs_pdf3d.h:258
Bounce.
Definition: fs_pdf3d.h:948
Definition: fs_annot.h:1006
~PDF3DAnnotInstance()
Destructor.
PDF3DPosterImageSetting poster_image
The poster image. Please refer to values starting from PDF3DLaunchSetting::e_3DPosterImageKeepCurrent...
Definition: fs_pdf3d.h:851
zoom.
Definition: fs_pdf3d.h:234
PDF3DLaunchSetting(const PDF3DLaunchSetting &launch_setting)
Constructor, with another 3D launch setting object.
Definition: fs_pdf3d.h:692
void UpdateCanvas(RectI rect)
Update the canvas.
pan.
Definition: fs_pdf3d.h:232
Bounding box.
Definition: fs_pdf3d.h:906
None.
Definition: fs_pdf3d.h:944
Foxit namespace.
Definition: fs_pdf3d.h:26
Solid outline.
Definition: fs_pdf3d.h:930
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)
Constructor with parameter.
Definition: fs_pdf3d.h:1049
PDF3DAnnotViewData & operator=(const PDF3DAnnotViewData &data)
Assign operator.
Definition: fs_pdf3d.h:53
Illustration.
Definition: fs_pdf3d.h:928
Definition: fs_pdf3d.h:601
PDF3DAppearanceSettingBorderWidth border_width
The border width setting for 3D. Please refer to values starting from PDF3DLaunchSetting::e_3DAppeara...
Definition: fs_pdf3d.h:838
Solid.
Definition: fs_pdf3d.h:248
Wireframe.
Definition: fs_pdf3d.h:264
PDF3DAdvancedSetting & operator=(const PDF3DAdvancedSetting &advanced_setting)
Assign operator.
Definition: fs_pdf3d.h:1013
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)
Set the values.
Definition: fs_pdf3d.h:767
#define NULL
The null-pointer value.
Definition: fx_system.h:792
void Invalidate()
Refresh 3D Objects.
void SetController(PDF3DController tool_tag)
Set controller.
bool operator!=(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are not equal.
Definition: fs_basictypes.h:140
Views from file.
Definition: fs_pdf3d.h:970
Vertices.
Definition: fs_pdf3d.h:274
bool IsEmpty() const
Check whether current object is empty or not.
No lights.
Definition: fs_pdf3d.h:874
PDF3DContext(const pdf::PDFDoc &doc)
Constructor, with a PDF document object.
PDF3DController
Enumeration for the 3D controller tool.
Definition: fs_pdf3d.h:226
None.
Definition: fs_pdf3d.h:870
PDF3DDefaultViews
Enumeration for default views for the 3D advanced setting type.
Definition: fs_pdf3d.h:956
bool operator!=(const PDF3DContext &other) const
Not equal operator.
Red lights.
Definition: fs_pdf3d.h:888
Shaded wireframe.
Definition: fs_pdf3d.h:266
PDF3DActivationPlaybackStyleSetting
Enumeration for activation playback style for the 3D launch setting type.
Definition: fs_pdf3d.h:636
Hard lights.
Definition: fs_pdf3d.h:880
void ResetDefaultView()
Reset the view back to the default view, the 3D model will be reset to its default state.
void OnLButtonUp(int flag, PointF point)
Call this function when releasing the left button.
Definition: fx_coordinates.h:771
Transparent bounding box.
Definition: fs_pdf3d.h:908