![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
◆ AssignFacesColors()
970 meshCube->get_mesh_face( 1 )->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
971 meshCube->get_mesh_face( 2 )->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
972 meshCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 255, 255, 0 ) );
973 meshCube->get_mesh_face( 4 )->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
974 meshCube->get_mesh_face( 5 )->info()->SetColor(
Dtk_RGB( 0, 255, 255 ) );
◆ PdfwCreate3DAnnotations()
932 annotBBox[ 0 ] = margin / 2. + xPos;
933 annotBBox[ 1 ] = margin / 2. + yPos;
934 annotBBox[ 2 ] = xPos + width - margin;
935 annotBBox[ 3 ] = yPos + height - margin;
941 annotBBox[ 0 ] = margin + xPos;
942 annotBBox[ 1 ] = margin / 2. + yPos;
943 annotBBox[ 2 ] = xPos + width - margin / 2.;
944 annotBBox[ 3 ] = yPos + height - margin;
949 annotBBox[ 0 ] = margin + xPos;
950 annotBBox[ 1 ] = margin + yPos;
951 annotBBox[ 2 ] = xPos + width - margin / 2.;
952 annotBBox[ 3 ] = yPos + height - margin / 2.;
957 annotBBox[ 0 ] = margin / 2. + xPos;
958 annotBBox[ 1 ] = margin + yPos;
959 annotBBox[ 2 ] = xPos + width - margin;
960 annotBBox[ 3 ] = yPos + height - margin / 2.;
◆ PdfwCreateViews()
883 Dtk_dir up( -0.57735, 0.57735, -0.57735 );
888 isoMd->info()->SetName(
"Iso" );
898 topMd->info()->SetName(
"Top" );
908 frontMd->info()->SetName(
"Front" );
918 rightMd->info()->SetName(
"Right" );
◆ PdfWriteSample()
int PdfWriteSample |
( |
const Dtk_string & |
inResultDirectory | ) |
|
1033 cout << endl <<
"----------------------------------------------" << endl;
1034 cout <<
"Pdf Write start" << endl;
1036 Dtk_string imageDirectory = inResultDirectory + L
"../InputImages/";
1040 outputDirectory = inResultDirectory + L
"dtk/Pdf/";
1042 outputDirectory.
mkdir();
1044 Dtk_string pdfFileName = outputDirectory + L
"PDFW_SampleOneMesh_1_1.pdf";
1047 pdfFileName = outputDirectory + L
"PDFW_SampleMeshes_1_2.pdf";
1050 pdfFileName = outputDirectory + L
"PDFW_SampleOneMeshRender_1_3.pdf";
1053 pdfFileName = outputDirectory + L
"PDFW_SampleBody_2_1.pdf";
1056 pdfFileName = outputDirectory + L
"PDFW_SampleWireBody_2_2.pdf";
1059 pdfFileName = outputDirectory + L
"PDFW_SampleBodyVisibility_2_3.pdf";
1062 pdfFileName = outputDirectory + L
"PDFW_SampleAssembly_3_1.pdf";
1065 pdfFileName = outputDirectory + L
"PDFW_SamplePartInstances_3_2.pdf";
1068 pdfFileName = outputDirectory + L
"PDFW_SampleAsmInstances_3_3.pdf";
1071 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesColors_3_4.pdf";
1074 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesVisibility_3_5.pdf";
1077 pdfFileName = outputDirectory + L
"PDFW_SampleMetadatas_4_1.pdf";
1080 pdfFileName = outputDirectory + L
"PDFW_SampleDocumentProperties_4_2.pdf";
1083 pdfFileName = outputDirectory + L
"PDFW_SampleSimplePMI_5_1.pdf";
1086 pdfFileName = outputDirectory + L
"PDFW_SampleSimpleModelview_5_2.pdf";
1089 pdfFileName = outputDirectory + L
"PDFW_Sample_MV_association_5_3.pdf";
1092 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_Geom_association_5_4.pdf";
1095 pdfFileName = outputDirectory + L
"PDFW_SampleModelview_sections_5_5.pdf";
1098 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_PMI_association_5_6.pdf";
1101 pdfFileName = outputDirectory + L
"PDFW_SampleAxis_References_5_7.pdf";
1104 pdfFileName = outputDirectory + L
"PDFW_SampleCloudPoint_6_1.pdf";
1107 pdfFileName = outputDirectory + L
"PDFW_SampleBillboard_7_1.pdf";
1111 pdfFileName = outputDirectory + L
"PDFW_SampleSecuredPdf_8_1.pdf";
1114 pdfFileName = outputDirectory + L
"PDFW_SampleLayoutMultipleViews_9_1.pdf";
1117 cout <<
"Pdf Write end" << endl;
◆ PdfwSample_MV_association_5_3()
598 cylinder->info()->SetName(
"Body" );
613 mv2->info()->SetName(
"PMIView" );
620 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleAsmInstances_3_3()
274 Dtk_ID axlesNodeID, axlesNodeID2, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
287 axle->info()->SetName(
"axle" );
297 wheel->info()->SetName(
"wheel" );
316 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleAssembly_3_1()
188 Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheel2NodeID, wheel1ID, wheel2ID;
196 axle->info()->SetName(
"axle" );
219 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleAxis_References_5_7()
745 Dtk_ID axisSysID, planeID, axisID;
764 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleBillboard_7_1()
839 Dtk_pnt dtkLeaderEnd( 1., -1., 1. ), pictureOrigin( 2., -2, 2. );
850 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleBody_2_1()
127 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleBodyVisibility_2_3()
164 cylinder->info()->SetName(
"Cylinder.1" );
168 Shift( cylinder2, 3 );
169 cylinder2->info()->SetName(
"Cylinder.2" );
173 Shift( cylinder3, 6 );
174 cylinder3->info()->SetBlankedStatus(
DTK_TRUE );
175 cylinder3->info()->SetName(
"Cylinder.3" );
179 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleCloudPoint_6_1()
788 for( i = 0; i < numPointX; i++ )
790 for( j = 0; j < numPointY; j++ )
793 tabColors.
push_back(
Dtk_RGB( (
int )( std::rand() /
double( RAND_MAX ) * 255 ),
794 (
int )( std::rand() /
double( RAND_MAX ) * 255 ),
795 (
int )( std::rand() /
double( RAND_MAX ) * 255 ) ) );
806 Dtk_pnt to( numPointX / 2., numPointY / 2., 0 );
812 mv1->info()->SetName(
"MainView" );
817 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleDocumentProperties_4_2()
495 Dtk_string application, pdfProducer, title, author, subject, keywords;
501 title = inOutputFileName.
filename();
507 subject =
"Datakit PDF SDK demo";
510 keywords =
"Datakit;SDK;Demo";
514 application =
"LibPdfWriteSample";
525 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleInstancesColors_3_4()
328 Dtk_ID axlesNodeID, axlesNodeID2, axlesNodeID3, axlesNodeID4, axlesNodeID5, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
341 axle->info()->SetName(
"axle" );
351 wheel->info()->SetName(
"wheel" );
413 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleInstancesVisibility_3_5()
425 Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
434 axle->info()->SetName(
"axle" );
444 wheel->info()->SetName(
"wheel" );
458 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleLayoutMultipleViews_9_1()
998 artworkName =
"myArtwork";
1026 cout <<
"=> " << pdfFileName.
c_str() << endl;
◆ PdfwSampleMeshes_1_2()
55 CubeMesh->info()->SetName(
"ColoredCube" );
59 Shift( CubePervertexColorMesh, 3 );
61 CubePervertexColorMesh->info()->SetName(
"VertexColoredCube" );
65 TransparentCube->info()->SetColor(
Dtk_RGB( 0, 255, 0, 128 ) );
66 TransparentCube->info()->SetName(
"TransparentCube" );
67 Shift( TransparentCube, 6 );
71 if( TransparentOneFaceCube->get_nb_mesh_face() == 6 )
73 if( TransparentOneFaceCube->get_mesh_face( 3 )->info().
IsNULL() )
75 TransparentOneFaceCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 0, 0, 255, 128 ) );
77 Shift( TransparentOneFaceCube, 9 );
78 TransparentCube->info()->SetName(
"TransparentCubeColoredFace" );
82 Shift( MeshWire, 12 );
84 MeshWire->info()->SetName(
"WireMesh" );
88 Shift( MeshPoints, 15 );
89 MeshPoints->info()->SetName(
"PointMesh" );
93 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleMetadatas_4_1()
478 axle->info()->SetName(
"axle" );
483 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleModelview_section_5_5()
661 Dtk_ID bodyID, datumID, curveID;
691 ellipse->info()->SetName(
"Curve" );
692 ellipse->info()->SetBlankedStatus(
DTK_TRUE );
698 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleOneMesh_1_1()
31 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleOneMeshRender_1_3()
111 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSamplePartInstances_3_2()
231 Dtk_ID axleNodeID, axleID, wheelsID, wheelNodeID, wheelID;
240 axle->info()->SetName(
"axle" );
250 wheel->info()->SetName(
"wheel" );
262 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSamplePMI_Geom_association_5_4()
636 cylinder->info()->SetName(
"Body" );
644 mv->info()->SetName(
"myView" );
651 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSamplePMI_PMI_association_5_6()
718 for( i = 0; i < 10; i++ )
721 Shift( pmi, 15 * i );
726 mv2->info()->SetName(
"SecondView" );
729 tabNodeIDs += tabPMIIDs;
735 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleSecuredPdf_8_1()
871 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleSimpleModelview_5_2()
564 cylinder->info()->SetName(
"Body" );
579 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleSimplePMI_5_1()
541 cylinder->info()->SetName(
"Body" );
548 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ PdfwSampleWireBody_2_2()
147 cout <<
"=> " << inOutputFileName.
c_str() << endl;
◆ Shift()
template<typename T >
void Shift |
( |
T & |
mesh, |
|
|
double |
sh |
|
) |
| |
Dtk_BodyPtr CreateAxis()
Definition: testcreatecube.cpp:1492
Dtk_ErrorStatus PdfwSampleSecuredPdf_8_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:856
static Dtk_ModelDisplayPtr Create(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Full featured constructor.
DtkErrorStatus CreateModelDisplayWithVisibleNodes(Dtk_ModelDisplayPtr &inModelDisplay, Dtk_tab< Dtk_ID > &inTabVisibleNodes, Pdfw::RenderMode inRenderMode=Pdfw::Unset, Pdfw::Lighting inLighting=Pdfw::UnsetLighting)
Create a model display.
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.
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.
void Shift(T &mesh, double sh)
Definition: testlibpdfwrite.cpp:38
This class provides several options to tune Pdf Writer. It must be provided to Pdfw::InitWrite method...
Definition: pdfw.hpp:113
Dtk_ErrorStatus PdfwSampleMetadatas_4_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:464
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, Licence_dtk inLicFct, WriteOptions &inOptions)
Initialize the PDF Writer
Dtk_MeshPtr CreateMeshCube()
Mesh Cube sample.
Definition: testcreatemesh.cpp:207
Dtk_ErrorStatus PdfwSampleAxis_References_5_7(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:742
Dtk_Double64 PointSize
Size of points.
Definition: pdfw.hpp:163
LayoutOptions Layout
Definition: pdfw.hpp:193
Dtk_BodyPtr CreateCyl(double radius, double height)
Definition: testcreatecube.cpp:1791
Dtk_MeshPtr CreateMeshCubeVertexColor()
Definition: testcreatemesh.cpp:299
Dtk_ModelDisplayPtr CreateModelDisplayWithSection()
Definition: testcreatefdt.cpp:254
Dtk_MeshPtr CreateMeshPoints()
Points mesh sample.
Definition: testcreatemesh.cpp:439
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
#define DTK_TRUE
Definition: define.h:727
void SetKeywords(const Dtk_string &inString)
Add Keywords in Document Catalog Metadata.
Dtk_BodyPtr CreateInfinitePlane()
Definition: testcreatecube.cpp:1435
Dtk_ErrorStatus PdfwSamplePartInstances_3_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:225
void AssignFacesColors(Dtk_MeshPtr &meshCube)
Definition: testlibpdfwrite.cpp:966
uint32_t Dtk_UInt32
Definition: define.h:688
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_Double64 GetCurrentPageWidth()
Gets current page width.
@ DTK_ANCHOR_BOTTOM_LEFT
Definition: util_draw_dtk.hpp:106
size_t Dtk_Size_t
Definition: define.h:712
Dtk_Double64 GetCurrentPageHeight()
Gets current page height.
void SetTitle(const Dtk_string &inString)
Add Title in Document Catalog Metadata.
cross_section CrossSection
Cross section parameters.
Definition: pdfw.hpp:165
Dtk_Double64 CuttingPlaneOpacity
Definition: pdfw.hpp:28
Dtk_AxisSystemPtr CreateAxisSystem()
Definition: testcreatecube.cpp:1465
Dtk_ErrorStatus PdfwSampleLayoutMultipleViews_9_1(const Dtk_string &pdfFileName)
Definition: testlibpdfwrite.cpp:978
#define DTK_FALSE
Definition: define.h:728
Dtk_ErrorStatus PdfwSampleModelview_section_5_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:657
Dtk_ErrorStatus PdfwCreateViews()
Definition: testlibpdfwrite.cpp:877
Dtk_RGB CuttingPlaneColor
Definition: pdfw.hpp:27
Dtk_ErrorStatus PdfwSampleBillboard_7_1(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:825
static Dtk_EllipsePtr Create(const Dtk_Ellipse &inEllipseToCopy)
@ keepsubtransparency
Definition: pdfw.hpp:16
double Dtk_Double64
Definition: define.h:699
Dtk_ErrorStatus SetBlankedStatus(const Dtk_Int32 &inBlankedStatus)
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate children of node to reinstanciate in current node.
Dtk_ErrorStatus PdfwSampleInstancesVisibility_3_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:419
DtkErrorStatus Init3DArtwork(Dtk_string inAnnotName=Dtk_string(), Pdfw::WriteOptions *inWriteOptions=NULL)
Starts Writing of 3D Artwork (3D model)
void SetAuthor(const Dtk_string &inString)
Add Author in Document Catalog Metadata.
void StorePrototype(Dtk_ID inID)
Stores the identifier of a node.
static Dtk_API * GetAPI()
Get DATAKIT API.
Dtk_MeshPtr CreateMeshWire()
Wire mesh sample.
Definition: testcreatemesh.cpp:388
void SetPDFProducer(const Dtk_string &inString)
Add PDFProducer in Document Catalog Metadata.
Dtk_ErrorStatus PdfwSampleOneMesh_1_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:22
Dtk_string filename() const
File Utility : Retrieves the filename in Dtk_string form.
Dtk_MeshPtr CreateTexturedMeshCube(const Dtk_string &inImageDirectory)
Textured Mesh Cube sample.
Definition: testcreatemesh.cpp:272
DtkErrorStatus EndWrite()
Creation of the output file and free the PDF Writer
Dtk_SmartPtr< Dtk_mesh > Dtk_MeshPtr
Definition: dtk_maindoc.hpp:20
Dtk_ErrorStatus PdfwSampleCloudPoint_6_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:770
@ DTK_ANCHOR_TOP_RIGHT
Definition: util_draw_dtk.hpp:102
Dtk_FdtPtr CreateFdtDatum()
Create Simple Datum.
Definition: testcreatefdt.cpp:19
DtkErrorStatus EndNode()
End the node.
Dtk_ErrorStatus PdfwSampleBodyVisibility_2_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:154
Dtk_ErrorStatus PdfwSampleMeshes_1_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:45
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_bool IsNULL() const
Definition: util_ptr_dtk.hpp:118
Dtk_string GetVersion() const
GetVersion of DatakitLibs.
#define CHECK_OK(X)
Definition: testwriters.h:9
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_string OwnerPassword
Definition: pdfw.hpp:172
Dtk_ErrorStatus PdfwSampleInstancesColors_3_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:322
Dtk_ErrorStatus PdfwSampleAssembly_3_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:185
int mkdir() const
File Utility : Create a Directory.
Dtk_ErrorStatus PdfwSampleSimplePMI_5_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:533
@ keepsubcolor
Definition: pdfw.hpp:15
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
Dtk_ErrorStatus PdfwSamplePMI_Geom_association_5_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:626
Dtk_ErrorStatus WritePinToScreenPicture(const Dtk_string &inPictureFilePath, Dtk_Double64 inPictureWidth, Dtk_Double64 inPictureHeight, Dtk_pnt inPictureOrigin, Dtk_anchor_type inAnchorType, bool inIsOnTop, Dtk_LeaderPtr &inLeader)
Creates a picture parallel to screen with an attached leader line.
DtkErrorStatus End3DArtwork(Dtk_UInt32 &outartworkIndex)
Ends Writing of 3D Artwork.
Dtk_ErrorStatus PdfwSampleAsmInstances_3_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:268
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
Dtk_ErrorStatus WriteColoredPoints(Dtk_tab< Dtk_pnt > &inTabPoints, Dtk_tab< Dtk_dir > &inTabNormals, Dtk_tab< Dtk_RGB > &inTabColors, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr())
Write colored points provided in parameter in one node.
Dtk_ErrorStatus PdfwSample_MV_association_5_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:586
Dtk_ErrorStatus PdfwSampleDocumentProperties_4_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:489
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
static Dtk_LeaderPtr Create()
Base constructor.
static Dtk_CameraPtr Create()
Base constructor.
Dtk_ModelDisplayPtr CreateModelDisplayActivated()
Definition: testcreatefdt.cpp:228
Dtk_bool AddSectionCap
Definition: pdfw.hpp:24
This is a high level array class.
Definition: util_stl_dtk.hpp:85
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo=Dtk_transfo())
Initialize a node.
Dtk_ErrorStatus PdfwCreate3DAnnotations(Dtk_Double64 annotBBox[4], const Dtk_UInt32 &artworkIndex)
Definition: testlibpdfwrite.cpp:925
Dtk_bool ConvertRenderInfos
DTK_TRUE : Creates render infos (lightning + texturing), DTK_FALSE : no render infos.
Definition: pdfw.hpp:159
Dtk_ErrorStatus PdfwSamplePMI_PMI_association_5_6(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:704
Dtk_ErrorStatus WriteParallelToScreenPicture(const Dtk_string &inPictureFilePath, Dtk_Double64 inPictureWidth, Dtk_Double64 inPictureHeight, Dtk_anchor_type inAnchorType, bool inIsZoomable, bool inIsOnTop, Dtk_transfo inTransfo, Dtk_LeaderPtr &inLeader)
Creates a parallel to screen picture with an attached leader line.
void SetSubject(const Dtk_string &inString)
Add Subject in Document Catalog Metadata.
Dtk_ErrorStatus PdfwSampleWireBody_2_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:133
Dtk_BodyPtr CreateCurves()
Definition: testcreatecube.cpp:1292
Dtk_ErrorStatus PdfwSampleSimpleModelview_5_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:554
Dtk_BodyPtr CreateCurvesStyle()
Definition: testcreatecube.cpp:1370
Dtk_ErrorStatus AddDocumentProperties(const Pdfw::PdfDocumentProperties &inDocProperties, const Dtk_tab< Dtk_MetaDataPtr > &inMetadatas)
Writing Document Properties.
void SetApplication(const Dtk_string &inString)
Add Application in Document Catalog Metadata.
@ 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
Dtk_ErrorStatus PdfwSampleOneMeshRender_1_3(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:99
@ attributeoverwrite
Definition: pdfw.hpp:14
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:351
Dtk_ErrorStatus PdfwSampleBody_2_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:117
DtkErrorStatus WriteBodyAndMesh(const Dtk_BodyPtr &inBody, const Dtk_MeshPtr &inMesh, Dtk_ID &outID)
Write the entities provided in parameter in a node.
Dtk_RGB IntersectionColor
Definition: pdfw.hpp:26
Definition: dtk_rgb.hpp:7
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
static Dtk_SmartPtr< Dtk_Info > create()
This is a mathematical direction class.
Definition: dtk_dir.hpp:15
Dtk_ErrorStatus CreateNodeConnectorHighlight(const Dtk_ID &inPointingNodeID, const Dtk_ID &inPointedNodeID, const Dtk_UInt32 &inFaceIndex=-1, Dtk_Int32 inReasonLink=0)
Create a connexion between two nodes for visual response.
Dtk_bool CreateDefaultView
DTK_TRUE : Creates Default View (isometric view), DTK_FALSE : no default view.
Definition: pdfw.hpp:139
Dtk_ErrorStatus InitPage(Dtk_RGB inColor=Dtk_RGB(255, 255, 255), Dtk_Double64 inWidth=842, Dtk_Double64 inHeight=595)
LAYOUT METHODS.
@ TerminatorTypeNone
Definition: util_draw_dtk.hpp:2001
Dtk_ModelDisplayPtr CreateModelDisplayDesactivated()
Definition: testcreatefdt.cpp:241
Dtk_bool ShowToolbar
DTK_TRUE : Show 3D Toolbar, DTK_FALSE : Hides 3D Toolbar.
Definition: pdfw.hpp:145