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"
21 
27 namespace foxit {
29 namespace addon {
31 namespace pdf3d {
37 class PDF3DAnnotInstance FS_FINAL : public Base{
38  public:
44  typedef enum _PDF3DController {
58 
64  typedef enum _PDF3DRenderMode {
96 
97 
100 
107 
110 
119 
127  bool operator==(const PDF3DAnnotInstance& other) const;
128 
136  bool operator!=(const PDF3DAnnotInstance& other) const;
137 
145  bool IsEmpty() const;
146 
153 
165  void SetController(PDF3DController tool_tag);
166 
178  void SetRenderMode(PDF3DRenderMode render_mode);
179 
187  FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent);
188 
199  void UpdateCanvas(RectI rect);
200 
211  void OnLButtonDown(int flag, PointF point);
212 
223  void OnLButtonUp(int flag, PointF point);
224 
235  void OnMouseMove(int flag, PointF point);
236 
248  void OnMouseWheel(int flag, int delta, PointF point);
249 
260  void OnRButtonDown(int flag, PointF point);
261 
272  void OnRButtonUp(int flag, PointF point);
273 
274  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
275  explicit PDF3DAnnotInstance(FS_HANDLE handle);
276 };
279 
280 
288 class PDF3DContext FS_FINAL : public Base{
289  public:
291  explicit PDF3DContext(const pdf::PDFDoc& doc);
292 
298  PDF3DContext(const PDF3DContext& other);
299 
301  ~PDF3DContext();
302 
310  PDF3DContext& operator=(const PDF3DContext& other);
311 
319  bool operator==(const PDF3DContext& other) const;
320 
328  bool operator!=(const PDF3DContext& other) const;
329 
337  bool IsEmpty() const;
338 
347  PDF3DAnnotInstanceArray GetPage3DAnnotArray(int page_index);
348 
356  void Invalidate();
357 
358  // User is strongly recommended NOT to use this method; otherwise unknown situation may occur.
359  explicit PDF3DContext(FS_HANDLE handle = NULL);
360 };
361 
362 } //pdf3d
363 } //addon
364 } //foxit
365 #endif //FS_3DPDF_H_
366 #endif //defined(_WIN32) || defined(_WIN64)
PDF3DRenderMode
Enumeration for the 3D render mode.
Definition: fs_pdf3d.h:64
void OnRButtonUp(int flag, PointF point)
Call this function when releasing the right button.
Transparent bounding box.
Definition: fs_pdf3d.h:78
PDF3DAnnotInstance & operator=(const PDF3DAnnotInstance &other)
Assign operator.
Header file for PDF document related definitions and classes.
void SetRenderMode(PDF3DRenderMode render_mode)
Set model render mode.
PDF3DAnnotInstance()
Constructor.
Definition: fs_pdf3d.h:99
Definition: fx_coordinates.h:30
void OnMouseWheel(int flag, int delta, PointF point)
Call this function when scrolling the mouse wheel.
Definition: fs_pdf3d.h:288
A typedef of array of PDF3DAnnotInstance.
Definition: fs_pdf3d.h:278
Definition: fs_pdfdoc.h:610
void OnLButtonDown(int flag, PointF point)
Call this function when pressing the left button.
void OnRButtonDown(int flag, PointF point)
Call this function when pressing the right button.
FX_HWND ActivateCanvas(FX_HWND screen_canvas_parent)
Activate canvas.
bool operator==(const char *str1, const CFX_ByteString &str2)
Check if two byte strings are equal.
Definition: fs_basictypes.h:128
Header file for annotation related definitions and classes.
void * FX_HWND
Window handle: HWND.
Definition: fs_basictypes.h:218
Transparent bounding box outline.
Definition: fs_pdf3d.h:80
bool operator==(const PDF3DAnnotInstance &other) const
Equal operator.
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:214
Header file for common definitions and classes.
bool operator!=(const PDF3DAnnotInstance &other) const
Not equal operator.
Definition: fx_coordinates.h:596
void OnMouseMove(int flag, PointF point)
Call this function when moving the mouse.
Definition: fs_basictypes.h:427
Definition: fs_annot.h:996
void UpdateCanvas(RectI rect)
Update the canvas.
pdf::annots::Annot GetAnnot()
Get associated annotation.
Foxit namespace.
Definition: fs_pdf3d.h:27
#define NULL
The null-pointer value.
Definition: fx_system.h:780
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
bool IsEmpty() const
Check whether current object is empty or not.
PDF3DController
Enumeration for the 3D controller tool.
Definition: fs_pdf3d.h:44
void OnLButtonUp(int flag, PointF point)
Call this function when releasing the left button.