 |
DATAKIT SDK
V2026.4
|
|
◆ AssignFacesColors()
995 for(
Dtk_Size_t faceIdx = 1; faceIdx < 6; faceIdx++ )
997 inoutMeshCube->get_mesh_face( 1 )->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
998 inoutMeshCube->get_mesh_face( 2 )->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
999 inoutMeshCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 255, 255, 0 ) );
1000 inoutMeshCube->get_mesh_face( 4 )->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
1001 inoutMeshCube->get_mesh_face( 5 )->info()->SetColor(
Dtk_RGB( 0, 255, 255 ) );
◆ PdfwCreate3DAnnotations()
959 outAnnotBBox[ 0 ] = margin / 2. + xPos;
960 outAnnotBBox[ 1 ] = margin / 2. + yPos;
961 outAnnotBBox[ 2 ] = xPos + width - margin;
962 outAnnotBBox[ 3 ] = yPos + height - margin;
968 outAnnotBBox[ 0 ] = margin + xPos;
969 outAnnotBBox[ 1 ] = margin / 2. + yPos;
970 outAnnotBBox[ 2 ] = xPos + width - margin / 2.;
971 outAnnotBBox[ 3 ] = yPos + height - margin;
976 outAnnotBBox[ 0 ] = margin + xPos;
977 outAnnotBBox[ 1 ] = margin + yPos;
978 outAnnotBBox[ 2 ] = xPos + width - margin / 2.;
979 outAnnotBBox[ 3 ] = yPos + height - margin / 2.;
984 outAnnotBBox[ 0 ] = margin / 2. + xPos;
985 outAnnotBBox[ 1 ] = margin + yPos;
986 outAnnotBBox[ 2 ] = xPos + width - margin;
987 outAnnotBBox[ 3 ] = yPos + height - margin / 2.;
◆ PdfwCreateViews()
909 Dtk_dir up( -0.57735, 0.57735, -0.57735 );
914 isoMd->info()->SetName(
"Iso" );
924 topMd->info()->SetName(
"Top" );
934 frontMd->info()->SetName(
"Front" );
944 rightMd->info()->SetName(
"Right" );
◆ PdfWriteSample()
1061 std::cout << std::endl <<
"----------------------------------------------" << std::endl;
1062 std::cout <<
"Pdf Write start" << std::endl;
1064 Dtk_string imageDirectory = L
"../InputFiles/Images/";
1068 outputDirectory = inResultDirectory + L
"Pdf/";
1070 outputDirectory.
mkdir();
1072 Dtk_string pdfFileName = outputDirectory + L
"PDFW_SampleOneMesh_1_1.pdf";
1075 pdfFileName = outputDirectory + L
"PDFW_SampleMeshes_1_2.pdf";
1078 pdfFileName = outputDirectory + L
"PDFW_SampleOneMeshRender_1_3.pdf";
1081 pdfFileName = outputDirectory + L
"PDFW_SampleBody_2_1.pdf";
1084 pdfFileName = outputDirectory + L
"PDFW_SampleWireBody_2_2.pdf";
1087 pdfFileName = outputDirectory + L
"PDFW_SampleBodyVisibility_2_3.pdf";
1090 pdfFileName = outputDirectory + L
"PDFW_SampleAssembly_3_1.pdf";
1093 pdfFileName = outputDirectory + L
"PDFW_SamplePartInstances_3_2.pdf";
1096 pdfFileName = outputDirectory + L
"PDFW_SampleAsmInstances_3_3.pdf";
1099 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesColors_3_4.pdf";
1102 pdfFileName = outputDirectory + L
"PDFW_SampleInstancesVisibility_3_5.pdf";
1105 pdfFileName = outputDirectory + L
"PDFW_SampleMetadatas_4_1.pdf";
1108 pdfFileName = outputDirectory + L
"PDFW_SampleDocumentProperties_4_2.pdf";
1111 pdfFileName = outputDirectory + L
"PDFW_SampleSimplePMI_5_1.pdf";
1114 pdfFileName = outputDirectory + L
"PDFW_SampleSimpleModelview_5_2.pdf";
1117 pdfFileName = outputDirectory + L
"PDFW_Sample_MV_association_5_3.pdf";
1120 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_Geom_association_5_4.pdf";
1123 pdfFileName = outputDirectory + L
"PDFW_SampleModelview_sections_5_5.pdf";
1126 pdfFileName = outputDirectory + L
"PDFW_SamplePMI_PMI_association_5_6.pdf";
1129 pdfFileName = outputDirectory + L
"PDFW_SampleAxis_References_5_7.pdf";
1132 pdfFileName = outputDirectory + L
"PDFW_SampleCloudPoint_6_1.pdf";
1135 pdfFileName = outputDirectory + L
"PDFW_SampleBillboard_7_1.pdf";
1139 pdfFileName = outputDirectory + L
"PDFW_SampleSecuredPdf_8_1.pdf";
1142 pdfFileName = outputDirectory + L
"PDFW_SampleLayoutMultipleViews_9_1.pdf";
1145 std::cout <<
"Pdf Write end" << std::endl;
◆ PdfwSample_MV_association_5_3()
615 cylinder->info()->SetName(
"Body" );
630 mv2->info()->SetName(
"PMIView" );
637 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleAsmInstances_3_3()
284 Dtk_ID axlesNodeID, axlesNodeID2, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
297 axle->info()->SetName(
"axle" );
307 wheel->info()->SetName(
"wheel" );
326 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleAssembly_3_1()
196 Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheel2NodeID, wheel1ID, wheel2ID;
204 axle->info()->SetName(
"axle" );
227 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleAxis_References_5_7()
766 Dtk_ID axisSysID, planeID, axisID;
785 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleBillboard_7_1()
862 Dtk_pnt dtkLeaderEnd( 1., -1., 1. ), pictureOrigin( 2., -2, 2. );
873 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleBody_2_1()
132 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleBodyVisibility_2_3()
171 cylinder->info()->SetName(
"Cylinder.1" );
175 Shift( cylinder2, 3 );
176 cylinder2->info()->SetName(
"Cylinder.2" );
180 Shift( cylinder3, 6 );
181 cylinder3->info()->SetBlankedStatus(
DTK_TRUE );
182 cylinder3->info()->SetName(
"Cylinder.3" );
186 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleCloudPoint_6_1()
810 for( i = 0; i < numPointX; i++ )
812 for( j = 0; j < numPointY; j++ )
815 tabColors.
push_back(
Dtk_RGB( (
int )( std::rand() /
double( RAND_MAX ) * 255 ),
816 (
int )( std::rand() /
double( RAND_MAX ) * 255 ),
817 (
int )( std::rand() /
double( RAND_MAX ) * 255 ) ) );
828 Dtk_pnt to( numPointX / 2., numPointY / 2., 0 );
834 mv1->info()->SetName(
"MainView" );
839 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleDocumentProperties_4_2()
509 Dtk_string application, pdfProducer, title, author, subject, keywords;
515 title = inOutputFileName.
filename();
521 subject =
"Datakit PDF SDK demo";
524 keywords =
"Datakit;SDK;Demo";
528 application =
"LibPdfWriteSample";
539 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleInstancesColors_3_4()
339 Dtk_ID axlesNodeID, axlesNodeID2, axlesNodeID3, axlesNodeID4, axlesNodeID5, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
352 axle->info()->SetName(
"axle" );
362 wheel->info()->SetName(
"wheel" );
424 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleInstancesVisibility_3_5()
437 Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
446 axle->info()->SetName(
"axle" );
456 wheel->info()->SetName(
"wheel" );
470 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleLayoutMultipleViews_9_1()
1025 artworkName =
"myArtwork";
1053 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleMeshes_1_2()
58 CubeMesh->info()->SetName(
"ColoredCube" );
62 Shift( CubePervertexColorMesh, 3 );
64 CubePervertexColorMesh->info()->SetName(
"VertexColoredCube" );
68 TransparentCube->info()->SetColor(
Dtk_RGB( 0, 255, 0, 128 ) );
69 TransparentCube->info()->SetName(
"TransparentCube" );
70 Shift( TransparentCube, 6 );
74 if( TransparentOneFaceCube->get_nb_mesh_face() == 6 )
76 if( TransparentOneFaceCube->get_mesh_face( 3 )->info().
IsNULL() )
78 TransparentOneFaceCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 0, 0, 255, 128 ) );
80 Shift( TransparentOneFaceCube, 9 );
81 TransparentCube->info()->SetName(
"TransparentCubeColoredFace" );
85 Shift( MeshWire, 12 );
87 MeshWire->info()->SetName(
"WireMesh" );
91 Shift( MeshPoints, 15 );
92 MeshPoints->info()->SetName(
"PointMesh" );
96 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleMetadatas_4_1()
491 axle->info()->SetName(
"axle" );
496 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleModelview_section_5_5()
680 Dtk_ID bodyID, datumID, curveID;
710 ellipse->info()->SetName(
"Curve" );
711 ellipse->info()->SetBlankedStatus(
DTK_TRUE );
717 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleOneMesh_1_1()
PDF write sample entry point: orchestrates all PDF sample functions.
33 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleOneMeshRender_1_3()
115 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSamplePartInstances_3_2()
240 Dtk_ID axleNodeID, axleID, wheelsID, wheelNodeID, wheelID;
249 axle->info()->SetName(
"axle" );
259 wheel->info()->SetName(
"wheel" );
271 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSamplePMI_Geom_association_5_4()
654 cylinder->info()->SetName(
"Body" );
662 mv->info()->SetName(
"myView" );
669 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSamplePMI_PMI_association_5_6()
738 for( pmiIdx = 0; pmiIdx < 10; pmiIdx++ )
741 Shift( pmi, 15 * pmiIdx );
746 mv2->info()->SetName(
"SecondView" );
749 tabNodeIDs += tabPMIIDs;
755 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleSecuredPdf_8_1()
896 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleSimpleModelview_5_2()
579 cylinder->info()->SetName(
"Body" );
594 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleSimplePMI_5_1()
555 cylinder->info()->SetName(
"Body" );
562 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ PdfwSampleWireBody_2_2()
153 std::cout <<
"=> " << inOutputFileName.
c_str() << std::endl;
◆ Shift()
template<typename T >
| void Shift |
( |
T & |
inoutMesh, |
|
|
double |
inShiftAmount |
|
) |
| |
45 inoutMesh->Transform( translation );
Dtk_BodyPtr CreateAxis()
Creates a reference body (infinite + reference flags) containing a single named axis line with metada...
Definition: testcreatecube.cpp:1568
static Dtk_SmartPtr< Dtk_Info > Create()
Calls default constructor to allocate a new object.
Dtk_ErrorStatus PdfwSampleSecuredPdf_8_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:881
static Dtk_ModelDisplayPtr Create(const Dtk_CameraPtr &inCamera, const Dtk_EntityPtr &inClippingEntity, const Dtk_bool inIsActivated)
Calls full featured constructor to allocate a new object.
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:688
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.
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:477
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:763
Dtk_Double64 PointSize
Size of points.
Definition: pdfw.hpp:163
LayoutOptions Layout
Definition: pdfw.hpp:193
Dtk_ErrorStatus PdfwSampleLayoutMultipleViews_9_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:1005
Dtk_BodyPtr CreateCyl(double radius, double height)
Creates a BRep cylinder body with the given radius and height using analytical cylindrical and planar...
Definition: testcreatecube.cpp:1770
Dtk_MeshPtr CreateMeshCubeVertexColor()
Creates a unit cube mesh with per-vertex color data (red, green, blue, white cycling per face).
Definition: testcreatemesh.cpp:300
Dtk_ModelDisplayPtr CreateModelDisplayWithSection()
Creates a deactivated model display "MySectionView" with a section cut plane applied.
Definition: testcreatefdt.cpp:349
Dtk_MeshPtr CreateMeshPoints()
Points mesh sample.
Definition: testcreatemesh.cpp:440
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:726
void SetKeywords(const Dtk_string &inString)
Add Keywords in Document Catalog Metadata.
Dtk_BodyPtr CreateInfinitePlane()
Creates a reference body flagged as an infinite plane (InfiniteGeometryFlag + RefEntityFlag),...
Definition: testcreatecube.cpp:1511
Dtk_ErrorStatus PdfwSamplePartInstances_3_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:234
Dtk_ErrorStatus PdfwCreate3DAnnotations(Dtk_Double64 outAnnotBBox[4], const Dtk_UInt32 &inArtworkIndex)
Definition: testlibpdfwrite.cpp:952
uint32_t Dtk_UInt32
Definition: define.h:687
This is a high level string class.
Definition: dtk_string.hpp:53
Dtk_Double64 GetCurrentPageWidth()
Gets current page width.
@ DTK_ANCHOR_BOTTOM_LEFT
Definition: util_draw_dtk.hpp:99
size_t Dtk_Size_t
Definition: define.h:711
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()
Creates a named axis system with a custom orientation matrix, red color, layer 123,...
Definition: testcreatecube.cpp:1541
#define DTK_FALSE
Definition: define.h:727
Dtk_ErrorStatus PdfwSampleModelview_section_5_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:676
Dtk_ErrorStatus PdfwCreateViews()
Definition: testlibpdfwrite.cpp:903
Dtk_RGB CuttingPlaneColor
Definition: pdfw.hpp:27
Dtk_ErrorStatus PdfwSampleBillboard_7_1(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:848
@ keepsubtransparency
Definition: pdfw.hpp:16
double Dtk_Double64
Definition: define.h:698
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:431
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:389
void SetPDFProducer(const Dtk_string &inString)
Add PDFProducer in Document Catalog Metadata.
Dtk_ErrorStatus PdfwSampleOneMesh_1_1(const Dtk_string &inOutputFileName)
PDF write sample entry point: orchestrates all PDF sample functions.
Definition: testlibpdfwrite.cpp:24
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:21
Dtk_ErrorStatus PdfwSampleCloudPoint_6_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:792
@ DTK_ANCHOR_TOP_RIGHT
Definition: util_draw_dtk.hpp:95
Dtk_FdtPtr CreateFdtDatum()
Creates simple Datum.
Definition: testcreatefdt.cpp:14
DtkErrorStatus EndNode()
End the node.
void Shift(T &inoutMesh, double inShiftAmount)
Definition: testlibpdfwrite.cpp:41
Dtk_ErrorStatus PdfwSampleBodyVisibility_2_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:161
Dtk_ErrorStatus PdfwSampleMeshes_1_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:48
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:8
const char * c_str() const
Retrieve the ASCII conversion string.
Dtk_string OwnerPassword
Definition: pdfw.hpp:172
void AssignFacesColors(Dtk_MeshPtr &inoutMeshCube)
Definition: testlibpdfwrite.cpp:993
Dtk_ErrorStatus PdfwSampleInstancesColors_3_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:333
Dtk_ErrorStatus PdfwSampleAssembly_3_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:193
int mkdir() const
File Utility : Create a Directory.
Dtk_ErrorStatus PdfwSampleSimplePMI_5_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:547
@ keepsubcolor
Definition: pdfw.hpp:15
This is a mathematical point class.
Definition: dtk_pnt.hpp:20
Dtk_ErrorStatus PdfwSamplePMI_Geom_association_5_4(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:644
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:278
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:601
Dtk_ErrorStatus PdfwSampleDocumentProperties_4_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:503
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
static Dtk_LeaderPtr Create()
Calls default constructor to allocate a new object.
static Dtk_CameraPtr Create()
Calls default constructor to allocate a new object.
Dtk_ModelDisplayPtr CreateModelDisplayActivated()
Creates an activated (visible) model display "MyView1" with a perspective camera.
Definition: testcreatefdt.cpp:321
Dtk_bool AddSectionCap
Definition: pdfw.hpp:24
This is a high level array class.
Definition: util_stl_dtk.hpp:84
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_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:724
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:139
Dtk_BodyPtr CreateCurves()
Creates a wireframe body containing a circle, ellipse, line, and NURBS curve, each with a distinct co...
Definition: testcreatecube.cpp:1368
Dtk_ErrorStatus PdfwSampleSimpleModelview_5_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:569
Dtk_BodyPtr CreateCurvesStyle()
Creates a wireframe body demonstrating curve display styles: thick circle (4 mm), dashed blue circle,...
Definition: testcreatecube.cpp:1447
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:151
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:416
Dtk_ErrorStatus PdfwSampleOneMeshRender_1_3(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:103
@ attributeoverwrite
Definition: pdfw.hpp:14
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:352
Dtk_ErrorStatus PdfwSampleBody_2_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:122
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
static Dtk_EllipsePtr Create(const Dtk_Ellipse &in)
Calls copy constructor to allocate a new object.
Definition: dtk_rgb.hpp:8
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
This is a mathematical direction class.
Definition: dtk_dir.hpp:14
Dtk_ErrorStatus CreateNodeConnectorHighlight(const Dtk_ID &inPointingNodeID, const Dtk_ID &inPointedNodeID, const Dtk_UInt32 &inFaceIndex=-1, Dtk_Int32 inReasonLink=0, const Dtk_NodeConnectorPtr &inNodeConnect=NULL)
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:1854
Dtk_ModelDisplayPtr CreateModelDisplayDesactivated()
Creates a deactivated (hidden) model display "MyView2" with an orthographic camera.
Definition: testcreatefdt.cpp:335
Dtk_bool ShowToolbar
DTK_TRUE : Show 3D Toolbar, DTK_FALSE : Hides 3D Toolbar.
Definition: pdfw.hpp:145