{
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
template <typename T>
inline void Shift( T& mesh,
double sh )
{
mesh->Transform( t );
}
{
CubeMesh->info()->SetName( "ColoredCube" );
Shift( CubePervertexColorMesh, 3 );
CubePervertexColorMesh->info()->SetName( "VertexColoredCube" );
TransparentCube->info()->SetColor(
Dtk_RGB( 0, 255, 0, 128 ) );
TransparentCube->info()->SetName( "TransparentCube" );
Shift( TransparentCube, 6 );
if( TransparentOneFaceCube->get_nb_mesh_face() == 6 )
{
if( TransparentOneFaceCube->get_mesh_face( 3 )->info().
IsNULL() )
TransparentOneFaceCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 0, 0, 255, 128 ) );
}
Shift( TransparentOneFaceCube, 9 );
TransparentCube->info()->SetName( "TransparentCubeColoredFace" );
MeshWire->info()->SetName( "WireMesh" );
MeshPoints->info()->SetName( "PointMesh" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cylinder->info()->SetName( "Cylinder.1" );
cylinder2->info()->SetName( "Cylinder.2" );
cylinder3->info()->SetBlankedStatus(
DTK_TRUE );
cylinder3->info()->SetName( "Cylinder.3" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheel2NodeID, wheel1ID, wheel2ID;
axle->info()->SetName( "axle" );
nodeName = "Wheels";
nodeName = "Wheel";
nodeName = "Wheel2";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axleNodeID, axleID, wheelsID, wheelNodeID, wheelID;
axle->info()->SetName( "axle" );
nodeName = "Wheels";
nodeName = "Wheel1";
wheel->info()->SetName( "wheel" );
nodeName = "Wheel2";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axlesNodeID, axlesNodeID2, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
nodeName = "Axle";
axle->info()->SetName( "axle" );
nodeName = "Wheels";
nodeName = "Wheel1";
wheel->info()->SetName( "wheel" );
nodeName = "Wheel2";
nodeName = "Axles2";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axlesNodeID, axlesNodeID2, axlesNodeID3, axlesNodeID4, axlesNodeID5, axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
nodeName = "Axle";
axle->info()->SetName( "axle" );
nodeName = "Wheels";
nodeName = "Wheel1";
wheel->info()->SetName( "wheel" );
nodeName = "Wheel2";
nodeName = "Axles2";
axle2Info,
axlesNodeID2 ) );
nodeName = "Axles3";
axle3Info,
axlesNodeID3 ) );
nodeName = "Axles4";
axle4Info,
axlesNodeID4 ) );
nodeName = "Axles5";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axleNodeID, axleID, wheelsNodeID, wheelNodeID, wheelID;
axle->info()->SetName( "axle" );
nodeName = "Wheels";
nodeName = "Wheel1";
wheel->info()->SetName( "wheel" );
nodeName = "Wheel2";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
axle->info()->SetName( "axle" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_string application, pdfProducer, title, author, subject, keywords;
author = "user";
subject = "Datakit PDF SDK demo";
keywords = "Datakit;SDK;Demo";
application = "LibPdfWriteSample";
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cylinder->info()->SetName( "Body" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cylinder->info()->SetName( "Body" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cylinder->info()->SetName( "Body" );
mv2->info()->SetName( "PMIView" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cylinder->info()->SetName( "Body" );
mv->info()->SetName( "myView" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID bodyID, datumID, curveID;
ellipse->info()->SetName( "Curve" );
ellipse->info()->SetBlankedStatus(
DTK_TRUE );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
int i;
for( i = 0; i < 10; i++ )
{
}
mv2->info()->SetName( "SecondView" );
tabNodeIDs += tabPMIIDs;
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_ID axisSysID, planeID, axisID;
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
for( i = 0; i < numPointX; i++ )
{
for( j = 0; j < numPointY; j++ )
{
tabColors.
push_back(
Dtk_RGB( (
int )( std::rand() /
double( RAND_MAX ) * 255 ),
( int )( std::rand() / double( RAND_MAX ) * 255 ),
( int )( std::rand() / double( RAND_MAX ) * 255 ) ) );
yPos += offset;
}
yPos = 0.;
xPos += offset;
}
Dtk_pnt to( numPointX / 2., numPointY / 2., 0 );
mv1->info()->SetName( "MainView" );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_pnt dtkLeaderEnd( 1., -1., 1. ), pictureOrigin( 2., -2, 2. );
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
cout <<
"=> " << inOutputFileName.
c_str() << endl;
}
{
Dtk_dir up( -0.57735, 0.57735, -0.57735 );
isoMd->info()->SetName( "Iso" );
topMd->info()->SetName( "Top" );
frontMd->info()->SetName( "Front" );
rightMd->info()->SetName( "Right" );
}
{
annotBBox[ 0 ] = margin / 2. + xPos;
annotBBox[ 1 ] = margin / 2. + yPos;
annotBBox[ 2 ] = xPos + width - margin;
annotBBox[ 3 ] = yPos + height - margin;
xPos = 0.0;
annotBBox[ 0 ] = margin + xPos;
annotBBox[ 1 ] = margin / 2. + yPos;
annotBBox[ 2 ] = xPos + width - margin / 2.;
annotBBox[ 3 ] = yPos + height - margin;
yPos = 0.0;
annotBBox[ 0 ] = margin + xPos;
annotBBox[ 1 ] = margin + yPos;
annotBBox[ 2 ] = xPos + width - margin / 2.;
annotBBox[ 3 ] = yPos + height - margin / 2.;
annotBBox[ 0 ] = margin / 2. + xPos;
annotBBox[ 1 ] = margin + yPos;
annotBBox[ 2 ] = xPos + width - margin;
annotBBox[ 3 ] = yPos + height - margin / 2.;
}
{
meshCube->get_mesh_face( 1 )->info()->SetColor(
Dtk_RGB( 0, 255, 0 ) );
meshCube->get_mesh_face( 2 )->info()->SetColor(
Dtk_RGB( 0, 0, 255 ) );
meshCube->get_mesh_face( 3 )->info()->SetColor(
Dtk_RGB( 255, 255, 0 ) );
meshCube->get_mesh_face( 4 )->info()->SetColor(
Dtk_RGB( 255, 0, 255 ) );
meshCube->get_mesh_face( 5 )->info()->SetColor(
Dtk_RGB( 0, 255, 255 ) );
}
{
artworkName = "myArtwork";
cout <<
"=> " << pdfFileName.
c_str() << endl;
}
{
cout << endl << "----------------------------------------------" << endl;
cout << "Pdf Write start" << endl;
Dtk_string imageDirectory = inResultDirectory + L
"../InputImages/";
outputDirectory = inResultDirectory + L"dtk/Pdf/";
Dtk_string pdfFileName = outputDirectory + L
"PDFW_SampleOneMesh_1_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleMeshes_1_2.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleOneMeshRender_1_3.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleBody_2_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleWireBody_2_2.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleBodyVisibility_2_3.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleAssembly_3_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SamplePartInstances_3_2.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleAsmInstances_3_3.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleInstancesColors_3_4.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleInstancesVisibility_3_5.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleMetadatas_4_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleDocumentProperties_4_2.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleSimplePMI_5_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleSimpleModelview_5_2.pdf";
pdfFileName = outputDirectory + L"PDFW_Sample_MV_association_5_3.pdf";
pdfFileName = outputDirectory + L"PDFW_SamplePMI_Geom_association_5_4.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleModelview_sections_5_5.pdf";
pdfFileName = outputDirectory + L"PDFW_SamplePMI_PMI_association_5_6.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleAxis_References_5_7.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleCloudPoint_6_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleBillboard_7_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleSecuredPdf_8_1.pdf";
pdfFileName = outputDirectory + L"PDFW_SampleLayoutMultipleViews_9_1.pdf";
cout << "Pdf Write end" << endl;
return errStatus;
}