![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
◆ ActivatePdfDump()
void ActivatePdfDump |
( |
Dtk_bool |
inDumpPDF | ) |
|
◆ IsPdfDumpActivated()
◆ PdfEndComponent()
◆ PdfEndInstance()
◆ PdfEndNode()
◆ PdfEndWrite()
void PdfEndWrite |
( |
const Dtk_string & |
inInputFile | ) |
|
◆ PdfInitComponent()
◆ PdfInitInstance()
94 ComponentName = inComponent->Name();
99 if (inComponent->InstanceName().len() > 0)
100 ComponentName +=
" (" + inComponent->InstanceName() +
")";
102 instanceTransfo = inComponent->TransformationMatrix();
◆ PdfInitNode()
◆ PdfInitWrite()
52 outputPDFFile = inInputFileName +
"_dtk.pdf";
53 if (inOutputFolder.
len() > 0)
54 outputPDFFile = inOutputFolder + inInputFileName.
filename() +inInputFileName.
extension() +
"_dtk.pdf";
59 cout <<
"Creating Pdf file... " << outputPDFFile.
c_str() << endl;
61 cout <<
"Warning : Pdf Write failed : " <<
dtkTypeError(stErrorPdf).
c_str() << endl;
◆ PdfInstanceExistingPrototype()
void PdfInstanceExistingPrototype |
( |
Dtk_ID |
ComponentIndex | ) |
|
◆ PdfWriteDrawingNode()
◆ PdfWriteEntity()
◆ PdfWriteMetaData() [1/2]
120 NumMetaData = inComponent->GetNumMetaData();
124 for (i = 0; i < NumMetaData; i++)
126 tabMetadata.
push_back(inComponent->GetMetaData(i));
◆ PdfWriteMetaData() [2/2]
◆ ComponentProcessed
◆ modelInventory
◆ PdfComponents
◆ toDumpPDF
uint32_t Dtk_ID
Definition: define.h:689
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
DtkErrorStatus AddNodeMetadata(Dtk_tab< Dtk_MetaDataPtr > &inTabMetadata)
Add table of metadata to current node.
int GetBlankedStatus() const
Retrieves the entity Blanked Status.
@ FdtType
Definition: dtk_maindoc.hpp:251
This class provides several options to tune Pdf Writer. It must be provided to Pdfw::InitWrite method...
Definition: pdfw.hpp:113
@ DTK_TYPE_MESH
Definition: define.h:477
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, Licence_dtk inLicFct, WriteOptions &inOptions)
Initialize the PDF Writer
LayoutOptions Layout
Definition: pdfw.hpp:193
Dtk_bool IsNotNULL() const
Definition: util_ptr_dtk.hpp:119
Dtk_ErrorStatus EndPage()
End of page.
Dtk_bool CreateAutomaticLayout
DTK_TRUE : Creates automatic layout (One page with filled with 3D Annotation), DTK_FALSE : You must u...
Definition: pdfw.hpp:37
void PdfWriteMetaData(Dtk_ComponentPtr inComponent)
Definition: PdfWrite.cpp:117
#define DTK_TRUE
Definition: define.h:727
uint32_t Dtk_UInt32
Definition: define.h:688
This is a high level string class.
Definition: dtk_string.hpp:58
size_t Dtk_Size_t
Definition: define.h:712
@ BodyType
Definition: dtk_maindoc.hpp:248
#define DTK_FALSE
Definition: define.h:728
char Dtk_bool
Definition: define.h:725
DtkErrorStatus AddNodeRenderInfo(Dtk_RenderInfosPtr inRenderInfos)
Add rendering informations to current node.
virtual enum type_detk get_type_detk() const =0
Dtk_bool WriteLineThickness
DTK_TRUE : write line thickness, DTK_FALSE : Writes lines with thickness value equals to 0....
Definition: pdfw.hpp:41
Dtk_ErrorStatus SetCurrentPageSize(PageSizes inSize, PageDirection inDirection)
Sets current page size.
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate children of node to reinstanciate in current node.
DtkErrorStatus Init3DArtwork(Dtk_string inAnnotName=Dtk_string(), Pdfw::WriteOptions *inWriteOptions=NULL)
Starts Writing of 3D Artwork (3D model)
void StorePrototype(Dtk_ID inID)
Stores the identifier of a node.
Dtk_string filename() const
File Utility : Retrieves the filename in Dtk_string form.
DtkErrorStatus EndWrite()
Creation of the output file and free the PDF Writer
std::map< Dtk_Node::NodeDataTypeEnum, Dtk_Size_t > modelInventory
Definition: PdfWrite.cpp:18
@ DTK_TYPE_BODY
Definition: define.h:490
DtkErrorStatus EndNode()
End the node.
Dtk_bool RasterizeTexts
DTK_TRUE : rasterizing texts, DTK_FALSE : Converts texts as texts with the font you provide.
Definition: pdfw.hpp:39
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
@ LANDSCAPE
Definition: pdfw.hpp:477
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_RenderInfosPtr GetRenderInfos() const
Retrieves the entity RenderInfos of the entity.
@ DTK_TYPE_FDT
Definition: define.h:433
Dtk_string TTF_Font
Definition: pdfw.hpp:45
@ SIZE_A5
Definition: pdfw.hpp:462
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_tab< Dtk_ID > PdfComponents
Definition: PdfWrite.cpp:16
Dtk_string extension() const
File Utility : Retrieves the extension in Dtk_string form.
DtkErrorStatus End3DArtwork(Dtk_UInt32 &outartworkIndex)
Ends Writing of 3D Artwork.
Dtk_bool toDumpPDF
Definition: PdfWrite.cpp:14
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
This is a high level array class.
Definition: util_stl_dtk.hpp:85
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo=Dtk_transfo())
Initialize a node.
Dtk_bool WritePRC
DTK_TRUE : Embedding PRC file, DTK_FALSE : Embedding U3D file.
Definition: pdfw.hpp:161
int len() const
Retrieve the length of the Dtk_string.
Dtk_tab< Dtk_ID > ComponentProcessed
Definition: WritePrototype.cpp:12
@ dtkNoError
Definition: error_dtk.hpp:140
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:415
@ DrawingType
Definition: dtk_maindoc.hpp:252
void CreatePDFLayout(const Dtk_string &inFileName, Dtk_Int32 artworkIndex, std::map< Dtk_Node::NodeDataTypeEnum, Dtk_Size_t > &inModelInventory)
Definition: PdfWriteLayout.cpp:283
Dtk_bool TransparentBackground
DTK_TRUE : Transparent Background, DTK_FALSE : Opaque Background.
Definition: pdfw.hpp:153
Dtk_ErrorStatus InitPage(Dtk_RGB inColor=Dtk_RGB(255, 255, 255), Dtk_Double64 inWidth=842, Dtk_Double64 inHeight=595)
LAYOUT METHODS.
@ MeshType
Definition: dtk_maindoc.hpp:249