  | 
  
    DATAKIT API
    V2025.4
    
   
   | 
           
 | 
 
 
 
 
◆ AssignFacesColors()
  993      meshCube->get_mesh_face( 1 )->info()->SetColor( 
Dtk_RGB( 0, 255, 0 ) );
 
  994      meshCube->get_mesh_face( 2 )->info()->SetColor( 
Dtk_RGB( 0, 0, 255 ) );
 
  995      meshCube->get_mesh_face( 3 )->info()->SetColor( 
Dtk_RGB( 255, 255, 0 ) );
 
  996      meshCube->get_mesh_face( 4 )->info()->SetColor( 
Dtk_RGB( 255, 0, 255 ) );
 
  997      meshCube->get_mesh_face( 5 )->info()->SetColor( 
Dtk_RGB( 0, 255, 255 ) );
 
 
 
 
◆ PdfwCreate3DAnnotations()
  955      annotBBox[ 0 ] = margin / 2. + xPos;
 
  956      annotBBox[ 1 ] = margin / 2. + yPos;
 
  957      annotBBox[ 2 ] = xPos + width - margin;
 
  958      annotBBox[ 3 ] = yPos + height - margin;
 
  964      annotBBox[ 0 ] = margin + xPos;
 
  965      annotBBox[ 1 ] = margin / 2. + yPos;
 
  966      annotBBox[ 2 ] = xPos + width - margin / 2.;
 
  967      annotBBox[ 3 ] = yPos + height - margin;
 
  972      annotBBox[ 0 ] = margin + xPos;
 
  973      annotBBox[ 1 ] = margin + yPos;
 
  974      annotBBox[ 2 ] = xPos + width - margin / 2.;
 
  975      annotBBox[ 3 ] = yPos + height - margin / 2.;
 
  980      annotBBox[ 0 ] = margin / 2. + xPos;
 
  981      annotBBox[ 1 ] = margin + yPos;
 
  982      annotBBox[ 2 ] = xPos + width - margin;
 
  983      annotBBox[ 3 ] = yPos + height - margin / 2.;
 
 
 
 
◆ PdfwCreateViews()
  905      Dtk_dir up( -0.57735, 0.57735, -0.57735 );
 
  910      isoMd->info()->SetName( 
"Iso" );
 
  920      topMd->info()->SetName( 
"Top" );
 
  930      frontMd->info()->SetName( 
"Front" );
 
  940      rightMd->info()->SetName( 
"Right" );
 
 
 
 
◆ PdfWriteSample()
      
        
          | int PdfWriteSample  | 
          ( | 
          const Dtk_string &  | 
          inResultDirectory | ) | 
           | 
        
      
 
 1057      cout << endl << 
"----------------------------------------------" << endl;
 
 1058      cout << 
"Pdf Write start" << endl;
 
 1060      Dtk_string imageDirectory = L
"../InputImages/";
 
 1064      outputDirectory = inResultDirectory + L
"Pdf/";
 
 1066      outputDirectory.
mkdir();
 
 1068      Dtk_string pdfFileName = outputDirectory + L
"PDFW_SampleOneMesh_1_1.pdf";
 
 1071      pdfFileName = outputDirectory + L
"PDFW_SampleMeshes_1_2.pdf";
 
 1074      pdfFileName = outputDirectory + L
"PDFW_SampleOneMeshRender_1_3.pdf";
 
 1077      pdfFileName = outputDirectory + L
"PDFW_SampleBody_2_1.pdf";
 
 1080      pdfFileName = outputDirectory + L
"PDFW_SampleWireBody_2_2.pdf";
 
 1083      pdfFileName = outputDirectory + L
"PDFW_SampleBodyVisibility_2_3.pdf";
 
 1086      pdfFileName = outputDirectory + L
"PDFW_SampleAssembly_3_1.pdf";
 
 1089      pdfFileName = outputDirectory + L
"PDFW_SamplePartInstances_3_2.pdf";
 
 1092      pdfFileName = outputDirectory + L
"PDFW_SampleAsmInstances_3_3.pdf";
 
 1095      pdfFileName = outputDirectory + L
"PDFW_SampleInstancesColors_3_4.pdf";
 
 1098      pdfFileName = outputDirectory + L
"PDFW_SampleInstancesVisibility_3_5.pdf";
 
 1101      pdfFileName = outputDirectory + L
"PDFW_SampleMetadatas_4_1.pdf";
 
 1104      pdfFileName = outputDirectory + L
"PDFW_SampleDocumentProperties_4_2.pdf";
 
 1107      pdfFileName = outputDirectory + L
"PDFW_SampleSimplePMI_5_1.pdf";
 
 1110      pdfFileName = outputDirectory + L
"PDFW_SampleSimpleModelview_5_2.pdf";
 
 1113      pdfFileName = outputDirectory + L
"PDFW_Sample_MV_association_5_3.pdf";
 
 1116      pdfFileName = outputDirectory + L
"PDFW_SamplePMI_Geom_association_5_4.pdf";
 
 1119      pdfFileName = outputDirectory + L
"PDFW_SampleModelview_sections_5_5.pdf";
 
 1122      pdfFileName = outputDirectory + L
"PDFW_SamplePMI_PMI_association_5_6.pdf";
 
 1125      pdfFileName = outputDirectory + L
"PDFW_SampleAxis_References_5_7.pdf";
 
 1128      pdfFileName = outputDirectory + L
"PDFW_SampleCloudPoint_6_1.pdf";
 
 1131      pdfFileName = outputDirectory + L
"PDFW_SampleBillboard_7_1.pdf";
 
 1135      pdfFileName = outputDirectory + L
"PDFW_SampleSecuredPdf_8_1.pdf";
 
 1138      pdfFileName = outputDirectory + L
"PDFW_SampleLayoutMultipleViews_9_1.pdf";
 
 1141      cout << 
"Pdf Write end" << endl;
 
 
 
 
◆ PdfwSample_MV_association_5_3()
 
  611      cylinder->info()->SetName( 
"Body" );
 
  626      mv2->info()->SetName( 
"PMIView" );
 
  633      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleAsmInstances_3_3()
  282      Dtk_ID axlesNodeID, axlesNodeID2, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
 
  295      axle->info()->SetName( 
"axle" );
 
  305      wheel->info()->SetName( 
"wheel" );
 
  324      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleAssembly_3_1()
  194      Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheel2NodeID, wheel1ID, wheel2ID;
 
  202      axle->info()->SetName( 
"axle" );
 
  225      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleAxis_References_5_7()
  762      Dtk_ID axisSysID, planeID, axisID;
 
  781      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleBillboard_7_1()
  858      Dtk_pnt dtkLeaderEnd( 1., -1., 1. ), pictureOrigin( 2., -2, 2. );
 
  869      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleBody_2_1()
  130      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleBodyVisibility_2_3()
  169      cylinder->info()->SetName( 
"Cylinder.1" );
 
  173      Shift( cylinder2, 3 );
 
  174      cylinder2->info()->SetName( 
"Cylinder.2" );
 
  178      Shift( cylinder3, 6 );
 
  179      cylinder3->info()->SetBlankedStatus( 
DTK_TRUE );
 
  180      cylinder3->info()->SetName( 
"Cylinder.3" );
 
  184      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleCloudPoint_6_1()
  806      for( i = 0; i < numPointX; i++ )
 
  808           for( j = 0; j < numPointY; j++ )
 
  811                tabColors.
push_back( 
Dtk_RGB( ( 
int )( std::rand() / 
double( RAND_MAX ) * 255 ),
 
  812                     ( 
int )( std::rand() / 
double( RAND_MAX ) * 255 ),
 
  813                                                     ( 
int )( std::rand() / 
double( RAND_MAX ) * 255 ) ) );
 
  824      Dtk_pnt to( numPointX / 2., numPointY / 2., 0 );
 
  830      mv1->info()->SetName( 
"MainView" );
 
  835      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleDocumentProperties_4_2()
 
  507      Dtk_string application, pdfProducer, title, author, subject, keywords;
 
  513      title = inOutputFileName.
filename();
 
  519      subject = 
"Datakit PDF SDK demo";
 
  522      keywords = 
"Datakit;SDK;Demo";
 
  526      application = 
"LibPdfWriteSample";
 
  537      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleInstancesColors_3_4()
  337      Dtk_ID axlesNodeID, axlesNodeID2, axlesNodeID3, axlesNodeID4, axlesNodeID5, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
 
  350      axle->info()->SetName( 
"axle" );
 
  360      wheel->info()->SetName( 
"wheel" );
 
  422      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleInstancesVisibility_3_5()
  435      Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
 
  444      axle->info()->SetName( 
"axle" );
 
  454      wheel->info()->SetName( 
"wheel" );
 
  468      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleLayoutMultipleViews_9_1()
 1021      artworkName = 
"myArtwork";
 
 1049      cout << 
"=> " << pdfFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleMeshes_1_2()
   56      CubeMesh->info()->SetName( 
"ColoredCube" );
 
   60      Shift( CubePervertexColorMesh, 3 );  
 
   62      CubePervertexColorMesh->info()->SetName( 
"VertexColoredCube" );
 
   66      TransparentCube->info()->SetColor( 
Dtk_RGB( 0, 255, 0, 128 ) );   
 
   67      TransparentCube->info()->SetName( 
"TransparentCube" );
 
   68      Shift( TransparentCube, 6 );  
 
   72      if( TransparentOneFaceCube->get_nb_mesh_face() == 6 )
 
   74           if( TransparentOneFaceCube->get_mesh_face( 3 )->info().
IsNULL() )
 
   76           TransparentOneFaceCube->get_mesh_face( 3 )->info()->SetColor( 
Dtk_RGB( 0, 0, 255, 128 ) ); 
 
   78      Shift( TransparentOneFaceCube, 9 );  
 
   79      TransparentCube->info()->SetName( 
"TransparentCubeColoredFace" );
 
   83      Shift( MeshWire, 12 );  
 
   85      MeshWire->info()->SetName( 
"WireMesh" );
 
   89      Shift( MeshPoints, 15 );  
 
   90      MeshPoints->info()->SetName( 
"PointMesh" );
 
   94      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleMetadatas_4_1()
  489      axle->info()->SetName( 
"axle" );
 
  494      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleModelview_section_5_5()
 
  676      Dtk_ID bodyID, datumID, curveID;
 
  706      ellipse->info()->SetName( 
"Curve" );
 
  707      ellipse->info()->SetBlankedStatus( 
DTK_TRUE );
 
  713      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleOneMesh_1_1()
   31      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleOneMeshRender_1_3()
  113      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSamplePartInstances_3_2()
  238      Dtk_ID axleNodeID, axleID, wheelsID, wheelNodeID, wheelID;
 
  247      axle->info()->SetName( 
"axle" );
 
  257      wheel->info()->SetName( 
"wheel" );
 
  269      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSamplePMI_Geom_association_5_4()
  650      cylinder->info()->SetName( 
"Body" );
 
  658      mv->info()->SetName( 
"myView" );
 
  665      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSamplePMI_PMI_association_5_6()
  734      for( i = 0; i < 10; i++ ) 
 
  737           Shift( pmi, 15 * i );
 
  742      mv2->info()->SetName( 
"SecondView" );
 
  745      tabNodeIDs += tabPMIIDs;
 
  751      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleSecuredPdf_8_1()
  892      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleSimpleModelview_5_2()
 
  577      cylinder->info()->SetName( 
"Body" );
 
  592      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleSimplePMI_5_1()
  553      cylinder->info()->SetName( 
"Body" );
 
  560      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ PdfwSampleWireBody_2_2()
  151      cout << 
"=> " << inOutputFileName.
c_str() << endl;
 
 
 
 
◆ Shift()
template<typename T > 
      
        
          | void Shift  | 
          ( | 
          T &  | 
          mesh,  | 
        
        
           | 
           | 
          double  | 
          sh  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
 
 
Dtk_BodyPtr CreateAxis()
Definition: testcreatecube.cpp:1555
 
Dtk_ErrorStatus PdfwSampleSecuredPdf_8_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:877
 
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:691
 
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:39
 
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:475
 
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:209
 
Dtk_ErrorStatus PdfwSampleAxis_References_5_7(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:759
 
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:1754
 
Dtk_MeshPtr CreateMeshCubeVertexColor()
Definition: testcreatemesh.cpp:301
 
Dtk_ModelDisplayPtr CreateModelDisplayWithSection()
Definition: testcreatefdt.cpp:350
 
Dtk_MeshPtr CreateMeshPoints()
Points mesh sample.
Definition: testcreatemesh.cpp:441
 
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:729
 
void SetKeywords(const Dtk_string &inString)
Add Keywords in Document Catalog Metadata.
 
Dtk_BodyPtr CreateInfinitePlane()
Definition: testcreatecube.cpp:1500
 
Dtk_ErrorStatus PdfwSamplePartInstances_3_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:232
 
void AssignFacesColors(Dtk_MeshPtr &meshCube)
Definition: testlibpdfwrite.cpp:989
 
uint32_t Dtk_UInt32
Definition: define.h:690
 
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:100
 
size_t Dtk_Size_t
Definition: define.h:714
 
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:1529
 
Dtk_ErrorStatus PdfwSampleLayoutMultipleViews_9_1(const Dtk_string &pdfFileName)
Definition: testlibpdfwrite.cpp:1001
 
#define DTK_FALSE
Definition: define.h:730
 
Dtk_ErrorStatus PdfwSampleModelview_section_5_5(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:672
 
Dtk_ErrorStatus PdfwCreateViews()
Definition: testlibpdfwrite.cpp:899
 
Dtk_RGB CuttingPlaneColor
Definition: pdfw.hpp:27
 
Dtk_ErrorStatus PdfwSampleBillboard_7_1(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:844
 
@ keepsubtransparency
Definition: pdfw.hpp:16
 
double Dtk_Double64
Definition: define.h:701
 
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:429
 
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:390
 
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:274
 
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:788
 
@ DTK_ANCHOR_TOP_RIGHT
Definition: util_draw_dtk.hpp:96
 
Dtk_FdtPtr CreateFdtDatum()
Creates simple Datum.
Definition: testcreatefdt.cpp:19
 
DtkErrorStatus EndNode()
End the node.
 
Dtk_ErrorStatus PdfwSampleBodyVisibility_2_3(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:159
 
Dtk_ErrorStatus PdfwSampleMeshes_1_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:46
 
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:331
 
Dtk_ErrorStatus PdfwSampleAssembly_3_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:191
 
int mkdir() const
File Utility : Create a Directory.
 
Dtk_ErrorStatus PdfwSampleSimplePMI_5_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:545
 
@ 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:640
 
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:276
 
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:599
 
Dtk_ErrorStatus PdfwSampleDocumentProperties_4_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:501
 
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()
Definition: testcreatefdt.cpp:324
 
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:948
 
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:720
 
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:137
 
Dtk_BodyPtr CreateCurves()
Definition: testcreatecube.cpp:1361
 
Dtk_ErrorStatus PdfwSampleSimpleModelview_5_2(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:567
 
Dtk_BodyPtr CreateCurvesStyle()
Definition: testcreatecube.cpp:1438
 
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:144
 
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:417
 
Dtk_ErrorStatus PdfwSampleOneMeshRender_1_3(const Dtk_string &inOutputFileName, const Dtk_string &inImageDirectory)
Definition: testlibpdfwrite.cpp:101
 
@ attributeoverwrite
Definition: pdfw.hpp:14
 
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:353
 
Dtk_ErrorStatus PdfwSampleBody_2_1(const Dtk_string &inOutputFileName)
Definition: testlibpdfwrite.cpp:120
 
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:7
 
Dtk_ErrorStatus SetColor(const int &R, const int &G, const int &B)
 
static Dtk_SmartPtr< Dtk_Info > create()
Calls default constructor to allocate a new object.
 
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:1968
 
Dtk_ModelDisplayPtr CreateModelDisplayDesactivated()
Definition: testcreatefdt.cpp:337
 
Dtk_bool ShowToolbar
DTK_TRUE : Show 3D Toolbar, DTK_FALSE : Hides 3D Toolbar.
Definition: pdfw.hpp:145