Haru Free PDF Library
hpdf_u3d.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library >> -- hpdf_u3d.h
3  *
4  * URL: http://libharu.org
5  *
6  * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7  * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
8  *
9  * Permission to use, copy, modify, distribute and sell this software
10  * and its documentation for any purpose is hereby granted without fee,
11  * provided that the above copyright notice appear in all copies and
12  * that both that copyright notice and this permission notice appear
13  * in supporting documentation.
14  * It is provided "as is" without express or implied warranty.
15  *
16  */
17 
18 #ifndef _HPDF_U3D_H
19 #define _HPDF_U3D_H
20 
21 #include "hpdf_objects.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 HPDF_EXPORT(HPDF_JavaScript) HPDF_CreateJavaScript(HPDF_Doc pdf, const char *code);
28 HPDF_EXPORT(HPDF_JavaScript) HPDF_LoadJSFromFile (HPDF_Doc pdf, const char *filename);
29 
30 
31 HPDF_EXPORT(HPDF_U3D) HPDF_LoadU3DFromFile (HPDF_Doc pdf, const char *filename);
32 HPDF_EXPORT(HPDF_Image) HPDF_LoadU3DFromMem (HPDF_Doc pdf, const HPDF_BYTE *buffer, HPDF_UINT size);
33 HPDF_EXPORT(HPDF_Dict) HPDF_Create3DView (HPDF_MMgr mmgr, const char *name);
35 HPDF_EXPORT(HPDF_STATUS) HPDF_U3D_SetDefault3DView(HPDF_U3D u3d, const char *name);
37 HPDF_EXPORT(HPDF_Dict) HPDF_3DView_CreateNode(HPDF_Dict view, const char *name);
42 HPDF_EXPORT(HPDF_STATUS) HPDF_3DView_SetLighting(HPDF_Dict view, const char *scheme);
46 HPDF_EXPORT(HPDF_STATUS) HPDF_3DView_SetCamera(HPDF_Dict view, HPDF_REAL coox, HPDF_REAL cooy, HPDF_REAL cooz, HPDF_REAL c2cx, HPDF_REAL c2cy, HPDF_REAL c2cz, HPDF_REAL roo, HPDF_REAL roll);
48 HPDF_EXPORT(HPDF_STATUS) HPDF_3DView_SetCrossSectionOn(HPDF_Dict view, HPDF_Point3D center, HPDF_REAL Roll, HPDF_REAL Pitch, HPDF_REAL opacity, HPDF_BOOL showintersection);
50 
53  HPDF_Xref xref,
54  HPDF_U3D u3d,
55  const char *name);
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 
60 #endif /* _HPDF_U3D_H */
61 
signed int HPDF_BOOL
Definition: hpdf_types.h:89
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
float HPDF_REAL
Definition: hpdf_types.h:79
unsigned char HPDF_BYTE
Definition: hpdf_types.h:74
unsigned long HPDF_STATUS
Definition: hpdf_types.h:94
HPDF_Dict HPDF_Create3DView(HPDF_MMgr mmgr, const char *name)
HPDF_STATUS HPDF_3DView_SetLighting(HPDF_Dict view, const char *scheme)
HPDF_STATUS HPDF_U3D_Add3DView(HPDF_U3D u3d, HPDF_Dict view)
HPDF_STATUS HPDF_3DView_SetCamera(HPDF_Dict view, HPDF_REAL coox, HPDF_REAL cooy, HPDF_REAL cooz, HPDF_REAL c2cx, HPDF_REAL c2cy, HPDF_REAL c2cz, HPDF_REAL roo, HPDF_REAL roll)
HPDF_STATUS HPDF_3DViewNode_SetVisibility(HPDF_Dict node, HPDF_BOOL visible)
HPDF_STATUS HPDF_U3D_SetDefault3DView(HPDF_U3D u3d, const char *name)
HPDF_STATUS HPDF_3DViewNode_SetMatrix(HPDF_Dict node, HPDF_3DMatrix Mat3D)
HPDF_Dict HPDF_3DView_New(HPDF_MMgr mmgr, HPDF_Xref xref, HPDF_U3D u3d, const char *name)
HPDF_JavaScript HPDF_LoadJSFromFile(HPDF_Doc pdf, const char *filename)
HPDF_Dict HPDF_3DView_CreateNode(HPDF_Dict view, const char *name)
HPDF_Image HPDF_LoadU3DFromMem(HPDF_Doc pdf, const HPDF_BYTE *buffer, HPDF_UINT size)
HPDF_JavaScript HPDF_CreateJavaScript(HPDF_Doc pdf, const char *code)
HPDF_STATUS HPDF_3DView_SetCameraByMatrix(HPDF_Dict view, HPDF_3DMatrix Mat3D, HPDF_REAL co)
HPDF_STATUS HPDF_3DView_AddNode(HPDF_Dict view, HPDF_Dict node)
HPDF_STATUS HPDF_U3D_AddOnInstanciate(HPDF_U3D u3d, HPDF_JavaScript javaScript)
HPDF_U3D HPDF_LoadU3DFromFile(HPDF_Doc pdf, const char *filename)
HPDF_STATUS HPDF_3DView_SetCrossSectionOff(HPDF_Dict view)
HPDF_STATUS HPDF_3DView_SetCrossSectionOn(HPDF_Dict view, HPDF_Point3D center, HPDF_REAL Roll, HPDF_REAL Pitch, HPDF_REAL opacity, HPDF_BOOL showintersection)
HPDF_STATUS HPDF_3DViewNode_SetOpacity(HPDF_Dict node, HPDF_REAL opacity)
HPDF_STATUS HPDF_3DView_SetOrthogonalProjection(HPDF_Dict view, HPDF_REAL mag)
HPDF_STATUS HPDF_3DView_SetBackgroundColor(HPDF_Dict view, HPDF_REAL r, HPDF_REAL g, HPDF_REAL b)
HPDF_STATUS HPDF_3DView_SetPerspectiveProjection(HPDF_Dict view, HPDF_REAL fov)
Definition: hpdf_types.h:252
Definition: hpdf_objects.h:421
Definition: hpdf_doc.h:36
Definition: hpdf_mmgr.h:40
Definition: hpdf_types.h:119
Definition: hpdf_objects.h:542