Foxit PDF SDK
foxit.addon.pdf3d.PDF3DContext类 参考
类 foxit.addon.pdf3d.PDF3DContext 继承关系图:
foxit.common.Base

Public 成员函数

 PDF3DContext (PDFDoc doc)
 带PDF文档对象的构造函数。
 
 PDF3DContext (PDF3DContext other)
 带另一个3D上下文对象的构造函数。 更多...
 
PDF3DAnnot Add3DAnnot (string threeD_file_path, int page_index, RectF rectf, global::System.IntPtr screen_canvas_parent, PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting)
 向PDF页面添加3D注释。 更多...
 
PDF3DAnnot Add3DAnnot (FileReaderCallback threeD_file_read, int page_index, RectF rectf, global::System.IntPtr screen_canvas_parent, PDF3DLaunchSetting launch_setting, PDF3DAdvancedSetting advanced_setting)
 向PDF页面添加3D注释。 更多...
 
PDF3DAnnotArray GetPage3DAnnotArray (int page_index)
 根据页面索引获取3D注释实例对象数组。 更多...
 
void Invalidate ()
 刷新3D对象。 更多...
 
bool IsEmpty ()
 检查当前对象是否为空。 更多...
 

详细描述

此类表示3D PDF上下文。在使用此模块中的任何类或方法之前,请确保 Foxit PDF SDK已通过common.Library.Initialize 函数使用包含"3D"模块的密钥 成功初始化。
目前,3D模块仅支持Windows。

参见
foxit.common.Library

构造及析构函数说明

◆ PDF3DContext()

foxit.addon.pdf3d.PDF3DContext.PDF3DContext ( PDF3DContext  other)
inline

带另一个3D上下文对象的构造函数。

参数
[in]other另一个3D上下文对象。

成员函数说明

◆ Add3DAnnot() [1/2]

PDF3DAnnot foxit.addon.pdf3d.PDF3DContext.Add3DAnnot ( string  threeD_file_path,
int  page_index,
RectF  rectf,
global::System.IntPtr  screen_canvas_parent,
PDF3DLaunchSetting  launch_setting,
PDF3DAdvancedSetting  advanced_setting 
)
inline

向PDF页面添加3D注释。

参数
[in]threeD_file_path3D文件的文件路径。目前支持u3d和prc格式。
[in]page_index要添加3D注释的页面索引。有效范围:从0到(page_count-1)。
[in]rectf[PDF坐标系统]中新3D注释的矩形区域。
[in]screen_canvas_parent屏幕画布的父窗口句柄。
[in]launch_setting3D启动设置。
[in]advanced_setting3D高级设置。
返回
添加的3D注释对象。

◆ Add3DAnnot() [2/2]

PDF3DAnnot foxit.addon.pdf3d.PDF3DContext.Add3DAnnot ( FileReaderCallback  threeD_file_read,
int  page_index,
RectF  rectf,
global::System.IntPtr  screen_canvas_parent,
PDF3DLaunchSetting  launch_setting,
PDF3DAdvancedSetting  advanced_setting 
)
inline

向PDF页面添加3D注释。

参数
[in]threeD_file_read3D文件的文件读取器回调。目前支持u3d和prc格式。 详情请参考 foxit.common.fxcrt.FileReaderCallback
[in]page_index要添加3D注释的页面索引。有效范围:从0到(page_count-1)。
[in]rectf[PDF坐标系统]中新3D注释的矩形区域。
[in]screen_canvas_parent屏幕画布的父窗口句柄。
[in]launch_setting3D启动设置。
[in]advanced_setting3D高级设置。
返回
添加的3D注释对象。

◆ GetPage3DAnnotArray()

PDF3DAnnotArray foxit.addon.pdf3d.PDF3DContext.GetPage3DAnnotArray ( int  page_index)
inline

根据页面索引获取3D注释实例对象数组。

参数
[in]page_index页面索引。有效范围:从0到(page_count-1)。 page_count由函数pdf.PDFDoc.GetPageCount 返回。
返回
3D注释实例对象数组。

◆ Invalidate()

void foxit.addon.pdf3d.PDF3DContext.Invalidate ( )
inline

刷新3D对象。

要动态显示3D效果,需要基于循环调用修改接口。

返回
无。

◆ IsEmpty()

bool foxit.addon.pdf3d.PDF3DContext.IsEmpty ( )
inline

检查当前对象是否为空。

当当前对象为空时,意味着当前对象无用。

返回
true表示当前对象为空,false表示不为空。