Enumerations | |
enum | PageDirection { PORTRAIT = 0, LANDSCAPE } |
enum | PageSizes { SIZE_LETTER = 0, SIZE_LEGAL, SIZE_A3, SIZE_A4, SIZE_A5, SIZE_B4, SIZE_B5, SIZE_EXECUTIVE, SIZE_US4x6, SIZE_US4x8, SIZE_US5x7, SIZE_COMM10, SIZE_EOF } |
Functions | |
DtkErrorStatus | Create3DAnnotation (Dtk_UInt32 inArtworkIndex, Dtk_Double64 inBBox[4], Dtk_Int32 inModelDisplayIndex=-1, Dtk_Int32 inLayerID=-1, RenderMode inRenderMode=Unset, Lighting inLighting=UnsetLighting, Dtk_bool inAnnotActivation=0) |
Creates 3D Annotation from 3D artwork in current page with its 2d bounding box. More... | |
Dtk_ErrorStatus | CreateOutline (Dtk_string inName) |
Creation of outline. More... | |
DtkErrorStatus | End3DArtwork (Dtk_UInt32 &outartworkIndex) |
Ends Writing of 3D Artwork. More... | |
Dtk_ErrorStatus | EndPage () |
End of page. More... | |
Dtk_ErrorStatus | FillRectangle (Dtk_Double64 inBBox[4], Dtk_RGB inColor) |
Fills a rectangle area with color. More... | |
DtkErrorStatus | Get3DArtworkBBox (Dtk_pnt &outPmin, Dtk_pnt &outPmax) |
Gets oriented XYZ bounding box corners. More... | |
Dtk_Double64 | GetCurrentPageHeight () |
Gets current page height. More... | |
Dtk_Double64 | GetCurrentPageWidth () |
Gets current page width. More... | |
DtkErrorStatus | Init3DArtwork (Dtk_string inAnnotName=Dtk_string(), Pdfw::WriteOptions *inWriteOptions=NULL) |
Starts Writing of 3D Artwork (3D model) More... | |
Dtk_ErrorStatus | InitPage (Dtk_RGB inColor=Dtk_RGB(255, 255, 255), Dtk_Double64 inWidth=842, Dtk_Double64 inHeight=595) |
LAYOUT METHODS. More... | |
Dtk_ErrorStatus | SetCurrentPageSize (Dtk_Double64 inWidth, Dtk_Double64 inHeight) |
Sets current page size. More... | |
Dtk_ErrorStatus | SetCurrentPageSize (PageSizes inSize, PageDirection inDirection) |
Sets current page size. More... | |
Dtk_ErrorStatus | WriteCompositeText (Dtk_CompositeText &inCompositeText) |
Write a composite text. More... | |
Dtk_ErrorStatus | WritePicture (Dtk_string inPicturePath, Dtk_Double64 inPictureBBox[4]) |
Write a picture. More... | |
Dtk_ErrorStatus | WritePolylines (Dtk_tab< Dtk_PolylinePtr > &inTabPolylines) |
Write a set of polylines. More... | |
DtkErrorStatus Pdfw::Layout::Create3DAnnotation | ( | Dtk_UInt32 | inArtworkIndex, |
Dtk_Double64 | inBBox[4], | ||
Dtk_Int32 | inModelDisplayIndex = -1 , |
||
Dtk_Int32 | inLayerID = -1 , |
||
RenderMode | inRenderMode = Unset , |
||
Lighting | inLighting = UnsetLighting , |
||
Dtk_bool | inAnnotActivation = 0 |
||
) |
Creates 3D Annotation from 3D artwork in current page with its 2d bounding box.
[in] | inArtworkIndex : index of artwork in document | |
[in] | inBBox : bounding box of annotation in current page in points (72 points per inch) | |
[in] | inModelDisplayIndex : Annotation default model display index (optionnal) | |
[in] | inLayerID : Layer ID(optionnal) | |
[in] | inRenderMode : Render mode(optionnal) | |
[in] | inLighting : Lighting(optionnal) | |
[in] | inAnnotActivation : Activation option(optionnal) (see LayoutOptions structure) |
Dtk_ErrorStatus Pdfw::Layout::CreateOutline | ( | Dtk_string | inName | ) |
Creation of outline.
[in] | inName : name of outline |
DtkErrorStatus Pdfw::Layout::End3DArtwork | ( | Dtk_UInt32 & | outartworkIndex | ) |
Ends Writing of 3D Artwork.
[out] | outartworkIndex : index of created artwork in document |
Dtk_ErrorStatus Pdfw::Layout::EndPage | ( | ) |
End of page.
Dtk_ErrorStatus Pdfw::Layout::FillRectangle | ( | Dtk_Double64 | inBBox[4], |
Dtk_RGB | inColor | ||
) |
Fills a rectangle area with color.
[in] | inBBox : the 2D bounding box of the area | |
[in] | inColor : the color to fill with |
DtkErrorStatus Pdfw::Layout::Get3DArtworkBBox | ( | Dtk_pnt & | outPmin, |
Dtk_pnt & | outPmax | ||
) |
Gets oriented XYZ bounding box corners.
[out] | outPmin : 1st 3D corner | |
[out] | outPmax : 2nd 3D corner |
Dtk_Double64 Pdfw::Layout::GetCurrentPageHeight | ( | ) |
Gets current page height.
Dtk_Double64 Pdfw::Layout::GetCurrentPageWidth | ( | ) |
Gets current page width.
DtkErrorStatus Pdfw::Layout::Init3DArtwork | ( | Dtk_string | inAnnotName = Dtk_string() , |
Pdfw::WriteOptions * | inWriteOptions = NULL |
||
) |
Starts Writing of 3D Artwork (3D model)
[in] | inAnnotName : Name of the annotation ( This is not mandatory ) | |
[in] | inWriteOptions : Write Options of the annotation ( This is not mandatory ) |
Dtk_ErrorStatus Pdfw::Layout::InitPage | ( | Dtk_RGB | inColor = Dtk_RGB(255, 255, 255) , |
Dtk_Double64 | inWidth = 842 , |
||
Dtk_Double64 | inHeight = 595 |
||
) |
LAYOUT METHODS.
Initialization of page : starting a new page in document
[in] | inColor : page color ( This is not mandatory ) | |
[in] | inWidth : page width ( This is not mandatory ) | |
[in] | inHeight : page height ( This is not mandatory ) |
Dtk_ErrorStatus Pdfw::Layout::SetCurrentPageSize | ( | Dtk_Double64 | inWidth, |
Dtk_Double64 | inHeight | ||
) |
Sets current page size.
[in] | inWidth : width of page in points (72 points per inch) | |
[in] | inHeight : height of page in points |
Dtk_ErrorStatus Pdfw::Layout::SetCurrentPageSize | ( | PageSizes | inSize, |
PageDirection | inDirection | ||
) |
Sets current page size.
[in] | inSize : size of page | |
[in] | inDirection : direction of page (landscape or portrait) |
Dtk_ErrorStatus Pdfw::Layout::WriteCompositeText | ( | Dtk_CompositeText & | inCompositeText | ) |
Write a composite text.
[in] | inCompositeText : the composite text to be written |
Dtk_ErrorStatus Pdfw::Layout::WritePicture | ( | Dtk_string | inPicturePath, |
Dtk_Double64 | inPictureBBox[4] | ||
) |
Write a picture.
[in] | picturePath : the path of the picture to be written | |
[in] | inPictureBBox : the 2D bounding box of the picture |
Dtk_ErrorStatus Pdfw::Layout::WritePolylines | ( | Dtk_tab< Dtk_PolylinePtr > & | inTabPolylines | ) |
Write a set of polylines.
[in] | inTabPolylines : Array of Dtk_PolylinePtr to be written |